Files
sam 0dae907dad 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

976 lines
31 KiB
Go

// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.36.11
// protoc (unknown)
// source: state/v1/source.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)
)
// Source mirrors internal/domain/source.Source.
type Source struct {
state protoimpl.MessageState `protogen:"open.v1"`
Path string `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"`
Signing string `protobuf:"bytes,2,opt,name=signing,proto3" json:"signing,omitempty"`
Secret string `protobuf:"bytes,3,opt,name=secret,proto3" json:"secret,omitempty"`
CreatedAt *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
UpdatedAt *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"`
Name string `protobuf:"bytes,6,opt,name=name,proto3" json:"name,omitempty"`
DeliveryHeader string `protobuf:"bytes,7,opt,name=delivery_header,json=deliveryHeader,proto3" json:"delivery_header,omitempty"`
// org_id is the source's owning org, read-only here. workspace_id is the
// org's workspace it is created in, the default one when empty.
OrgId string `protobuf:"bytes,8,opt,name=org_id,json=orgId,proto3" json:"org_id,omitempty"`
WorkspaceId string `protobuf:"bytes,9,opt,name=workspace_id,json=workspaceId,proto3" json:"workspace_id,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *Source) Reset() {
*x = Source{}
mi := &file_state_v1_source_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *Source) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Source) ProtoMessage() {}
func (x *Source) ProtoReflect() protoreflect.Message {
mi := &file_state_v1_source_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 Source.ProtoReflect.Descriptor instead.
func (*Source) Descriptor() ([]byte, []int) {
return file_state_v1_source_proto_rawDescGZIP(), []int{0}
}
func (x *Source) GetPath() string {
if x != nil {
return x.Path
}
return ""
}
func (x *Source) GetSigning() string {
if x != nil {
return x.Signing
}
return ""
}
func (x *Source) GetSecret() string {
if x != nil {
return x.Secret
}
return ""
}
func (x *Source) GetCreatedAt() *timestamppb.Timestamp {
if x != nil {
return x.CreatedAt
}
return nil
}
func (x *Source) GetUpdatedAt() *timestamppb.Timestamp {
if x != nil {
return x.UpdatedAt
}
return nil
}
func (x *Source) GetName() string {
if x != nil {
return x.Name
}
return ""
}
func (x *Source) GetDeliveryHeader() string {
if x != nil {
return x.DeliveryHeader
}
return ""
}
func (x *Source) GetOrgId() string {
if x != nil {
return x.OrgId
}
return ""
}
func (x *Source) GetWorkspaceId() string {
if x != nil {
return x.WorkspaceId
}
return ""
}
type SetSourceNameRequest struct {
state protoimpl.MessageState `protogen:"open.v1"`
Path string `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"`
Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *SetSourceNameRequest) Reset() {
*x = SetSourceNameRequest{}
mi := &file_state_v1_source_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *SetSourceNameRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*SetSourceNameRequest) ProtoMessage() {}
func (x *SetSourceNameRequest) ProtoReflect() protoreflect.Message {
mi := &file_state_v1_source_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 SetSourceNameRequest.ProtoReflect.Descriptor instead.
func (*SetSourceNameRequest) Descriptor() ([]byte, []int) {
return file_state_v1_source_proto_rawDescGZIP(), []int{1}
}
func (x *SetSourceNameRequest) GetPath() string {
if x != nil {
return x.Path
}
return ""
}
func (x *SetSourceNameRequest) GetName() string {
if x != nil {
return x.Name
}
return ""
}
type SetSourceNameResponse struct {
state protoimpl.MessageState `protogen:"open.v1"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *SetSourceNameResponse) Reset() {
*x = SetSourceNameResponse{}
mi := &file_state_v1_source_proto_msgTypes[2]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *SetSourceNameResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*SetSourceNameResponse) ProtoMessage() {}
func (x *SetSourceNameResponse) ProtoReflect() protoreflect.Message {
mi := &file_state_v1_source_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 SetSourceNameResponse.ProtoReflect.Descriptor instead.
func (*SetSourceNameResponse) Descriptor() ([]byte, []int) {
return file_state_v1_source_proto_rawDescGZIP(), []int{2}
}
type SetSourceDeliveryHeaderRequest struct {
state protoimpl.MessageState `protogen:"open.v1"`
Path string `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"`
Header string `protobuf:"bytes,2,opt,name=header,proto3" json:"header,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *SetSourceDeliveryHeaderRequest) Reset() {
*x = SetSourceDeliveryHeaderRequest{}
mi := &file_state_v1_source_proto_msgTypes[3]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *SetSourceDeliveryHeaderRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*SetSourceDeliveryHeaderRequest) ProtoMessage() {}
func (x *SetSourceDeliveryHeaderRequest) ProtoReflect() protoreflect.Message {
mi := &file_state_v1_source_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 SetSourceDeliveryHeaderRequest.ProtoReflect.Descriptor instead.
func (*SetSourceDeliveryHeaderRequest) Descriptor() ([]byte, []int) {
return file_state_v1_source_proto_rawDescGZIP(), []int{3}
}
func (x *SetSourceDeliveryHeaderRequest) GetPath() string {
if x != nil {
return x.Path
}
return ""
}
func (x *SetSourceDeliveryHeaderRequest) GetHeader() string {
if x != nil {
return x.Header
}
return ""
}
type SetSourceDeliveryHeaderResponse struct {
state protoimpl.MessageState `protogen:"open.v1"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *SetSourceDeliveryHeaderResponse) Reset() {
*x = SetSourceDeliveryHeaderResponse{}
mi := &file_state_v1_source_proto_msgTypes[4]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *SetSourceDeliveryHeaderResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*SetSourceDeliveryHeaderResponse) ProtoMessage() {}
func (x *SetSourceDeliveryHeaderResponse) ProtoReflect() protoreflect.Message {
mi := &file_state_v1_source_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 SetSourceDeliveryHeaderResponse.ProtoReflect.Descriptor instead.
func (*SetSourceDeliveryHeaderResponse) Descriptor() ([]byte, []int) {
return file_state_v1_source_proto_rawDescGZIP(), []int{4}
}
type DeleteSourceRequest struct {
state protoimpl.MessageState `protogen:"open.v1"`
Path string `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *DeleteSourceRequest) Reset() {
*x = DeleteSourceRequest{}
mi := &file_state_v1_source_proto_msgTypes[5]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *DeleteSourceRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*DeleteSourceRequest) ProtoMessage() {}
func (x *DeleteSourceRequest) ProtoReflect() protoreflect.Message {
mi := &file_state_v1_source_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 DeleteSourceRequest.ProtoReflect.Descriptor instead.
func (*DeleteSourceRequest) Descriptor() ([]byte, []int) {
return file_state_v1_source_proto_rawDescGZIP(), []int{5}
}
func (x *DeleteSourceRequest) GetPath() string {
if x != nil {
return x.Path
}
return ""
}
type DeleteSourceResponse struct {
state protoimpl.MessageState `protogen:"open.v1"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *DeleteSourceResponse) Reset() {
*x = DeleteSourceResponse{}
mi := &file_state_v1_source_proto_msgTypes[6]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *DeleteSourceResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*DeleteSourceResponse) ProtoMessage() {}
func (x *DeleteSourceResponse) ProtoReflect() protoreflect.Message {
mi := &file_state_v1_source_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 DeleteSourceResponse.ProtoReflect.Descriptor instead.
func (*DeleteSourceResponse) Descriptor() ([]byte, []int) {
return file_state_v1_source_proto_rawDescGZIP(), []int{6}
}
type InsertSourceRequest struct {
state protoimpl.MessageState `protogen:"open.v1"`
Source *Source `protobuf:"bytes,1,opt,name=source,proto3" json:"source,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *InsertSourceRequest) Reset() {
*x = InsertSourceRequest{}
mi := &file_state_v1_source_proto_msgTypes[7]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *InsertSourceRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*InsertSourceRequest) ProtoMessage() {}
func (x *InsertSourceRequest) ProtoReflect() protoreflect.Message {
mi := &file_state_v1_source_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 InsertSourceRequest.ProtoReflect.Descriptor instead.
func (*InsertSourceRequest) Descriptor() ([]byte, []int) {
return file_state_v1_source_proto_rawDescGZIP(), []int{7}
}
func (x *InsertSourceRequest) GetSource() *Source {
if x != nil {
return x.Source
}
return nil
}
type InsertSourceResponse struct {
state protoimpl.MessageState `protogen:"open.v1"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *InsertSourceResponse) Reset() {
*x = InsertSourceResponse{}
mi := &file_state_v1_source_proto_msgTypes[8]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *InsertSourceResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*InsertSourceResponse) ProtoMessage() {}
func (x *InsertSourceResponse) ProtoReflect() protoreflect.Message {
mi := &file_state_v1_source_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 InsertSourceResponse.ProtoReflect.Descriptor instead.
func (*InsertSourceResponse) Descriptor() ([]byte, []int) {
return file_state_v1_source_proto_rawDescGZIP(), []int{8}
}
type GetSourceRequest struct {
state protoimpl.MessageState `protogen:"open.v1"`
Path string `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *GetSourceRequest) Reset() {
*x = GetSourceRequest{}
mi := &file_state_v1_source_proto_msgTypes[9]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *GetSourceRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*GetSourceRequest) ProtoMessage() {}
func (x *GetSourceRequest) ProtoReflect() protoreflect.Message {
mi := &file_state_v1_source_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 GetSourceRequest.ProtoReflect.Descriptor instead.
func (*GetSourceRequest) Descriptor() ([]byte, []int) {
return file_state_v1_source_proto_rawDescGZIP(), []int{9}
}
func (x *GetSourceRequest) GetPath() string {
if x != nil {
return x.Path
}
return ""
}
type GetSourceResponse struct {
state protoimpl.MessageState `protogen:"open.v1"`
Source *Source `protobuf:"bytes,1,opt,name=source,proto3" json:"source,omitempty"`
Found bool `protobuf:"varint,2,opt,name=found,proto3" json:"found,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *GetSourceResponse) Reset() {
*x = GetSourceResponse{}
mi := &file_state_v1_source_proto_msgTypes[10]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *GetSourceResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*GetSourceResponse) ProtoMessage() {}
func (x *GetSourceResponse) ProtoReflect() protoreflect.Message {
mi := &file_state_v1_source_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 GetSourceResponse.ProtoReflect.Descriptor instead.
func (*GetSourceResponse) Descriptor() ([]byte, []int) {
return file_state_v1_source_proto_rawDescGZIP(), []int{10}
}
func (x *GetSourceResponse) GetSource() *Source {
if x != nil {
return x.Source
}
return nil
}
func (x *GetSourceResponse) GetFound() bool {
if x != nil {
return x.Found
}
return false
}
type ListSourcesRequest struct {
state protoimpl.MessageState `protogen:"open.v1"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *ListSourcesRequest) Reset() {
*x = ListSourcesRequest{}
mi := &file_state_v1_source_proto_msgTypes[11]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *ListSourcesRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ListSourcesRequest) ProtoMessage() {}
func (x *ListSourcesRequest) ProtoReflect() protoreflect.Message {
mi := &file_state_v1_source_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 ListSourcesRequest.ProtoReflect.Descriptor instead.
func (*ListSourcesRequest) Descriptor() ([]byte, []int) {
return file_state_v1_source_proto_rawDescGZIP(), []int{11}
}
type ListSourcesResponse struct {
state protoimpl.MessageState `protogen:"open.v1"`
Sources []*Source `protobuf:"bytes,1,rep,name=sources,proto3" json:"sources,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *ListSourcesResponse) Reset() {
*x = ListSourcesResponse{}
mi := &file_state_v1_source_proto_msgTypes[12]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *ListSourcesResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ListSourcesResponse) ProtoMessage() {}
func (x *ListSourcesResponse) ProtoReflect() protoreflect.Message {
mi := &file_state_v1_source_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 ListSourcesResponse.ProtoReflect.Descriptor instead.
func (*ListSourcesResponse) Descriptor() ([]byte, []int) {
return file_state_v1_source_proto_rawDescGZIP(), []int{12}
}
func (x *ListSourcesResponse) GetSources() []*Source {
if x != nil {
return x.Sources
}
return nil
}
type SetSourceSigningRequest struct {
state protoimpl.MessageState `protogen:"open.v1"`
Path string `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"`
From string `protobuf:"bytes,2,opt,name=from,proto3" json:"from,omitempty"`
To string `protobuf:"bytes,3,opt,name=to,proto3" json:"to,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *SetSourceSigningRequest) Reset() {
*x = SetSourceSigningRequest{}
mi := &file_state_v1_source_proto_msgTypes[13]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *SetSourceSigningRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*SetSourceSigningRequest) ProtoMessage() {}
func (x *SetSourceSigningRequest) ProtoReflect() protoreflect.Message {
mi := &file_state_v1_source_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 SetSourceSigningRequest.ProtoReflect.Descriptor instead.
func (*SetSourceSigningRequest) Descriptor() ([]byte, []int) {
return file_state_v1_source_proto_rawDescGZIP(), []int{13}
}
func (x *SetSourceSigningRequest) GetPath() string {
if x != nil {
return x.Path
}
return ""
}
func (x *SetSourceSigningRequest) GetFrom() string {
if x != nil {
return x.From
}
return ""
}
func (x *SetSourceSigningRequest) GetTo() string {
if x != nil {
return x.To
}
return ""
}
type SetSourceSigningResponse struct {
state protoimpl.MessageState `protogen:"open.v1"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *SetSourceSigningResponse) Reset() {
*x = SetSourceSigningResponse{}
mi := &file_state_v1_source_proto_msgTypes[14]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *SetSourceSigningResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*SetSourceSigningResponse) ProtoMessage() {}
func (x *SetSourceSigningResponse) ProtoReflect() protoreflect.Message {
mi := &file_state_v1_source_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 SetSourceSigningResponse.ProtoReflect.Descriptor instead.
func (*SetSourceSigningResponse) Descriptor() ([]byte, []int) {
return file_state_v1_source_proto_rawDescGZIP(), []int{14}
}
type SetSourceSecretRequest struct {
state protoimpl.MessageState `protogen:"open.v1"`
Path string `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"`
Secret string `protobuf:"bytes,2,opt,name=secret,proto3" json:"secret,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *SetSourceSecretRequest) Reset() {
*x = SetSourceSecretRequest{}
mi := &file_state_v1_source_proto_msgTypes[15]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *SetSourceSecretRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*SetSourceSecretRequest) ProtoMessage() {}
func (x *SetSourceSecretRequest) ProtoReflect() protoreflect.Message {
mi := &file_state_v1_source_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 SetSourceSecretRequest.ProtoReflect.Descriptor instead.
func (*SetSourceSecretRequest) Descriptor() ([]byte, []int) {
return file_state_v1_source_proto_rawDescGZIP(), []int{15}
}
func (x *SetSourceSecretRequest) GetPath() string {
if x != nil {
return x.Path
}
return ""
}
func (x *SetSourceSecretRequest) GetSecret() string {
if x != nil {
return x.Secret
}
return ""
}
type SetSourceSecretResponse struct {
state protoimpl.MessageState `protogen:"open.v1"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *SetSourceSecretResponse) Reset() {
*x = SetSourceSecretResponse{}
mi := &file_state_v1_source_proto_msgTypes[16]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *SetSourceSecretResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*SetSourceSecretResponse) ProtoMessage() {}
func (x *SetSourceSecretResponse) ProtoReflect() protoreflect.Message {
mi := &file_state_v1_source_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 SetSourceSecretResponse.ProtoReflect.Descriptor instead.
func (*SetSourceSecretResponse) Descriptor() ([]byte, []int) {
return file_state_v1_source_proto_rawDescGZIP(), []int{16}
}
var File_state_v1_source_proto protoreflect.FileDescriptor
const file_state_v1_source_proto_rawDesc = "" +
"\n" +
"\x15state/v1/source.proto\x12\bstate.v1\x1a\x1fgoogle/protobuf/timestamp.proto\"\xbb\x02\n" +
"\x06Source\x12\x12\n" +
"\x04path\x18\x01 \x01(\tR\x04path\x12\x18\n" +
"\asigning\x18\x02 \x01(\tR\asigning\x12\x16\n" +
"\x06secret\x18\x03 \x01(\tR\x06secret\x129\n" +
"\n" +
"created_at\x18\x04 \x01(\v2\x1a.google.protobuf.TimestampR\tcreatedAt\x129\n" +
"\n" +
"updated_at\x18\x05 \x01(\v2\x1a.google.protobuf.TimestampR\tupdatedAt\x12\x12\n" +
"\x04name\x18\x06 \x01(\tR\x04name\x12'\n" +
"\x0fdelivery_header\x18\a \x01(\tR\x0edeliveryHeader\x12\x15\n" +
"\x06org_id\x18\b \x01(\tR\x05orgId\x12!\n" +
"\fworkspace_id\x18\t \x01(\tR\vworkspaceId\">\n" +
"\x14SetSourceNameRequest\x12\x12\n" +
"\x04path\x18\x01 \x01(\tR\x04path\x12\x12\n" +
"\x04name\x18\x02 \x01(\tR\x04name\"\x17\n" +
"\x15SetSourceNameResponse\"L\n" +
"\x1eSetSourceDeliveryHeaderRequest\x12\x12\n" +
"\x04path\x18\x01 \x01(\tR\x04path\x12\x16\n" +
"\x06header\x18\x02 \x01(\tR\x06header\"!\n" +
"\x1fSetSourceDeliveryHeaderResponse\")\n" +
"\x13DeleteSourceRequest\x12\x12\n" +
"\x04path\x18\x01 \x01(\tR\x04path\"\x16\n" +
"\x14DeleteSourceResponse\"?\n" +
"\x13InsertSourceRequest\x12(\n" +
"\x06source\x18\x01 \x01(\v2\x10.state.v1.SourceR\x06source\"\x16\n" +
"\x14InsertSourceResponse\"&\n" +
"\x10GetSourceRequest\x12\x12\n" +
"\x04path\x18\x01 \x01(\tR\x04path\"S\n" +
"\x11GetSourceResponse\x12(\n" +
"\x06source\x18\x01 \x01(\v2\x10.state.v1.SourceR\x06source\x12\x14\n" +
"\x05found\x18\x02 \x01(\bR\x05found\"\x14\n" +
"\x12ListSourcesRequest\"A\n" +
"\x13ListSourcesResponse\x12*\n" +
"\asources\x18\x01 \x03(\v2\x10.state.v1.SourceR\asources\"Q\n" +
"\x17SetSourceSigningRequest\x12\x12\n" +
"\x04path\x18\x01 \x01(\tR\x04path\x12\x12\n" +
"\x04from\x18\x02 \x01(\tR\x04from\x12\x0e\n" +
"\x02to\x18\x03 \x01(\tR\x02to\"\x1a\n" +
"\x18SetSourceSigningResponse\"D\n" +
"\x16SetSourceSecretRequest\x12\x12\n" +
"\x04path\x18\x01 \x01(\tR\x04path\x12\x16\n" +
"\x06secret\x18\x02 \x01(\tR\x06secret\"\x19\n" +
"\x17SetSourceSecretResponse2\xb4\x05\n" +
"\rSourceService\x12M\n" +
"\fInsertSource\x12\x1d.state.v1.InsertSourceRequest\x1a\x1e.state.v1.InsertSourceResponse\x12D\n" +
"\tGetSource\x12\x1a.state.v1.GetSourceRequest\x1a\x1b.state.v1.GetSourceResponse\x12J\n" +
"\vListSources\x12\x1c.state.v1.ListSourcesRequest\x1a\x1d.state.v1.ListSourcesResponse\x12Y\n" +
"\x10SetSourceSigning\x12!.state.v1.SetSourceSigningRequest\x1a\".state.v1.SetSourceSigningResponse\x12V\n" +
"\x0fSetSourceSecret\x12 .state.v1.SetSourceSecretRequest\x1a!.state.v1.SetSourceSecretResponse\x12P\n" +
"\rSetSourceName\x12\x1e.state.v1.SetSourceNameRequest\x1a\x1f.state.v1.SetSourceNameResponse\x12n\n" +
"\x17SetSourceDeliveryHeader\x12(.state.v1.SetSourceDeliveryHeaderRequest\x1a).state.v1.SetSourceDeliveryHeaderResponse\x12M\n" +
"\fDeleteSource\x12\x1d.state.v1.DeleteSourceRequest\x1a\x1e.state.v1.DeleteSourceResponseB\xa5\x01\n" +
"\fcom.state.v1B\vSourceProtoP\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_source_proto_rawDescOnce sync.Once
file_state_v1_source_proto_rawDescData []byte
)
func file_state_v1_source_proto_rawDescGZIP() []byte {
file_state_v1_source_proto_rawDescOnce.Do(func() {
file_state_v1_source_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_state_v1_source_proto_rawDesc), len(file_state_v1_source_proto_rawDesc)))
})
return file_state_v1_source_proto_rawDescData
}
var file_state_v1_source_proto_msgTypes = make([]protoimpl.MessageInfo, 17)
var file_state_v1_source_proto_goTypes = []any{
(*Source)(nil), // 0: state.v1.Source
(*SetSourceNameRequest)(nil), // 1: state.v1.SetSourceNameRequest
(*SetSourceNameResponse)(nil), // 2: state.v1.SetSourceNameResponse
(*SetSourceDeliveryHeaderRequest)(nil), // 3: state.v1.SetSourceDeliveryHeaderRequest
(*SetSourceDeliveryHeaderResponse)(nil), // 4: state.v1.SetSourceDeliveryHeaderResponse
(*DeleteSourceRequest)(nil), // 5: state.v1.DeleteSourceRequest
(*DeleteSourceResponse)(nil), // 6: state.v1.DeleteSourceResponse
(*InsertSourceRequest)(nil), // 7: state.v1.InsertSourceRequest
(*InsertSourceResponse)(nil), // 8: state.v1.InsertSourceResponse
(*GetSourceRequest)(nil), // 9: state.v1.GetSourceRequest
(*GetSourceResponse)(nil), // 10: state.v1.GetSourceResponse
(*ListSourcesRequest)(nil), // 11: state.v1.ListSourcesRequest
(*ListSourcesResponse)(nil), // 12: state.v1.ListSourcesResponse
(*SetSourceSigningRequest)(nil), // 13: state.v1.SetSourceSigningRequest
(*SetSourceSigningResponse)(nil), // 14: state.v1.SetSourceSigningResponse
(*SetSourceSecretRequest)(nil), // 15: state.v1.SetSourceSecretRequest
(*SetSourceSecretResponse)(nil), // 16: state.v1.SetSourceSecretResponse
(*timestamppb.Timestamp)(nil), // 17: google.protobuf.Timestamp
}
var file_state_v1_source_proto_depIdxs = []int32{
17, // 0: state.v1.Source.created_at:type_name -> google.protobuf.Timestamp
17, // 1: state.v1.Source.updated_at:type_name -> google.protobuf.Timestamp
0, // 2: state.v1.InsertSourceRequest.source:type_name -> state.v1.Source
0, // 3: state.v1.GetSourceResponse.source:type_name -> state.v1.Source
0, // 4: state.v1.ListSourcesResponse.sources:type_name -> state.v1.Source
7, // 5: state.v1.SourceService.InsertSource:input_type -> state.v1.InsertSourceRequest
9, // 6: state.v1.SourceService.GetSource:input_type -> state.v1.GetSourceRequest
11, // 7: state.v1.SourceService.ListSources:input_type -> state.v1.ListSourcesRequest
13, // 8: state.v1.SourceService.SetSourceSigning:input_type -> state.v1.SetSourceSigningRequest
15, // 9: state.v1.SourceService.SetSourceSecret:input_type -> state.v1.SetSourceSecretRequest
1, // 10: state.v1.SourceService.SetSourceName:input_type -> state.v1.SetSourceNameRequest
3, // 11: state.v1.SourceService.SetSourceDeliveryHeader:input_type -> state.v1.SetSourceDeliveryHeaderRequest
5, // 12: state.v1.SourceService.DeleteSource:input_type -> state.v1.DeleteSourceRequest
8, // 13: state.v1.SourceService.InsertSource:output_type -> state.v1.InsertSourceResponse
10, // 14: state.v1.SourceService.GetSource:output_type -> state.v1.GetSourceResponse
12, // 15: state.v1.SourceService.ListSources:output_type -> state.v1.ListSourcesResponse
14, // 16: state.v1.SourceService.SetSourceSigning:output_type -> state.v1.SetSourceSigningResponse
16, // 17: state.v1.SourceService.SetSourceSecret:output_type -> state.v1.SetSourceSecretResponse
2, // 18: state.v1.SourceService.SetSourceName:output_type -> state.v1.SetSourceNameResponse
4, // 19: state.v1.SourceService.SetSourceDeliveryHeader:output_type -> state.v1.SetSourceDeliveryHeaderResponse
6, // 20: state.v1.SourceService.DeleteSource:output_type -> state.v1.DeleteSourceResponse
13, // [13:21] is the sub-list for method output_type
5, // [5:13] is the sub-list for method input_type
5, // [5:5] is the sub-list for extension type_name
5, // [5:5] is the sub-list for extension extendee
0, // [0:5] is the sub-list for field type_name
}
func init() { file_state_v1_source_proto_init() }
func file_state_v1_source_proto_init() {
if File_state_v1_source_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_source_proto_rawDesc), len(file_state_v1_source_proto_rawDesc)),
NumEnums: 0,
NumMessages: 17,
NumExtensions: 0,
NumServices: 1,
},
GoTypes: file_state_v1_source_proto_goTypes,
DependencyIndexes: file_state_v1_source_proto_depIdxs,
MessageInfos: file_state_v1_source_proto_msgTypes,
}.Build()
File_state_v1_source_proto = out.File
file_state_v1_source_proto_goTypes = nil
file_state_v1_source_proto_depIdxs = nil
}