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

1159 lines
36 KiB
Go

// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.36.11
// protoc (unknown)
// source: state/v1/binding.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)
)
// BindingMatcher mirrors internal/domain/binding.Matcher.
type BindingMatcher struct {
state protoimpl.MessageState `protogen:"open.v1"`
Source string `protobuf:"bytes,1,opt,name=source,proto3" json:"source,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *BindingMatcher) Reset() {
*x = BindingMatcher{}
mi := &file_state_v1_binding_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *BindingMatcher) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*BindingMatcher) ProtoMessage() {}
func (x *BindingMatcher) ProtoReflect() protoreflect.Message {
mi := &file_state_v1_binding_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 BindingMatcher.ProtoReflect.Descriptor instead.
func (*BindingMatcher) Descriptor() ([]byte, []int) {
return file_state_v1_binding_proto_rawDescGZIP(), []int{0}
}
func (x *BindingMatcher) GetSource() string {
if x != nil {
return x.Source
}
return ""
}
// Binding mirrors internal/domain/binding.Binding.
type Binding 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"`
Matcher *BindingMatcher `protobuf:"bytes,3,opt,name=matcher,proto3" json:"matcher,omitempty"`
MappingId string `protobuf:"bytes,4,opt,name=mapping_id,json=mappingId,proto3" json:"mapping_id,omitempty"`
Workflow string `protobuf:"bytes,5,opt,name=workflow,proto3" json:"workflow,omitempty"`
Owner string `protobuf:"bytes,6,opt,name=owner,proto3" json:"owner,omitempty"`
Repo string `protobuf:"bytes,7,opt,name=repo,proto3" json:"repo,omitempty"`
Version int64 `protobuf:"varint,8,opt,name=version,proto3" json:"version,omitempty"`
Status string `protobuf:"bytes,9,opt,name=status,proto3" json:"status,omitempty"`
CreatedAt *timestamppb.Timestamp `protobuf:"bytes,11,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
UpdatedAt *timestamppb.Timestamp `protobuf:"bytes,12,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"`
Filter string `protobuf:"bytes,13,opt,name=filter,proto3" json:"filter,omitempty"`
// inputs_json assigns workflow inputs, a JSON object of
// {"param": name} or {"value": constant} per input.
InputsJson string `protobuf:"bytes,14,opt,name=inputs_json,json=inputsJson,proto3" json:"inputs_json,omitempty"`
// repo_param names the mapped parameter holding "owner/name".
RepoParam string `protobuf:"bytes,15,opt,name=repo_param,json=repoParam,proto3" json:"repo_param,omitempty"`
// org_id is the org that owns the binding; it is read-only here.
OrgId string `protobuf:"bytes,16,opt,name=org_id,json=orgId,proto3" json:"org_id,omitempty"`
// workspace_id is its source's workspace; read-only here.
WorkspaceId string `protobuf:"bytes,17,opt,name=workspace_id,json=workspaceId,proto3" json:"workspace_id,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *Binding) Reset() {
*x = Binding{}
mi := &file_state_v1_binding_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *Binding) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Binding) ProtoMessage() {}
func (x *Binding) ProtoReflect() protoreflect.Message {
mi := &file_state_v1_binding_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 Binding.ProtoReflect.Descriptor instead.
func (*Binding) Descriptor() ([]byte, []int) {
return file_state_v1_binding_proto_rawDescGZIP(), []int{1}
}
func (x *Binding) GetId() string {
if x != nil {
return x.Id
}
return ""
}
func (x *Binding) GetName() string {
if x != nil {
return x.Name
}
return ""
}
func (x *Binding) GetMatcher() *BindingMatcher {
if x != nil {
return x.Matcher
}
return nil
}
func (x *Binding) GetMappingId() string {
if x != nil {
return x.MappingId
}
return ""
}
func (x *Binding) GetWorkflow() string {
if x != nil {
return x.Workflow
}
return ""
}
func (x *Binding) GetOwner() string {
if x != nil {
return x.Owner
}
return ""
}
func (x *Binding) GetRepo() string {
if x != nil {
return x.Repo
}
return ""
}
func (x *Binding) GetVersion() int64 {
if x != nil {
return x.Version
}
return 0
}
func (x *Binding) GetStatus() string {
if x != nil {
return x.Status
}
return ""
}
func (x *Binding) GetCreatedAt() *timestamppb.Timestamp {
if x != nil {
return x.CreatedAt
}
return nil
}
func (x *Binding) GetUpdatedAt() *timestamppb.Timestamp {
if x != nil {
return x.UpdatedAt
}
return nil
}
func (x *Binding) GetFilter() string {
if x != nil {
return x.Filter
}
return ""
}
func (x *Binding) GetInputsJson() string {
if x != nil {
return x.InputsJson
}
return ""
}
func (x *Binding) GetRepoParam() string {
if x != nil {
return x.RepoParam
}
return ""
}
func (x *Binding) GetOrgId() string {
if x != nil {
return x.OrgId
}
return ""
}
func (x *Binding) GetWorkspaceId() string {
if x != nil {
return x.WorkspaceId
}
return ""
}
type InsertBindingRequest struct {
state protoimpl.MessageState `protogen:"open.v1"`
Binding *Binding `protobuf:"bytes,1,opt,name=binding,proto3" json:"binding,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *InsertBindingRequest) Reset() {
*x = InsertBindingRequest{}
mi := &file_state_v1_binding_proto_msgTypes[2]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *InsertBindingRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*InsertBindingRequest) ProtoMessage() {}
func (x *InsertBindingRequest) ProtoReflect() protoreflect.Message {
mi := &file_state_v1_binding_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 InsertBindingRequest.ProtoReflect.Descriptor instead.
func (*InsertBindingRequest) Descriptor() ([]byte, []int) {
return file_state_v1_binding_proto_rawDescGZIP(), []int{2}
}
func (x *InsertBindingRequest) GetBinding() *Binding {
if x != nil {
return x.Binding
}
return nil
}
type InsertBindingResponse 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 *InsertBindingResponse) Reset() {
*x = InsertBindingResponse{}
mi := &file_state_v1_binding_proto_msgTypes[3]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *InsertBindingResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*InsertBindingResponse) ProtoMessage() {}
func (x *InsertBindingResponse) ProtoReflect() protoreflect.Message {
mi := &file_state_v1_binding_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 InsertBindingResponse.ProtoReflect.Descriptor instead.
func (*InsertBindingResponse) Descriptor() ([]byte, []int) {
return file_state_v1_binding_proto_rawDescGZIP(), []int{3}
}
func (x *InsertBindingResponse) GetId() string {
if x != nil {
return x.Id
}
return ""
}
type GetBindingRequest 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 *GetBindingRequest) Reset() {
*x = GetBindingRequest{}
mi := &file_state_v1_binding_proto_msgTypes[4]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *GetBindingRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*GetBindingRequest) ProtoMessage() {}
func (x *GetBindingRequest) ProtoReflect() protoreflect.Message {
mi := &file_state_v1_binding_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 GetBindingRequest.ProtoReflect.Descriptor instead.
func (*GetBindingRequest) Descriptor() ([]byte, []int) {
return file_state_v1_binding_proto_rawDescGZIP(), []int{4}
}
func (x *GetBindingRequest) GetId() string {
if x != nil {
return x.Id
}
return ""
}
type GetBindingResponse struct {
state protoimpl.MessageState `protogen:"open.v1"`
Binding *Binding `protobuf:"bytes,1,opt,name=binding,proto3" json:"binding,omitempty"`
Found bool `protobuf:"varint,2,opt,name=found,proto3" json:"found,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *GetBindingResponse) Reset() {
*x = GetBindingResponse{}
mi := &file_state_v1_binding_proto_msgTypes[5]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *GetBindingResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*GetBindingResponse) ProtoMessage() {}
func (x *GetBindingResponse) ProtoReflect() protoreflect.Message {
mi := &file_state_v1_binding_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 GetBindingResponse.ProtoReflect.Descriptor instead.
func (*GetBindingResponse) Descriptor() ([]byte, []int) {
return file_state_v1_binding_proto_rawDescGZIP(), []int{5}
}
func (x *GetBindingResponse) GetBinding() *Binding {
if x != nil {
return x.Binding
}
return nil
}
func (x *GetBindingResponse) GetFound() bool {
if x != nil {
return x.Found
}
return false
}
type ListBindingsRequest struct {
state protoimpl.MessageState `protogen:"open.v1"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *ListBindingsRequest) Reset() {
*x = ListBindingsRequest{}
mi := &file_state_v1_binding_proto_msgTypes[6]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *ListBindingsRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ListBindingsRequest) ProtoMessage() {}
func (x *ListBindingsRequest) ProtoReflect() protoreflect.Message {
mi := &file_state_v1_binding_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 ListBindingsRequest.ProtoReflect.Descriptor instead.
func (*ListBindingsRequest) Descriptor() ([]byte, []int) {
return file_state_v1_binding_proto_rawDescGZIP(), []int{6}
}
type ListBindingsResponse struct {
state protoimpl.MessageState `protogen:"open.v1"`
Bindings []*Binding `protobuf:"bytes,1,rep,name=bindings,proto3" json:"bindings,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *ListBindingsResponse) Reset() {
*x = ListBindingsResponse{}
mi := &file_state_v1_binding_proto_msgTypes[7]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *ListBindingsResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ListBindingsResponse) ProtoMessage() {}
func (x *ListBindingsResponse) ProtoReflect() protoreflect.Message {
mi := &file_state_v1_binding_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 ListBindingsResponse.ProtoReflect.Descriptor instead.
func (*ListBindingsResponse) Descriptor() ([]byte, []int) {
return file_state_v1_binding_proto_rawDescGZIP(), []int{7}
}
func (x *ListBindingsResponse) GetBindings() []*Binding {
if x != nil {
return x.Bindings
}
return nil
}
type UpdateBindingRequest struct {
state protoimpl.MessageState `protogen:"open.v1"`
Binding *Binding `protobuf:"bytes,1,opt,name=binding,proto3" json:"binding,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *UpdateBindingRequest) Reset() {
*x = UpdateBindingRequest{}
mi := &file_state_v1_binding_proto_msgTypes[8]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *UpdateBindingRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*UpdateBindingRequest) ProtoMessage() {}
func (x *UpdateBindingRequest) ProtoReflect() protoreflect.Message {
mi := &file_state_v1_binding_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 UpdateBindingRequest.ProtoReflect.Descriptor instead.
func (*UpdateBindingRequest) Descriptor() ([]byte, []int) {
return file_state_v1_binding_proto_rawDescGZIP(), []int{8}
}
func (x *UpdateBindingRequest) GetBinding() *Binding {
if x != nil {
return x.Binding
}
return nil
}
type UpdateBindingResponse struct {
state protoimpl.MessageState `protogen:"open.v1"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *UpdateBindingResponse) Reset() {
*x = UpdateBindingResponse{}
mi := &file_state_v1_binding_proto_msgTypes[9]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *UpdateBindingResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*UpdateBindingResponse) ProtoMessage() {}
func (x *UpdateBindingResponse) ProtoReflect() protoreflect.Message {
mi := &file_state_v1_binding_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 UpdateBindingResponse.ProtoReflect.Descriptor instead.
func (*UpdateBindingResponse) Descriptor() ([]byte, []int) {
return file_state_v1_binding_proto_rawDescGZIP(), []int{9}
}
type DeleteBindingRequest 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 *DeleteBindingRequest) Reset() {
*x = DeleteBindingRequest{}
mi := &file_state_v1_binding_proto_msgTypes[10]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *DeleteBindingRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*DeleteBindingRequest) ProtoMessage() {}
func (x *DeleteBindingRequest) ProtoReflect() protoreflect.Message {
mi := &file_state_v1_binding_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 DeleteBindingRequest.ProtoReflect.Descriptor instead.
func (*DeleteBindingRequest) Descriptor() ([]byte, []int) {
return file_state_v1_binding_proto_rawDescGZIP(), []int{10}
}
func (x *DeleteBindingRequest) GetId() string {
if x != nil {
return x.Id
}
return ""
}
type DeleteBindingResponse struct {
state protoimpl.MessageState `protogen:"open.v1"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *DeleteBindingResponse) Reset() {
*x = DeleteBindingResponse{}
mi := &file_state_v1_binding_proto_msgTypes[11]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *DeleteBindingResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*DeleteBindingResponse) ProtoMessage() {}
func (x *DeleteBindingResponse) ProtoReflect() protoreflect.Message {
mi := &file_state_v1_binding_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 DeleteBindingResponse.ProtoReflect.Descriptor instead.
func (*DeleteBindingResponse) Descriptor() ([]byte, []int) {
return file_state_v1_binding_proto_rawDescGZIP(), []int{11}
}
type ApproveBindingRequest 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 *ApproveBindingRequest) Reset() {
*x = ApproveBindingRequest{}
mi := &file_state_v1_binding_proto_msgTypes[12]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *ApproveBindingRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ApproveBindingRequest) ProtoMessage() {}
func (x *ApproveBindingRequest) ProtoReflect() protoreflect.Message {
mi := &file_state_v1_binding_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 ApproveBindingRequest.ProtoReflect.Descriptor instead.
func (*ApproveBindingRequest) Descriptor() ([]byte, []int) {
return file_state_v1_binding_proto_rawDescGZIP(), []int{12}
}
func (x *ApproveBindingRequest) GetId() string {
if x != nil {
return x.Id
}
return ""
}
type ApproveBindingResponse struct {
state protoimpl.MessageState `protogen:"open.v1"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *ApproveBindingResponse) Reset() {
*x = ApproveBindingResponse{}
mi := &file_state_v1_binding_proto_msgTypes[13]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *ApproveBindingResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ApproveBindingResponse) ProtoMessage() {}
func (x *ApproveBindingResponse) ProtoReflect() protoreflect.Message {
mi := &file_state_v1_binding_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 ApproveBindingResponse.ProtoReflect.Descriptor instead.
func (*ApproveBindingResponse) Descriptor() ([]byte, []int) {
return file_state_v1_binding_proto_rawDescGZIP(), []int{13}
}
type PauseBindingRequest 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 *PauseBindingRequest) Reset() {
*x = PauseBindingRequest{}
mi := &file_state_v1_binding_proto_msgTypes[14]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *PauseBindingRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*PauseBindingRequest) ProtoMessage() {}
func (x *PauseBindingRequest) ProtoReflect() protoreflect.Message {
mi := &file_state_v1_binding_proto_msgTypes[14]
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 PauseBindingRequest.ProtoReflect.Descriptor instead.
func (*PauseBindingRequest) Descriptor() ([]byte, []int) {
return file_state_v1_binding_proto_rawDescGZIP(), []int{14}
}
func (x *PauseBindingRequest) GetId() string {
if x != nil {
return x.Id
}
return ""
}
type PauseBindingResponse struct {
state protoimpl.MessageState `protogen:"open.v1"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *PauseBindingResponse) Reset() {
*x = PauseBindingResponse{}
mi := &file_state_v1_binding_proto_msgTypes[15]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *PauseBindingResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*PauseBindingResponse) ProtoMessage() {}
func (x *PauseBindingResponse) ProtoReflect() protoreflect.Message {
mi := &file_state_v1_binding_proto_msgTypes[15]
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 PauseBindingResponse.ProtoReflect.Descriptor instead.
func (*PauseBindingResponse) Descriptor() ([]byte, []int) {
return file_state_v1_binding_proto_rawDescGZIP(), []int{15}
}
type ResumeBindingRequest 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 *ResumeBindingRequest) Reset() {
*x = ResumeBindingRequest{}
mi := &file_state_v1_binding_proto_msgTypes[16]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *ResumeBindingRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ResumeBindingRequest) ProtoMessage() {}
func (x *ResumeBindingRequest) ProtoReflect() protoreflect.Message {
mi := &file_state_v1_binding_proto_msgTypes[16]
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 ResumeBindingRequest.ProtoReflect.Descriptor instead.
func (*ResumeBindingRequest) Descriptor() ([]byte, []int) {
return file_state_v1_binding_proto_rawDescGZIP(), []int{16}
}
func (x *ResumeBindingRequest) GetId() string {
if x != nil {
return x.Id
}
return ""
}
type ResumeBindingResponse struct {
state protoimpl.MessageState `protogen:"open.v1"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *ResumeBindingResponse) Reset() {
*x = ResumeBindingResponse{}
mi := &file_state_v1_binding_proto_msgTypes[17]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *ResumeBindingResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ResumeBindingResponse) ProtoMessage() {}
func (x *ResumeBindingResponse) ProtoReflect() protoreflect.Message {
mi := &file_state_v1_binding_proto_msgTypes[17]
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 ResumeBindingResponse.ProtoReflect.Descriptor instead.
func (*ResumeBindingResponse) Descriptor() ([]byte, []int) {
return file_state_v1_binding_proto_rawDescGZIP(), []int{17}
}
type ArmedBindingsForSourceRequest struct {
state protoimpl.MessageState `protogen:"open.v1"`
Source string `protobuf:"bytes,1,opt,name=source,proto3" json:"source,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *ArmedBindingsForSourceRequest) Reset() {
*x = ArmedBindingsForSourceRequest{}
mi := &file_state_v1_binding_proto_msgTypes[18]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *ArmedBindingsForSourceRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ArmedBindingsForSourceRequest) ProtoMessage() {}
func (x *ArmedBindingsForSourceRequest) ProtoReflect() protoreflect.Message {
mi := &file_state_v1_binding_proto_msgTypes[18]
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 ArmedBindingsForSourceRequest.ProtoReflect.Descriptor instead.
func (*ArmedBindingsForSourceRequest) Descriptor() ([]byte, []int) {
return file_state_v1_binding_proto_rawDescGZIP(), []int{18}
}
func (x *ArmedBindingsForSourceRequest) GetSource() string {
if x != nil {
return x.Source
}
return ""
}
type ArmedBindingsForSourceResponse struct {
state protoimpl.MessageState `protogen:"open.v1"`
Bindings []*Binding `protobuf:"bytes,1,rep,name=bindings,proto3" json:"bindings,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *ArmedBindingsForSourceResponse) Reset() {
*x = ArmedBindingsForSourceResponse{}
mi := &file_state_v1_binding_proto_msgTypes[19]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *ArmedBindingsForSourceResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ArmedBindingsForSourceResponse) ProtoMessage() {}
func (x *ArmedBindingsForSourceResponse) ProtoReflect() protoreflect.Message {
mi := &file_state_v1_binding_proto_msgTypes[19]
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 ArmedBindingsForSourceResponse.ProtoReflect.Descriptor instead.
func (*ArmedBindingsForSourceResponse) Descriptor() ([]byte, []int) {
return file_state_v1_binding_proto_rawDescGZIP(), []int{19}
}
func (x *ArmedBindingsForSourceResponse) GetBindings() []*Binding {
if x != nil {
return x.Bindings
}
return nil
}
var File_state_v1_binding_proto protoreflect.FileDescriptor
const file_state_v1_binding_proto_rawDesc = "" +
"\n" +
"\x16state/v1/binding.proto\x12\bstate.v1\x1a\x1fgoogle/protobuf/timestamp.proto\"(\n" +
"\x0eBindingMatcher\x12\x16\n" +
"\x06source\x18\x01 \x01(\tR\x06source\"\x8e\x04\n" +
"\aBinding\x12\x0e\n" +
"\x02id\x18\x01 \x01(\tR\x02id\x12\x12\n" +
"\x04name\x18\x02 \x01(\tR\x04name\x122\n" +
"\amatcher\x18\x03 \x01(\v2\x18.state.v1.BindingMatcherR\amatcher\x12\x1d\n" +
"\n" +
"mapping_id\x18\x04 \x01(\tR\tmappingId\x12\x1a\n" +
"\bworkflow\x18\x05 \x01(\tR\bworkflow\x12\x14\n" +
"\x05owner\x18\x06 \x01(\tR\x05owner\x12\x12\n" +
"\x04repo\x18\a \x01(\tR\x04repo\x12\x18\n" +
"\aversion\x18\b \x01(\x03R\aversion\x12\x16\n" +
"\x06status\x18\t \x01(\tR\x06status\x129\n" +
"\n" +
"created_at\x18\v \x01(\v2\x1a.google.protobuf.TimestampR\tcreatedAt\x129\n" +
"\n" +
"updated_at\x18\f \x01(\v2\x1a.google.protobuf.TimestampR\tupdatedAt\x12\x16\n" +
"\x06filter\x18\r \x01(\tR\x06filter\x12\x1f\n" +
"\vinputs_json\x18\x0e \x01(\tR\n" +
"inputsJson\x12\x1d\n" +
"\n" +
"repo_param\x18\x0f \x01(\tR\trepoParam\x12\x15\n" +
"\x06org_id\x18\x10 \x01(\tR\x05orgId\x12!\n" +
"\fworkspace_id\x18\x11 \x01(\tR\vworkspaceIdJ\x04\b\n" +
"\x10\vR\x06secret\"C\n" +
"\x14InsertBindingRequest\x12+\n" +
"\abinding\x18\x01 \x01(\v2\x11.state.v1.BindingR\abinding\"'\n" +
"\x15InsertBindingResponse\x12\x0e\n" +
"\x02id\x18\x01 \x01(\tR\x02id\"#\n" +
"\x11GetBindingRequest\x12\x0e\n" +
"\x02id\x18\x01 \x01(\tR\x02id\"W\n" +
"\x12GetBindingResponse\x12+\n" +
"\abinding\x18\x01 \x01(\v2\x11.state.v1.BindingR\abinding\x12\x14\n" +
"\x05found\x18\x02 \x01(\bR\x05found\"\x15\n" +
"\x13ListBindingsRequest\"E\n" +
"\x14ListBindingsResponse\x12-\n" +
"\bbindings\x18\x01 \x03(\v2\x11.state.v1.BindingR\bbindings\"C\n" +
"\x14UpdateBindingRequest\x12+\n" +
"\abinding\x18\x01 \x01(\v2\x11.state.v1.BindingR\abinding\"\x17\n" +
"\x15UpdateBindingResponse\"&\n" +
"\x14DeleteBindingRequest\x12\x0e\n" +
"\x02id\x18\x01 \x01(\tR\x02id\"\x17\n" +
"\x15DeleteBindingResponse\"'\n" +
"\x15ApproveBindingRequest\x12\x0e\n" +
"\x02id\x18\x01 \x01(\tR\x02id\"\x18\n" +
"\x16ApproveBindingResponse\"%\n" +
"\x13PauseBindingRequest\x12\x0e\n" +
"\x02id\x18\x01 \x01(\tR\x02id\"\x16\n" +
"\x14PauseBindingResponse\"&\n" +
"\x14ResumeBindingRequest\x12\x0e\n" +
"\x02id\x18\x01 \x01(\tR\x02id\"\x17\n" +
"\x15ResumeBindingResponse\"7\n" +
"\x1dArmedBindingsForSourceRequest\x12\x16\n" +
"\x06source\x18\x01 \x01(\tR\x06source\"O\n" +
"\x1eArmedBindingsForSourceResponse\x12-\n" +
"\bbindings\x18\x01 \x03(\v2\x11.state.v1.BindingR\bbindings2\x81\x06\n" +
"\x0eBindingService\x12P\n" +
"\rInsertBinding\x12\x1e.state.v1.InsertBindingRequest\x1a\x1f.state.v1.InsertBindingResponse\x12G\n" +
"\n" +
"GetBinding\x12\x1b.state.v1.GetBindingRequest\x1a\x1c.state.v1.GetBindingResponse\x12M\n" +
"\fListBindings\x12\x1d.state.v1.ListBindingsRequest\x1a\x1e.state.v1.ListBindingsResponse\x12P\n" +
"\rUpdateBinding\x12\x1e.state.v1.UpdateBindingRequest\x1a\x1f.state.v1.UpdateBindingResponse\x12P\n" +
"\rDeleteBinding\x12\x1e.state.v1.DeleteBindingRequest\x1a\x1f.state.v1.DeleteBindingResponse\x12S\n" +
"\x0eApproveBinding\x12\x1f.state.v1.ApproveBindingRequest\x1a .state.v1.ApproveBindingResponse\x12M\n" +
"\fPauseBinding\x12\x1d.state.v1.PauseBindingRequest\x1a\x1e.state.v1.PauseBindingResponse\x12P\n" +
"\rResumeBinding\x12\x1e.state.v1.ResumeBindingRequest\x1a\x1f.state.v1.ResumeBindingResponse\x12k\n" +
"\x16ArmedBindingsForSource\x12'.state.v1.ArmedBindingsForSourceRequest\x1a(.state.v1.ArmedBindingsForSourceResponseB\xa6\x01\n" +
"\fcom.state.v1B\fBindingProtoP\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_binding_proto_rawDescOnce sync.Once
file_state_v1_binding_proto_rawDescData []byte
)
func file_state_v1_binding_proto_rawDescGZIP() []byte {
file_state_v1_binding_proto_rawDescOnce.Do(func() {
file_state_v1_binding_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_state_v1_binding_proto_rawDesc), len(file_state_v1_binding_proto_rawDesc)))
})
return file_state_v1_binding_proto_rawDescData
}
var file_state_v1_binding_proto_msgTypes = make([]protoimpl.MessageInfo, 20)
var file_state_v1_binding_proto_goTypes = []any{
(*BindingMatcher)(nil), // 0: state.v1.BindingMatcher
(*Binding)(nil), // 1: state.v1.Binding
(*InsertBindingRequest)(nil), // 2: state.v1.InsertBindingRequest
(*InsertBindingResponse)(nil), // 3: state.v1.InsertBindingResponse
(*GetBindingRequest)(nil), // 4: state.v1.GetBindingRequest
(*GetBindingResponse)(nil), // 5: state.v1.GetBindingResponse
(*ListBindingsRequest)(nil), // 6: state.v1.ListBindingsRequest
(*ListBindingsResponse)(nil), // 7: state.v1.ListBindingsResponse
(*UpdateBindingRequest)(nil), // 8: state.v1.UpdateBindingRequest
(*UpdateBindingResponse)(nil), // 9: state.v1.UpdateBindingResponse
(*DeleteBindingRequest)(nil), // 10: state.v1.DeleteBindingRequest
(*DeleteBindingResponse)(nil), // 11: state.v1.DeleteBindingResponse
(*ApproveBindingRequest)(nil), // 12: state.v1.ApproveBindingRequest
(*ApproveBindingResponse)(nil), // 13: state.v1.ApproveBindingResponse
(*PauseBindingRequest)(nil), // 14: state.v1.PauseBindingRequest
(*PauseBindingResponse)(nil), // 15: state.v1.PauseBindingResponse
(*ResumeBindingRequest)(nil), // 16: state.v1.ResumeBindingRequest
(*ResumeBindingResponse)(nil), // 17: state.v1.ResumeBindingResponse
(*ArmedBindingsForSourceRequest)(nil), // 18: state.v1.ArmedBindingsForSourceRequest
(*ArmedBindingsForSourceResponse)(nil), // 19: state.v1.ArmedBindingsForSourceResponse
(*timestamppb.Timestamp)(nil), // 20: google.protobuf.Timestamp
}
var file_state_v1_binding_proto_depIdxs = []int32{
0, // 0: state.v1.Binding.matcher:type_name -> state.v1.BindingMatcher
20, // 1: state.v1.Binding.created_at:type_name -> google.protobuf.Timestamp
20, // 2: state.v1.Binding.updated_at:type_name -> google.protobuf.Timestamp
1, // 3: state.v1.InsertBindingRequest.binding:type_name -> state.v1.Binding
1, // 4: state.v1.GetBindingResponse.binding:type_name -> state.v1.Binding
1, // 5: state.v1.ListBindingsResponse.bindings:type_name -> state.v1.Binding
1, // 6: state.v1.UpdateBindingRequest.binding:type_name -> state.v1.Binding
1, // 7: state.v1.ArmedBindingsForSourceResponse.bindings:type_name -> state.v1.Binding
2, // 8: state.v1.BindingService.InsertBinding:input_type -> state.v1.InsertBindingRequest
4, // 9: state.v1.BindingService.GetBinding:input_type -> state.v1.GetBindingRequest
6, // 10: state.v1.BindingService.ListBindings:input_type -> state.v1.ListBindingsRequest
8, // 11: state.v1.BindingService.UpdateBinding:input_type -> state.v1.UpdateBindingRequest
10, // 12: state.v1.BindingService.DeleteBinding:input_type -> state.v1.DeleteBindingRequest
12, // 13: state.v1.BindingService.ApproveBinding:input_type -> state.v1.ApproveBindingRequest
14, // 14: state.v1.BindingService.PauseBinding:input_type -> state.v1.PauseBindingRequest
16, // 15: state.v1.BindingService.ResumeBinding:input_type -> state.v1.ResumeBindingRequest
18, // 16: state.v1.BindingService.ArmedBindingsForSource:input_type -> state.v1.ArmedBindingsForSourceRequest
3, // 17: state.v1.BindingService.InsertBinding:output_type -> state.v1.InsertBindingResponse
5, // 18: state.v1.BindingService.GetBinding:output_type -> state.v1.GetBindingResponse
7, // 19: state.v1.BindingService.ListBindings:output_type -> state.v1.ListBindingsResponse
9, // 20: state.v1.BindingService.UpdateBinding:output_type -> state.v1.UpdateBindingResponse
11, // 21: state.v1.BindingService.DeleteBinding:output_type -> state.v1.DeleteBindingResponse
13, // 22: state.v1.BindingService.ApproveBinding:output_type -> state.v1.ApproveBindingResponse
15, // 23: state.v1.BindingService.PauseBinding:output_type -> state.v1.PauseBindingResponse
17, // 24: state.v1.BindingService.ResumeBinding:output_type -> state.v1.ResumeBindingResponse
19, // 25: state.v1.BindingService.ArmedBindingsForSource:output_type -> state.v1.ArmedBindingsForSourceResponse
17, // [17:26] is the sub-list for method output_type
8, // [8:17] 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_binding_proto_init() }
func file_state_v1_binding_proto_init() {
if File_state_v1_binding_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_binding_proto_rawDesc), len(file_state_v1_binding_proto_rawDesc)),
NumEnums: 0,
NumMessages: 20,
NumExtensions: 0,
NumServices: 1,
},
GoTypes: file_state_v1_binding_proto_goTypes,
DependencyIndexes: file_state_v1_binding_proto_depIdxs,
MessageInfos: file_state_v1_binding_proto_msgTypes,
}.Build()
File_state_v1_binding_proto = out.File
file_state_v1_binding_proto_goTypes = nil
file_state_v1_binding_proto_depIdxs = nil
}