diff --git a/cmd/baton/stats.go b/cmd/baton/stats.go index 92d7f2b3..c1462e00 100644 --- a/cmd/baton/stats.go +++ b/cmd/baton/stats.go @@ -43,7 +43,7 @@ func runStats(cmd *cobra.Command, args []string) error { return err } - counts, err := store.Stats(ctx, connectorstore.SyncTypeFull, "") + counts, err := store.Stats(ctx, connectorstore.SyncTypeAny, "") if err != nil { return err } diff --git a/go.mod b/go.mod index 367fbfb3..daa27952 100644 --- a/go.mod +++ b/go.mod @@ -1,9 +1,9 @@ module github.com/conductorone/baton -go 1.25 +go 1.25.2 require ( - github.com/conductorone/baton-sdk v0.4.0 + github.com/conductorone/baton-sdk v0.6.17 github.com/ennyjfrick/ruleguard-logfatal v0.0.2 github.com/envoyproxy/protoc-gen-validate v1.2.1 github.com/gin-gonic/contrib v0.0.0-20250113154928-93b827325fec @@ -46,11 +46,9 @@ require ( github.com/bytedance/sonic/loader v0.2.3 // indirect github.com/cloudwego/base64x v0.1.5 // indirect github.com/containerd/console v1.0.4 // indirect - github.com/dolthub/maphash v0.1.0 // indirect github.com/doug-martin/goqu/v9 v9.19.0 // indirect github.com/dustin/go-humanize v1.0.1 // indirect github.com/gabriel-vasile/mimetype v1.4.8 // indirect - github.com/gammazero/deque v1.0.0 // indirect github.com/gin-contrib/sse v1.0.0 // indirect github.com/glebarez/go-sqlite v1.22.0 // indirect github.com/go-logr/logr v1.4.2 // indirect @@ -69,7 +67,7 @@ require ( github.com/lithammer/fuzzysearch v1.1.8 // indirect github.com/mattn/go-isatty v0.0.20 // indirect github.com/mattn/go-runewidth v0.0.16 // indirect - github.com/maypok86/otter v1.2.4 // indirect + github.com/maypok86/otter/v2 v2.2.1 // indirect github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect github.com/modern-go/reflect2 v1.0.2 // indirect github.com/mohae/deepcopy v0.0.0-20170929034955-c48cc78d4826 // indirect @@ -97,7 +95,7 @@ require ( golang.org/x/exp v0.0.0-20250210185358-939b2ce775ac // indirect golang.org/x/net v0.36.0 // indirect golang.org/x/oauth2 v0.28.0 // indirect - golang.org/x/sys v0.31.0 // indirect + golang.org/x/sys v0.38.0 // indirect golang.org/x/term v0.30.0 // indirect golang.org/x/text v0.23.0 // indirect google.golang.org/genproto/googleapis/rpc v0.0.0-20250303144028-a0af3efb3deb // indirect diff --git a/go.sum b/go.sum index 0db5ff6d..652cfbcb 100644 --- a/go.sum +++ b/go.sum @@ -72,8 +72,8 @@ github.com/cloudwego/base64x v0.1.5 h1:XPciSp1xaq2VCSt6lF0phncD4koWyULpl5bUxbfCy github.com/cloudwego/base64x v0.1.5/go.mod h1:0zlkT4Wn5C6NdauXdJRhSKRlJvmclQ1hhJgA0rcu/8w= github.com/cloudwego/iasm v0.2.0/go.mod h1:8rXZaNYT2n95jn+zTI1sDr+IgcD2GVs0nlbbQPiEFhY= github.com/cncf/udpa/go v0.0.0-20191209042840-269d4d468f6f/go.mod h1:M8M6+tZqaGXZJjfX53e64911xZQV5JYwmTeXPW+k8Sc= -github.com/conductorone/baton-sdk v0.4.0 h1:I6SGe1KOI4QG6Ya62GFlYuIavDdzPS5pVDa9FiPFZso= -github.com/conductorone/baton-sdk v0.4.0/go.mod h1:Csa1C2KrI4TxJAtC3WjQqOn24u0g2f4/5FgiYqZWpN4= +github.com/conductorone/baton-sdk v0.6.17 h1:ZC+pcsh/iGA1wjS5GGQjIg+mIIK/Mr0E7G3Dg72f03Y= +github.com/conductorone/baton-sdk v0.6.17/go.mod h1:9S5feBOuIJxlNdGmkv3ObkCNHbVyOHr6foNrIrk+d4Y= github.com/containerd/console v1.0.3/go.mod h1:7LqA/THxQ86k76b8c/EMSiaJ3h1eZkMkXar0TQ1gf3U= github.com/containerd/console v1.0.4 h1:F2g4+oChYvBTsASRTz8NP6iIAi97J3TtSAsLbIFn4ro= github.com/containerd/console v1.0.4/go.mod h1:YynlIjWYF8myEu6sdkwKIvGQq+cOckRm6So2avqoYAk= @@ -83,8 +83,6 @@ github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSs github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc h1:U9qPSI2PIWSS1VwoXQT9A3Wy9MM3WgvqSxFWenqJduM= github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/denisenkom/go-mssqldb v0.10.0/go.mod h1:xbL0rPBG9cCiLr28tMa8zpbdarY27NDyej4t/EjAShU= -github.com/dolthub/maphash v0.1.0 h1:bsQ7JsF4FkkWyrP3oCnFJgrCUAFbFf3kOl4L/QxPDyQ= -github.com/dolthub/maphash v0.1.0/go.mod h1:gkg4Ch4CdCDu5h6PMriVLawB7koZ+5ijb9puGMV50a4= github.com/doug-martin/goqu/v9 v9.19.0 h1:PD7t1X3tRcUiSdc5TEyOFKujZA5gs3VSA7wxSvBx7qo= github.com/doug-martin/goqu/v9 v9.19.0/go.mod h1:nf0Wc2/hV3gYK9LiyqIrzBEVGlI8qW3GuDCEobC4wBQ= github.com/dustin/go-humanize v1.0.1 h1:GzkhY7T5VNhEkwH0PVJgjz+fX1rhBrR7pRT3mDkpeCY= @@ -99,8 +97,6 @@ github.com/envoyproxy/protoc-gen-validate v1.2.1 h1:DEo3O99U8j4hBFwbJfrz9VtgcDfU github.com/envoyproxy/protoc-gen-validate v1.2.1/go.mod h1:d/C80l/jxXLdfEIhX1W2TmLfsJ31lvEjwamM4DxlWXU= github.com/gabriel-vasile/mimetype v1.4.8 h1:FfZ3gj38NjllZIeJAmMhr+qKL8Wu+nOoI3GqacKw1NM= github.com/gabriel-vasile/mimetype v1.4.8/go.mod h1:ByKUIKGjh1ODkGM1asKUbQZOLGrPjydw3hYPU2YU9t8= -github.com/gammazero/deque v1.0.0 h1:LTmimT8H7bXkkCy6gZX7zNLtkbz4NdS2z8LZuor3j34= -github.com/gammazero/deque v1.0.0/go.mod h1:iflpYvtGfM3U8S8j+sZEKIak3SAKYpA5/SQewgfXDKo= github.com/gin-contrib/sse v1.0.0 h1:y3bT1mUWUxDpW4JLQg/HnTqV4rozuW4tC9eFKTxYI9E= github.com/gin-contrib/sse v1.0.0/go.mod h1:zNuFdwarAygJBht0NTKiSi3jRf6RbqeILZ9Sp6Slhe0= github.com/gin-gonic/contrib v0.0.0-20250113154928-93b827325fec h1:kQFkxb4bEPsGlJ6f562JeZhtPj2NxbtJXpltOJjGFPU= @@ -192,8 +188,8 @@ github.com/mattn/go-runewidth v0.0.16/go.mod h1:Jdepj2loyihRzMpdS35Xk/zdY8IAYHsh github.com/mattn/go-sqlite3 v1.14.7/go.mod h1:NyWgC/yNuGj7Q9rpYnZvas74GogHl5/Z4A/KQRfk6bU= github.com/mattn/go-sqlite3 v1.14.22 h1:2gZY6PC6kBnID23Tichd1K+Z0oS6nE/XwU+Vz/5o4kU= github.com/mattn/go-sqlite3 v1.14.22/go.mod h1:Uh1q+B4BYcTPb+yiD3kU8Ct7aC0hY9fxUwlHK0RXw+Y= -github.com/maypok86/otter v1.2.4 h1:HhW1Pq6VdJkmWwcZZq19BlEQkHtI8xgsQzBVXJU0nfc= -github.com/maypok86/otter v1.2.4/go.mod h1:mKLfoI7v1HOmQMwFgX4QkRk23mX6ge3RDvjdHOWG4R4= +github.com/maypok86/otter/v2 v2.2.1 h1:hnGssisMFkdisYcvQ8L019zpYQcdtPse+g0ps2i7cfI= +github.com/maypok86/otter/v2 v2.2.1/go.mod h1:1NKY9bY+kB5jwCXBJfE59u+zAwOt6C7ni1FTlFFMqVs= github.com/modern-go/concurrent v0.0.0-20180228061459-e0a39a4cb421/go.mod h1:6dJC0mAP4ikYIbvyc7fijjWJddQyLn8Ig3JB5CqoB9Q= github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd h1:TRLaZ9cD/w8PVh93nsPXa1VrQ6jlwL5oN8l14QlcNfg= github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd/go.mod h1:6dJC0mAP4ikYIbvyc7fijjWJddQyLn8Ig3JB5CqoB9Q= @@ -266,8 +262,9 @@ github.com/stretchr/testify v1.7.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/ github.com/stretchr/testify v1.8.0/go.mod h1:yNjHg4UonilssWZ8iaSj1OCr/vHnekPRkoO+kdMU+MU= github.com/stretchr/testify v1.8.1/go.mod h1:w2LPCIKwWwSfY2zedu0+kehJoqGctiVI29o6fzry7u4= github.com/stretchr/testify v1.8.4/go.mod h1:sz/lmYIOXD/1dqDmKjjqLyZ2RngseejIcXlSw2iwfAo= -github.com/stretchr/testify v1.10.0 h1:Xv5erBjTwe/5IxqUQTdXv5kgmIvbHo3QQyRwhJsOfJA= github.com/stretchr/testify v1.10.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY= +github.com/stretchr/testify v1.11.1 h1:7s2iGBzp5EwR7/aIZr8ao5+dra3wiQyKjjFuvgVKu7U= +github.com/stretchr/testify v1.11.1/go.mod h1:wZwfW3scLgRK+23gO65QZefKpKQRnfz6sD981Nm4B6U= github.com/twitchyliquid64/golang-asm v0.15.1 h1:SU5vSMR7hnwNxj24w34ZyCi/FmDZTkS4MhqMhdFk5YI= github.com/twitchyliquid64/golang-asm v0.15.1/go.mod h1:a1lVb/DtPvCB8fslRZhAngC2+aY1QWCk3Cedj/Gdt08= github.com/ugorji/go/codec v1.2.12 h1:9LC83zGrHhuUA9l16C9AHXAqEV/2wBQ4nkvumAE65EE= @@ -379,8 +376,8 @@ golang.org/x/sys v0.0.0-20220722155257-8c9f86f7a55f/go.mod h1:oPkhp1MJrh7nUepCBc golang.org/x/sys v0.1.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.5.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.6.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.31.0 h1:ioabZlmFYtWhL+TRYpcnNlLwhyxaM9kWTDEmfnprqik= -golang.org/x/sys v0.31.0/go.mod h1:BJP2sWEmIv4KK5OTEluFJCKSidICx8ciO85XgH3Ak8k= +golang.org/x/sys v0.38.0 h1:3yZWxaJjBmCWXqhN1qh02AkOnCQ1poK6oF+a7xWL6Gc= +golang.org/x/sys v0.38.0/go.mod h1:OgkHotnGiDImocRcuBABYBEXf8A9a87e/uXjp9XT3ks= golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo= golang.org/x/term v0.0.0-20210220032956-6a3ed077a48d/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo= golang.org/x/term v0.0.0-20210615171337-6886f2dfbf5b/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8= diff --git a/vendor/github.com/conductorone/baton-sdk/pb/c1/c1z/v1/annotation_sync_details.pb.go b/vendor/github.com/conductorone/baton-sdk/pb/c1/c1z/v1/annotation_sync_details.pb.go index 71b4ddb2..35212c03 100644 --- a/vendor/github.com/conductorone/baton-sdk/pb/c1/c1z/v1/annotation_sync_details.pb.go +++ b/vendor/github.com/conductorone/baton-sdk/pb/c1/c1z/v1/annotation_sync_details.pb.go @@ -1,16 +1,17 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.36.4 +// protoc-gen-go v1.36.10 // protoc (unknown) // source: c1/c1z/v1/annotation_sync_details.proto +//go:build !protoopaque + package v1 import ( protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" reflect "reflect" - sync "sync" unsafe "unsafe" ) @@ -22,7 +23,7 @@ const ( ) type SyncDetails struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache @@ -53,11 +54,6 @@ func (x *SyncDetails) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use SyncDetails.ProtoReflect.Descriptor instead. -func (*SyncDetails) Descriptor() ([]byte, []int) { - return file_c1_c1z_v1_annotation_sync_details_proto_rawDescGZIP(), []int{0} -} - func (x *SyncDetails) GetId() string { if x != nil { return x.Id @@ -65,32 +61,32 @@ func (x *SyncDetails) GetId() string { return "" } -var File_c1_c1z_v1_annotation_sync_details_proto protoreflect.FileDescriptor +func (x *SyncDetails) SetId(v string) { + x.Id = v +} -var file_c1_c1z_v1_annotation_sync_details_proto_rawDesc = string([]byte{ - 0x0a, 0x27, 0x63, 0x31, 0x2f, 0x63, 0x31, 0x7a, 0x2f, 0x76, 0x31, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, - 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x73, 0x79, 0x6e, 0x63, 0x5f, 0x64, 0x65, 0x74, 0x61, - 0x69, 0x6c, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x09, 0x63, 0x31, 0x2e, 0x63, 0x31, - 0x7a, 0x2e, 0x76, 0x31, 0x22, 0x1d, 0x0a, 0x0b, 0x53, 0x79, 0x6e, 0x63, 0x44, 0x65, 0x74, 0x61, - 0x69, 0x6c, 0x73, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x02, 0x69, 0x64, 0x42, 0x30, 0x5a, 0x2e, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, - 0x6d, 0x2f, 0x63, 0x6f, 0x6e, 0x64, 0x75, 0x63, 0x74, 0x6f, 0x72, 0x6f, 0x6e, 0x65, 0x2f, 0x62, - 0x61, 0x74, 0x6f, 0x6e, 0x2d, 0x73, 0x64, 0x6b, 0x2f, 0x70, 0x62, 0x2f, 0x63, 0x31, 0x2f, 0x63, - 0x31, 0x7a, 0x2f, 0x76, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, -}) - -var ( - file_c1_c1z_v1_annotation_sync_details_proto_rawDescOnce sync.Once - file_c1_c1z_v1_annotation_sync_details_proto_rawDescData []byte -) +type SyncDetails_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. -func file_c1_c1z_v1_annotation_sync_details_proto_rawDescGZIP() []byte { - file_c1_c1z_v1_annotation_sync_details_proto_rawDescOnce.Do(func() { - file_c1_c1z_v1_annotation_sync_details_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_c1_c1z_v1_annotation_sync_details_proto_rawDesc), len(file_c1_c1z_v1_annotation_sync_details_proto_rawDesc))) - }) - return file_c1_c1z_v1_annotation_sync_details_proto_rawDescData + Id string } +func (b0 SyncDetails_builder) Build() *SyncDetails { + m0 := &SyncDetails{} + b, x := &b0, m0 + _, _ = b, x + x.Id = b.Id + return m0 +} + +var File_c1_c1z_v1_annotation_sync_details_proto protoreflect.FileDescriptor + +const file_c1_c1z_v1_annotation_sync_details_proto_rawDesc = "" + + "\n" + + "'c1/c1z/v1/annotation_sync_details.proto\x12\tc1.c1z.v1\"\x1d\n" + + "\vSyncDetails\x12\x0e\n" + + "\x02id\x18\x01 \x01(\tR\x02idB0Z.github.com/conductorone/baton-sdk/pb/c1/c1z/v1b\x06proto3" + var file_c1_c1z_v1_annotation_sync_details_proto_msgTypes = make([]protoimpl.MessageInfo, 1) var file_c1_c1z_v1_annotation_sync_details_proto_goTypes = []any{ (*SyncDetails)(nil), // 0: c1.c1z.v1.SyncDetails diff --git a/vendor/github.com/conductorone/baton-sdk/pb/c1/c1z/v1/annotation_sync_details_protoopaque.pb.go b/vendor/github.com/conductorone/baton-sdk/pb/c1/c1z/v1/annotation_sync_details_protoopaque.pb.go new file mode 100644 index 00000000..13a7e990 --- /dev/null +++ b/vendor/github.com/conductorone/baton-sdk/pb/c1/c1z/v1/annotation_sync_details_protoopaque.pb.go @@ -0,0 +1,124 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.36.10 +// protoc (unknown) +// source: c1/c1z/v1/annotation_sync_details.proto + +//go:build protoopaque + +package v1 + +import ( + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + reflect "reflect" + 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 SyncDetails struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Id string `protobuf:"bytes,1,opt,name=id,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *SyncDetails) Reset() { + *x = SyncDetails{} + mi := &file_c1_c1z_v1_annotation_sync_details_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *SyncDetails) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*SyncDetails) ProtoMessage() {} + +func (x *SyncDetails) ProtoReflect() protoreflect.Message { + mi := &file_c1_c1z_v1_annotation_sync_details_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) +} + +func (x *SyncDetails) GetId() string { + if x != nil { + return x.xxx_hidden_Id + } + return "" +} + +func (x *SyncDetails) SetId(v string) { + x.xxx_hidden_Id = v +} + +type SyncDetails_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Id string +} + +func (b0 SyncDetails_builder) Build() *SyncDetails { + m0 := &SyncDetails{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Id = b.Id + return m0 +} + +var File_c1_c1z_v1_annotation_sync_details_proto protoreflect.FileDescriptor + +const file_c1_c1z_v1_annotation_sync_details_proto_rawDesc = "" + + "\n" + + "'c1/c1z/v1/annotation_sync_details.proto\x12\tc1.c1z.v1\"\x1d\n" + + "\vSyncDetails\x12\x0e\n" + + "\x02id\x18\x01 \x01(\tR\x02idB0Z.github.com/conductorone/baton-sdk/pb/c1/c1z/v1b\x06proto3" + +var file_c1_c1z_v1_annotation_sync_details_proto_msgTypes = make([]protoimpl.MessageInfo, 1) +var file_c1_c1z_v1_annotation_sync_details_proto_goTypes = []any{ + (*SyncDetails)(nil), // 0: c1.c1z.v1.SyncDetails +} +var file_c1_c1z_v1_annotation_sync_details_proto_depIdxs = []int32{ + 0, // [0:0] is the sub-list for method output_type + 0, // [0:0] 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_c1_c1z_v1_annotation_sync_details_proto_init() } +func file_c1_c1z_v1_annotation_sync_details_proto_init() { + if File_c1_c1z_v1_annotation_sync_details_proto != nil { + return + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: unsafe.Slice(unsafe.StringData(file_c1_c1z_v1_annotation_sync_details_proto_rawDesc), len(file_c1_c1z_v1_annotation_sync_details_proto_rawDesc)), + NumEnums: 0, + NumMessages: 1, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_c1_c1z_v1_annotation_sync_details_proto_goTypes, + DependencyIndexes: file_c1_c1z_v1_annotation_sync_details_proto_depIdxs, + MessageInfos: file_c1_c1z_v1_annotation_sync_details_proto_msgTypes, + }.Build() + File_c1_c1z_v1_annotation_sync_details_proto = out.File + file_c1_c1z_v1_annotation_sync_details_proto_goTypes = nil + file_c1_c1z_v1_annotation_sync_details_proto_depIdxs = nil +} diff --git a/vendor/github.com/conductorone/baton-sdk/pb/c1/c1z/v1/diff.pb.go b/vendor/github.com/conductorone/baton-sdk/pb/c1/c1z/v1/diff.pb.go index ac849400..1f319756 100644 --- a/vendor/github.com/conductorone/baton-sdk/pb/c1/c1z/v1/diff.pb.go +++ b/vendor/github.com/conductorone/baton-sdk/pb/c1/c1z/v1/diff.pb.go @@ -1,9 +1,11 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.36.4 +// protoc-gen-go v1.36.10 // protoc (unknown) // source: c1/c1z/v1/diff.proto +//go:build !protoopaque + package v1 import ( @@ -11,7 +13,6 @@ import ( protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" reflect "reflect" - sync "sync" unsafe "unsafe" ) @@ -23,7 +24,7 @@ const ( ) type ResourceDiff struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` Created []*v2.Resource `protobuf:"bytes,1,rep,name=created,proto3" json:"created,omitempty"` Deleted []*v2.Resource `protobuf:"bytes,2,rep,name=deleted,proto3" json:"deleted,omitempty"` Modified []*v2.Resource `protobuf:"bytes,3,rep,name=modified,proto3" json:"modified,omitempty"` @@ -56,11 +57,6 @@ func (x *ResourceDiff) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use ResourceDiff.ProtoReflect.Descriptor instead. -func (*ResourceDiff) Descriptor() ([]byte, []int) { - return file_c1_c1z_v1_diff_proto_rawDescGZIP(), []int{0} -} - func (x *ResourceDiff) GetCreated() []*v2.Resource { if x != nil { return x.Created @@ -82,8 +78,38 @@ func (x *ResourceDiff) GetModified() []*v2.Resource { return nil } +func (x *ResourceDiff) SetCreated(v []*v2.Resource) { + x.Created = v +} + +func (x *ResourceDiff) SetDeleted(v []*v2.Resource) { + x.Deleted = v +} + +func (x *ResourceDiff) SetModified(v []*v2.Resource) { + x.Modified = v +} + +type ResourceDiff_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Created []*v2.Resource + Deleted []*v2.Resource + Modified []*v2.Resource +} + +func (b0 ResourceDiff_builder) Build() *ResourceDiff { + m0 := &ResourceDiff{} + b, x := &b0, m0 + _, _ = b, x + x.Created = b.Created + x.Deleted = b.Deleted + x.Modified = b.Modified + return m0 +} + type EntitlementDiff struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` Created []*v2.Entitlement `protobuf:"bytes,1,rep,name=created,proto3" json:"created,omitempty"` Deleted []*v2.Entitlement `protobuf:"bytes,2,rep,name=deleted,proto3" json:"deleted,omitempty"` Modified []*v2.Entitlement `protobuf:"bytes,3,rep,name=modified,proto3" json:"modified,omitempty"` @@ -116,11 +142,6 @@ func (x *EntitlementDiff) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use EntitlementDiff.ProtoReflect.Descriptor instead. -func (*EntitlementDiff) Descriptor() ([]byte, []int) { - return file_c1_c1z_v1_diff_proto_rawDescGZIP(), []int{1} -} - func (x *EntitlementDiff) GetCreated() []*v2.Entitlement { if x != nil { return x.Created @@ -142,8 +163,38 @@ func (x *EntitlementDiff) GetModified() []*v2.Entitlement { return nil } +func (x *EntitlementDiff) SetCreated(v []*v2.Entitlement) { + x.Created = v +} + +func (x *EntitlementDiff) SetDeleted(v []*v2.Entitlement) { + x.Deleted = v +} + +func (x *EntitlementDiff) SetModified(v []*v2.Entitlement) { + x.Modified = v +} + +type EntitlementDiff_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Created []*v2.Entitlement + Deleted []*v2.Entitlement + Modified []*v2.Entitlement +} + +func (b0 EntitlementDiff_builder) Build() *EntitlementDiff { + m0 := &EntitlementDiff{} + b, x := &b0, m0 + _, _ = b, x + x.Created = b.Created + x.Deleted = b.Deleted + x.Modified = b.Modified + return m0 +} + type GrantDiff struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` Created []*v2.Grant `protobuf:"bytes,1,rep,name=created,proto3" json:"created,omitempty"` Deleted []*v2.Grant `protobuf:"bytes,2,rep,name=deleted,proto3" json:"deleted,omitempty"` Modified []*v2.Grant `protobuf:"bytes,3,rep,name=modified,proto3" json:"modified,omitempty"` @@ -176,11 +227,6 @@ func (x *GrantDiff) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use GrantDiff.ProtoReflect.Descriptor instead. -func (*GrantDiff) Descriptor() ([]byte, []int) { - return file_c1_c1z_v1_diff_proto_rawDescGZIP(), []int{2} -} - func (x *GrantDiff) GetCreated() []*v2.Grant { if x != nil { return x.Created @@ -202,8 +248,38 @@ func (x *GrantDiff) GetModified() []*v2.Grant { return nil } +func (x *GrantDiff) SetCreated(v []*v2.Grant) { + x.Created = v +} + +func (x *GrantDiff) SetDeleted(v []*v2.Grant) { + x.Deleted = v +} + +func (x *GrantDiff) SetModified(v []*v2.Grant) { + x.Modified = v +} + +type GrantDiff_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Created []*v2.Grant + Deleted []*v2.Grant + Modified []*v2.Grant +} + +func (b0 GrantDiff_builder) Build() *GrantDiff { + m0 := &GrantDiff{} + b, x := &b0, m0 + _, _ = b, x + x.Created = b.Created + x.Deleted = b.Deleted + x.Modified = b.Modified + return m0 +} + type C1ZDiffOutput struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` Resources *ResourceDiff `protobuf:"bytes,1,opt,name=resources,proto3" json:"resources,omitempty"` Entitlements *EntitlementDiff `protobuf:"bytes,2,opt,name=entitlements,proto3" json:"entitlements,omitempty"` Grants *GrantDiff `protobuf:"bytes,3,opt,name=grants,proto3" json:"grants,omitempty"` @@ -236,11 +312,6 @@ func (x *C1ZDiffOutput) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use C1ZDiffOutput.ProtoReflect.Descriptor instead. -func (*C1ZDiffOutput) Descriptor() ([]byte, []int) { - return file_c1_c1z_v1_diff_proto_rawDescGZIP(), []int{3} -} - func (x *C1ZDiffOutput) GetResources() *ResourceDiff { if x != nil { return x.Resources @@ -262,80 +333,91 @@ func (x *C1ZDiffOutput) GetGrants() *GrantDiff { return nil } -var File_c1_c1z_v1_diff_proto protoreflect.FileDescriptor +func (x *C1ZDiffOutput) SetResources(v *ResourceDiff) { + x.Resources = v +} -var file_c1_c1z_v1_diff_proto_rawDesc = string([]byte{ - 0x0a, 0x14, 0x63, 0x31, 0x2f, 0x63, 0x31, 0x7a, 0x2f, 0x76, 0x31, 0x2f, 0x64, 0x69, 0x66, 0x66, - 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x09, 0x63, 0x31, 0x2e, 0x63, 0x31, 0x7a, 0x2e, 0x76, - 0x31, 0x1a, 0x21, 0x63, 0x31, 0x2f, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x2f, - 0x76, 0x32, 0x2f, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x2e, 0x70, - 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1b, 0x63, 0x31, 0x2f, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, - 0x6f, 0x72, 0x2f, 0x76, 0x32, 0x2f, 0x67, 0x72, 0x61, 0x6e, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x1a, 0x1e, 0x63, 0x31, 0x2f, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x2f, - 0x76, 0x32, 0x2f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x22, 0xaf, 0x01, 0x0a, 0x0c, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x44, 0x69, - 0x66, 0x66, 0x12, 0x33, 0x0a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x18, 0x01, 0x20, - 0x03, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x63, 0x31, 0x2e, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, - 0x6f, 0x72, 0x2e, 0x76, 0x32, 0x2e, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x52, 0x07, - 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x12, 0x33, 0x0a, 0x07, 0x64, 0x65, 0x6c, 0x65, 0x74, - 0x65, 0x64, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x63, 0x31, 0x2e, 0x63, 0x6f, - 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x2e, 0x76, 0x32, 0x2e, 0x52, 0x65, 0x73, 0x6f, 0x75, - 0x72, 0x63, 0x65, 0x52, 0x07, 0x64, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x64, 0x12, 0x35, 0x0a, 0x08, - 0x6d, 0x6f, 0x64, 0x69, 0x66, 0x69, 0x65, 0x64, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x19, - 0x2e, 0x63, 0x31, 0x2e, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x2e, 0x76, 0x32, - 0x2e, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x52, 0x08, 0x6d, 0x6f, 0x64, 0x69, 0x66, - 0x69, 0x65, 0x64, 0x22, 0xbb, 0x01, 0x0a, 0x0f, 0x45, 0x6e, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x6d, - 0x65, 0x6e, 0x74, 0x44, 0x69, 0x66, 0x66, 0x12, 0x36, 0x0a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, - 0x65, 0x64, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x63, 0x31, 0x2e, 0x63, 0x6f, - 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x2e, 0x76, 0x32, 0x2e, 0x45, 0x6e, 0x74, 0x69, 0x74, - 0x6c, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x52, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x12, - 0x36, 0x0a, 0x07, 0x64, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x64, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, - 0x32, 0x1c, 0x2e, 0x63, 0x31, 0x2e, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x2e, - 0x76, 0x32, 0x2e, 0x45, 0x6e, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x52, 0x07, - 0x64, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x64, 0x12, 0x38, 0x0a, 0x08, 0x6d, 0x6f, 0x64, 0x69, 0x66, - 0x69, 0x65, 0x64, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x63, 0x31, 0x2e, 0x63, - 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x2e, 0x76, 0x32, 0x2e, 0x45, 0x6e, 0x74, 0x69, - 0x74, 0x6c, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x52, 0x08, 0x6d, 0x6f, 0x64, 0x69, 0x66, 0x69, 0x65, - 0x64, 0x22, 0xa3, 0x01, 0x0a, 0x09, 0x47, 0x72, 0x61, 0x6e, 0x74, 0x44, 0x69, 0x66, 0x66, 0x12, - 0x30, 0x0a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, - 0x32, 0x16, 0x2e, 0x63, 0x31, 0x2e, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x2e, - 0x76, 0x32, 0x2e, 0x47, 0x72, 0x61, 0x6e, 0x74, 0x52, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, - 0x64, 0x12, 0x30, 0x0a, 0x07, 0x64, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x64, 0x18, 0x02, 0x20, 0x03, - 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x63, 0x31, 0x2e, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, - 0x72, 0x2e, 0x76, 0x32, 0x2e, 0x47, 0x72, 0x61, 0x6e, 0x74, 0x52, 0x07, 0x64, 0x65, 0x6c, 0x65, - 0x74, 0x65, 0x64, 0x12, 0x32, 0x0a, 0x08, 0x6d, 0x6f, 0x64, 0x69, 0x66, 0x69, 0x65, 0x64, 0x18, - 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x63, 0x31, 0x2e, 0x63, 0x6f, 0x6e, 0x6e, 0x65, - 0x63, 0x74, 0x6f, 0x72, 0x2e, 0x76, 0x32, 0x2e, 0x47, 0x72, 0x61, 0x6e, 0x74, 0x52, 0x08, 0x6d, - 0x6f, 0x64, 0x69, 0x66, 0x69, 0x65, 0x64, 0x22, 0xb4, 0x01, 0x0a, 0x0d, 0x43, 0x31, 0x5a, 0x44, - 0x69, 0x66, 0x66, 0x4f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x12, 0x35, 0x0a, 0x09, 0x72, 0x65, 0x73, - 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x63, - 0x31, 0x2e, 0x63, 0x31, 0x7a, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, - 0x65, 0x44, 0x69, 0x66, 0x66, 0x52, 0x09, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, - 0x12, 0x3e, 0x0a, 0x0c, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x73, - 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x63, 0x31, 0x2e, 0x63, 0x31, 0x7a, 0x2e, - 0x76, 0x31, 0x2e, 0x45, 0x6e, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x44, 0x69, - 0x66, 0x66, 0x52, 0x0c, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x73, - 0x12, 0x2c, 0x0a, 0x06, 0x67, 0x72, 0x61, 0x6e, 0x74, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, - 0x32, 0x14, 0x2e, 0x63, 0x31, 0x2e, 0x63, 0x31, 0x7a, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x72, 0x61, - 0x6e, 0x74, 0x44, 0x69, 0x66, 0x66, 0x52, 0x06, 0x67, 0x72, 0x61, 0x6e, 0x74, 0x73, 0x42, 0x30, - 0x5a, 0x2e, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x63, 0x6f, 0x6e, - 0x64, 0x75, 0x63, 0x74, 0x6f, 0x72, 0x6f, 0x6e, 0x65, 0x2f, 0x62, 0x61, 0x74, 0x6f, 0x6e, 0x2d, - 0x73, 0x64, 0x6b, 0x2f, 0x70, 0x62, 0x2f, 0x63, 0x31, 0x2f, 0x63, 0x31, 0x7a, 0x2f, 0x76, 0x31, - 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, -}) - -var ( - file_c1_c1z_v1_diff_proto_rawDescOnce sync.Once - file_c1_c1z_v1_diff_proto_rawDescData []byte -) +func (x *C1ZDiffOutput) SetEntitlements(v *EntitlementDiff) { + x.Entitlements = v +} + +func (x *C1ZDiffOutput) SetGrants(v *GrantDiff) { + x.Grants = v +} + +func (x *C1ZDiffOutput) HasResources() bool { + if x == nil { + return false + } + return x.Resources != nil +} + +func (x *C1ZDiffOutput) HasEntitlements() bool { + if x == nil { + return false + } + return x.Entitlements != nil +} + +func (x *C1ZDiffOutput) HasGrants() bool { + if x == nil { + return false + } + return x.Grants != nil +} + +func (x *C1ZDiffOutput) ClearResources() { + x.Resources = nil +} + +func (x *C1ZDiffOutput) ClearEntitlements() { + x.Entitlements = nil +} -func file_c1_c1z_v1_diff_proto_rawDescGZIP() []byte { - file_c1_c1z_v1_diff_proto_rawDescOnce.Do(func() { - file_c1_c1z_v1_diff_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_c1_c1z_v1_diff_proto_rawDesc), len(file_c1_c1z_v1_diff_proto_rawDesc))) - }) - return file_c1_c1z_v1_diff_proto_rawDescData +func (x *C1ZDiffOutput) ClearGrants() { + x.Grants = nil } +type C1ZDiffOutput_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Resources *ResourceDiff + Entitlements *EntitlementDiff + Grants *GrantDiff +} + +func (b0 C1ZDiffOutput_builder) Build() *C1ZDiffOutput { + m0 := &C1ZDiffOutput{} + b, x := &b0, m0 + _, _ = b, x + x.Resources = b.Resources + x.Entitlements = b.Entitlements + x.Grants = b.Grants + return m0 +} + +var File_c1_c1z_v1_diff_proto protoreflect.FileDescriptor + +const file_c1_c1z_v1_diff_proto_rawDesc = "" + + "\n" + + "\x14c1/c1z/v1/diff.proto\x12\tc1.c1z.v1\x1a!c1/connector/v2/entitlement.proto\x1a\x1bc1/connector/v2/grant.proto\x1a\x1ec1/connector/v2/resource.proto\"\xaf\x01\n" + + "\fResourceDiff\x123\n" + + "\acreated\x18\x01 \x03(\v2\x19.c1.connector.v2.ResourceR\acreated\x123\n" + + "\adeleted\x18\x02 \x03(\v2\x19.c1.connector.v2.ResourceR\adeleted\x125\n" + + "\bmodified\x18\x03 \x03(\v2\x19.c1.connector.v2.ResourceR\bmodified\"\xbb\x01\n" + + "\x0fEntitlementDiff\x126\n" + + "\acreated\x18\x01 \x03(\v2\x1c.c1.connector.v2.EntitlementR\acreated\x126\n" + + "\adeleted\x18\x02 \x03(\v2\x1c.c1.connector.v2.EntitlementR\adeleted\x128\n" + + "\bmodified\x18\x03 \x03(\v2\x1c.c1.connector.v2.EntitlementR\bmodified\"\xa3\x01\n" + + "\tGrantDiff\x120\n" + + "\acreated\x18\x01 \x03(\v2\x16.c1.connector.v2.GrantR\acreated\x120\n" + + "\adeleted\x18\x02 \x03(\v2\x16.c1.connector.v2.GrantR\adeleted\x122\n" + + "\bmodified\x18\x03 \x03(\v2\x16.c1.connector.v2.GrantR\bmodified\"\xb4\x01\n" + + "\rC1ZDiffOutput\x125\n" + + "\tresources\x18\x01 \x01(\v2\x17.c1.c1z.v1.ResourceDiffR\tresources\x12>\n" + + "\fentitlements\x18\x02 \x01(\v2\x1a.c1.c1z.v1.EntitlementDiffR\fentitlements\x12,\n" + + "\x06grants\x18\x03 \x01(\v2\x14.c1.c1z.v1.GrantDiffR\x06grantsB0Z.github.com/conductorone/baton-sdk/pb/c1/c1z/v1b\x06proto3" + var file_c1_c1z_v1_diff_proto_msgTypes = make([]protoimpl.MessageInfo, 4) var file_c1_c1z_v1_diff_proto_goTypes = []any{ (*ResourceDiff)(nil), // 0: c1.c1z.v1.ResourceDiff diff --git a/vendor/github.com/conductorone/baton-sdk/pb/c1/c1z/v1/diff_protoopaque.pb.go b/vendor/github.com/conductorone/baton-sdk/pb/c1/c1z/v1/diff_protoopaque.pb.go new file mode 100644 index 00000000..f0ae6188 --- /dev/null +++ b/vendor/github.com/conductorone/baton-sdk/pb/c1/c1z/v1/diff_protoopaque.pb.go @@ -0,0 +1,491 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.36.10 +// protoc (unknown) +// source: c1/c1z/v1/diff.proto + +//go:build protoopaque + +package v1 + +import ( + v2 "github.com/conductorone/baton-sdk/pb/c1/connector/v2" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + reflect "reflect" + 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 ResourceDiff struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Created *[]*v2.Resource `protobuf:"bytes,1,rep,name=created,proto3"` + xxx_hidden_Deleted *[]*v2.Resource `protobuf:"bytes,2,rep,name=deleted,proto3"` + xxx_hidden_Modified *[]*v2.Resource `protobuf:"bytes,3,rep,name=modified,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *ResourceDiff) Reset() { + *x = ResourceDiff{} + mi := &file_c1_c1z_v1_diff_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *ResourceDiff) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ResourceDiff) ProtoMessage() {} + +func (x *ResourceDiff) ProtoReflect() protoreflect.Message { + mi := &file_c1_c1z_v1_diff_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) +} + +func (x *ResourceDiff) GetCreated() []*v2.Resource { + if x != nil { + if x.xxx_hidden_Created != nil { + return *x.xxx_hidden_Created + } + } + return nil +} + +func (x *ResourceDiff) GetDeleted() []*v2.Resource { + if x != nil { + if x.xxx_hidden_Deleted != nil { + return *x.xxx_hidden_Deleted + } + } + return nil +} + +func (x *ResourceDiff) GetModified() []*v2.Resource { + if x != nil { + if x.xxx_hidden_Modified != nil { + return *x.xxx_hidden_Modified + } + } + return nil +} + +func (x *ResourceDiff) SetCreated(v []*v2.Resource) { + x.xxx_hidden_Created = &v +} + +func (x *ResourceDiff) SetDeleted(v []*v2.Resource) { + x.xxx_hidden_Deleted = &v +} + +func (x *ResourceDiff) SetModified(v []*v2.Resource) { + x.xxx_hidden_Modified = &v +} + +type ResourceDiff_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Created []*v2.Resource + Deleted []*v2.Resource + Modified []*v2.Resource +} + +func (b0 ResourceDiff_builder) Build() *ResourceDiff { + m0 := &ResourceDiff{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Created = &b.Created + x.xxx_hidden_Deleted = &b.Deleted + x.xxx_hidden_Modified = &b.Modified + return m0 +} + +type EntitlementDiff struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Created *[]*v2.Entitlement `protobuf:"bytes,1,rep,name=created,proto3"` + xxx_hidden_Deleted *[]*v2.Entitlement `protobuf:"bytes,2,rep,name=deleted,proto3"` + xxx_hidden_Modified *[]*v2.Entitlement `protobuf:"bytes,3,rep,name=modified,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *EntitlementDiff) Reset() { + *x = EntitlementDiff{} + mi := &file_c1_c1z_v1_diff_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *EntitlementDiff) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*EntitlementDiff) ProtoMessage() {} + +func (x *EntitlementDiff) ProtoReflect() protoreflect.Message { + mi := &file_c1_c1z_v1_diff_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) +} + +func (x *EntitlementDiff) GetCreated() []*v2.Entitlement { + if x != nil { + if x.xxx_hidden_Created != nil { + return *x.xxx_hidden_Created + } + } + return nil +} + +func (x *EntitlementDiff) GetDeleted() []*v2.Entitlement { + if x != nil { + if x.xxx_hidden_Deleted != nil { + return *x.xxx_hidden_Deleted + } + } + return nil +} + +func (x *EntitlementDiff) GetModified() []*v2.Entitlement { + if x != nil { + if x.xxx_hidden_Modified != nil { + return *x.xxx_hidden_Modified + } + } + return nil +} + +func (x *EntitlementDiff) SetCreated(v []*v2.Entitlement) { + x.xxx_hidden_Created = &v +} + +func (x *EntitlementDiff) SetDeleted(v []*v2.Entitlement) { + x.xxx_hidden_Deleted = &v +} + +func (x *EntitlementDiff) SetModified(v []*v2.Entitlement) { + x.xxx_hidden_Modified = &v +} + +type EntitlementDiff_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Created []*v2.Entitlement + Deleted []*v2.Entitlement + Modified []*v2.Entitlement +} + +func (b0 EntitlementDiff_builder) Build() *EntitlementDiff { + m0 := &EntitlementDiff{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Created = &b.Created + x.xxx_hidden_Deleted = &b.Deleted + x.xxx_hidden_Modified = &b.Modified + return m0 +} + +type GrantDiff struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Created *[]*v2.Grant `protobuf:"bytes,1,rep,name=created,proto3"` + xxx_hidden_Deleted *[]*v2.Grant `protobuf:"bytes,2,rep,name=deleted,proto3"` + xxx_hidden_Modified *[]*v2.Grant `protobuf:"bytes,3,rep,name=modified,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *GrantDiff) Reset() { + *x = GrantDiff{} + mi := &file_c1_c1z_v1_diff_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *GrantDiff) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GrantDiff) ProtoMessage() {} + +func (x *GrantDiff) ProtoReflect() protoreflect.Message { + mi := &file_c1_c1z_v1_diff_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) +} + +func (x *GrantDiff) GetCreated() []*v2.Grant { + if x != nil { + if x.xxx_hidden_Created != nil { + return *x.xxx_hidden_Created + } + } + return nil +} + +func (x *GrantDiff) GetDeleted() []*v2.Grant { + if x != nil { + if x.xxx_hidden_Deleted != nil { + return *x.xxx_hidden_Deleted + } + } + return nil +} + +func (x *GrantDiff) GetModified() []*v2.Grant { + if x != nil { + if x.xxx_hidden_Modified != nil { + return *x.xxx_hidden_Modified + } + } + return nil +} + +func (x *GrantDiff) SetCreated(v []*v2.Grant) { + x.xxx_hidden_Created = &v +} + +func (x *GrantDiff) SetDeleted(v []*v2.Grant) { + x.xxx_hidden_Deleted = &v +} + +func (x *GrantDiff) SetModified(v []*v2.Grant) { + x.xxx_hidden_Modified = &v +} + +type GrantDiff_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Created []*v2.Grant + Deleted []*v2.Grant + Modified []*v2.Grant +} + +func (b0 GrantDiff_builder) Build() *GrantDiff { + m0 := &GrantDiff{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Created = &b.Created + x.xxx_hidden_Deleted = &b.Deleted + x.xxx_hidden_Modified = &b.Modified + return m0 +} + +type C1ZDiffOutput struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Resources *ResourceDiff `protobuf:"bytes,1,opt,name=resources,proto3"` + xxx_hidden_Entitlements *EntitlementDiff `protobuf:"bytes,2,opt,name=entitlements,proto3"` + xxx_hidden_Grants *GrantDiff `protobuf:"bytes,3,opt,name=grants,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *C1ZDiffOutput) Reset() { + *x = C1ZDiffOutput{} + mi := &file_c1_c1z_v1_diff_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *C1ZDiffOutput) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*C1ZDiffOutput) ProtoMessage() {} + +func (x *C1ZDiffOutput) ProtoReflect() protoreflect.Message { + mi := &file_c1_c1z_v1_diff_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) +} + +func (x *C1ZDiffOutput) GetResources() *ResourceDiff { + if x != nil { + return x.xxx_hidden_Resources + } + return nil +} + +func (x *C1ZDiffOutput) GetEntitlements() *EntitlementDiff { + if x != nil { + return x.xxx_hidden_Entitlements + } + return nil +} + +func (x *C1ZDiffOutput) GetGrants() *GrantDiff { + if x != nil { + return x.xxx_hidden_Grants + } + return nil +} + +func (x *C1ZDiffOutput) SetResources(v *ResourceDiff) { + x.xxx_hidden_Resources = v +} + +func (x *C1ZDiffOutput) SetEntitlements(v *EntitlementDiff) { + x.xxx_hidden_Entitlements = v +} + +func (x *C1ZDiffOutput) SetGrants(v *GrantDiff) { + x.xxx_hidden_Grants = v +} + +func (x *C1ZDiffOutput) HasResources() bool { + if x == nil { + return false + } + return x.xxx_hidden_Resources != nil +} + +func (x *C1ZDiffOutput) HasEntitlements() bool { + if x == nil { + return false + } + return x.xxx_hidden_Entitlements != nil +} + +func (x *C1ZDiffOutput) HasGrants() bool { + if x == nil { + return false + } + return x.xxx_hidden_Grants != nil +} + +func (x *C1ZDiffOutput) ClearResources() { + x.xxx_hidden_Resources = nil +} + +func (x *C1ZDiffOutput) ClearEntitlements() { + x.xxx_hidden_Entitlements = nil +} + +func (x *C1ZDiffOutput) ClearGrants() { + x.xxx_hidden_Grants = nil +} + +type C1ZDiffOutput_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Resources *ResourceDiff + Entitlements *EntitlementDiff + Grants *GrantDiff +} + +func (b0 C1ZDiffOutput_builder) Build() *C1ZDiffOutput { + m0 := &C1ZDiffOutput{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Resources = b.Resources + x.xxx_hidden_Entitlements = b.Entitlements + x.xxx_hidden_Grants = b.Grants + return m0 +} + +var File_c1_c1z_v1_diff_proto protoreflect.FileDescriptor + +const file_c1_c1z_v1_diff_proto_rawDesc = "" + + "\n" + + "\x14c1/c1z/v1/diff.proto\x12\tc1.c1z.v1\x1a!c1/connector/v2/entitlement.proto\x1a\x1bc1/connector/v2/grant.proto\x1a\x1ec1/connector/v2/resource.proto\"\xaf\x01\n" + + "\fResourceDiff\x123\n" + + "\acreated\x18\x01 \x03(\v2\x19.c1.connector.v2.ResourceR\acreated\x123\n" + + "\adeleted\x18\x02 \x03(\v2\x19.c1.connector.v2.ResourceR\adeleted\x125\n" + + "\bmodified\x18\x03 \x03(\v2\x19.c1.connector.v2.ResourceR\bmodified\"\xbb\x01\n" + + "\x0fEntitlementDiff\x126\n" + + "\acreated\x18\x01 \x03(\v2\x1c.c1.connector.v2.EntitlementR\acreated\x126\n" + + "\adeleted\x18\x02 \x03(\v2\x1c.c1.connector.v2.EntitlementR\adeleted\x128\n" + + "\bmodified\x18\x03 \x03(\v2\x1c.c1.connector.v2.EntitlementR\bmodified\"\xa3\x01\n" + + "\tGrantDiff\x120\n" + + "\acreated\x18\x01 \x03(\v2\x16.c1.connector.v2.GrantR\acreated\x120\n" + + "\adeleted\x18\x02 \x03(\v2\x16.c1.connector.v2.GrantR\adeleted\x122\n" + + "\bmodified\x18\x03 \x03(\v2\x16.c1.connector.v2.GrantR\bmodified\"\xb4\x01\n" + + "\rC1ZDiffOutput\x125\n" + + "\tresources\x18\x01 \x01(\v2\x17.c1.c1z.v1.ResourceDiffR\tresources\x12>\n" + + "\fentitlements\x18\x02 \x01(\v2\x1a.c1.c1z.v1.EntitlementDiffR\fentitlements\x12,\n" + + "\x06grants\x18\x03 \x01(\v2\x14.c1.c1z.v1.GrantDiffR\x06grantsB0Z.github.com/conductorone/baton-sdk/pb/c1/c1z/v1b\x06proto3" + +var file_c1_c1z_v1_diff_proto_msgTypes = make([]protoimpl.MessageInfo, 4) +var file_c1_c1z_v1_diff_proto_goTypes = []any{ + (*ResourceDiff)(nil), // 0: c1.c1z.v1.ResourceDiff + (*EntitlementDiff)(nil), // 1: c1.c1z.v1.EntitlementDiff + (*GrantDiff)(nil), // 2: c1.c1z.v1.GrantDiff + (*C1ZDiffOutput)(nil), // 3: c1.c1z.v1.C1ZDiffOutput + (*v2.Resource)(nil), // 4: c1.connector.v2.Resource + (*v2.Entitlement)(nil), // 5: c1.connector.v2.Entitlement + (*v2.Grant)(nil), // 6: c1.connector.v2.Grant +} +var file_c1_c1z_v1_diff_proto_depIdxs = []int32{ + 4, // 0: c1.c1z.v1.ResourceDiff.created:type_name -> c1.connector.v2.Resource + 4, // 1: c1.c1z.v1.ResourceDiff.deleted:type_name -> c1.connector.v2.Resource + 4, // 2: c1.c1z.v1.ResourceDiff.modified:type_name -> c1.connector.v2.Resource + 5, // 3: c1.c1z.v1.EntitlementDiff.created:type_name -> c1.connector.v2.Entitlement + 5, // 4: c1.c1z.v1.EntitlementDiff.deleted:type_name -> c1.connector.v2.Entitlement + 5, // 5: c1.c1z.v1.EntitlementDiff.modified:type_name -> c1.connector.v2.Entitlement + 6, // 6: c1.c1z.v1.GrantDiff.created:type_name -> c1.connector.v2.Grant + 6, // 7: c1.c1z.v1.GrantDiff.deleted:type_name -> c1.connector.v2.Grant + 6, // 8: c1.c1z.v1.GrantDiff.modified:type_name -> c1.connector.v2.Grant + 0, // 9: c1.c1z.v1.C1ZDiffOutput.resources:type_name -> c1.c1z.v1.ResourceDiff + 1, // 10: c1.c1z.v1.C1ZDiffOutput.entitlements:type_name -> c1.c1z.v1.EntitlementDiff + 2, // 11: c1.c1z.v1.C1ZDiffOutput.grants:type_name -> c1.c1z.v1.GrantDiff + 12, // [12:12] is the sub-list for method output_type + 12, // [12:12] is the sub-list for method input_type + 12, // [12:12] is the sub-list for extension type_name + 12, // [12:12] is the sub-list for extension extendee + 0, // [0:12] is the sub-list for field type_name +} + +func init() { file_c1_c1z_v1_diff_proto_init() } +func file_c1_c1z_v1_diff_proto_init() { + if File_c1_c1z_v1_diff_proto != nil { + return + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: unsafe.Slice(unsafe.StringData(file_c1_c1z_v1_diff_proto_rawDesc), len(file_c1_c1z_v1_diff_proto_rawDesc)), + NumEnums: 0, + NumMessages: 4, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_c1_c1z_v1_diff_proto_goTypes, + DependencyIndexes: file_c1_c1z_v1_diff_proto_depIdxs, + MessageInfos: file_c1_c1z_v1_diff_proto_msgTypes, + }.Build() + File_c1_c1z_v1_diff_proto = out.File + file_c1_c1z_v1_diff_proto_goTypes = nil + file_c1_c1z_v1_diff_proto_depIdxs = nil +} diff --git a/vendor/github.com/conductorone/baton-sdk/pb/c1/config/v1/config.pb.go b/vendor/github.com/conductorone/baton-sdk/pb/c1/config/v1/config.pb.go index ebbf484a..06945eed 100644 --- a/vendor/github.com/conductorone/baton-sdk/pb/c1/config/v1/config.pb.go +++ b/vendor/github.com/conductorone/baton-sdk/pb/c1/config/v1/config.pb.go @@ -1,9 +1,11 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.36.4 +// protoc-gen-go v1.36.10 // protoc (unknown) // source: c1/config/v1/config.proto +//go:build !protoopaque + package v1 import ( @@ -11,7 +13,6 @@ import ( protoimpl "google.golang.org/protobuf/runtime/protoimpl" anypb "google.golang.org/protobuf/types/known/anypb" reflect "reflect" - sync "sync" unsafe "unsafe" ) @@ -72,11 +73,6 @@ func (x ConstraintKind) Number() protoreflect.EnumNumber { return protoreflect.EnumNumber(x) } -// Deprecated: Use ConstraintKind.Descriptor instead. -func (ConstraintKind) EnumDescriptor() ([]byte, []int) { - return file_c1_config_v1_config_proto_rawDescGZIP(), []int{0} -} - type StringFieldType int32 const ( @@ -127,13 +123,8 @@ func (x StringFieldType) Number() protoreflect.EnumNumber { return protoreflect.EnumNumber(x) } -// Deprecated: Use StringFieldType.Descriptor instead. -func (StringFieldType) EnumDescriptor() ([]byte, []int) { - return file_c1_config_v1_config_proto_rawDescGZIP(), []int{1} -} - type Configuration struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` Fields []*Field `protobuf:"bytes,1,rep,name=fields,proto3" json:"fields,omitempty"` Constraints []*Constraint `protobuf:"bytes,2,rep,name=constraints,proto3" json:"constraints,omitempty"` DisplayName string `protobuf:"bytes,3,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"` @@ -143,6 +134,7 @@ type Configuration struct { CatalogId string `protobuf:"bytes,8,opt,name=catalog_id,json=catalogId,proto3" json:"catalog_id,omitempty"` SupportsExternalResources bool `protobuf:"varint,9,opt,name=supports_external_resources,json=supportsExternalResources,proto3" json:"supports_external_resources,omitempty"` RequiresExternalConnector bool `protobuf:"varint,10,opt,name=requires_external_connector,json=requiresExternalConnector,proto3" json:"requires_external_connector,omitempty"` + FieldGroups []*FieldGroup `protobuf:"bytes,11,rep,name=field_groups,json=fieldGroups,proto3" json:"field_groups,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } @@ -172,11 +164,6 @@ func (x *Configuration) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use Configuration.ProtoReflect.Descriptor instead. -func (*Configuration) Descriptor() ([]byte, []int) { - return file_c1_config_v1_config_proto_rawDescGZIP(), []int{0} -} - func (x *Configuration) GetFields() []*Field { if x != nil { return x.Fields @@ -240,8 +227,87 @@ func (x *Configuration) GetRequiresExternalConnector() bool { return false } +func (x *Configuration) GetFieldGroups() []*FieldGroup { + if x != nil { + return x.FieldGroups + } + return nil +} + +func (x *Configuration) SetFields(v []*Field) { + x.Fields = v +} + +func (x *Configuration) SetConstraints(v []*Constraint) { + x.Constraints = v +} + +func (x *Configuration) SetDisplayName(v string) { + x.DisplayName = v +} + +func (x *Configuration) SetHelpUrl(v string) { + x.HelpUrl = v +} + +func (x *Configuration) SetIconUrl(v string) { + x.IconUrl = v +} + +func (x *Configuration) SetIsDirectory(v bool) { + x.IsDirectory = v +} + +func (x *Configuration) SetCatalogId(v string) { + x.CatalogId = v +} + +func (x *Configuration) SetSupportsExternalResources(v bool) { + x.SupportsExternalResources = v +} + +func (x *Configuration) SetRequiresExternalConnector(v bool) { + x.RequiresExternalConnector = v +} + +func (x *Configuration) SetFieldGroups(v []*FieldGroup) { + x.FieldGroups = v +} + +type Configuration_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Fields []*Field + Constraints []*Constraint + DisplayName string + HelpUrl string + IconUrl string + IsDirectory bool + CatalogId string + SupportsExternalResources bool + RequiresExternalConnector bool + FieldGroups []*FieldGroup +} + +func (b0 Configuration_builder) Build() *Configuration { + m0 := &Configuration{} + b, x := &b0, m0 + _, _ = b, x + x.Fields = b.Fields + x.Constraints = b.Constraints + x.DisplayName = b.DisplayName + x.HelpUrl = b.HelpUrl + x.IconUrl = b.IconUrl + x.IsDirectory = b.IsDirectory + x.CatalogId = b.CatalogId + x.SupportsExternalResources = b.SupportsExternalResources + x.RequiresExternalConnector = b.RequiresExternalConnector + x.FieldGroups = b.FieldGroups + return m0 +} + type Constraint struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` Kind ConstraintKind `protobuf:"varint,1,opt,name=kind,proto3,enum=c1.config.v1.ConstraintKind" json:"kind,omitempty"` FieldNames []string `protobuf:"bytes,2,rep,name=field_names,json=fieldNames,proto3" json:"field_names,omitempty"` SecondaryFieldNames []string `protobuf:"bytes,3,rep,name=secondary_field_names,json=secondaryFieldNames,proto3" json:"secondary_field_names,omitempty"` @@ -277,11 +343,6 @@ func (x *Constraint) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use Constraint.ProtoReflect.Descriptor instead. -func (*Constraint) Descriptor() ([]byte, []int) { - return file_c1_config_v1_config_proto_rawDescGZIP(), []int{1} -} - func (x *Constraint) GetKind() ConstraintKind { if x != nil { return x.Kind @@ -324,8 +385,169 @@ func (x *Constraint) GetIsFieldGroup() bool { return false } +func (x *Constraint) SetKind(v ConstraintKind) { + x.Kind = v +} + +func (x *Constraint) SetFieldNames(v []string) { + x.FieldNames = v +} + +func (x *Constraint) SetSecondaryFieldNames(v []string) { + x.SecondaryFieldNames = v +} + +func (x *Constraint) SetName(v string) { + x.Name = v +} + +func (x *Constraint) SetHelpText(v string) { + x.HelpText = v +} + +func (x *Constraint) SetIsFieldGroup(v bool) { + x.IsFieldGroup = v +} + +type Constraint_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Kind ConstraintKind + FieldNames []string + SecondaryFieldNames []string + Name string + HelpText string + IsFieldGroup bool +} + +func (b0 Constraint_builder) Build() *Constraint { + m0 := &Constraint{} + b, x := &b0, m0 + _, _ = b, x + x.Kind = b.Kind + x.FieldNames = b.FieldNames + x.SecondaryFieldNames = b.SecondaryFieldNames + x.Name = b.Name + x.HelpText = b.HelpText + x.IsFieldGroup = b.IsFieldGroup + return m0 +} + +type FieldGroup struct { + state protoimpl.MessageState `protogen:"hybrid.v1"` + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // Unique ID. + DisplayName string `protobuf:"bytes,2,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"` + HelpText string `protobuf:"bytes,3,opt,name=help_text,json=helpText,proto3" json:"help_text,omitempty"` + Fields []string `protobuf:"bytes,4,rep,name=fields,proto3" json:"fields,omitempty"` + Default bool `protobuf:"varint,5,opt,name=default,proto3" json:"default,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *FieldGroup) Reset() { + *x = FieldGroup{} + mi := &file_c1_config_v1_config_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *FieldGroup) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*FieldGroup) ProtoMessage() {} + +func (x *FieldGroup) ProtoReflect() protoreflect.Message { + mi := &file_c1_config_v1_config_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) +} + +func (x *FieldGroup) GetName() string { + if x != nil { + return x.Name + } + return "" +} + +func (x *FieldGroup) GetDisplayName() string { + if x != nil { + return x.DisplayName + } + return "" +} + +func (x *FieldGroup) GetHelpText() string { + if x != nil { + return x.HelpText + } + return "" +} + +func (x *FieldGroup) GetFields() []string { + if x != nil { + return x.Fields + } + return nil +} + +func (x *FieldGroup) GetDefault() bool { + if x != nil { + return x.Default + } + return false +} + +func (x *FieldGroup) SetName(v string) { + x.Name = v +} + +func (x *FieldGroup) SetDisplayName(v string) { + x.DisplayName = v +} + +func (x *FieldGroup) SetHelpText(v string) { + x.HelpText = v +} + +func (x *FieldGroup) SetFields(v []string) { + x.Fields = v +} + +func (x *FieldGroup) SetDefault(v bool) { + x.Default = v +} + +type FieldGroup_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Name string + DisplayName string + HelpText string + Fields []string + Default bool +} + +func (b0 FieldGroup_builder) Build() *FieldGroup { + m0 := &FieldGroup{} + b, x := &b0, m0 + _, _ = b, x + x.Name = b.Name + x.DisplayName = b.DisplayName + x.HelpText = b.HelpText + x.Fields = b.Fields + x.Default = b.Default + return m0 +} + type Field struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // canonical name, typically in snake DisplayName string `protobuf:"bytes,2,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"` Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"` @@ -340,6 +562,10 @@ type Field struct { // *Field_BoolField // *Field_StringSliceField // *Field_StringMapField + // *Field_ResourceIdField + // *Field_ResourceIdSliceField + // *Field_ResourceField + // *Field_ResourceSliceField Field isField_Field `protobuf_oneof:"field"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache @@ -347,7 +573,7 @@ type Field struct { func (x *Field) Reset() { *x = Field{} - mi := &file_c1_config_v1_config_proto_msgTypes[2] + mi := &file_c1_config_v1_config_proto_msgTypes[3] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -359,7 +585,7 @@ func (x *Field) String() string { func (*Field) ProtoMessage() {} func (x *Field) ProtoReflect() protoreflect.Message { - mi := &file_c1_config_v1_config_proto_msgTypes[2] + mi := &file_c1_config_v1_config_proto_msgTypes[3] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -370,11 +596,6 @@ func (x *Field) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use Field.ProtoReflect.Descriptor instead. -func (*Field) Descriptor() ([]byte, []int) { - return file_c1_config_v1_config_proto_rawDescGZIP(), []int{2} -} - func (x *Field) GetName() string { if x != nil { return x.Name @@ -476,156 +697,1137 @@ func (x *Field) GetStringMapField() *StringMapField { return nil } -type isField_Field interface { - isField_Field() +func (x *Field) GetResourceIdField() *ResourceIdField { + if x != nil { + if x, ok := x.Field.(*Field_ResourceIdField); ok { + return x.ResourceIdField + } + } + return nil } -type Field_StringField struct { - StringField *StringField `protobuf:"bytes,100,opt,name=string_field,json=stringField,proto3,oneof"` +func (x *Field) GetResourceIdSliceField() *ResourceIdSliceField { + if x != nil { + if x, ok := x.Field.(*Field_ResourceIdSliceField); ok { + return x.ResourceIdSliceField + } + } + return nil } -type Field_IntField struct { - IntField *IntField `protobuf:"bytes,101,opt,name=int_field,json=intField,proto3,oneof"` +func (x *Field) GetResourceField() *ResourceField { + if x != nil { + if x, ok := x.Field.(*Field_ResourceField); ok { + return x.ResourceField + } + } + return nil } -type Field_BoolField struct { - BoolField *BoolField `protobuf:"bytes,102,opt,name=bool_field,json=boolField,proto3,oneof"` +func (x *Field) GetResourceSliceField() *ResourceSliceField { + if x != nil { + if x, ok := x.Field.(*Field_ResourceSliceField); ok { + return x.ResourceSliceField + } + } + return nil } -type Field_StringSliceField struct { - StringSliceField *StringSliceField `protobuf:"bytes,103,opt,name=string_slice_field,json=stringSliceField,proto3,oneof"` +func (x *Field) SetName(v string) { + x.Name = v } -type Field_StringMapField struct { - StringMapField *StringMapField `protobuf:"bytes,104,opt,name=string_map_field,json=stringMapField,proto3,oneof"` +func (x *Field) SetDisplayName(v string) { + x.DisplayName = v } -func (*Field_StringField) isField_Field() {} +func (x *Field) SetDescription(v string) { + x.Description = v +} -func (*Field_IntField) isField_Field() {} +func (x *Field) SetPlaceholder(v string) { + x.Placeholder = v +} -func (*Field_BoolField) isField_Field() {} +func (x *Field) SetIsRequired(v bool) { + x.IsRequired = v +} -func (*Field_StringSliceField) isField_Field() {} +func (x *Field) SetIsOps(v bool) { + x.IsOps = v +} -func (*Field_StringMapField) isField_Field() {} +func (x *Field) SetIsSecret(v bool) { + x.IsSecret = v +} -type IntField struct { - state protoimpl.MessageState `protogen:"open.v1"` - // rules - DefaultValue int64 `protobuf:"varint,1,opt,name=default_value,json=defaultValue,proto3" json:"default_value,omitempty"` - Rules *Int64Rules `protobuf:"bytes,2,opt,name=rules,proto3,oneof" json:"rules,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache +func (x *Field) SetStringField(v *StringField) { + if v == nil { + x.Field = nil + return + } + x.Field = &Field_StringField{v} } -func (x *IntField) Reset() { - *x = IntField{} - mi := &file_c1_config_v1_config_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) +func (x *Field) SetIntField(v *IntField) { + if v == nil { + x.Field = nil + return + } + x.Field = &Field_IntField{v} } -func (x *IntField) String() string { - return protoimpl.X.MessageStringOf(x) +func (x *Field) SetBoolField(v *BoolField) { + if v == nil { + x.Field = nil + return + } + x.Field = &Field_BoolField{v} } -func (*IntField) ProtoMessage() {} +func (x *Field) SetStringSliceField(v *StringSliceField) { + if v == nil { + x.Field = nil + return + } + x.Field = &Field_StringSliceField{v} +} -func (x *IntField) ProtoReflect() protoreflect.Message { - mi := &file_c1_config_v1_config_proto_msgTypes[3] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms +func (x *Field) SetStringMapField(v *StringMapField) { + if v == nil { + x.Field = nil + return } - return mi.MessageOf(x) + x.Field = &Field_StringMapField{v} } -// Deprecated: Use IntField.ProtoReflect.Descriptor instead. -func (*IntField) Descriptor() ([]byte, []int) { - return file_c1_config_v1_config_proto_rawDescGZIP(), []int{3} +func (x *Field) SetResourceIdField(v *ResourceIdField) { + if v == nil { + x.Field = nil + return + } + x.Field = &Field_ResourceIdField{v} } -func (x *IntField) GetDefaultValue() int64 { - if x != nil { - return x.DefaultValue +func (x *Field) SetResourceIdSliceField(v *ResourceIdSliceField) { + if v == nil { + x.Field = nil + return } - return 0 + x.Field = &Field_ResourceIdSliceField{v} } -func (x *IntField) GetRules() *Int64Rules { - if x != nil { - return x.Rules +func (x *Field) SetResourceField(v *ResourceField) { + if v == nil { + x.Field = nil + return } - return nil + x.Field = &Field_ResourceField{v} } -type BoolField struct { - state protoimpl.MessageState `protogen:"open.v1"` - DefaultValue bool `protobuf:"varint,1,opt,name=default_value,json=defaultValue,proto3" json:"default_value,omitempty"` - Rules *BoolRules `protobuf:"bytes,2,opt,name=rules,proto3,oneof" json:"rules,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache +func (x *Field) SetResourceSliceField(v *ResourceSliceField) { + if v == nil { + x.Field = nil + return + } + x.Field = &Field_ResourceSliceField{v} } -func (x *BoolField) Reset() { - *x = BoolField{} - mi := &file_c1_config_v1_config_proto_msgTypes[4] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) +func (x *Field) HasField() bool { + if x == nil { + return false + } + return x.Field != nil } -func (x *BoolField) String() string { - return protoimpl.X.MessageStringOf(x) +func (x *Field) HasStringField() bool { + if x == nil { + return false + } + _, ok := x.Field.(*Field_StringField) + return ok } -func (*BoolField) ProtoMessage() {} +func (x *Field) HasIntField() bool { + if x == nil { + return false + } + _, ok := x.Field.(*Field_IntField) + return ok +} -func (x *BoolField) ProtoReflect() protoreflect.Message { - mi := &file_c1_config_v1_config_proto_msgTypes[4] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms +func (x *Field) HasBoolField() bool { + if x == nil { + return false } - return mi.MessageOf(x) + _, ok := x.Field.(*Field_BoolField) + return ok } -// Deprecated: Use BoolField.ProtoReflect.Descriptor instead. -func (*BoolField) Descriptor() ([]byte, []int) { - return file_c1_config_v1_config_proto_rawDescGZIP(), []int{4} +func (x *Field) HasStringSliceField() bool { + if x == nil { + return false + } + _, ok := x.Field.(*Field_StringSliceField) + return ok } -func (x *BoolField) GetDefaultValue() bool { - if x != nil { - return x.DefaultValue +func (x *Field) HasStringMapField() bool { + if x == nil { + return false } - return false + _, ok := x.Field.(*Field_StringMapField) + return ok } -func (x *BoolField) GetRules() *BoolRules { - if x != nil { - return x.Rules +func (x *Field) HasResourceIdField() bool { + if x == nil { + return false } - return nil + _, ok := x.Field.(*Field_ResourceIdField) + return ok } -type StringSliceField struct { - state protoimpl.MessageState `protogen:"open.v1"` - DefaultValue []string `protobuf:"bytes,1,rep,name=default_value,json=defaultValue,proto3" json:"default_value,omitempty"` - Rules *RepeatedStringRules `protobuf:"bytes,2,opt,name=rules,proto3,oneof" json:"rules,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache +func (x *Field) HasResourceIdSliceField() bool { + if x == nil { + return false + } + _, ok := x.Field.(*Field_ResourceIdSliceField) + return ok +} + +func (x *Field) HasResourceField() bool { + if x == nil { + return false + } + _, ok := x.Field.(*Field_ResourceField) + return ok +} + +func (x *Field) HasResourceSliceField() bool { + if x == nil { + return false + } + _, ok := x.Field.(*Field_ResourceSliceField) + return ok +} + +func (x *Field) ClearField() { + x.Field = nil +} + +func (x *Field) ClearStringField() { + if _, ok := x.Field.(*Field_StringField); ok { + x.Field = nil + } +} + +func (x *Field) ClearIntField() { + if _, ok := x.Field.(*Field_IntField); ok { + x.Field = nil + } +} + +func (x *Field) ClearBoolField() { + if _, ok := x.Field.(*Field_BoolField); ok { + x.Field = nil + } +} + +func (x *Field) ClearStringSliceField() { + if _, ok := x.Field.(*Field_StringSliceField); ok { + x.Field = nil + } +} + +func (x *Field) ClearStringMapField() { + if _, ok := x.Field.(*Field_StringMapField); ok { + x.Field = nil + } +} + +func (x *Field) ClearResourceIdField() { + if _, ok := x.Field.(*Field_ResourceIdField); ok { + x.Field = nil + } +} + +func (x *Field) ClearResourceIdSliceField() { + if _, ok := x.Field.(*Field_ResourceIdSliceField); ok { + x.Field = nil + } +} + +func (x *Field) ClearResourceField() { + if _, ok := x.Field.(*Field_ResourceField); ok { + x.Field = nil + } +} + +func (x *Field) ClearResourceSliceField() { + if _, ok := x.Field.(*Field_ResourceSliceField); ok { + x.Field = nil + } +} + +const Field_Field_not_set_case case_Field_Field = 0 +const Field_StringField_case case_Field_Field = 100 +const Field_IntField_case case_Field_Field = 101 +const Field_BoolField_case case_Field_Field = 102 +const Field_StringSliceField_case case_Field_Field = 103 +const Field_StringMapField_case case_Field_Field = 104 +const Field_ResourceIdField_case case_Field_Field = 105 +const Field_ResourceIdSliceField_case case_Field_Field = 106 +const Field_ResourceField_case case_Field_Field = 107 +const Field_ResourceSliceField_case case_Field_Field = 108 + +func (x *Field) WhichField() case_Field_Field { + if x == nil { + return Field_Field_not_set_case + } + switch x.Field.(type) { + case *Field_StringField: + return Field_StringField_case + case *Field_IntField: + return Field_IntField_case + case *Field_BoolField: + return Field_BoolField_case + case *Field_StringSliceField: + return Field_StringSliceField_case + case *Field_StringMapField: + return Field_StringMapField_case + case *Field_ResourceIdField: + return Field_ResourceIdField_case + case *Field_ResourceIdSliceField: + return Field_ResourceIdSliceField_case + case *Field_ResourceField: + return Field_ResourceField_case + case *Field_ResourceSliceField: + return Field_ResourceSliceField_case + default: + return Field_Field_not_set_case + } +} + +type Field_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Name string + DisplayName string + Description string + Placeholder string + IsRequired bool + IsOps bool + IsSecret bool + // Fields of oneof Field: + StringField *StringField + IntField *IntField + BoolField *BoolField + StringSliceField *StringSliceField + StringMapField *StringMapField + ResourceIdField *ResourceIdField + ResourceIdSliceField *ResourceIdSliceField + // These are meant to serve as return types for actions. + ResourceField *ResourceField + ResourceSliceField *ResourceSliceField + // -- end of Field +} + +func (b0 Field_builder) Build() *Field { + m0 := &Field{} + b, x := &b0, m0 + _, _ = b, x + x.Name = b.Name + x.DisplayName = b.DisplayName + x.Description = b.Description + x.Placeholder = b.Placeholder + x.IsRequired = b.IsRequired + x.IsOps = b.IsOps + x.IsSecret = b.IsSecret + if b.StringField != nil { + x.Field = &Field_StringField{b.StringField} + } + if b.IntField != nil { + x.Field = &Field_IntField{b.IntField} + } + if b.BoolField != nil { + x.Field = &Field_BoolField{b.BoolField} + } + if b.StringSliceField != nil { + x.Field = &Field_StringSliceField{b.StringSliceField} + } + if b.StringMapField != nil { + x.Field = &Field_StringMapField{b.StringMapField} + } + if b.ResourceIdField != nil { + x.Field = &Field_ResourceIdField{b.ResourceIdField} + } + if b.ResourceIdSliceField != nil { + x.Field = &Field_ResourceIdSliceField{b.ResourceIdSliceField} + } + if b.ResourceField != nil { + x.Field = &Field_ResourceField{b.ResourceField} + } + if b.ResourceSliceField != nil { + x.Field = &Field_ResourceSliceField{b.ResourceSliceField} + } + return m0 +} + +type case_Field_Field protoreflect.FieldNumber + +func (x case_Field_Field) String() string { + md := file_c1_config_v1_config_proto_msgTypes[3].Descriptor() + if x == 0 { + return "not set" + } + return protoimpl.X.MessageFieldStringOf(md, protoreflect.FieldNumber(x)) +} + +type isField_Field interface { + isField_Field() +} + +type Field_StringField struct { + StringField *StringField `protobuf:"bytes,100,opt,name=string_field,json=stringField,proto3,oneof"` +} + +type Field_IntField struct { + IntField *IntField `protobuf:"bytes,101,opt,name=int_field,json=intField,proto3,oneof"` +} + +type Field_BoolField struct { + BoolField *BoolField `protobuf:"bytes,102,opt,name=bool_field,json=boolField,proto3,oneof"` +} + +type Field_StringSliceField struct { + StringSliceField *StringSliceField `protobuf:"bytes,103,opt,name=string_slice_field,json=stringSliceField,proto3,oneof"` +} + +type Field_StringMapField struct { + StringMapField *StringMapField `protobuf:"bytes,104,opt,name=string_map_field,json=stringMapField,proto3,oneof"` +} + +type Field_ResourceIdField struct { + ResourceIdField *ResourceIdField `protobuf:"bytes,105,opt,name=resource_id_field,json=resourceIdField,proto3,oneof"` +} + +type Field_ResourceIdSliceField struct { + ResourceIdSliceField *ResourceIdSliceField `protobuf:"bytes,106,opt,name=resource_id_slice_field,json=resourceIdSliceField,proto3,oneof"` +} + +type Field_ResourceField struct { + // These are meant to serve as return types for actions. + ResourceField *ResourceField `protobuf:"bytes,107,opt,name=resource_field,json=resourceField,proto3,oneof"` +} + +type Field_ResourceSliceField struct { + ResourceSliceField *ResourceSliceField `protobuf:"bytes,108,opt,name=resource_slice_field,json=resourceSliceField,proto3,oneof"` +} + +func (*Field_StringField) isField_Field() {} + +func (*Field_IntField) isField_Field() {} + +func (*Field_BoolField) isField_Field() {} + +func (*Field_StringSliceField) isField_Field() {} + +func (*Field_StringMapField) isField_Field() {} + +func (*Field_ResourceIdField) isField_Field() {} + +func (*Field_ResourceIdSliceField) isField_Field() {} + +func (*Field_ResourceField) isField_Field() {} + +func (*Field_ResourceSliceField) isField_Field() {} + +// These are partially duplicate with the Resource proto in the connector package. +// This is to avoid import cycles +type Resource struct { + state protoimpl.MessageState `protogen:"hybrid.v1"` + ResourceId *ResourceId `protobuf:"bytes,1,opt,name=resource_id,json=resourceId,proto3" json:"resource_id,omitempty"` + ParentResourceId *ResourceId `protobuf:"bytes,2,opt,name=parent_resource_id,json=parentResourceId,proto3" json:"parent_resource_id,omitempty"` + DisplayName string `protobuf:"bytes,3,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"` + Description string `protobuf:"bytes,4,opt,name=description,proto3" json:"description,omitempty"` + Annotations []*anypb.Any `protobuf:"bytes,5,rep,name=annotations,proto3" json:"annotations,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *Resource) Reset() { + *x = Resource{} + mi := &file_c1_config_v1_config_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *Resource) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Resource) ProtoMessage() {} + +func (x *Resource) ProtoReflect() protoreflect.Message { + mi := &file_c1_config_v1_config_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) +} + +func (x *Resource) GetResourceId() *ResourceId { + if x != nil { + return x.ResourceId + } + return nil +} + +func (x *Resource) GetParentResourceId() *ResourceId { + if x != nil { + return x.ParentResourceId + } + return nil +} + +func (x *Resource) GetDisplayName() string { + if x != nil { + return x.DisplayName + } + return "" +} + +func (x *Resource) GetDescription() string { + if x != nil { + return x.Description + } + return "" +} + +func (x *Resource) GetAnnotations() []*anypb.Any { + if x != nil { + return x.Annotations + } + return nil +} + +func (x *Resource) SetResourceId(v *ResourceId) { + x.ResourceId = v +} + +func (x *Resource) SetParentResourceId(v *ResourceId) { + x.ParentResourceId = v +} + +func (x *Resource) SetDisplayName(v string) { + x.DisplayName = v +} + +func (x *Resource) SetDescription(v string) { + x.Description = v +} + +func (x *Resource) SetAnnotations(v []*anypb.Any) { + x.Annotations = v +} + +func (x *Resource) HasResourceId() bool { + if x == nil { + return false + } + return x.ResourceId != nil +} + +func (x *Resource) HasParentResourceId() bool { + if x == nil { + return false + } + return x.ParentResourceId != nil +} + +func (x *Resource) ClearResourceId() { + x.ResourceId = nil +} + +func (x *Resource) ClearParentResourceId() { + x.ParentResourceId = nil +} + +type Resource_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + ResourceId *ResourceId + ParentResourceId *ResourceId + DisplayName string + Description string + Annotations []*anypb.Any +} + +func (b0 Resource_builder) Build() *Resource { + m0 := &Resource{} + b, x := &b0, m0 + _, _ = b, x + x.ResourceId = b.ResourceId + x.ParentResourceId = b.ParentResourceId + x.DisplayName = b.DisplayName + x.Description = b.Description + x.Annotations = b.Annotations + return m0 +} + +type ResourceId struct { + state protoimpl.MessageState `protogen:"hybrid.v1"` + ResourceTypeId string `protobuf:"bytes,1,opt,name=resource_type_id,json=resourceTypeId,proto3" json:"resource_type_id,omitempty"` + ResourceId string `protobuf:"bytes,2,opt,name=resource_id,json=resourceId,proto3" json:"resource_id,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *ResourceId) Reset() { + *x = ResourceId{} + mi := &file_c1_config_v1_config_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *ResourceId) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ResourceId) ProtoMessage() {} + +func (x *ResourceId) ProtoReflect() protoreflect.Message { + mi := &file_c1_config_v1_config_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) +} + +func (x *ResourceId) GetResourceTypeId() string { + if x != nil { + return x.ResourceTypeId + } + return "" +} + +func (x *ResourceId) GetResourceId() string { + if x != nil { + return x.ResourceId + } + return "" +} + +func (x *ResourceId) SetResourceTypeId(v string) { + x.ResourceTypeId = v +} + +func (x *ResourceId) SetResourceId(v string) { + x.ResourceId = v +} + +type ResourceId_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + ResourceTypeId string + ResourceId string +} + +func (b0 ResourceId_builder) Build() *ResourceId { + m0 := &ResourceId{} + b, x := &b0, m0 + _, _ = b, x + x.ResourceTypeId = b.ResourceTypeId + x.ResourceId = b.ResourceId + return m0 +} + +type ResourceField struct { + state protoimpl.MessageState `protogen:"hybrid.v1"` + DefaultValue *Resource `protobuf:"bytes,1,opt,name=default_value,json=defaultValue,proto3" json:"default_value,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *ResourceField) Reset() { + *x = ResourceField{} + mi := &file_c1_config_v1_config_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *ResourceField) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ResourceField) ProtoMessage() {} + +func (x *ResourceField) ProtoReflect() protoreflect.Message { + mi := &file_c1_config_v1_config_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) +} + +func (x *ResourceField) GetDefaultValue() *Resource { + if x != nil { + return x.DefaultValue + } + return nil +} + +func (x *ResourceField) SetDefaultValue(v *Resource) { + x.DefaultValue = v +} + +func (x *ResourceField) HasDefaultValue() bool { + if x == nil { + return false + } + return x.DefaultValue != nil +} + +func (x *ResourceField) ClearDefaultValue() { + x.DefaultValue = nil +} + +type ResourceField_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + DefaultValue *Resource +} + +func (b0 ResourceField_builder) Build() *ResourceField { + m0 := &ResourceField{} + b, x := &b0, m0 + _, _ = b, x + x.DefaultValue = b.DefaultValue + return m0 +} + +type ResourceSliceField struct { + state protoimpl.MessageState `protogen:"hybrid.v1"` + DefaultValue []*Resource `protobuf:"bytes,1,rep,name=default_value,json=defaultValue,proto3" json:"default_value,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *ResourceSliceField) Reset() { + *x = ResourceSliceField{} + mi := &file_c1_config_v1_config_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *ResourceSliceField) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ResourceSliceField) ProtoMessage() {} + +func (x *ResourceSliceField) ProtoReflect() protoreflect.Message { + mi := &file_c1_config_v1_config_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) +} + +func (x *ResourceSliceField) GetDefaultValue() []*Resource { + if x != nil { + return x.DefaultValue + } + return nil +} + +func (x *ResourceSliceField) SetDefaultValue(v []*Resource) { + x.DefaultValue = v +} + +type ResourceSliceField_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + DefaultValue []*Resource +} + +func (b0 ResourceSliceField_builder) Build() *ResourceSliceField { + m0 := &ResourceSliceField{} + b, x := &b0, m0 + _, _ = b, x + x.DefaultValue = b.DefaultValue + return m0 +} + +type ResourceIdField struct { + state protoimpl.MessageState `protogen:"hybrid.v1"` + DefaultValue *ResourceId `protobuf:"bytes,1,opt,name=default_value,json=defaultValue,proto3" json:"default_value,omitempty"` + Rules *ResourceIDRules `protobuf:"bytes,3,opt,name=rules,proto3,oneof" json:"rules,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *ResourceIdField) Reset() { + *x = ResourceIdField{} + mi := &file_c1_config_v1_config_proto_msgTypes[8] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *ResourceIdField) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ResourceIdField) ProtoMessage() {} + +func (x *ResourceIdField) ProtoReflect() protoreflect.Message { + mi := &file_c1_config_v1_config_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) +} + +func (x *ResourceIdField) GetDefaultValue() *ResourceId { + if x != nil { + return x.DefaultValue + } + return nil +} + +func (x *ResourceIdField) GetRules() *ResourceIDRules { + if x != nil { + return x.Rules + } + return nil +} + +func (x *ResourceIdField) SetDefaultValue(v *ResourceId) { + x.DefaultValue = v +} + +func (x *ResourceIdField) SetRules(v *ResourceIDRules) { + x.Rules = v +} + +func (x *ResourceIdField) HasDefaultValue() bool { + if x == nil { + return false + } + return x.DefaultValue != nil +} + +func (x *ResourceIdField) HasRules() bool { + if x == nil { + return false + } + return x.Rules != nil +} + +func (x *ResourceIdField) ClearDefaultValue() { + x.DefaultValue = nil +} + +func (x *ResourceIdField) ClearRules() { + x.Rules = nil +} + +type ResourceIdField_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + DefaultValue *ResourceId + Rules *ResourceIDRules +} + +func (b0 ResourceIdField_builder) Build() *ResourceIdField { + m0 := &ResourceIdField{} + b, x := &b0, m0 + _, _ = b, x + x.DefaultValue = b.DefaultValue + x.Rules = b.Rules + return m0 +} + +type ResourceIdSliceField struct { + state protoimpl.MessageState `protogen:"hybrid.v1"` + DefaultValue []*ResourceIdField `protobuf:"bytes,1,rep,name=default_value,json=defaultValue,proto3" json:"default_value,omitempty"` + Rules *RepeatedResourceIdRules `protobuf:"bytes,2,opt,name=rules,proto3,oneof" json:"rules,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *ResourceIdSliceField) Reset() { + *x = ResourceIdSliceField{} + mi := &file_c1_config_v1_config_proto_msgTypes[9] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *ResourceIdSliceField) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ResourceIdSliceField) ProtoMessage() {} + +func (x *ResourceIdSliceField) ProtoReflect() protoreflect.Message { + mi := &file_c1_config_v1_config_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) +} + +func (x *ResourceIdSliceField) GetDefaultValue() []*ResourceIdField { + if x != nil { + return x.DefaultValue + } + return nil +} + +func (x *ResourceIdSliceField) GetRules() *RepeatedResourceIdRules { + if x != nil { + return x.Rules + } + return nil +} + +func (x *ResourceIdSliceField) SetDefaultValue(v []*ResourceIdField) { + x.DefaultValue = v +} + +func (x *ResourceIdSliceField) SetRules(v *RepeatedResourceIdRules) { + x.Rules = v +} + +func (x *ResourceIdSliceField) HasRules() bool { + if x == nil { + return false + } + return x.Rules != nil +} + +func (x *ResourceIdSliceField) ClearRules() { + x.Rules = nil +} + +type ResourceIdSliceField_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + DefaultValue []*ResourceIdField + Rules *RepeatedResourceIdRules +} + +func (b0 ResourceIdSliceField_builder) Build() *ResourceIdSliceField { + m0 := &ResourceIdSliceField{} + b, x := &b0, m0 + _, _ = b, x + x.DefaultValue = b.DefaultValue + x.Rules = b.Rules + return m0 +} + +type IntField struct { + state protoimpl.MessageState `protogen:"hybrid.v1"` + // rules + DefaultValue int64 `protobuf:"varint,1,opt,name=default_value,json=defaultValue,proto3" json:"default_value,omitempty"` + Rules *Int64Rules `protobuf:"bytes,2,opt,name=rules,proto3,oneof" json:"rules,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *IntField) Reset() { + *x = IntField{} + mi := &file_c1_config_v1_config_proto_msgTypes[10] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *IntField) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*IntField) ProtoMessage() {} + +func (x *IntField) ProtoReflect() protoreflect.Message { + mi := &file_c1_config_v1_config_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) +} + +func (x *IntField) GetDefaultValue() int64 { + if x != nil { + return x.DefaultValue + } + return 0 +} + +func (x *IntField) GetRules() *Int64Rules { + if x != nil { + return x.Rules + } + return nil +} + +func (x *IntField) SetDefaultValue(v int64) { + x.DefaultValue = v +} + +func (x *IntField) SetRules(v *Int64Rules) { + x.Rules = v +} + +func (x *IntField) HasRules() bool { + if x == nil { + return false + } + return x.Rules != nil +} + +func (x *IntField) ClearRules() { + x.Rules = nil +} + +type IntField_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // rules + DefaultValue int64 + Rules *Int64Rules +} + +func (b0 IntField_builder) Build() *IntField { + m0 := &IntField{} + b, x := &b0, m0 + _, _ = b, x + x.DefaultValue = b.DefaultValue + x.Rules = b.Rules + return m0 +} + +type BoolField struct { + state protoimpl.MessageState `protogen:"hybrid.v1"` + DefaultValue bool `protobuf:"varint,1,opt,name=default_value,json=defaultValue,proto3" json:"default_value,omitempty"` + Rules *BoolRules `protobuf:"bytes,2,opt,name=rules,proto3,oneof" json:"rules,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *BoolField) Reset() { + *x = BoolField{} + mi := &file_c1_config_v1_config_proto_msgTypes[11] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *BoolField) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*BoolField) ProtoMessage() {} + +func (x *BoolField) ProtoReflect() protoreflect.Message { + mi := &file_c1_config_v1_config_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) +} + +func (x *BoolField) GetDefaultValue() bool { + if x != nil { + return x.DefaultValue + } + return false +} + +func (x *BoolField) GetRules() *BoolRules { + if x != nil { + return x.Rules + } + return nil +} + +func (x *BoolField) SetDefaultValue(v bool) { + x.DefaultValue = v +} + +func (x *BoolField) SetRules(v *BoolRules) { + x.Rules = v +} + +func (x *BoolField) HasRules() bool { + if x == nil { + return false + } + return x.Rules != nil +} + +func (x *BoolField) ClearRules() { + x.Rules = nil +} + +type BoolField_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + DefaultValue bool + Rules *BoolRules +} + +func (b0 BoolField_builder) Build() *BoolField { + m0 := &BoolField{} + b, x := &b0, m0 + _, _ = b, x + x.DefaultValue = b.DefaultValue + x.Rules = b.Rules + return m0 +} + +type StringSliceField struct { + state protoimpl.MessageState `protogen:"hybrid.v1"` + DefaultValue []string `protobuf:"bytes,1,rep,name=default_value,json=defaultValue,proto3" json:"default_value,omitempty"` + Rules *RepeatedStringRules `protobuf:"bytes,2,opt,name=rules,proto3,oneof" json:"rules,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *StringSliceField) Reset() { *x = StringSliceField{} - mi := &file_c1_config_v1_config_proto_msgTypes[5] + mi := &file_c1_config_v1_config_proto_msgTypes[12] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -637,7 +1839,7 @@ func (x *StringSliceField) String() string { func (*StringSliceField) ProtoMessage() {} func (x *StringSliceField) ProtoReflect() protoreflect.Message { - mi := &file_c1_config_v1_config_proto_msgTypes[5] + mi := &file_c1_config_v1_config_proto_msgTypes[12] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -648,11 +1850,6 @@ func (x *StringSliceField) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use StringSliceField.ProtoReflect.Descriptor instead. -func (*StringSliceField) Descriptor() ([]byte, []int) { - return file_c1_config_v1_config_proto_rawDescGZIP(), []int{5} -} - func (x *StringSliceField) GetDefaultValue() []string { if x != nil { return x.DefaultValue @@ -667,8 +1864,43 @@ func (x *StringSliceField) GetRules() *RepeatedStringRules { return nil } +func (x *StringSliceField) SetDefaultValue(v []string) { + x.DefaultValue = v +} + +func (x *StringSliceField) SetRules(v *RepeatedStringRules) { + x.Rules = v +} + +func (x *StringSliceField) HasRules() bool { + if x == nil { + return false + } + return x.Rules != nil +} + +func (x *StringSliceField) ClearRules() { + x.Rules = nil +} + +type StringSliceField_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + DefaultValue []string + Rules *RepeatedStringRules +} + +func (b0 StringSliceField_builder) Build() *StringSliceField { + m0 := &StringSliceField{} + b, x := &b0, m0 + _, _ = b, x + x.DefaultValue = b.DefaultValue + x.Rules = b.Rules + return m0 +} + type StringMapField struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` DefaultValue map[string]*anypb.Any `protobuf:"bytes,1,rep,name=default_value,json=defaultValue,proto3" json:"default_value,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"` Rules *StringMapRules `protobuf:"bytes,2,opt,name=rules,proto3,oneof" json:"rules,omitempty"` unknownFields protoimpl.UnknownFields @@ -677,7 +1909,7 @@ type StringMapField struct { func (x *StringMapField) Reset() { *x = StringMapField{} - mi := &file_c1_config_v1_config_proto_msgTypes[6] + mi := &file_c1_config_v1_config_proto_msgTypes[13] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -689,7 +1921,7 @@ func (x *StringMapField) String() string { func (*StringMapField) ProtoMessage() {} func (x *StringMapField) ProtoReflect() protoreflect.Message { - mi := &file_c1_config_v1_config_proto_msgTypes[6] + mi := &file_c1_config_v1_config_proto_msgTypes[13] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -700,11 +1932,6 @@ func (x *StringMapField) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use StringMapField.ProtoReflect.Descriptor instead. -func (*StringMapField) Descriptor() ([]byte, []int) { - return file_c1_config_v1_config_proto_rawDescGZIP(), []int{6} -} - func (x *StringMapField) GetDefaultValue() map[string]*anypb.Any { if x != nil { return x.DefaultValue @@ -719,8 +1946,43 @@ func (x *StringMapField) GetRules() *StringMapRules { return nil } +func (x *StringMapField) SetDefaultValue(v map[string]*anypb.Any) { + x.DefaultValue = v +} + +func (x *StringMapField) SetRules(v *StringMapRules) { + x.Rules = v +} + +func (x *StringMapField) HasRules() bool { + if x == nil { + return false + } + return x.Rules != nil +} + +func (x *StringMapField) ClearRules() { + x.Rules = nil +} + +type StringMapField_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + DefaultValue map[string]*anypb.Any + Rules *StringMapRules +} + +func (b0 StringMapField_builder) Build() *StringMapField { + m0 := &StringMapField{} + b, x := &b0, m0 + _, _ = b, x + x.DefaultValue = b.DefaultValue + x.Rules = b.Rules + return m0 +} + type StringFieldOption struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` DisplayName string `protobuf:"bytes,3,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"` @@ -730,7 +1992,7 @@ type StringFieldOption struct { func (x *StringFieldOption) Reset() { *x = StringFieldOption{} - mi := &file_c1_config_v1_config_proto_msgTypes[7] + mi := &file_c1_config_v1_config_proto_msgTypes[14] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -742,7 +2004,7 @@ func (x *StringFieldOption) String() string { func (*StringFieldOption) ProtoMessage() {} func (x *StringFieldOption) ProtoReflect() protoreflect.Message { - mi := &file_c1_config_v1_config_proto_msgTypes[7] + mi := &file_c1_config_v1_config_proto_msgTypes[14] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -753,11 +2015,6 @@ func (x *StringFieldOption) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use StringFieldOption.ProtoReflect.Descriptor instead. -func (*StringFieldOption) Descriptor() ([]byte, []int) { - return file_c1_config_v1_config_proto_rawDescGZIP(), []int{7} -} - func (x *StringFieldOption) GetName() string { if x != nil { return x.Name @@ -779,8 +2036,38 @@ func (x *StringFieldOption) GetDisplayName() string { return "" } +func (x *StringFieldOption) SetName(v string) { + x.Name = v +} + +func (x *StringFieldOption) SetValue(v string) { + x.Value = v +} + +func (x *StringFieldOption) SetDisplayName(v string) { + x.DisplayName = v +} + +type StringFieldOption_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Name string + Value string + DisplayName string +} + +func (b0 StringFieldOption_builder) Build() *StringFieldOption { + m0 := &StringFieldOption{} + b, x := &b0, m0 + _, _ = b, x + x.Name = b.Name + x.Value = b.Value + x.DisplayName = b.DisplayName + return m0 +} + type StringField struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` DefaultValue string `protobuf:"bytes,1,opt,name=default_value,json=defaultValue,proto3" json:"default_value,omitempty"` Rules *StringRules `protobuf:"bytes,2,opt,name=rules,proto3,oneof" json:"rules,omitempty"` Type StringFieldType `protobuf:"varint,3,opt,name=type,proto3,enum=c1.config.v1.StringFieldType" json:"type,omitempty"` @@ -793,7 +2080,7 @@ type StringField struct { func (x *StringField) Reset() { *x = StringField{} - mi := &file_c1_config_v1_config_proto_msgTypes[8] + mi := &file_c1_config_v1_config_proto_msgTypes[15] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -805,7 +2092,7 @@ func (x *StringField) String() string { func (*StringField) ProtoMessage() {} func (x *StringField) ProtoReflect() protoreflect.Message { - mi := &file_c1_config_v1_config_proto_msgTypes[8] + mi := &file_c1_config_v1_config_proto_msgTypes[15] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -816,11 +2103,6 @@ func (x *StringField) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use StringField.ProtoReflect.Descriptor instead. -func (*StringField) Descriptor() ([]byte, []int) { - return file_c1_config_v1_config_proto_rawDescGZIP(), []int{8} -} - func (x *StringField) GetDefaultValue() string { if x != nil { return x.DefaultValue @@ -856,240 +2138,249 @@ func (x *StringField) GetOptions() []*StringFieldOption { return nil } -var File_c1_config_v1_config_proto protoreflect.FileDescriptor +func (x *StringField) SetDefaultValue(v string) { + x.DefaultValue = v +} -var file_c1_config_v1_config_proto_rawDesc = string([]byte{ - 0x0a, 0x19, 0x63, 0x31, 0x2f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2f, 0x76, 0x31, 0x2f, 0x63, - 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0c, 0x63, 0x31, 0x2e, - 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x76, 0x31, 0x1a, 0x18, 0x63, 0x31, 0x2f, 0x63, 0x6f, - 0x6e, 0x66, 0x69, 0x67, 0x2f, 0x76, 0x31, 0x2f, 0x72, 0x75, 0x6c, 0x65, 0x73, 0x2e, 0x70, 0x72, - 0x6f, 0x74, 0x6f, 0x1a, 0x19, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x61, 0x6e, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x93, - 0x03, 0x0a, 0x0d, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, - 0x12, 0x2b, 0x0a, 0x06, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, - 0x32, 0x13, 0x2e, 0x63, 0x31, 0x2e, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x76, 0x31, 0x2e, - 0x46, 0x69, 0x65, 0x6c, 0x64, 0x52, 0x06, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x73, 0x12, 0x3a, 0x0a, - 0x0b, 0x63, 0x6f, 0x6e, 0x73, 0x74, 0x72, 0x61, 0x69, 0x6e, 0x74, 0x73, 0x18, 0x02, 0x20, 0x03, - 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x63, 0x31, 0x2e, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x76, - 0x31, 0x2e, 0x43, 0x6f, 0x6e, 0x73, 0x74, 0x72, 0x61, 0x69, 0x6e, 0x74, 0x52, 0x0b, 0x63, 0x6f, - 0x6e, 0x73, 0x74, 0x72, 0x61, 0x69, 0x6e, 0x74, 0x73, 0x12, 0x21, 0x0a, 0x0c, 0x64, 0x69, 0x73, - 0x70, 0x6c, 0x61, 0x79, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x0b, 0x64, 0x69, 0x73, 0x70, 0x6c, 0x61, 0x79, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x19, 0x0a, 0x08, - 0x68, 0x65, 0x6c, 0x70, 0x5f, 0x75, 0x72, 0x6c, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, - 0x68, 0x65, 0x6c, 0x70, 0x55, 0x72, 0x6c, 0x12, 0x19, 0x0a, 0x08, 0x69, 0x63, 0x6f, 0x6e, 0x5f, - 0x75, 0x72, 0x6c, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x69, 0x63, 0x6f, 0x6e, 0x55, - 0x72, 0x6c, 0x12, 0x21, 0x0a, 0x0c, 0x69, 0x73, 0x5f, 0x64, 0x69, 0x72, 0x65, 0x63, 0x74, 0x6f, - 0x72, 0x79, 0x18, 0x07, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0b, 0x69, 0x73, 0x44, 0x69, 0x72, 0x65, - 0x63, 0x74, 0x6f, 0x72, 0x79, 0x12, 0x1d, 0x0a, 0x0a, 0x63, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, - 0x5f, 0x69, 0x64, 0x18, 0x08, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x63, 0x61, 0x74, 0x61, 0x6c, - 0x6f, 0x67, 0x49, 0x64, 0x12, 0x3e, 0x0a, 0x1b, 0x73, 0x75, 0x70, 0x70, 0x6f, 0x72, 0x74, 0x73, - 0x5f, 0x65, 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x5f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, - 0x63, 0x65, 0x73, 0x18, 0x09, 0x20, 0x01, 0x28, 0x08, 0x52, 0x19, 0x73, 0x75, 0x70, 0x70, 0x6f, - 0x72, 0x74, 0x73, 0x45, 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x52, 0x65, 0x73, 0x6f, 0x75, - 0x72, 0x63, 0x65, 0x73, 0x12, 0x3e, 0x0a, 0x1b, 0x72, 0x65, 0x71, 0x75, 0x69, 0x72, 0x65, 0x73, - 0x5f, 0x65, 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x5f, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, - 0x74, 0x6f, 0x72, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x08, 0x52, 0x19, 0x72, 0x65, 0x71, 0x75, 0x69, - 0x72, 0x65, 0x73, 0x45, 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x43, 0x6f, 0x6e, 0x6e, 0x65, - 0x63, 0x74, 0x6f, 0x72, 0x22, 0xea, 0x01, 0x0a, 0x0a, 0x43, 0x6f, 0x6e, 0x73, 0x74, 0x72, 0x61, - 0x69, 0x6e, 0x74, 0x12, 0x30, 0x0a, 0x04, 0x6b, 0x69, 0x6e, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x0e, 0x32, 0x1c, 0x2e, 0x63, 0x31, 0x2e, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x76, 0x31, - 0x2e, 0x43, 0x6f, 0x6e, 0x73, 0x74, 0x72, 0x61, 0x69, 0x6e, 0x74, 0x4b, 0x69, 0x6e, 0x64, 0x52, - 0x04, 0x6b, 0x69, 0x6e, 0x64, 0x12, 0x1f, 0x0a, 0x0b, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x5f, 0x6e, - 0x61, 0x6d, 0x65, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0a, 0x66, 0x69, 0x65, 0x6c, - 0x64, 0x4e, 0x61, 0x6d, 0x65, 0x73, 0x12, 0x32, 0x0a, 0x15, 0x73, 0x65, 0x63, 0x6f, 0x6e, 0x64, - 0x61, 0x72, 0x79, 0x5f, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x73, 0x18, - 0x03, 0x20, 0x03, 0x28, 0x09, 0x52, 0x13, 0x73, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x61, 0x72, 0x79, - 0x46, 0x69, 0x65, 0x6c, 0x64, 0x4e, 0x61, 0x6d, 0x65, 0x73, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, - 0x6d, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x1b, - 0x0a, 0x09, 0x68, 0x65, 0x6c, 0x70, 0x5f, 0x74, 0x65, 0x78, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x08, 0x68, 0x65, 0x6c, 0x70, 0x54, 0x65, 0x78, 0x74, 0x12, 0x24, 0x0a, 0x0e, 0x69, - 0x73, 0x5f, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x5f, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x18, 0x06, 0x20, - 0x01, 0x28, 0x08, 0x52, 0x0c, 0x69, 0x73, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x47, 0x72, 0x6f, 0x75, - 0x70, 0x22, 0xab, 0x04, 0x0a, 0x05, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6e, - 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, - 0x21, 0x0a, 0x0c, 0x64, 0x69, 0x73, 0x70, 0x6c, 0x61, 0x79, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, - 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x69, 0x73, 0x70, 0x6c, 0x61, 0x79, 0x4e, 0x61, - 0x6d, 0x65, 0x12, 0x20, 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, - 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, - 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x20, 0x0a, 0x0b, 0x70, 0x6c, 0x61, 0x63, 0x65, 0x68, 0x6f, 0x6c, - 0x64, 0x65, 0x72, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x70, 0x6c, 0x61, 0x63, 0x65, - 0x68, 0x6f, 0x6c, 0x64, 0x65, 0x72, 0x12, 0x1f, 0x0a, 0x0b, 0x69, 0x73, 0x5f, 0x72, 0x65, 0x71, - 0x75, 0x69, 0x72, 0x65, 0x64, 0x18, 0x05, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0a, 0x69, 0x73, 0x52, - 0x65, 0x71, 0x75, 0x69, 0x72, 0x65, 0x64, 0x12, 0x15, 0x0a, 0x06, 0x69, 0x73, 0x5f, 0x6f, 0x70, - 0x73, 0x18, 0x06, 0x20, 0x01, 0x28, 0x08, 0x52, 0x05, 0x69, 0x73, 0x4f, 0x70, 0x73, 0x12, 0x1b, - 0x0a, 0x09, 0x69, 0x73, 0x5f, 0x73, 0x65, 0x63, 0x72, 0x65, 0x74, 0x18, 0x07, 0x20, 0x01, 0x28, - 0x08, 0x52, 0x08, 0x69, 0x73, 0x53, 0x65, 0x63, 0x72, 0x65, 0x74, 0x12, 0x3e, 0x0a, 0x0c, 0x73, - 0x74, 0x72, 0x69, 0x6e, 0x67, 0x5f, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x18, 0x64, 0x20, 0x01, 0x28, - 0x0b, 0x32, 0x19, 0x2e, 0x63, 0x31, 0x2e, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x76, 0x31, - 0x2e, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x48, 0x00, 0x52, 0x0b, - 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x12, 0x35, 0x0a, 0x09, 0x69, - 0x6e, 0x74, 0x5f, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x18, 0x65, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x16, - 0x2e, 0x63, 0x31, 0x2e, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x76, 0x31, 0x2e, 0x49, 0x6e, - 0x74, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x48, 0x00, 0x52, 0x08, 0x69, 0x6e, 0x74, 0x46, 0x69, 0x65, - 0x6c, 0x64, 0x12, 0x38, 0x0a, 0x0a, 0x62, 0x6f, 0x6f, 0x6c, 0x5f, 0x66, 0x69, 0x65, 0x6c, 0x64, - 0x18, 0x66, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x63, 0x31, 0x2e, 0x63, 0x6f, 0x6e, 0x66, - 0x69, 0x67, 0x2e, 0x76, 0x31, 0x2e, 0x42, 0x6f, 0x6f, 0x6c, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x48, - 0x00, 0x52, 0x09, 0x62, 0x6f, 0x6f, 0x6c, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x12, 0x4e, 0x0a, 0x12, - 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x5f, 0x73, 0x6c, 0x69, 0x63, 0x65, 0x5f, 0x66, 0x69, 0x65, - 0x6c, 0x64, 0x18, 0x67, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x63, 0x31, 0x2e, 0x63, 0x6f, - 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x53, 0x6c, - 0x69, 0x63, 0x65, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x48, 0x00, 0x52, 0x10, 0x73, 0x74, 0x72, 0x69, - 0x6e, 0x67, 0x53, 0x6c, 0x69, 0x63, 0x65, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x12, 0x48, 0x0a, 0x10, - 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x5f, 0x6d, 0x61, 0x70, 0x5f, 0x66, 0x69, 0x65, 0x6c, 0x64, - 0x18, 0x68, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x63, 0x31, 0x2e, 0x63, 0x6f, 0x6e, 0x66, - 0x69, 0x67, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x4d, 0x61, 0x70, 0x46, - 0x69, 0x65, 0x6c, 0x64, 0x48, 0x00, 0x52, 0x0e, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x4d, 0x61, - 0x70, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x42, 0x07, 0x0a, 0x05, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x22, - 0x6e, 0x0a, 0x08, 0x49, 0x6e, 0x74, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x12, 0x23, 0x0a, 0x0d, 0x64, - 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x03, 0x52, 0x0c, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x56, 0x61, 0x6c, 0x75, 0x65, - 0x12, 0x33, 0x0a, 0x05, 0x72, 0x75, 0x6c, 0x65, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, - 0x18, 0x2e, 0x63, 0x31, 0x2e, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x76, 0x31, 0x2e, 0x49, - 0x6e, 0x74, 0x36, 0x34, 0x52, 0x75, 0x6c, 0x65, 0x73, 0x48, 0x00, 0x52, 0x05, 0x72, 0x75, 0x6c, - 0x65, 0x73, 0x88, 0x01, 0x01, 0x42, 0x08, 0x0a, 0x06, 0x5f, 0x72, 0x75, 0x6c, 0x65, 0x73, 0x22, - 0x6e, 0x0a, 0x09, 0x42, 0x6f, 0x6f, 0x6c, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x12, 0x23, 0x0a, 0x0d, - 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x08, 0x52, 0x0c, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x56, 0x61, 0x6c, 0x75, - 0x65, 0x12, 0x32, 0x0a, 0x05, 0x72, 0x75, 0x6c, 0x65, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, - 0x32, 0x17, 0x2e, 0x63, 0x31, 0x2e, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x76, 0x31, 0x2e, - 0x42, 0x6f, 0x6f, 0x6c, 0x52, 0x75, 0x6c, 0x65, 0x73, 0x48, 0x00, 0x52, 0x05, 0x72, 0x75, 0x6c, - 0x65, 0x73, 0x88, 0x01, 0x01, 0x42, 0x08, 0x0a, 0x06, 0x5f, 0x72, 0x75, 0x6c, 0x65, 0x73, 0x22, - 0x7f, 0x0a, 0x10, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x53, 0x6c, 0x69, 0x63, 0x65, 0x46, 0x69, - 0x65, 0x6c, 0x64, 0x12, 0x23, 0x0a, 0x0d, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x5f, 0x76, - 0x61, 0x6c, 0x75, 0x65, 0x18, 0x01, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0c, 0x64, 0x65, 0x66, 0x61, - 0x75, 0x6c, 0x74, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x3c, 0x0a, 0x05, 0x72, 0x75, 0x6c, 0x65, - 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x63, 0x31, 0x2e, 0x63, 0x6f, 0x6e, - 0x66, 0x69, 0x67, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x70, 0x65, 0x61, 0x74, 0x65, 0x64, 0x53, - 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x75, 0x6c, 0x65, 0x73, 0x48, 0x00, 0x52, 0x05, 0x72, 0x75, - 0x6c, 0x65, 0x73, 0x88, 0x01, 0x01, 0x42, 0x08, 0x0a, 0x06, 0x5f, 0x72, 0x75, 0x6c, 0x65, 0x73, - 0x22, 0xff, 0x01, 0x0a, 0x0e, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x4d, 0x61, 0x70, 0x46, 0x69, - 0x65, 0x6c, 0x64, 0x12, 0x53, 0x0a, 0x0d, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x5f, 0x76, - 0x61, 0x6c, 0x75, 0x65, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2e, 0x2e, 0x63, 0x31, 0x2e, - 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, - 0x4d, 0x61, 0x70, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x2e, 0x44, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, - 0x56, 0x61, 0x6c, 0x75, 0x65, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x0c, 0x64, 0x65, 0x66, 0x61, - 0x75, 0x6c, 0x74, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x37, 0x0a, 0x05, 0x72, 0x75, 0x6c, 0x65, - 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x63, 0x31, 0x2e, 0x63, 0x6f, 0x6e, - 0x66, 0x69, 0x67, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x4d, 0x61, 0x70, - 0x52, 0x75, 0x6c, 0x65, 0x73, 0x48, 0x00, 0x52, 0x05, 0x72, 0x75, 0x6c, 0x65, 0x73, 0x88, 0x01, - 0x01, 0x1a, 0x55, 0x0a, 0x11, 0x44, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x56, 0x61, 0x6c, 0x75, - 0x65, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x2a, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, - 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, - 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x41, 0x6e, 0x79, 0x52, 0x05, 0x76, - 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x42, 0x08, 0x0a, 0x06, 0x5f, 0x72, 0x75, 0x6c, - 0x65, 0x73, 0x22, 0x60, 0x0a, 0x11, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x46, 0x69, 0x65, 0x6c, - 0x64, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x76, - 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, - 0x65, 0x12, 0x21, 0x0a, 0x0c, 0x64, 0x69, 0x73, 0x70, 0x6c, 0x61, 0x79, 0x5f, 0x6e, 0x61, 0x6d, - 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x69, 0x73, 0x70, 0x6c, 0x61, 0x79, - 0x4e, 0x61, 0x6d, 0x65, 0x22, 0x8f, 0x02, 0x0a, 0x0b, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x46, - 0x69, 0x65, 0x6c, 0x64, 0x12, 0x23, 0x0a, 0x0d, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x5f, - 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x64, 0x65, 0x66, - 0x61, 0x75, 0x6c, 0x74, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x34, 0x0a, 0x05, 0x72, 0x75, 0x6c, - 0x65, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x63, 0x31, 0x2e, 0x63, 0x6f, - 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x75, - 0x6c, 0x65, 0x73, 0x48, 0x00, 0x52, 0x05, 0x72, 0x75, 0x6c, 0x65, 0x73, 0x88, 0x01, 0x01, 0x12, - 0x31, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1d, 0x2e, - 0x63, 0x31, 0x2e, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x74, 0x72, - 0x69, 0x6e, 0x67, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x54, 0x79, 0x70, 0x65, 0x52, 0x04, 0x74, 0x79, - 0x70, 0x65, 0x12, 0x2d, 0x0a, 0x12, 0x61, 0x6c, 0x6c, 0x6f, 0x77, 0x65, 0x64, 0x5f, 0x65, 0x78, - 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x09, 0x52, 0x11, - 0x61, 0x6c, 0x6c, 0x6f, 0x77, 0x65, 0x64, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, - 0x73, 0x12, 0x39, 0x0a, 0x07, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x05, 0x20, 0x03, - 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x63, 0x31, 0x2e, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x76, - 0x31, 0x2e, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x4f, 0x70, 0x74, - 0x69, 0x6f, 0x6e, 0x52, 0x07, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x42, 0x08, 0x0a, 0x06, - 0x5f, 0x72, 0x75, 0x6c, 0x65, 0x73, 0x2a, 0xc4, 0x01, 0x0a, 0x0e, 0x43, 0x6f, 0x6e, 0x73, 0x74, - 0x72, 0x61, 0x69, 0x6e, 0x74, 0x4b, 0x69, 0x6e, 0x64, 0x12, 0x1f, 0x0a, 0x1b, 0x43, 0x4f, 0x4e, - 0x53, 0x54, 0x52, 0x41, 0x49, 0x4e, 0x54, 0x5f, 0x4b, 0x49, 0x4e, 0x44, 0x5f, 0x55, 0x4e, 0x53, - 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x25, 0x0a, 0x21, 0x43, 0x4f, - 0x4e, 0x53, 0x54, 0x52, 0x41, 0x49, 0x4e, 0x54, 0x5f, 0x4b, 0x49, 0x4e, 0x44, 0x5f, 0x52, 0x45, - 0x51, 0x55, 0x49, 0x52, 0x45, 0x44, 0x5f, 0x54, 0x4f, 0x47, 0x45, 0x54, 0x48, 0x45, 0x52, 0x10, - 0x01, 0x12, 0x20, 0x0a, 0x1c, 0x43, 0x4f, 0x4e, 0x53, 0x54, 0x52, 0x41, 0x49, 0x4e, 0x54, 0x5f, - 0x4b, 0x49, 0x4e, 0x44, 0x5f, 0x41, 0x54, 0x5f, 0x4c, 0x45, 0x41, 0x53, 0x54, 0x5f, 0x4f, 0x4e, - 0x45, 0x10, 0x02, 0x12, 0x26, 0x0a, 0x22, 0x43, 0x4f, 0x4e, 0x53, 0x54, 0x52, 0x41, 0x49, 0x4e, - 0x54, 0x5f, 0x4b, 0x49, 0x4e, 0x44, 0x5f, 0x4d, 0x55, 0x54, 0x55, 0x41, 0x4c, 0x4c, 0x59, 0x5f, - 0x45, 0x58, 0x43, 0x4c, 0x55, 0x53, 0x49, 0x56, 0x45, 0x10, 0x03, 0x12, 0x20, 0x0a, 0x1c, 0x43, - 0x4f, 0x4e, 0x53, 0x54, 0x52, 0x41, 0x49, 0x4e, 0x54, 0x5f, 0x4b, 0x49, 0x4e, 0x44, 0x5f, 0x44, - 0x45, 0x50, 0x45, 0x4e, 0x44, 0x45, 0x4e, 0x54, 0x5f, 0x4f, 0x4e, 0x10, 0x04, 0x2a, 0xc9, 0x01, - 0x0a, 0x0f, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x54, 0x79, 0x70, - 0x65, 0x12, 0x26, 0x0a, 0x22, 0x53, 0x54, 0x52, 0x49, 0x4e, 0x47, 0x5f, 0x46, 0x49, 0x45, 0x4c, - 0x44, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x54, 0x45, 0x58, 0x54, 0x5f, 0x55, 0x4e, 0x53, 0x50, - 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x1c, 0x0a, 0x18, 0x53, 0x54, 0x52, - 0x49, 0x4e, 0x47, 0x5f, 0x46, 0x49, 0x45, 0x4c, 0x44, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x52, - 0x41, 0x4e, 0x44, 0x4f, 0x4d, 0x10, 0x01, 0x12, 0x1c, 0x0a, 0x18, 0x53, 0x54, 0x52, 0x49, 0x4e, - 0x47, 0x5f, 0x46, 0x49, 0x45, 0x4c, 0x44, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x4f, 0x41, 0x55, - 0x54, 0x48, 0x32, 0x10, 0x02, 0x12, 0x2f, 0x0a, 0x2b, 0x53, 0x54, 0x52, 0x49, 0x4e, 0x47, 0x5f, - 0x46, 0x49, 0x45, 0x4c, 0x44, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x43, 0x4f, 0x4e, 0x4e, 0x45, - 0x43, 0x54, 0x4f, 0x52, 0x5f, 0x44, 0x45, 0x52, 0x49, 0x56, 0x45, 0x44, 0x5f, 0x4f, 0x50, 0x54, - 0x49, 0x4f, 0x4e, 0x53, 0x10, 0x03, 0x12, 0x21, 0x0a, 0x1d, 0x53, 0x54, 0x52, 0x49, 0x4e, 0x47, - 0x5f, 0x46, 0x49, 0x45, 0x4c, 0x44, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x46, 0x49, 0x4c, 0x45, - 0x5f, 0x55, 0x50, 0x4c, 0x4f, 0x41, 0x44, 0x10, 0x04, 0x42, 0x33, 0x5a, 0x31, 0x67, 0x69, 0x74, - 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x63, 0x6f, 0x6e, 0x64, 0x75, 0x63, 0x74, 0x6f, - 0x72, 0x6f, 0x6e, 0x65, 0x2f, 0x62, 0x61, 0x74, 0x6f, 0x6e, 0x2d, 0x73, 0x64, 0x6b, 0x2f, 0x70, - 0x62, 0x2f, 0x63, 0x31, 0x2f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2f, 0x76, 0x31, 0x62, 0x06, - 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, -}) +func (x *StringField) SetRules(v *StringRules) { + x.Rules = v +} -var ( - file_c1_config_v1_config_proto_rawDescOnce sync.Once - file_c1_config_v1_config_proto_rawDescData []byte -) +func (x *StringField) SetType(v StringFieldType) { + x.Type = v +} -func file_c1_config_v1_config_proto_rawDescGZIP() []byte { - file_c1_config_v1_config_proto_rawDescOnce.Do(func() { - file_c1_config_v1_config_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_c1_config_v1_config_proto_rawDesc), len(file_c1_config_v1_config_proto_rawDesc))) - }) - return file_c1_config_v1_config_proto_rawDescData +func (x *StringField) SetAllowedExtensions(v []string) { + x.AllowedExtensions = v } +func (x *StringField) SetOptions(v []*StringFieldOption) { + x.Options = v +} + +func (x *StringField) HasRules() bool { + if x == nil { + return false + } + return x.Rules != nil +} + +func (x *StringField) ClearRules() { + x.Rules = nil +} + +type StringField_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + DefaultValue string + Rules *StringRules + Type StringFieldType + // only used for FileUpload atm, oneofs are evil + AllowedExtensions []string + Options []*StringFieldOption +} + +func (b0 StringField_builder) Build() *StringField { + m0 := &StringField{} + b, x := &b0, m0 + _, _ = b, x + x.DefaultValue = b.DefaultValue + x.Rules = b.Rules + x.Type = b.Type + x.AllowedExtensions = b.AllowedExtensions + x.Options = b.Options + return m0 +} + +var File_c1_config_v1_config_proto protoreflect.FileDescriptor + +const file_c1_config_v1_config_proto_rawDesc = "" + + "\n" + + "\x19c1/config/v1/config.proto\x12\fc1.config.v1\x1a\x18c1/config/v1/rules.proto\x1a\x19google/protobuf/any.proto\"\xd0\x03\n" + + "\rConfiguration\x12+\n" + + "\x06fields\x18\x01 \x03(\v2\x13.c1.config.v1.FieldR\x06fields\x12:\n" + + "\vconstraints\x18\x02 \x03(\v2\x18.c1.config.v1.ConstraintR\vconstraints\x12!\n" + + "\fdisplay_name\x18\x03 \x01(\tR\vdisplayName\x12\x19\n" + + "\bhelp_url\x18\x04 \x01(\tR\ahelpUrl\x12\x19\n" + + "\bicon_url\x18\x05 \x01(\tR\aiconUrl\x12!\n" + + "\fis_directory\x18\a \x01(\bR\visDirectory\x12\x1d\n" + + "\n" + + "catalog_id\x18\b \x01(\tR\tcatalogId\x12>\n" + + "\x1bsupports_external_resources\x18\t \x01(\bR\x19supportsExternalResources\x12>\n" + + "\x1brequires_external_connector\x18\n" + + " \x01(\bR\x19requiresExternalConnector\x12;\n" + + "\ffield_groups\x18\v \x03(\v2\x18.c1.config.v1.FieldGroupR\vfieldGroups\"\xea\x01\n" + + "\n" + + "Constraint\x120\n" + + "\x04kind\x18\x01 \x01(\x0e2\x1c.c1.config.v1.ConstraintKindR\x04kind\x12\x1f\n" + + "\vfield_names\x18\x02 \x03(\tR\n" + + "fieldNames\x122\n" + + "\x15secondary_field_names\x18\x03 \x03(\tR\x13secondaryFieldNames\x12\x12\n" + + "\x04name\x18\x04 \x01(\tR\x04name\x12\x1b\n" + + "\thelp_text\x18\x05 \x01(\tR\bhelpText\x12$\n" + + "\x0eis_field_group\x18\x06 \x01(\bR\fisFieldGroup\"\x92\x01\n" + + "\n" + + "FieldGroup\x12\x12\n" + + "\x04name\x18\x01 \x01(\tR\x04name\x12!\n" + + "\fdisplay_name\x18\x02 \x01(\tR\vdisplayName\x12\x1b\n" + + "\thelp_text\x18\x03 \x01(\tR\bhelpText\x12\x16\n" + + "\x06fields\x18\x04 \x03(\tR\x06fields\x12\x18\n" + + "\adefault\x18\x05 \x01(\bR\adefault\"\xf1\x06\n" + + "\x05Field\x12\x12\n" + + "\x04name\x18\x01 \x01(\tR\x04name\x12!\n" + + "\fdisplay_name\x18\x02 \x01(\tR\vdisplayName\x12 \n" + + "\vdescription\x18\x03 \x01(\tR\vdescription\x12 \n" + + "\vplaceholder\x18\x04 \x01(\tR\vplaceholder\x12\x1f\n" + + "\vis_required\x18\x05 \x01(\bR\n" + + "isRequired\x12\x15\n" + + "\x06is_ops\x18\x06 \x01(\bR\x05isOps\x12\x1b\n" + + "\tis_secret\x18\a \x01(\bR\bisSecret\x12>\n" + + "\fstring_field\x18d \x01(\v2\x19.c1.config.v1.StringFieldH\x00R\vstringField\x125\n" + + "\tint_field\x18e \x01(\v2\x16.c1.config.v1.IntFieldH\x00R\bintField\x128\n" + + "\n" + + "bool_field\x18f \x01(\v2\x17.c1.config.v1.BoolFieldH\x00R\tboolField\x12N\n" + + "\x12string_slice_field\x18g \x01(\v2\x1e.c1.config.v1.StringSliceFieldH\x00R\x10stringSliceField\x12H\n" + + "\x10string_map_field\x18h \x01(\v2\x1c.c1.config.v1.StringMapFieldH\x00R\x0estringMapField\x12K\n" + + "\x11resource_id_field\x18i \x01(\v2\x1d.c1.config.v1.ResourceIdFieldH\x00R\x0fresourceIdField\x12[\n" + + "\x17resource_id_slice_field\x18j \x01(\v2\".c1.config.v1.ResourceIdSliceFieldH\x00R\x14resourceIdSliceField\x12D\n" + + "\x0eresource_field\x18k \x01(\v2\x1b.c1.config.v1.ResourceFieldH\x00R\rresourceField\x12T\n" + + "\x14resource_slice_field\x18l \x01(\v2 .c1.config.v1.ResourceSliceFieldH\x00R\x12resourceSliceFieldB\a\n" + + "\x05field\"\x8a\x02\n" + + "\bResource\x129\n" + + "\vresource_id\x18\x01 \x01(\v2\x18.c1.config.v1.ResourceIdR\n" + + "resourceId\x12F\n" + + "\x12parent_resource_id\x18\x02 \x01(\v2\x18.c1.config.v1.ResourceIdR\x10parentResourceId\x12!\n" + + "\fdisplay_name\x18\x03 \x01(\tR\vdisplayName\x12 \n" + + "\vdescription\x18\x04 \x01(\tR\vdescription\x126\n" + + "\vannotations\x18\x05 \x03(\v2\x14.google.protobuf.AnyR\vannotations\"W\n" + + "\n" + + "ResourceId\x12(\n" + + "\x10resource_type_id\x18\x01 \x01(\tR\x0eresourceTypeId\x12\x1f\n" + + "\vresource_id\x18\x02 \x01(\tR\n" + + "resourceId\"L\n" + + "\rResourceField\x12;\n" + + "\rdefault_value\x18\x01 \x01(\v2\x16.c1.config.v1.ResourceR\fdefaultValue\"Q\n" + + "\x12ResourceSliceField\x12;\n" + + "\rdefault_value\x18\x01 \x03(\v2\x16.c1.config.v1.ResourceR\fdefaultValue\"\x94\x01\n" + + "\x0fResourceIdField\x12=\n" + + "\rdefault_value\x18\x01 \x01(\v2\x18.c1.config.v1.ResourceIdR\fdefaultValue\x128\n" + + "\x05rules\x18\x03 \x01(\v2\x1d.c1.config.v1.ResourceIDRulesH\x00R\x05rules\x88\x01\x01B\b\n" + + "\x06_rules\"\xa6\x01\n" + + "\x14ResourceIdSliceField\x12B\n" + + "\rdefault_value\x18\x01 \x03(\v2\x1d.c1.config.v1.ResourceIdFieldR\fdefaultValue\x12@\n" + + "\x05rules\x18\x02 \x01(\v2%.c1.config.v1.RepeatedResourceIdRulesH\x00R\x05rules\x88\x01\x01B\b\n" + + "\x06_rules\"n\n" + + "\bIntField\x12#\n" + + "\rdefault_value\x18\x01 \x01(\x03R\fdefaultValue\x123\n" + + "\x05rules\x18\x02 \x01(\v2\x18.c1.config.v1.Int64RulesH\x00R\x05rules\x88\x01\x01B\b\n" + + "\x06_rules\"n\n" + + "\tBoolField\x12#\n" + + "\rdefault_value\x18\x01 \x01(\bR\fdefaultValue\x122\n" + + "\x05rules\x18\x02 \x01(\v2\x17.c1.config.v1.BoolRulesH\x00R\x05rules\x88\x01\x01B\b\n" + + "\x06_rules\"\x7f\n" + + "\x10StringSliceField\x12#\n" + + "\rdefault_value\x18\x01 \x03(\tR\fdefaultValue\x12<\n" + + "\x05rules\x18\x02 \x01(\v2!.c1.config.v1.RepeatedStringRulesH\x00R\x05rules\x88\x01\x01B\b\n" + + "\x06_rules\"\xff\x01\n" + + "\x0eStringMapField\x12S\n" + + "\rdefault_value\x18\x01 \x03(\v2..c1.config.v1.StringMapField.DefaultValueEntryR\fdefaultValue\x127\n" + + "\x05rules\x18\x02 \x01(\v2\x1c.c1.config.v1.StringMapRulesH\x00R\x05rules\x88\x01\x01\x1aU\n" + + "\x11DefaultValueEntry\x12\x10\n" + + "\x03key\x18\x01 \x01(\tR\x03key\x12*\n" + + "\x05value\x18\x02 \x01(\v2\x14.google.protobuf.AnyR\x05value:\x028\x01B\b\n" + + "\x06_rules\"`\n" + + "\x11StringFieldOption\x12\x12\n" + + "\x04name\x18\x01 \x01(\tR\x04name\x12\x14\n" + + "\x05value\x18\x02 \x01(\tR\x05value\x12!\n" + + "\fdisplay_name\x18\x03 \x01(\tR\vdisplayName\"\x8f\x02\n" + + "\vStringField\x12#\n" + + "\rdefault_value\x18\x01 \x01(\tR\fdefaultValue\x124\n" + + "\x05rules\x18\x02 \x01(\v2\x19.c1.config.v1.StringRulesH\x00R\x05rules\x88\x01\x01\x121\n" + + "\x04type\x18\x03 \x01(\x0e2\x1d.c1.config.v1.StringFieldTypeR\x04type\x12-\n" + + "\x12allowed_extensions\x18\x04 \x03(\tR\x11allowedExtensions\x129\n" + + "\aoptions\x18\x05 \x03(\v2\x1f.c1.config.v1.StringFieldOptionR\aoptionsB\b\n" + + "\x06_rules*\xc4\x01\n" + + "\x0eConstraintKind\x12\x1f\n" + + "\x1bCONSTRAINT_KIND_UNSPECIFIED\x10\x00\x12%\n" + + "!CONSTRAINT_KIND_REQUIRED_TOGETHER\x10\x01\x12 \n" + + "\x1cCONSTRAINT_KIND_AT_LEAST_ONE\x10\x02\x12&\n" + + "\"CONSTRAINT_KIND_MUTUALLY_EXCLUSIVE\x10\x03\x12 \n" + + "\x1cCONSTRAINT_KIND_DEPENDENT_ON\x10\x04*\xc9\x01\n" + + "\x0fStringFieldType\x12&\n" + + "\"STRING_FIELD_TYPE_TEXT_UNSPECIFIED\x10\x00\x12\x1c\n" + + "\x18STRING_FIELD_TYPE_RANDOM\x10\x01\x12\x1c\n" + + "\x18STRING_FIELD_TYPE_OAUTH2\x10\x02\x12/\n" + + "+STRING_FIELD_TYPE_CONNECTOR_DERIVED_OPTIONS\x10\x03\x12!\n" + + "\x1dSTRING_FIELD_TYPE_FILE_UPLOAD\x10\x04B3Z1github.com/conductorone/baton-sdk/pb/c1/config/v1b\x06proto3" + var file_c1_config_v1_config_proto_enumTypes = make([]protoimpl.EnumInfo, 2) -var file_c1_config_v1_config_proto_msgTypes = make([]protoimpl.MessageInfo, 10) +var file_c1_config_v1_config_proto_msgTypes = make([]protoimpl.MessageInfo, 17) var file_c1_config_v1_config_proto_goTypes = []any{ - (ConstraintKind)(0), // 0: c1.config.v1.ConstraintKind - (StringFieldType)(0), // 1: c1.config.v1.StringFieldType - (*Configuration)(nil), // 2: c1.config.v1.Configuration - (*Constraint)(nil), // 3: c1.config.v1.Constraint - (*Field)(nil), // 4: c1.config.v1.Field - (*IntField)(nil), // 5: c1.config.v1.IntField - (*BoolField)(nil), // 6: c1.config.v1.BoolField - (*StringSliceField)(nil), // 7: c1.config.v1.StringSliceField - (*StringMapField)(nil), // 8: c1.config.v1.StringMapField - (*StringFieldOption)(nil), // 9: c1.config.v1.StringFieldOption - (*StringField)(nil), // 10: c1.config.v1.StringField - nil, // 11: c1.config.v1.StringMapField.DefaultValueEntry - (*Int64Rules)(nil), // 12: c1.config.v1.Int64Rules - (*BoolRules)(nil), // 13: c1.config.v1.BoolRules - (*RepeatedStringRules)(nil), // 14: c1.config.v1.RepeatedStringRules - (*StringMapRules)(nil), // 15: c1.config.v1.StringMapRules - (*StringRules)(nil), // 16: c1.config.v1.StringRules - (*anypb.Any)(nil), // 17: google.protobuf.Any + (ConstraintKind)(0), // 0: c1.config.v1.ConstraintKind + (StringFieldType)(0), // 1: c1.config.v1.StringFieldType + (*Configuration)(nil), // 2: c1.config.v1.Configuration + (*Constraint)(nil), // 3: c1.config.v1.Constraint + (*FieldGroup)(nil), // 4: c1.config.v1.FieldGroup + (*Field)(nil), // 5: c1.config.v1.Field + (*Resource)(nil), // 6: c1.config.v1.Resource + (*ResourceId)(nil), // 7: c1.config.v1.ResourceId + (*ResourceField)(nil), // 8: c1.config.v1.ResourceField + (*ResourceSliceField)(nil), // 9: c1.config.v1.ResourceSliceField + (*ResourceIdField)(nil), // 10: c1.config.v1.ResourceIdField + (*ResourceIdSliceField)(nil), // 11: c1.config.v1.ResourceIdSliceField + (*IntField)(nil), // 12: c1.config.v1.IntField + (*BoolField)(nil), // 13: c1.config.v1.BoolField + (*StringSliceField)(nil), // 14: c1.config.v1.StringSliceField + (*StringMapField)(nil), // 15: c1.config.v1.StringMapField + (*StringFieldOption)(nil), // 16: c1.config.v1.StringFieldOption + (*StringField)(nil), // 17: c1.config.v1.StringField + nil, // 18: c1.config.v1.StringMapField.DefaultValueEntry + (*anypb.Any)(nil), // 19: google.protobuf.Any + (*ResourceIDRules)(nil), // 20: c1.config.v1.ResourceIDRules + (*RepeatedResourceIdRules)(nil), // 21: c1.config.v1.RepeatedResourceIdRules + (*Int64Rules)(nil), // 22: c1.config.v1.Int64Rules + (*BoolRules)(nil), // 23: c1.config.v1.BoolRules + (*RepeatedStringRules)(nil), // 24: c1.config.v1.RepeatedStringRules + (*StringMapRules)(nil), // 25: c1.config.v1.StringMapRules + (*StringRules)(nil), // 26: c1.config.v1.StringRules } var file_c1_config_v1_config_proto_depIdxs = []int32{ - 4, // 0: c1.config.v1.Configuration.fields:type_name -> c1.config.v1.Field + 5, // 0: c1.config.v1.Configuration.fields:type_name -> c1.config.v1.Field 3, // 1: c1.config.v1.Configuration.constraints:type_name -> c1.config.v1.Constraint - 0, // 2: c1.config.v1.Constraint.kind:type_name -> c1.config.v1.ConstraintKind - 10, // 3: c1.config.v1.Field.string_field:type_name -> c1.config.v1.StringField - 5, // 4: c1.config.v1.Field.int_field:type_name -> c1.config.v1.IntField - 6, // 5: c1.config.v1.Field.bool_field:type_name -> c1.config.v1.BoolField - 7, // 6: c1.config.v1.Field.string_slice_field:type_name -> c1.config.v1.StringSliceField - 8, // 7: c1.config.v1.Field.string_map_field:type_name -> c1.config.v1.StringMapField - 12, // 8: c1.config.v1.IntField.rules:type_name -> c1.config.v1.Int64Rules - 13, // 9: c1.config.v1.BoolField.rules:type_name -> c1.config.v1.BoolRules - 14, // 10: c1.config.v1.StringSliceField.rules:type_name -> c1.config.v1.RepeatedStringRules - 11, // 11: c1.config.v1.StringMapField.default_value:type_name -> c1.config.v1.StringMapField.DefaultValueEntry - 15, // 12: c1.config.v1.StringMapField.rules:type_name -> c1.config.v1.StringMapRules - 16, // 13: c1.config.v1.StringField.rules:type_name -> c1.config.v1.StringRules - 1, // 14: c1.config.v1.StringField.type:type_name -> c1.config.v1.StringFieldType - 9, // 15: c1.config.v1.StringField.options:type_name -> c1.config.v1.StringFieldOption - 17, // 16: c1.config.v1.StringMapField.DefaultValueEntry.value:type_name -> google.protobuf.Any - 17, // [17:17] is the sub-list for method output_type - 17, // [17:17] is the sub-list for method input_type - 17, // [17:17] is the sub-list for extension type_name - 17, // [17:17] is the sub-list for extension extendee - 0, // [0:17] is the sub-list for field type_name + 4, // 2: c1.config.v1.Configuration.field_groups:type_name -> c1.config.v1.FieldGroup + 0, // 3: c1.config.v1.Constraint.kind:type_name -> c1.config.v1.ConstraintKind + 17, // 4: c1.config.v1.Field.string_field:type_name -> c1.config.v1.StringField + 12, // 5: c1.config.v1.Field.int_field:type_name -> c1.config.v1.IntField + 13, // 6: c1.config.v1.Field.bool_field:type_name -> c1.config.v1.BoolField + 14, // 7: c1.config.v1.Field.string_slice_field:type_name -> c1.config.v1.StringSliceField + 15, // 8: c1.config.v1.Field.string_map_field:type_name -> c1.config.v1.StringMapField + 10, // 9: c1.config.v1.Field.resource_id_field:type_name -> c1.config.v1.ResourceIdField + 11, // 10: c1.config.v1.Field.resource_id_slice_field:type_name -> c1.config.v1.ResourceIdSliceField + 8, // 11: c1.config.v1.Field.resource_field:type_name -> c1.config.v1.ResourceField + 9, // 12: c1.config.v1.Field.resource_slice_field:type_name -> c1.config.v1.ResourceSliceField + 7, // 13: c1.config.v1.Resource.resource_id:type_name -> c1.config.v1.ResourceId + 7, // 14: c1.config.v1.Resource.parent_resource_id:type_name -> c1.config.v1.ResourceId + 19, // 15: c1.config.v1.Resource.annotations:type_name -> google.protobuf.Any + 6, // 16: c1.config.v1.ResourceField.default_value:type_name -> c1.config.v1.Resource + 6, // 17: c1.config.v1.ResourceSliceField.default_value:type_name -> c1.config.v1.Resource + 7, // 18: c1.config.v1.ResourceIdField.default_value:type_name -> c1.config.v1.ResourceId + 20, // 19: c1.config.v1.ResourceIdField.rules:type_name -> c1.config.v1.ResourceIDRules + 10, // 20: c1.config.v1.ResourceIdSliceField.default_value:type_name -> c1.config.v1.ResourceIdField + 21, // 21: c1.config.v1.ResourceIdSliceField.rules:type_name -> c1.config.v1.RepeatedResourceIdRules + 22, // 22: c1.config.v1.IntField.rules:type_name -> c1.config.v1.Int64Rules + 23, // 23: c1.config.v1.BoolField.rules:type_name -> c1.config.v1.BoolRules + 24, // 24: c1.config.v1.StringSliceField.rules:type_name -> c1.config.v1.RepeatedStringRules + 18, // 25: c1.config.v1.StringMapField.default_value:type_name -> c1.config.v1.StringMapField.DefaultValueEntry + 25, // 26: c1.config.v1.StringMapField.rules:type_name -> c1.config.v1.StringMapRules + 26, // 27: c1.config.v1.StringField.rules:type_name -> c1.config.v1.StringRules + 1, // 28: c1.config.v1.StringField.type:type_name -> c1.config.v1.StringFieldType + 16, // 29: c1.config.v1.StringField.options:type_name -> c1.config.v1.StringFieldOption + 19, // 30: c1.config.v1.StringMapField.DefaultValueEntry.value:type_name -> google.protobuf.Any + 31, // [31:31] is the sub-list for method output_type + 31, // [31:31] is the sub-list for method input_type + 31, // [31:31] is the sub-list for extension type_name + 31, // [31:31] is the sub-list for extension extendee + 0, // [0:31] is the sub-list for field type_name } func init() { file_c1_config_v1_config_proto_init() } @@ -1098,25 +2389,31 @@ func file_c1_config_v1_config_proto_init() { return } file_c1_config_v1_rules_proto_init() - file_c1_config_v1_config_proto_msgTypes[2].OneofWrappers = []any{ + file_c1_config_v1_config_proto_msgTypes[3].OneofWrappers = []any{ (*Field_StringField)(nil), (*Field_IntField)(nil), (*Field_BoolField)(nil), (*Field_StringSliceField)(nil), (*Field_StringMapField)(nil), + (*Field_ResourceIdField)(nil), + (*Field_ResourceIdSliceField)(nil), + (*Field_ResourceField)(nil), + (*Field_ResourceSliceField)(nil), } - file_c1_config_v1_config_proto_msgTypes[3].OneofWrappers = []any{} - file_c1_config_v1_config_proto_msgTypes[4].OneofWrappers = []any{} - file_c1_config_v1_config_proto_msgTypes[5].OneofWrappers = []any{} - file_c1_config_v1_config_proto_msgTypes[6].OneofWrappers = []any{} file_c1_config_v1_config_proto_msgTypes[8].OneofWrappers = []any{} + file_c1_config_v1_config_proto_msgTypes[9].OneofWrappers = []any{} + file_c1_config_v1_config_proto_msgTypes[10].OneofWrappers = []any{} + file_c1_config_v1_config_proto_msgTypes[11].OneofWrappers = []any{} + file_c1_config_v1_config_proto_msgTypes[12].OneofWrappers = []any{} + file_c1_config_v1_config_proto_msgTypes[13].OneofWrappers = []any{} + file_c1_config_v1_config_proto_msgTypes[15].OneofWrappers = []any{} type x struct{} out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), RawDescriptor: unsafe.Slice(unsafe.StringData(file_c1_config_v1_config_proto_rawDesc), len(file_c1_config_v1_config_proto_rawDesc)), NumEnums: 2, - NumMessages: 10, + NumMessages: 17, NumExtensions: 0, NumServices: 0, }, diff --git a/vendor/github.com/conductorone/baton-sdk/pb/c1/config/v1/config.pb.validate.go b/vendor/github.com/conductorone/baton-sdk/pb/c1/config/v1/config.pb.validate.go index e2114f8d..c58e2bd2 100644 --- a/vendor/github.com/conductorone/baton-sdk/pb/c1/config/v1/config.pb.validate.go +++ b/vendor/github.com/conductorone/baton-sdk/pb/c1/config/v1/config.pb.validate.go @@ -139,6 +139,40 @@ func (m *Configuration) validate(all bool) error { // no validation rules for RequiresExternalConnector + for idx, item := range m.GetFieldGroups() { + _, _ = idx, item + + if all { + switch v := interface{}(item).(type) { + case interface{ ValidateAll() error }: + if err := v.ValidateAll(); err != nil { + errors = append(errors, ConfigurationValidationError{ + field: fmt.Sprintf("FieldGroups[%v]", idx), + reason: "embedded message failed validation", + cause: err, + }) + } + case interface{ Validate() error }: + if err := v.Validate(); err != nil { + errors = append(errors, ConfigurationValidationError{ + field: fmt.Sprintf("FieldGroups[%v]", idx), + reason: "embedded message failed validation", + cause: err, + }) + } + } + } else if v, ok := interface{}(item).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return ConfigurationValidationError{ + field: fmt.Sprintf("FieldGroups[%v]", idx), + reason: "embedded message failed validation", + cause: err, + } + } + } + + } + if len(errors) > 0 { return ConfigurationMultiError(errors) } @@ -324,6 +358,113 @@ var _ interface { ErrorName() string } = ConstraintValidationError{} +// Validate checks the field values on FieldGroup with the rules defined in the +// proto definition for this message. If any rules are violated, the first +// error encountered is returned, or nil if there are no violations. +func (m *FieldGroup) Validate() error { + return m.validate(false) +} + +// ValidateAll checks the field values on FieldGroup with the rules defined in +// the proto definition for this message. If any rules are violated, the +// result is a list of violation errors wrapped in FieldGroupMultiError, or +// nil if none found. +func (m *FieldGroup) ValidateAll() error { + return m.validate(true) +} + +func (m *FieldGroup) validate(all bool) error { + if m == nil { + return nil + } + + var errors []error + + // no validation rules for Name + + // no validation rules for DisplayName + + // no validation rules for HelpText + + // no validation rules for Default + + if len(errors) > 0 { + return FieldGroupMultiError(errors) + } + + return nil +} + +// FieldGroupMultiError is an error wrapping multiple validation errors +// returned by FieldGroup.ValidateAll() if the designated constraints aren't met. +type FieldGroupMultiError []error + +// Error returns a concatenation of all the error messages it wraps. +func (m FieldGroupMultiError) Error() string { + msgs := make([]string, 0, len(m)) + for _, err := range m { + msgs = append(msgs, err.Error()) + } + return strings.Join(msgs, "; ") +} + +// AllErrors returns a list of validation violation errors. +func (m FieldGroupMultiError) AllErrors() []error { return m } + +// FieldGroupValidationError is the validation error returned by +// FieldGroup.Validate if the designated constraints aren't met. +type FieldGroupValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e FieldGroupValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e FieldGroupValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e FieldGroupValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e FieldGroupValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e FieldGroupValidationError) ErrorName() string { return "FieldGroupValidationError" } + +// Error satisfies the builtin error interface +func (e FieldGroupValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sFieldGroup.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = FieldGroupValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = FieldGroupValidationError{} + // Validate checks the field values on Field with the rules defined in the // proto definition for this message. If any rules are violated, the first // error encountered is returned, or nil if there are no violations. @@ -565,6 +706,170 @@ func (m *Field) validate(all bool) error { } } + case *Field_ResourceIdField: + if v == nil { + err := FieldValidationError{ + field: "Field", + reason: "oneof value cannot be a typed-nil", + } + if !all { + return err + } + errors = append(errors, err) + } + + if all { + switch v := interface{}(m.GetResourceIdField()).(type) { + case interface{ ValidateAll() error }: + if err := v.ValidateAll(); err != nil { + errors = append(errors, FieldValidationError{ + field: "ResourceIdField", + reason: "embedded message failed validation", + cause: err, + }) + } + case interface{ Validate() error }: + if err := v.Validate(); err != nil { + errors = append(errors, FieldValidationError{ + field: "ResourceIdField", + reason: "embedded message failed validation", + cause: err, + }) + } + } + } else if v, ok := interface{}(m.GetResourceIdField()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return FieldValidationError{ + field: "ResourceIdField", + reason: "embedded message failed validation", + cause: err, + } + } + } + + case *Field_ResourceIdSliceField: + if v == nil { + err := FieldValidationError{ + field: "Field", + reason: "oneof value cannot be a typed-nil", + } + if !all { + return err + } + errors = append(errors, err) + } + + if all { + switch v := interface{}(m.GetResourceIdSliceField()).(type) { + case interface{ ValidateAll() error }: + if err := v.ValidateAll(); err != nil { + errors = append(errors, FieldValidationError{ + field: "ResourceIdSliceField", + reason: "embedded message failed validation", + cause: err, + }) + } + case interface{ Validate() error }: + if err := v.Validate(); err != nil { + errors = append(errors, FieldValidationError{ + field: "ResourceIdSliceField", + reason: "embedded message failed validation", + cause: err, + }) + } + } + } else if v, ok := interface{}(m.GetResourceIdSliceField()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return FieldValidationError{ + field: "ResourceIdSliceField", + reason: "embedded message failed validation", + cause: err, + } + } + } + + case *Field_ResourceField: + if v == nil { + err := FieldValidationError{ + field: "Field", + reason: "oneof value cannot be a typed-nil", + } + if !all { + return err + } + errors = append(errors, err) + } + + if all { + switch v := interface{}(m.GetResourceField()).(type) { + case interface{ ValidateAll() error }: + if err := v.ValidateAll(); err != nil { + errors = append(errors, FieldValidationError{ + field: "ResourceField", + reason: "embedded message failed validation", + cause: err, + }) + } + case interface{ Validate() error }: + if err := v.Validate(); err != nil { + errors = append(errors, FieldValidationError{ + field: "ResourceField", + reason: "embedded message failed validation", + cause: err, + }) + } + } + } else if v, ok := interface{}(m.GetResourceField()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return FieldValidationError{ + field: "ResourceField", + reason: "embedded message failed validation", + cause: err, + } + } + } + + case *Field_ResourceSliceField: + if v == nil { + err := FieldValidationError{ + field: "Field", + reason: "oneof value cannot be a typed-nil", + } + if !all { + return err + } + errors = append(errors, err) + } + + if all { + switch v := interface{}(m.GetResourceSliceField()).(type) { + case interface{ ValidateAll() error }: + if err := v.ValidateAll(); err != nil { + errors = append(errors, FieldValidationError{ + field: "ResourceSliceField", + reason: "embedded message failed validation", + cause: err, + }) + } + case interface{ Validate() error }: + if err := v.Validate(); err != nil { + errors = append(errors, FieldValidationError{ + field: "ResourceSliceField", + reason: "embedded message failed validation", + cause: err, + }) + } + } + } else if v, ok := interface{}(m.GetResourceSliceField()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return FieldValidationError{ + field: "ResourceSliceField", + reason: "embedded message failed validation", + cause: err, + } + } + } + default: _ = v // ensures v is used } @@ -646,6 +951,900 @@ var _ interface { ErrorName() string } = FieldValidationError{} +// Validate checks the field values on Resource with the rules defined in the +// proto definition for this message. If any rules are violated, the first +// error encountered is returned, or nil if there are no violations. +func (m *Resource) Validate() error { + return m.validate(false) +} + +// ValidateAll checks the field values on Resource with the rules defined in +// the proto definition for this message. If any rules are violated, the +// result is a list of violation errors wrapped in ResourceMultiError, or nil +// if none found. +func (m *Resource) ValidateAll() error { + return m.validate(true) +} + +func (m *Resource) validate(all bool) error { + if m == nil { + return nil + } + + var errors []error + + if all { + switch v := interface{}(m.GetResourceId()).(type) { + case interface{ ValidateAll() error }: + if err := v.ValidateAll(); err != nil { + errors = append(errors, ResourceValidationError{ + field: "ResourceId", + reason: "embedded message failed validation", + cause: err, + }) + } + case interface{ Validate() error }: + if err := v.Validate(); err != nil { + errors = append(errors, ResourceValidationError{ + field: "ResourceId", + reason: "embedded message failed validation", + cause: err, + }) + } + } + } else if v, ok := interface{}(m.GetResourceId()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return ResourceValidationError{ + field: "ResourceId", + reason: "embedded message failed validation", + cause: err, + } + } + } + + if all { + switch v := interface{}(m.GetParentResourceId()).(type) { + case interface{ ValidateAll() error }: + if err := v.ValidateAll(); err != nil { + errors = append(errors, ResourceValidationError{ + field: "ParentResourceId", + reason: "embedded message failed validation", + cause: err, + }) + } + case interface{ Validate() error }: + if err := v.Validate(); err != nil { + errors = append(errors, ResourceValidationError{ + field: "ParentResourceId", + reason: "embedded message failed validation", + cause: err, + }) + } + } + } else if v, ok := interface{}(m.GetParentResourceId()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return ResourceValidationError{ + field: "ParentResourceId", + reason: "embedded message failed validation", + cause: err, + } + } + } + + // no validation rules for DisplayName + + // no validation rules for Description + + for idx, item := range m.GetAnnotations() { + _, _ = idx, item + + if all { + switch v := interface{}(item).(type) { + case interface{ ValidateAll() error }: + if err := v.ValidateAll(); err != nil { + errors = append(errors, ResourceValidationError{ + field: fmt.Sprintf("Annotations[%v]", idx), + reason: "embedded message failed validation", + cause: err, + }) + } + case interface{ Validate() error }: + if err := v.Validate(); err != nil { + errors = append(errors, ResourceValidationError{ + field: fmt.Sprintf("Annotations[%v]", idx), + reason: "embedded message failed validation", + cause: err, + }) + } + } + } else if v, ok := interface{}(item).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return ResourceValidationError{ + field: fmt.Sprintf("Annotations[%v]", idx), + reason: "embedded message failed validation", + cause: err, + } + } + } + + } + + if len(errors) > 0 { + return ResourceMultiError(errors) + } + + return nil +} + +// ResourceMultiError is an error wrapping multiple validation errors returned +// by Resource.ValidateAll() if the designated constraints aren't met. +type ResourceMultiError []error + +// Error returns a concatenation of all the error messages it wraps. +func (m ResourceMultiError) Error() string { + msgs := make([]string, 0, len(m)) + for _, err := range m { + msgs = append(msgs, err.Error()) + } + return strings.Join(msgs, "; ") +} + +// AllErrors returns a list of validation violation errors. +func (m ResourceMultiError) AllErrors() []error { return m } + +// ResourceValidationError is the validation error returned by +// Resource.Validate if the designated constraints aren't met. +type ResourceValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e ResourceValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e ResourceValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e ResourceValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e ResourceValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e ResourceValidationError) ErrorName() string { return "ResourceValidationError" } + +// Error satisfies the builtin error interface +func (e ResourceValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sResource.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = ResourceValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = ResourceValidationError{} + +// Validate checks the field values on ResourceId with the rules defined in the +// proto definition for this message. If any rules are violated, the first +// error encountered is returned, or nil if there are no violations. +func (m *ResourceId) Validate() error { + return m.validate(false) +} + +// ValidateAll checks the field values on ResourceId with the rules defined in +// the proto definition for this message. If any rules are violated, the +// result is a list of violation errors wrapped in ResourceIdMultiError, or +// nil if none found. +func (m *ResourceId) ValidateAll() error { + return m.validate(true) +} + +func (m *ResourceId) validate(all bool) error { + if m == nil { + return nil + } + + var errors []error + + // no validation rules for ResourceTypeId + + // no validation rules for ResourceId + + if len(errors) > 0 { + return ResourceIdMultiError(errors) + } + + return nil +} + +// ResourceIdMultiError is an error wrapping multiple validation errors +// returned by ResourceId.ValidateAll() if the designated constraints aren't met. +type ResourceIdMultiError []error + +// Error returns a concatenation of all the error messages it wraps. +func (m ResourceIdMultiError) Error() string { + msgs := make([]string, 0, len(m)) + for _, err := range m { + msgs = append(msgs, err.Error()) + } + return strings.Join(msgs, "; ") +} + +// AllErrors returns a list of validation violation errors. +func (m ResourceIdMultiError) AllErrors() []error { return m } + +// ResourceIdValidationError is the validation error returned by +// ResourceId.Validate if the designated constraints aren't met. +type ResourceIdValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e ResourceIdValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e ResourceIdValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e ResourceIdValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e ResourceIdValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e ResourceIdValidationError) ErrorName() string { return "ResourceIdValidationError" } + +// Error satisfies the builtin error interface +func (e ResourceIdValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sResourceId.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = ResourceIdValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = ResourceIdValidationError{} + +// Validate checks the field values on ResourceField with the rules defined in +// the proto definition for this message. If any rules are violated, the first +// error encountered is returned, or nil if there are no violations. +func (m *ResourceField) Validate() error { + return m.validate(false) +} + +// ValidateAll checks the field values on ResourceField with the rules defined +// in the proto definition for this message. If any rules are violated, the +// result is a list of violation errors wrapped in ResourceFieldMultiError, or +// nil if none found. +func (m *ResourceField) ValidateAll() error { + return m.validate(true) +} + +func (m *ResourceField) validate(all bool) error { + if m == nil { + return nil + } + + var errors []error + + if all { + switch v := interface{}(m.GetDefaultValue()).(type) { + case interface{ ValidateAll() error }: + if err := v.ValidateAll(); err != nil { + errors = append(errors, ResourceFieldValidationError{ + field: "DefaultValue", + reason: "embedded message failed validation", + cause: err, + }) + } + case interface{ Validate() error }: + if err := v.Validate(); err != nil { + errors = append(errors, ResourceFieldValidationError{ + field: "DefaultValue", + reason: "embedded message failed validation", + cause: err, + }) + } + } + } else if v, ok := interface{}(m.GetDefaultValue()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return ResourceFieldValidationError{ + field: "DefaultValue", + reason: "embedded message failed validation", + cause: err, + } + } + } + + if len(errors) > 0 { + return ResourceFieldMultiError(errors) + } + + return nil +} + +// ResourceFieldMultiError is an error wrapping multiple validation errors +// returned by ResourceField.ValidateAll() if the designated constraints +// aren't met. +type ResourceFieldMultiError []error + +// Error returns a concatenation of all the error messages it wraps. +func (m ResourceFieldMultiError) Error() string { + msgs := make([]string, 0, len(m)) + for _, err := range m { + msgs = append(msgs, err.Error()) + } + return strings.Join(msgs, "; ") +} + +// AllErrors returns a list of validation violation errors. +func (m ResourceFieldMultiError) AllErrors() []error { return m } + +// ResourceFieldValidationError is the validation error returned by +// ResourceField.Validate if the designated constraints aren't met. +type ResourceFieldValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e ResourceFieldValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e ResourceFieldValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e ResourceFieldValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e ResourceFieldValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e ResourceFieldValidationError) ErrorName() string { return "ResourceFieldValidationError" } + +// Error satisfies the builtin error interface +func (e ResourceFieldValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sResourceField.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = ResourceFieldValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = ResourceFieldValidationError{} + +// Validate checks the field values on ResourceSliceField with the rules +// defined in the proto definition for this message. If any rules are +// violated, the first error encountered is returned, or nil if there are no violations. +func (m *ResourceSliceField) Validate() error { + return m.validate(false) +} + +// ValidateAll checks the field values on ResourceSliceField with the rules +// defined in the proto definition for this message. If any rules are +// violated, the result is a list of violation errors wrapped in +// ResourceSliceFieldMultiError, or nil if none found. +func (m *ResourceSliceField) ValidateAll() error { + return m.validate(true) +} + +func (m *ResourceSliceField) validate(all bool) error { + if m == nil { + return nil + } + + var errors []error + + for idx, item := range m.GetDefaultValue() { + _, _ = idx, item + + if all { + switch v := interface{}(item).(type) { + case interface{ ValidateAll() error }: + if err := v.ValidateAll(); err != nil { + errors = append(errors, ResourceSliceFieldValidationError{ + field: fmt.Sprintf("DefaultValue[%v]", idx), + reason: "embedded message failed validation", + cause: err, + }) + } + case interface{ Validate() error }: + if err := v.Validate(); err != nil { + errors = append(errors, ResourceSliceFieldValidationError{ + field: fmt.Sprintf("DefaultValue[%v]", idx), + reason: "embedded message failed validation", + cause: err, + }) + } + } + } else if v, ok := interface{}(item).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return ResourceSliceFieldValidationError{ + field: fmt.Sprintf("DefaultValue[%v]", idx), + reason: "embedded message failed validation", + cause: err, + } + } + } + + } + + if len(errors) > 0 { + return ResourceSliceFieldMultiError(errors) + } + + return nil +} + +// ResourceSliceFieldMultiError is an error wrapping multiple validation errors +// returned by ResourceSliceField.ValidateAll() if the designated constraints +// aren't met. +type ResourceSliceFieldMultiError []error + +// Error returns a concatenation of all the error messages it wraps. +func (m ResourceSliceFieldMultiError) Error() string { + msgs := make([]string, 0, len(m)) + for _, err := range m { + msgs = append(msgs, err.Error()) + } + return strings.Join(msgs, "; ") +} + +// AllErrors returns a list of validation violation errors. +func (m ResourceSliceFieldMultiError) AllErrors() []error { return m } + +// ResourceSliceFieldValidationError is the validation error returned by +// ResourceSliceField.Validate if the designated constraints aren't met. +type ResourceSliceFieldValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e ResourceSliceFieldValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e ResourceSliceFieldValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e ResourceSliceFieldValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e ResourceSliceFieldValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e ResourceSliceFieldValidationError) ErrorName() string { + return "ResourceSliceFieldValidationError" +} + +// Error satisfies the builtin error interface +func (e ResourceSliceFieldValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sResourceSliceField.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = ResourceSliceFieldValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = ResourceSliceFieldValidationError{} + +// Validate checks the field values on ResourceIdField with the rules defined +// in the proto definition for this message. If any rules are violated, the +// first error encountered is returned, or nil if there are no violations. +func (m *ResourceIdField) Validate() error { + return m.validate(false) +} + +// ValidateAll checks the field values on ResourceIdField with the rules +// defined in the proto definition for this message. If any rules are +// violated, the result is a list of violation errors wrapped in +// ResourceIdFieldMultiError, or nil if none found. +func (m *ResourceIdField) ValidateAll() error { + return m.validate(true) +} + +func (m *ResourceIdField) validate(all bool) error { + if m == nil { + return nil + } + + var errors []error + + if all { + switch v := interface{}(m.GetDefaultValue()).(type) { + case interface{ ValidateAll() error }: + if err := v.ValidateAll(); err != nil { + errors = append(errors, ResourceIdFieldValidationError{ + field: "DefaultValue", + reason: "embedded message failed validation", + cause: err, + }) + } + case interface{ Validate() error }: + if err := v.Validate(); err != nil { + errors = append(errors, ResourceIdFieldValidationError{ + field: "DefaultValue", + reason: "embedded message failed validation", + cause: err, + }) + } + } + } else if v, ok := interface{}(m.GetDefaultValue()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return ResourceIdFieldValidationError{ + field: "DefaultValue", + reason: "embedded message failed validation", + cause: err, + } + } + } + + if m.Rules != nil { + + if all { + switch v := interface{}(m.GetRules()).(type) { + case interface{ ValidateAll() error }: + if err := v.ValidateAll(); err != nil { + errors = append(errors, ResourceIdFieldValidationError{ + field: "Rules", + reason: "embedded message failed validation", + cause: err, + }) + } + case interface{ Validate() error }: + if err := v.Validate(); err != nil { + errors = append(errors, ResourceIdFieldValidationError{ + field: "Rules", + reason: "embedded message failed validation", + cause: err, + }) + } + } + } else if v, ok := interface{}(m.GetRules()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return ResourceIdFieldValidationError{ + field: "Rules", + reason: "embedded message failed validation", + cause: err, + } + } + } + + } + + if len(errors) > 0 { + return ResourceIdFieldMultiError(errors) + } + + return nil +} + +// ResourceIdFieldMultiError is an error wrapping multiple validation errors +// returned by ResourceIdField.ValidateAll() if the designated constraints +// aren't met. +type ResourceIdFieldMultiError []error + +// Error returns a concatenation of all the error messages it wraps. +func (m ResourceIdFieldMultiError) Error() string { + msgs := make([]string, 0, len(m)) + for _, err := range m { + msgs = append(msgs, err.Error()) + } + return strings.Join(msgs, "; ") +} + +// AllErrors returns a list of validation violation errors. +func (m ResourceIdFieldMultiError) AllErrors() []error { return m } + +// ResourceIdFieldValidationError is the validation error returned by +// ResourceIdField.Validate if the designated constraints aren't met. +type ResourceIdFieldValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e ResourceIdFieldValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e ResourceIdFieldValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e ResourceIdFieldValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e ResourceIdFieldValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e ResourceIdFieldValidationError) ErrorName() string { return "ResourceIdFieldValidationError" } + +// Error satisfies the builtin error interface +func (e ResourceIdFieldValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sResourceIdField.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = ResourceIdFieldValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = ResourceIdFieldValidationError{} + +// Validate checks the field values on ResourceIdSliceField with the rules +// defined in the proto definition for this message. If any rules are +// violated, the first error encountered is returned, or nil if there are no violations. +func (m *ResourceIdSliceField) Validate() error { + return m.validate(false) +} + +// ValidateAll checks the field values on ResourceIdSliceField with the rules +// defined in the proto definition for this message. If any rules are +// violated, the result is a list of violation errors wrapped in +// ResourceIdSliceFieldMultiError, or nil if none found. +func (m *ResourceIdSliceField) ValidateAll() error { + return m.validate(true) +} + +func (m *ResourceIdSliceField) validate(all bool) error { + if m == nil { + return nil + } + + var errors []error + + for idx, item := range m.GetDefaultValue() { + _, _ = idx, item + + if all { + switch v := interface{}(item).(type) { + case interface{ ValidateAll() error }: + if err := v.ValidateAll(); err != nil { + errors = append(errors, ResourceIdSliceFieldValidationError{ + field: fmt.Sprintf("DefaultValue[%v]", idx), + reason: "embedded message failed validation", + cause: err, + }) + } + case interface{ Validate() error }: + if err := v.Validate(); err != nil { + errors = append(errors, ResourceIdSliceFieldValidationError{ + field: fmt.Sprintf("DefaultValue[%v]", idx), + reason: "embedded message failed validation", + cause: err, + }) + } + } + } else if v, ok := interface{}(item).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return ResourceIdSliceFieldValidationError{ + field: fmt.Sprintf("DefaultValue[%v]", idx), + reason: "embedded message failed validation", + cause: err, + } + } + } + + } + + if m.Rules != nil { + + if all { + switch v := interface{}(m.GetRules()).(type) { + case interface{ ValidateAll() error }: + if err := v.ValidateAll(); err != nil { + errors = append(errors, ResourceIdSliceFieldValidationError{ + field: "Rules", + reason: "embedded message failed validation", + cause: err, + }) + } + case interface{ Validate() error }: + if err := v.Validate(); err != nil { + errors = append(errors, ResourceIdSliceFieldValidationError{ + field: "Rules", + reason: "embedded message failed validation", + cause: err, + }) + } + } + } else if v, ok := interface{}(m.GetRules()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return ResourceIdSliceFieldValidationError{ + field: "Rules", + reason: "embedded message failed validation", + cause: err, + } + } + } + + } + + if len(errors) > 0 { + return ResourceIdSliceFieldMultiError(errors) + } + + return nil +} + +// ResourceIdSliceFieldMultiError is an error wrapping multiple validation +// errors returned by ResourceIdSliceField.ValidateAll() if the designated +// constraints aren't met. +type ResourceIdSliceFieldMultiError []error + +// Error returns a concatenation of all the error messages it wraps. +func (m ResourceIdSliceFieldMultiError) Error() string { + msgs := make([]string, 0, len(m)) + for _, err := range m { + msgs = append(msgs, err.Error()) + } + return strings.Join(msgs, "; ") +} + +// AllErrors returns a list of validation violation errors. +func (m ResourceIdSliceFieldMultiError) AllErrors() []error { return m } + +// ResourceIdSliceFieldValidationError is the validation error returned by +// ResourceIdSliceField.Validate if the designated constraints aren't met. +type ResourceIdSliceFieldValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e ResourceIdSliceFieldValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e ResourceIdSliceFieldValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e ResourceIdSliceFieldValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e ResourceIdSliceFieldValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e ResourceIdSliceFieldValidationError) ErrorName() string { + return "ResourceIdSliceFieldValidationError" +} + +// Error satisfies the builtin error interface +func (e ResourceIdSliceFieldValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sResourceIdSliceField.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = ResourceIdSliceFieldValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = ResourceIdSliceFieldValidationError{} + // Validate checks the field values on IntField with the rules defined in the // proto definition for this message. If any rules are violated, the first // error encountered is returned, or nil if there are no violations. diff --git a/vendor/github.com/conductorone/baton-sdk/pb/c1/config/v1/config_protoopaque.pb.go b/vendor/github.com/conductorone/baton-sdk/pb/c1/config/v1/config_protoopaque.pb.go new file mode 100644 index 00000000..5cc36692 --- /dev/null +++ b/vendor/github.com/conductorone/baton-sdk/pb/c1/config/v1/config_protoopaque.pb.go @@ -0,0 +1,2422 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.36.10 +// protoc (unknown) +// source: c1/config/v1/config.proto + +//go:build protoopaque + +package v1 + +import ( + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + anypb "google.golang.org/protobuf/types/known/anypb" + reflect "reflect" + 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 ConstraintKind int32 + +const ( + ConstraintKind_CONSTRAINT_KIND_UNSPECIFIED ConstraintKind = 0 + ConstraintKind_CONSTRAINT_KIND_REQUIRED_TOGETHER ConstraintKind = 1 + ConstraintKind_CONSTRAINT_KIND_AT_LEAST_ONE ConstraintKind = 2 + ConstraintKind_CONSTRAINT_KIND_MUTUALLY_EXCLUSIVE ConstraintKind = 3 + ConstraintKind_CONSTRAINT_KIND_DEPENDENT_ON ConstraintKind = 4 +) + +// Enum value maps for ConstraintKind. +var ( + ConstraintKind_name = map[int32]string{ + 0: "CONSTRAINT_KIND_UNSPECIFIED", + 1: "CONSTRAINT_KIND_REQUIRED_TOGETHER", + 2: "CONSTRAINT_KIND_AT_LEAST_ONE", + 3: "CONSTRAINT_KIND_MUTUALLY_EXCLUSIVE", + 4: "CONSTRAINT_KIND_DEPENDENT_ON", + } + ConstraintKind_value = map[string]int32{ + "CONSTRAINT_KIND_UNSPECIFIED": 0, + "CONSTRAINT_KIND_REQUIRED_TOGETHER": 1, + "CONSTRAINT_KIND_AT_LEAST_ONE": 2, + "CONSTRAINT_KIND_MUTUALLY_EXCLUSIVE": 3, + "CONSTRAINT_KIND_DEPENDENT_ON": 4, + } +) + +func (x ConstraintKind) Enum() *ConstraintKind { + p := new(ConstraintKind) + *p = x + return p +} + +func (x ConstraintKind) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (ConstraintKind) Descriptor() protoreflect.EnumDescriptor { + return file_c1_config_v1_config_proto_enumTypes[0].Descriptor() +} + +func (ConstraintKind) Type() protoreflect.EnumType { + return &file_c1_config_v1_config_proto_enumTypes[0] +} + +func (x ConstraintKind) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +type StringFieldType int32 + +const ( + StringFieldType_STRING_FIELD_TYPE_TEXT_UNSPECIFIED StringFieldType = 0 // default/catch all. Its a text field. + StringFieldType_STRING_FIELD_TYPE_RANDOM StringFieldType = 1 + StringFieldType_STRING_FIELD_TYPE_OAUTH2 StringFieldType = 2 + StringFieldType_STRING_FIELD_TYPE_CONNECTOR_DERIVED_OPTIONS StringFieldType = 3 + StringFieldType_STRING_FIELD_TYPE_FILE_UPLOAD StringFieldType = 4 +) + +// Enum value maps for StringFieldType. +var ( + StringFieldType_name = map[int32]string{ + 0: "STRING_FIELD_TYPE_TEXT_UNSPECIFIED", + 1: "STRING_FIELD_TYPE_RANDOM", + 2: "STRING_FIELD_TYPE_OAUTH2", + 3: "STRING_FIELD_TYPE_CONNECTOR_DERIVED_OPTIONS", + 4: "STRING_FIELD_TYPE_FILE_UPLOAD", + } + StringFieldType_value = map[string]int32{ + "STRING_FIELD_TYPE_TEXT_UNSPECIFIED": 0, + "STRING_FIELD_TYPE_RANDOM": 1, + "STRING_FIELD_TYPE_OAUTH2": 2, + "STRING_FIELD_TYPE_CONNECTOR_DERIVED_OPTIONS": 3, + "STRING_FIELD_TYPE_FILE_UPLOAD": 4, + } +) + +func (x StringFieldType) Enum() *StringFieldType { + p := new(StringFieldType) + *p = x + return p +} + +func (x StringFieldType) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (StringFieldType) Descriptor() protoreflect.EnumDescriptor { + return file_c1_config_v1_config_proto_enumTypes[1].Descriptor() +} + +func (StringFieldType) Type() protoreflect.EnumType { + return &file_c1_config_v1_config_proto_enumTypes[1] +} + +func (x StringFieldType) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +type Configuration struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Fields *[]*Field `protobuf:"bytes,1,rep,name=fields,proto3"` + xxx_hidden_Constraints *[]*Constraint `protobuf:"bytes,2,rep,name=constraints,proto3"` + xxx_hidden_DisplayName string `protobuf:"bytes,3,opt,name=display_name,json=displayName,proto3"` + xxx_hidden_HelpUrl string `protobuf:"bytes,4,opt,name=help_url,json=helpUrl,proto3"` + xxx_hidden_IconUrl string `protobuf:"bytes,5,opt,name=icon_url,json=iconUrl,proto3"` + xxx_hidden_IsDirectory bool `protobuf:"varint,7,opt,name=is_directory,json=isDirectory,proto3"` + xxx_hidden_CatalogId string `protobuf:"bytes,8,opt,name=catalog_id,json=catalogId,proto3"` + xxx_hidden_SupportsExternalResources bool `protobuf:"varint,9,opt,name=supports_external_resources,json=supportsExternalResources,proto3"` + xxx_hidden_RequiresExternalConnector bool `protobuf:"varint,10,opt,name=requires_external_connector,json=requiresExternalConnector,proto3"` + xxx_hidden_FieldGroups *[]*FieldGroup `protobuf:"bytes,11,rep,name=field_groups,json=fieldGroups,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *Configuration) Reset() { + *x = Configuration{} + mi := &file_c1_config_v1_config_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *Configuration) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Configuration) ProtoMessage() {} + +func (x *Configuration) ProtoReflect() protoreflect.Message { + mi := &file_c1_config_v1_config_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) +} + +func (x *Configuration) GetFields() []*Field { + if x != nil { + if x.xxx_hidden_Fields != nil { + return *x.xxx_hidden_Fields + } + } + return nil +} + +func (x *Configuration) GetConstraints() []*Constraint { + if x != nil { + if x.xxx_hidden_Constraints != nil { + return *x.xxx_hidden_Constraints + } + } + return nil +} + +func (x *Configuration) GetDisplayName() string { + if x != nil { + return x.xxx_hidden_DisplayName + } + return "" +} + +func (x *Configuration) GetHelpUrl() string { + if x != nil { + return x.xxx_hidden_HelpUrl + } + return "" +} + +func (x *Configuration) GetIconUrl() string { + if x != nil { + return x.xxx_hidden_IconUrl + } + return "" +} + +func (x *Configuration) GetIsDirectory() bool { + if x != nil { + return x.xxx_hidden_IsDirectory + } + return false +} + +func (x *Configuration) GetCatalogId() string { + if x != nil { + return x.xxx_hidden_CatalogId + } + return "" +} + +func (x *Configuration) GetSupportsExternalResources() bool { + if x != nil { + return x.xxx_hidden_SupportsExternalResources + } + return false +} + +func (x *Configuration) GetRequiresExternalConnector() bool { + if x != nil { + return x.xxx_hidden_RequiresExternalConnector + } + return false +} + +func (x *Configuration) GetFieldGroups() []*FieldGroup { + if x != nil { + if x.xxx_hidden_FieldGroups != nil { + return *x.xxx_hidden_FieldGroups + } + } + return nil +} + +func (x *Configuration) SetFields(v []*Field) { + x.xxx_hidden_Fields = &v +} + +func (x *Configuration) SetConstraints(v []*Constraint) { + x.xxx_hidden_Constraints = &v +} + +func (x *Configuration) SetDisplayName(v string) { + x.xxx_hidden_DisplayName = v +} + +func (x *Configuration) SetHelpUrl(v string) { + x.xxx_hidden_HelpUrl = v +} + +func (x *Configuration) SetIconUrl(v string) { + x.xxx_hidden_IconUrl = v +} + +func (x *Configuration) SetIsDirectory(v bool) { + x.xxx_hidden_IsDirectory = v +} + +func (x *Configuration) SetCatalogId(v string) { + x.xxx_hidden_CatalogId = v +} + +func (x *Configuration) SetSupportsExternalResources(v bool) { + x.xxx_hidden_SupportsExternalResources = v +} + +func (x *Configuration) SetRequiresExternalConnector(v bool) { + x.xxx_hidden_RequiresExternalConnector = v +} + +func (x *Configuration) SetFieldGroups(v []*FieldGroup) { + x.xxx_hidden_FieldGroups = &v +} + +type Configuration_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Fields []*Field + Constraints []*Constraint + DisplayName string + HelpUrl string + IconUrl string + IsDirectory bool + CatalogId string + SupportsExternalResources bool + RequiresExternalConnector bool + FieldGroups []*FieldGroup +} + +func (b0 Configuration_builder) Build() *Configuration { + m0 := &Configuration{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Fields = &b.Fields + x.xxx_hidden_Constraints = &b.Constraints + x.xxx_hidden_DisplayName = b.DisplayName + x.xxx_hidden_HelpUrl = b.HelpUrl + x.xxx_hidden_IconUrl = b.IconUrl + x.xxx_hidden_IsDirectory = b.IsDirectory + x.xxx_hidden_CatalogId = b.CatalogId + x.xxx_hidden_SupportsExternalResources = b.SupportsExternalResources + x.xxx_hidden_RequiresExternalConnector = b.RequiresExternalConnector + x.xxx_hidden_FieldGroups = &b.FieldGroups + return m0 +} + +type Constraint struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Kind ConstraintKind `protobuf:"varint,1,opt,name=kind,proto3,enum=c1.config.v1.ConstraintKind"` + xxx_hidden_FieldNames []string `protobuf:"bytes,2,rep,name=field_names,json=fieldNames,proto3"` + xxx_hidden_SecondaryFieldNames []string `protobuf:"bytes,3,rep,name=secondary_field_names,json=secondaryFieldNames,proto3"` + xxx_hidden_Name string `protobuf:"bytes,4,opt,name=name,proto3"` + xxx_hidden_HelpText string `protobuf:"bytes,5,opt,name=help_text,json=helpText,proto3"` + xxx_hidden_IsFieldGroup bool `protobuf:"varint,6,opt,name=is_field_group,json=isFieldGroup,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *Constraint) Reset() { + *x = Constraint{} + mi := &file_c1_config_v1_config_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *Constraint) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Constraint) ProtoMessage() {} + +func (x *Constraint) ProtoReflect() protoreflect.Message { + mi := &file_c1_config_v1_config_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) +} + +func (x *Constraint) GetKind() ConstraintKind { + if x != nil { + return x.xxx_hidden_Kind + } + return ConstraintKind_CONSTRAINT_KIND_UNSPECIFIED +} + +func (x *Constraint) GetFieldNames() []string { + if x != nil { + return x.xxx_hidden_FieldNames + } + return nil +} + +func (x *Constraint) GetSecondaryFieldNames() []string { + if x != nil { + return x.xxx_hidden_SecondaryFieldNames + } + return nil +} + +func (x *Constraint) GetName() string { + if x != nil { + return x.xxx_hidden_Name + } + return "" +} + +func (x *Constraint) GetHelpText() string { + if x != nil { + return x.xxx_hidden_HelpText + } + return "" +} + +func (x *Constraint) GetIsFieldGroup() bool { + if x != nil { + return x.xxx_hidden_IsFieldGroup + } + return false +} + +func (x *Constraint) SetKind(v ConstraintKind) { + x.xxx_hidden_Kind = v +} + +func (x *Constraint) SetFieldNames(v []string) { + x.xxx_hidden_FieldNames = v +} + +func (x *Constraint) SetSecondaryFieldNames(v []string) { + x.xxx_hidden_SecondaryFieldNames = v +} + +func (x *Constraint) SetName(v string) { + x.xxx_hidden_Name = v +} + +func (x *Constraint) SetHelpText(v string) { + x.xxx_hidden_HelpText = v +} + +func (x *Constraint) SetIsFieldGroup(v bool) { + x.xxx_hidden_IsFieldGroup = v +} + +type Constraint_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Kind ConstraintKind + FieldNames []string + SecondaryFieldNames []string + Name string + HelpText string + IsFieldGroup bool +} + +func (b0 Constraint_builder) Build() *Constraint { + m0 := &Constraint{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Kind = b.Kind + x.xxx_hidden_FieldNames = b.FieldNames + x.xxx_hidden_SecondaryFieldNames = b.SecondaryFieldNames + x.xxx_hidden_Name = b.Name + x.xxx_hidden_HelpText = b.HelpText + x.xxx_hidden_IsFieldGroup = b.IsFieldGroup + return m0 +} + +type FieldGroup struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Name string `protobuf:"bytes,1,opt,name=name,proto3"` + xxx_hidden_DisplayName string `protobuf:"bytes,2,opt,name=display_name,json=displayName,proto3"` + xxx_hidden_HelpText string `protobuf:"bytes,3,opt,name=help_text,json=helpText,proto3"` + xxx_hidden_Fields []string `protobuf:"bytes,4,rep,name=fields,proto3"` + xxx_hidden_Default bool `protobuf:"varint,5,opt,name=default,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *FieldGroup) Reset() { + *x = FieldGroup{} + mi := &file_c1_config_v1_config_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *FieldGroup) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*FieldGroup) ProtoMessage() {} + +func (x *FieldGroup) ProtoReflect() protoreflect.Message { + mi := &file_c1_config_v1_config_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) +} + +func (x *FieldGroup) GetName() string { + if x != nil { + return x.xxx_hidden_Name + } + return "" +} + +func (x *FieldGroup) GetDisplayName() string { + if x != nil { + return x.xxx_hidden_DisplayName + } + return "" +} + +func (x *FieldGroup) GetHelpText() string { + if x != nil { + return x.xxx_hidden_HelpText + } + return "" +} + +func (x *FieldGroup) GetFields() []string { + if x != nil { + return x.xxx_hidden_Fields + } + return nil +} + +func (x *FieldGroup) GetDefault() bool { + if x != nil { + return x.xxx_hidden_Default + } + return false +} + +func (x *FieldGroup) SetName(v string) { + x.xxx_hidden_Name = v +} + +func (x *FieldGroup) SetDisplayName(v string) { + x.xxx_hidden_DisplayName = v +} + +func (x *FieldGroup) SetHelpText(v string) { + x.xxx_hidden_HelpText = v +} + +func (x *FieldGroup) SetFields(v []string) { + x.xxx_hidden_Fields = v +} + +func (x *FieldGroup) SetDefault(v bool) { + x.xxx_hidden_Default = v +} + +type FieldGroup_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Name string + DisplayName string + HelpText string + Fields []string + Default bool +} + +func (b0 FieldGroup_builder) Build() *FieldGroup { + m0 := &FieldGroup{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Name = b.Name + x.xxx_hidden_DisplayName = b.DisplayName + x.xxx_hidden_HelpText = b.HelpText + x.xxx_hidden_Fields = b.Fields + x.xxx_hidden_Default = b.Default + return m0 +} + +type Field struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Name string `protobuf:"bytes,1,opt,name=name,proto3"` + xxx_hidden_DisplayName string `protobuf:"bytes,2,opt,name=display_name,json=displayName,proto3"` + xxx_hidden_Description string `protobuf:"bytes,3,opt,name=description,proto3"` + xxx_hidden_Placeholder string `protobuf:"bytes,4,opt,name=placeholder,proto3"` + xxx_hidden_IsRequired bool `protobuf:"varint,5,opt,name=is_required,json=isRequired,proto3"` + xxx_hidden_IsOps bool `protobuf:"varint,6,opt,name=is_ops,json=isOps,proto3"` + xxx_hidden_IsSecret bool `protobuf:"varint,7,opt,name=is_secret,json=isSecret,proto3"` + xxx_hidden_Field isField_Field `protobuf_oneof:"field"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *Field) Reset() { + *x = Field{} + mi := &file_c1_config_v1_config_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *Field) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Field) ProtoMessage() {} + +func (x *Field) ProtoReflect() protoreflect.Message { + mi := &file_c1_config_v1_config_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) +} + +func (x *Field) GetName() string { + if x != nil { + return x.xxx_hidden_Name + } + return "" +} + +func (x *Field) GetDisplayName() string { + if x != nil { + return x.xxx_hidden_DisplayName + } + return "" +} + +func (x *Field) GetDescription() string { + if x != nil { + return x.xxx_hidden_Description + } + return "" +} + +func (x *Field) GetPlaceholder() string { + if x != nil { + return x.xxx_hidden_Placeholder + } + return "" +} + +func (x *Field) GetIsRequired() bool { + if x != nil { + return x.xxx_hidden_IsRequired + } + return false +} + +func (x *Field) GetIsOps() bool { + if x != nil { + return x.xxx_hidden_IsOps + } + return false +} + +func (x *Field) GetIsSecret() bool { + if x != nil { + return x.xxx_hidden_IsSecret + } + return false +} + +func (x *Field) GetStringField() *StringField { + if x != nil { + if x, ok := x.xxx_hidden_Field.(*field_StringField); ok { + return x.StringField + } + } + return nil +} + +func (x *Field) GetIntField() *IntField { + if x != nil { + if x, ok := x.xxx_hidden_Field.(*field_IntField); ok { + return x.IntField + } + } + return nil +} + +func (x *Field) GetBoolField() *BoolField { + if x != nil { + if x, ok := x.xxx_hidden_Field.(*field_BoolField); ok { + return x.BoolField + } + } + return nil +} + +func (x *Field) GetStringSliceField() *StringSliceField { + if x != nil { + if x, ok := x.xxx_hidden_Field.(*field_StringSliceField); ok { + return x.StringSliceField + } + } + return nil +} + +func (x *Field) GetStringMapField() *StringMapField { + if x != nil { + if x, ok := x.xxx_hidden_Field.(*field_StringMapField); ok { + return x.StringMapField + } + } + return nil +} + +func (x *Field) GetResourceIdField() *ResourceIdField { + if x != nil { + if x, ok := x.xxx_hidden_Field.(*field_ResourceIdField); ok { + return x.ResourceIdField + } + } + return nil +} + +func (x *Field) GetResourceIdSliceField() *ResourceIdSliceField { + if x != nil { + if x, ok := x.xxx_hidden_Field.(*field_ResourceIdSliceField); ok { + return x.ResourceIdSliceField + } + } + return nil +} + +func (x *Field) GetResourceField() *ResourceField { + if x != nil { + if x, ok := x.xxx_hidden_Field.(*field_ResourceField); ok { + return x.ResourceField + } + } + return nil +} + +func (x *Field) GetResourceSliceField() *ResourceSliceField { + if x != nil { + if x, ok := x.xxx_hidden_Field.(*field_ResourceSliceField); ok { + return x.ResourceSliceField + } + } + return nil +} + +func (x *Field) SetName(v string) { + x.xxx_hidden_Name = v +} + +func (x *Field) SetDisplayName(v string) { + x.xxx_hidden_DisplayName = v +} + +func (x *Field) SetDescription(v string) { + x.xxx_hidden_Description = v +} + +func (x *Field) SetPlaceholder(v string) { + x.xxx_hidden_Placeholder = v +} + +func (x *Field) SetIsRequired(v bool) { + x.xxx_hidden_IsRequired = v +} + +func (x *Field) SetIsOps(v bool) { + x.xxx_hidden_IsOps = v +} + +func (x *Field) SetIsSecret(v bool) { + x.xxx_hidden_IsSecret = v +} + +func (x *Field) SetStringField(v *StringField) { + if v == nil { + x.xxx_hidden_Field = nil + return + } + x.xxx_hidden_Field = &field_StringField{v} +} + +func (x *Field) SetIntField(v *IntField) { + if v == nil { + x.xxx_hidden_Field = nil + return + } + x.xxx_hidden_Field = &field_IntField{v} +} + +func (x *Field) SetBoolField(v *BoolField) { + if v == nil { + x.xxx_hidden_Field = nil + return + } + x.xxx_hidden_Field = &field_BoolField{v} +} + +func (x *Field) SetStringSliceField(v *StringSliceField) { + if v == nil { + x.xxx_hidden_Field = nil + return + } + x.xxx_hidden_Field = &field_StringSliceField{v} +} + +func (x *Field) SetStringMapField(v *StringMapField) { + if v == nil { + x.xxx_hidden_Field = nil + return + } + x.xxx_hidden_Field = &field_StringMapField{v} +} + +func (x *Field) SetResourceIdField(v *ResourceIdField) { + if v == nil { + x.xxx_hidden_Field = nil + return + } + x.xxx_hidden_Field = &field_ResourceIdField{v} +} + +func (x *Field) SetResourceIdSliceField(v *ResourceIdSliceField) { + if v == nil { + x.xxx_hidden_Field = nil + return + } + x.xxx_hidden_Field = &field_ResourceIdSliceField{v} +} + +func (x *Field) SetResourceField(v *ResourceField) { + if v == nil { + x.xxx_hidden_Field = nil + return + } + x.xxx_hidden_Field = &field_ResourceField{v} +} + +func (x *Field) SetResourceSliceField(v *ResourceSliceField) { + if v == nil { + x.xxx_hidden_Field = nil + return + } + x.xxx_hidden_Field = &field_ResourceSliceField{v} +} + +func (x *Field) HasField() bool { + if x == nil { + return false + } + return x.xxx_hidden_Field != nil +} + +func (x *Field) HasStringField() bool { + if x == nil { + return false + } + _, ok := x.xxx_hidden_Field.(*field_StringField) + return ok +} + +func (x *Field) HasIntField() bool { + if x == nil { + return false + } + _, ok := x.xxx_hidden_Field.(*field_IntField) + return ok +} + +func (x *Field) HasBoolField() bool { + if x == nil { + return false + } + _, ok := x.xxx_hidden_Field.(*field_BoolField) + return ok +} + +func (x *Field) HasStringSliceField() bool { + if x == nil { + return false + } + _, ok := x.xxx_hidden_Field.(*field_StringSliceField) + return ok +} + +func (x *Field) HasStringMapField() bool { + if x == nil { + return false + } + _, ok := x.xxx_hidden_Field.(*field_StringMapField) + return ok +} + +func (x *Field) HasResourceIdField() bool { + if x == nil { + return false + } + _, ok := x.xxx_hidden_Field.(*field_ResourceIdField) + return ok +} + +func (x *Field) HasResourceIdSliceField() bool { + if x == nil { + return false + } + _, ok := x.xxx_hidden_Field.(*field_ResourceIdSliceField) + return ok +} + +func (x *Field) HasResourceField() bool { + if x == nil { + return false + } + _, ok := x.xxx_hidden_Field.(*field_ResourceField) + return ok +} + +func (x *Field) HasResourceSliceField() bool { + if x == nil { + return false + } + _, ok := x.xxx_hidden_Field.(*field_ResourceSliceField) + return ok +} + +func (x *Field) ClearField() { + x.xxx_hidden_Field = nil +} + +func (x *Field) ClearStringField() { + if _, ok := x.xxx_hidden_Field.(*field_StringField); ok { + x.xxx_hidden_Field = nil + } +} + +func (x *Field) ClearIntField() { + if _, ok := x.xxx_hidden_Field.(*field_IntField); ok { + x.xxx_hidden_Field = nil + } +} + +func (x *Field) ClearBoolField() { + if _, ok := x.xxx_hidden_Field.(*field_BoolField); ok { + x.xxx_hidden_Field = nil + } +} + +func (x *Field) ClearStringSliceField() { + if _, ok := x.xxx_hidden_Field.(*field_StringSliceField); ok { + x.xxx_hidden_Field = nil + } +} + +func (x *Field) ClearStringMapField() { + if _, ok := x.xxx_hidden_Field.(*field_StringMapField); ok { + x.xxx_hidden_Field = nil + } +} + +func (x *Field) ClearResourceIdField() { + if _, ok := x.xxx_hidden_Field.(*field_ResourceIdField); ok { + x.xxx_hidden_Field = nil + } +} + +func (x *Field) ClearResourceIdSliceField() { + if _, ok := x.xxx_hidden_Field.(*field_ResourceIdSliceField); ok { + x.xxx_hidden_Field = nil + } +} + +func (x *Field) ClearResourceField() { + if _, ok := x.xxx_hidden_Field.(*field_ResourceField); ok { + x.xxx_hidden_Field = nil + } +} + +func (x *Field) ClearResourceSliceField() { + if _, ok := x.xxx_hidden_Field.(*field_ResourceSliceField); ok { + x.xxx_hidden_Field = nil + } +} + +const Field_Field_not_set_case case_Field_Field = 0 +const Field_StringField_case case_Field_Field = 100 +const Field_IntField_case case_Field_Field = 101 +const Field_BoolField_case case_Field_Field = 102 +const Field_StringSliceField_case case_Field_Field = 103 +const Field_StringMapField_case case_Field_Field = 104 +const Field_ResourceIdField_case case_Field_Field = 105 +const Field_ResourceIdSliceField_case case_Field_Field = 106 +const Field_ResourceField_case case_Field_Field = 107 +const Field_ResourceSliceField_case case_Field_Field = 108 + +func (x *Field) WhichField() case_Field_Field { + if x == nil { + return Field_Field_not_set_case + } + switch x.xxx_hidden_Field.(type) { + case *field_StringField: + return Field_StringField_case + case *field_IntField: + return Field_IntField_case + case *field_BoolField: + return Field_BoolField_case + case *field_StringSliceField: + return Field_StringSliceField_case + case *field_StringMapField: + return Field_StringMapField_case + case *field_ResourceIdField: + return Field_ResourceIdField_case + case *field_ResourceIdSliceField: + return Field_ResourceIdSliceField_case + case *field_ResourceField: + return Field_ResourceField_case + case *field_ResourceSliceField: + return Field_ResourceSliceField_case + default: + return Field_Field_not_set_case + } +} + +type Field_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Name string + DisplayName string + Description string + Placeholder string + IsRequired bool + IsOps bool + IsSecret bool + // Fields of oneof xxx_hidden_Field: + StringField *StringField + IntField *IntField + BoolField *BoolField + StringSliceField *StringSliceField + StringMapField *StringMapField + ResourceIdField *ResourceIdField + ResourceIdSliceField *ResourceIdSliceField + // These are meant to serve as return types for actions. + ResourceField *ResourceField + ResourceSliceField *ResourceSliceField + // -- end of xxx_hidden_Field +} + +func (b0 Field_builder) Build() *Field { + m0 := &Field{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Name = b.Name + x.xxx_hidden_DisplayName = b.DisplayName + x.xxx_hidden_Description = b.Description + x.xxx_hidden_Placeholder = b.Placeholder + x.xxx_hidden_IsRequired = b.IsRequired + x.xxx_hidden_IsOps = b.IsOps + x.xxx_hidden_IsSecret = b.IsSecret + if b.StringField != nil { + x.xxx_hidden_Field = &field_StringField{b.StringField} + } + if b.IntField != nil { + x.xxx_hidden_Field = &field_IntField{b.IntField} + } + if b.BoolField != nil { + x.xxx_hidden_Field = &field_BoolField{b.BoolField} + } + if b.StringSliceField != nil { + x.xxx_hidden_Field = &field_StringSliceField{b.StringSliceField} + } + if b.StringMapField != nil { + x.xxx_hidden_Field = &field_StringMapField{b.StringMapField} + } + if b.ResourceIdField != nil { + x.xxx_hidden_Field = &field_ResourceIdField{b.ResourceIdField} + } + if b.ResourceIdSliceField != nil { + x.xxx_hidden_Field = &field_ResourceIdSliceField{b.ResourceIdSliceField} + } + if b.ResourceField != nil { + x.xxx_hidden_Field = &field_ResourceField{b.ResourceField} + } + if b.ResourceSliceField != nil { + x.xxx_hidden_Field = &field_ResourceSliceField{b.ResourceSliceField} + } + return m0 +} + +type case_Field_Field protoreflect.FieldNumber + +func (x case_Field_Field) String() string { + md := file_c1_config_v1_config_proto_msgTypes[3].Descriptor() + if x == 0 { + return "not set" + } + return protoimpl.X.MessageFieldStringOf(md, protoreflect.FieldNumber(x)) +} + +type isField_Field interface { + isField_Field() +} + +type field_StringField struct { + StringField *StringField `protobuf:"bytes,100,opt,name=string_field,json=stringField,proto3,oneof"` +} + +type field_IntField struct { + IntField *IntField `protobuf:"bytes,101,opt,name=int_field,json=intField,proto3,oneof"` +} + +type field_BoolField struct { + BoolField *BoolField `protobuf:"bytes,102,opt,name=bool_field,json=boolField,proto3,oneof"` +} + +type field_StringSliceField struct { + StringSliceField *StringSliceField `protobuf:"bytes,103,opt,name=string_slice_field,json=stringSliceField,proto3,oneof"` +} + +type field_StringMapField struct { + StringMapField *StringMapField `protobuf:"bytes,104,opt,name=string_map_field,json=stringMapField,proto3,oneof"` +} + +type field_ResourceIdField struct { + ResourceIdField *ResourceIdField `protobuf:"bytes,105,opt,name=resource_id_field,json=resourceIdField,proto3,oneof"` +} + +type field_ResourceIdSliceField struct { + ResourceIdSliceField *ResourceIdSliceField `protobuf:"bytes,106,opt,name=resource_id_slice_field,json=resourceIdSliceField,proto3,oneof"` +} + +type field_ResourceField struct { + // These are meant to serve as return types for actions. + ResourceField *ResourceField `protobuf:"bytes,107,opt,name=resource_field,json=resourceField,proto3,oneof"` +} + +type field_ResourceSliceField struct { + ResourceSliceField *ResourceSliceField `protobuf:"bytes,108,opt,name=resource_slice_field,json=resourceSliceField,proto3,oneof"` +} + +func (*field_StringField) isField_Field() {} + +func (*field_IntField) isField_Field() {} + +func (*field_BoolField) isField_Field() {} + +func (*field_StringSliceField) isField_Field() {} + +func (*field_StringMapField) isField_Field() {} + +func (*field_ResourceIdField) isField_Field() {} + +func (*field_ResourceIdSliceField) isField_Field() {} + +func (*field_ResourceField) isField_Field() {} + +func (*field_ResourceSliceField) isField_Field() {} + +// These are partially duplicate with the Resource proto in the connector package. +// This is to avoid import cycles +type Resource struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_ResourceId *ResourceId `protobuf:"bytes,1,opt,name=resource_id,json=resourceId,proto3"` + xxx_hidden_ParentResourceId *ResourceId `protobuf:"bytes,2,opt,name=parent_resource_id,json=parentResourceId,proto3"` + xxx_hidden_DisplayName string `protobuf:"bytes,3,opt,name=display_name,json=displayName,proto3"` + xxx_hidden_Description string `protobuf:"bytes,4,opt,name=description,proto3"` + xxx_hidden_Annotations *[]*anypb.Any `protobuf:"bytes,5,rep,name=annotations,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *Resource) Reset() { + *x = Resource{} + mi := &file_c1_config_v1_config_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *Resource) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Resource) ProtoMessage() {} + +func (x *Resource) ProtoReflect() protoreflect.Message { + mi := &file_c1_config_v1_config_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) +} + +func (x *Resource) GetResourceId() *ResourceId { + if x != nil { + return x.xxx_hidden_ResourceId + } + return nil +} + +func (x *Resource) GetParentResourceId() *ResourceId { + if x != nil { + return x.xxx_hidden_ParentResourceId + } + return nil +} + +func (x *Resource) GetDisplayName() string { + if x != nil { + return x.xxx_hidden_DisplayName + } + return "" +} + +func (x *Resource) GetDescription() string { + if x != nil { + return x.xxx_hidden_Description + } + return "" +} + +func (x *Resource) GetAnnotations() []*anypb.Any { + if x != nil { + if x.xxx_hidden_Annotations != nil { + return *x.xxx_hidden_Annotations + } + } + return nil +} + +func (x *Resource) SetResourceId(v *ResourceId) { + x.xxx_hidden_ResourceId = v +} + +func (x *Resource) SetParentResourceId(v *ResourceId) { + x.xxx_hidden_ParentResourceId = v +} + +func (x *Resource) SetDisplayName(v string) { + x.xxx_hidden_DisplayName = v +} + +func (x *Resource) SetDescription(v string) { + x.xxx_hidden_Description = v +} + +func (x *Resource) SetAnnotations(v []*anypb.Any) { + x.xxx_hidden_Annotations = &v +} + +func (x *Resource) HasResourceId() bool { + if x == nil { + return false + } + return x.xxx_hidden_ResourceId != nil +} + +func (x *Resource) HasParentResourceId() bool { + if x == nil { + return false + } + return x.xxx_hidden_ParentResourceId != nil +} + +func (x *Resource) ClearResourceId() { + x.xxx_hidden_ResourceId = nil +} + +func (x *Resource) ClearParentResourceId() { + x.xxx_hidden_ParentResourceId = nil +} + +type Resource_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + ResourceId *ResourceId + ParentResourceId *ResourceId + DisplayName string + Description string + Annotations []*anypb.Any +} + +func (b0 Resource_builder) Build() *Resource { + m0 := &Resource{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_ResourceId = b.ResourceId + x.xxx_hidden_ParentResourceId = b.ParentResourceId + x.xxx_hidden_DisplayName = b.DisplayName + x.xxx_hidden_Description = b.Description + x.xxx_hidden_Annotations = &b.Annotations + return m0 +} + +type ResourceId struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_ResourceTypeId string `protobuf:"bytes,1,opt,name=resource_type_id,json=resourceTypeId,proto3"` + xxx_hidden_ResourceId string `protobuf:"bytes,2,opt,name=resource_id,json=resourceId,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *ResourceId) Reset() { + *x = ResourceId{} + mi := &file_c1_config_v1_config_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *ResourceId) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ResourceId) ProtoMessage() {} + +func (x *ResourceId) ProtoReflect() protoreflect.Message { + mi := &file_c1_config_v1_config_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) +} + +func (x *ResourceId) GetResourceTypeId() string { + if x != nil { + return x.xxx_hidden_ResourceTypeId + } + return "" +} + +func (x *ResourceId) GetResourceId() string { + if x != nil { + return x.xxx_hidden_ResourceId + } + return "" +} + +func (x *ResourceId) SetResourceTypeId(v string) { + x.xxx_hidden_ResourceTypeId = v +} + +func (x *ResourceId) SetResourceId(v string) { + x.xxx_hidden_ResourceId = v +} + +type ResourceId_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + ResourceTypeId string + ResourceId string +} + +func (b0 ResourceId_builder) Build() *ResourceId { + m0 := &ResourceId{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_ResourceTypeId = b.ResourceTypeId + x.xxx_hidden_ResourceId = b.ResourceId + return m0 +} + +type ResourceField struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_DefaultValue *Resource `protobuf:"bytes,1,opt,name=default_value,json=defaultValue,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *ResourceField) Reset() { + *x = ResourceField{} + mi := &file_c1_config_v1_config_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *ResourceField) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ResourceField) ProtoMessage() {} + +func (x *ResourceField) ProtoReflect() protoreflect.Message { + mi := &file_c1_config_v1_config_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) +} + +func (x *ResourceField) GetDefaultValue() *Resource { + if x != nil { + return x.xxx_hidden_DefaultValue + } + return nil +} + +func (x *ResourceField) SetDefaultValue(v *Resource) { + x.xxx_hidden_DefaultValue = v +} + +func (x *ResourceField) HasDefaultValue() bool { + if x == nil { + return false + } + return x.xxx_hidden_DefaultValue != nil +} + +func (x *ResourceField) ClearDefaultValue() { + x.xxx_hidden_DefaultValue = nil +} + +type ResourceField_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + DefaultValue *Resource +} + +func (b0 ResourceField_builder) Build() *ResourceField { + m0 := &ResourceField{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_DefaultValue = b.DefaultValue + return m0 +} + +type ResourceSliceField struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_DefaultValue *[]*Resource `protobuf:"bytes,1,rep,name=default_value,json=defaultValue,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *ResourceSliceField) Reset() { + *x = ResourceSliceField{} + mi := &file_c1_config_v1_config_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *ResourceSliceField) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ResourceSliceField) ProtoMessage() {} + +func (x *ResourceSliceField) ProtoReflect() protoreflect.Message { + mi := &file_c1_config_v1_config_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) +} + +func (x *ResourceSliceField) GetDefaultValue() []*Resource { + if x != nil { + if x.xxx_hidden_DefaultValue != nil { + return *x.xxx_hidden_DefaultValue + } + } + return nil +} + +func (x *ResourceSliceField) SetDefaultValue(v []*Resource) { + x.xxx_hidden_DefaultValue = &v +} + +type ResourceSliceField_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + DefaultValue []*Resource +} + +func (b0 ResourceSliceField_builder) Build() *ResourceSliceField { + m0 := &ResourceSliceField{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_DefaultValue = &b.DefaultValue + return m0 +} + +type ResourceIdField struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_DefaultValue *ResourceId `protobuf:"bytes,1,opt,name=default_value,json=defaultValue,proto3"` + xxx_hidden_Rules *ResourceIDRules `protobuf:"bytes,3,opt,name=rules,proto3,oneof"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *ResourceIdField) Reset() { + *x = ResourceIdField{} + mi := &file_c1_config_v1_config_proto_msgTypes[8] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *ResourceIdField) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ResourceIdField) ProtoMessage() {} + +func (x *ResourceIdField) ProtoReflect() protoreflect.Message { + mi := &file_c1_config_v1_config_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) +} + +func (x *ResourceIdField) GetDefaultValue() *ResourceId { + if x != nil { + return x.xxx_hidden_DefaultValue + } + return nil +} + +func (x *ResourceIdField) GetRules() *ResourceIDRules { + if x != nil { + return x.xxx_hidden_Rules + } + return nil +} + +func (x *ResourceIdField) SetDefaultValue(v *ResourceId) { + x.xxx_hidden_DefaultValue = v +} + +func (x *ResourceIdField) SetRules(v *ResourceIDRules) { + x.xxx_hidden_Rules = v +} + +func (x *ResourceIdField) HasDefaultValue() bool { + if x == nil { + return false + } + return x.xxx_hidden_DefaultValue != nil +} + +func (x *ResourceIdField) HasRules() bool { + if x == nil { + return false + } + return x.xxx_hidden_Rules != nil +} + +func (x *ResourceIdField) ClearDefaultValue() { + x.xxx_hidden_DefaultValue = nil +} + +func (x *ResourceIdField) ClearRules() { + x.xxx_hidden_Rules = nil +} + +type ResourceIdField_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + DefaultValue *ResourceId + Rules *ResourceIDRules +} + +func (b0 ResourceIdField_builder) Build() *ResourceIdField { + m0 := &ResourceIdField{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_DefaultValue = b.DefaultValue + x.xxx_hidden_Rules = b.Rules + return m0 +} + +type ResourceIdSliceField struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_DefaultValue *[]*ResourceIdField `protobuf:"bytes,1,rep,name=default_value,json=defaultValue,proto3"` + xxx_hidden_Rules *RepeatedResourceIdRules `protobuf:"bytes,2,opt,name=rules,proto3,oneof"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *ResourceIdSliceField) Reset() { + *x = ResourceIdSliceField{} + mi := &file_c1_config_v1_config_proto_msgTypes[9] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *ResourceIdSliceField) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ResourceIdSliceField) ProtoMessage() {} + +func (x *ResourceIdSliceField) ProtoReflect() protoreflect.Message { + mi := &file_c1_config_v1_config_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) +} + +func (x *ResourceIdSliceField) GetDefaultValue() []*ResourceIdField { + if x != nil { + if x.xxx_hidden_DefaultValue != nil { + return *x.xxx_hidden_DefaultValue + } + } + return nil +} + +func (x *ResourceIdSliceField) GetRules() *RepeatedResourceIdRules { + if x != nil { + return x.xxx_hidden_Rules + } + return nil +} + +func (x *ResourceIdSliceField) SetDefaultValue(v []*ResourceIdField) { + x.xxx_hidden_DefaultValue = &v +} + +func (x *ResourceIdSliceField) SetRules(v *RepeatedResourceIdRules) { + x.xxx_hidden_Rules = v +} + +func (x *ResourceIdSliceField) HasRules() bool { + if x == nil { + return false + } + return x.xxx_hidden_Rules != nil +} + +func (x *ResourceIdSliceField) ClearRules() { + x.xxx_hidden_Rules = nil +} + +type ResourceIdSliceField_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + DefaultValue []*ResourceIdField + Rules *RepeatedResourceIdRules +} + +func (b0 ResourceIdSliceField_builder) Build() *ResourceIdSliceField { + m0 := &ResourceIdSliceField{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_DefaultValue = &b.DefaultValue + x.xxx_hidden_Rules = b.Rules + return m0 +} + +type IntField struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_DefaultValue int64 `protobuf:"varint,1,opt,name=default_value,json=defaultValue,proto3"` + xxx_hidden_Rules *Int64Rules `protobuf:"bytes,2,opt,name=rules,proto3,oneof"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *IntField) Reset() { + *x = IntField{} + mi := &file_c1_config_v1_config_proto_msgTypes[10] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *IntField) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*IntField) ProtoMessage() {} + +func (x *IntField) ProtoReflect() protoreflect.Message { + mi := &file_c1_config_v1_config_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) +} + +func (x *IntField) GetDefaultValue() int64 { + if x != nil { + return x.xxx_hidden_DefaultValue + } + return 0 +} + +func (x *IntField) GetRules() *Int64Rules { + if x != nil { + return x.xxx_hidden_Rules + } + return nil +} + +func (x *IntField) SetDefaultValue(v int64) { + x.xxx_hidden_DefaultValue = v +} + +func (x *IntField) SetRules(v *Int64Rules) { + x.xxx_hidden_Rules = v +} + +func (x *IntField) HasRules() bool { + if x == nil { + return false + } + return x.xxx_hidden_Rules != nil +} + +func (x *IntField) ClearRules() { + x.xxx_hidden_Rules = nil +} + +type IntField_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // rules + DefaultValue int64 + Rules *Int64Rules +} + +func (b0 IntField_builder) Build() *IntField { + m0 := &IntField{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_DefaultValue = b.DefaultValue + x.xxx_hidden_Rules = b.Rules + return m0 +} + +type BoolField struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_DefaultValue bool `protobuf:"varint,1,opt,name=default_value,json=defaultValue,proto3"` + xxx_hidden_Rules *BoolRules `protobuf:"bytes,2,opt,name=rules,proto3,oneof"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *BoolField) Reset() { + *x = BoolField{} + mi := &file_c1_config_v1_config_proto_msgTypes[11] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *BoolField) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*BoolField) ProtoMessage() {} + +func (x *BoolField) ProtoReflect() protoreflect.Message { + mi := &file_c1_config_v1_config_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) +} + +func (x *BoolField) GetDefaultValue() bool { + if x != nil { + return x.xxx_hidden_DefaultValue + } + return false +} + +func (x *BoolField) GetRules() *BoolRules { + if x != nil { + return x.xxx_hidden_Rules + } + return nil +} + +func (x *BoolField) SetDefaultValue(v bool) { + x.xxx_hidden_DefaultValue = v +} + +func (x *BoolField) SetRules(v *BoolRules) { + x.xxx_hidden_Rules = v +} + +func (x *BoolField) HasRules() bool { + if x == nil { + return false + } + return x.xxx_hidden_Rules != nil +} + +func (x *BoolField) ClearRules() { + x.xxx_hidden_Rules = nil +} + +type BoolField_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + DefaultValue bool + Rules *BoolRules +} + +func (b0 BoolField_builder) Build() *BoolField { + m0 := &BoolField{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_DefaultValue = b.DefaultValue + x.xxx_hidden_Rules = b.Rules + return m0 +} + +type StringSliceField struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_DefaultValue []string `protobuf:"bytes,1,rep,name=default_value,json=defaultValue,proto3"` + xxx_hidden_Rules *RepeatedStringRules `protobuf:"bytes,2,opt,name=rules,proto3,oneof"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *StringSliceField) Reset() { + *x = StringSliceField{} + mi := &file_c1_config_v1_config_proto_msgTypes[12] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *StringSliceField) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*StringSliceField) ProtoMessage() {} + +func (x *StringSliceField) ProtoReflect() protoreflect.Message { + mi := &file_c1_config_v1_config_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) +} + +func (x *StringSliceField) GetDefaultValue() []string { + if x != nil { + return x.xxx_hidden_DefaultValue + } + return nil +} + +func (x *StringSliceField) GetRules() *RepeatedStringRules { + if x != nil { + return x.xxx_hidden_Rules + } + return nil +} + +func (x *StringSliceField) SetDefaultValue(v []string) { + x.xxx_hidden_DefaultValue = v +} + +func (x *StringSliceField) SetRules(v *RepeatedStringRules) { + x.xxx_hidden_Rules = v +} + +func (x *StringSliceField) HasRules() bool { + if x == nil { + return false + } + return x.xxx_hidden_Rules != nil +} + +func (x *StringSliceField) ClearRules() { + x.xxx_hidden_Rules = nil +} + +type StringSliceField_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + DefaultValue []string + Rules *RepeatedStringRules +} + +func (b0 StringSliceField_builder) Build() *StringSliceField { + m0 := &StringSliceField{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_DefaultValue = b.DefaultValue + x.xxx_hidden_Rules = b.Rules + return m0 +} + +type StringMapField struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_DefaultValue map[string]*anypb.Any `protobuf:"bytes,1,rep,name=default_value,json=defaultValue,proto3" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"` + xxx_hidden_Rules *StringMapRules `protobuf:"bytes,2,opt,name=rules,proto3,oneof"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *StringMapField) Reset() { + *x = StringMapField{} + mi := &file_c1_config_v1_config_proto_msgTypes[13] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *StringMapField) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*StringMapField) ProtoMessage() {} + +func (x *StringMapField) ProtoReflect() protoreflect.Message { + mi := &file_c1_config_v1_config_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) +} + +func (x *StringMapField) GetDefaultValue() map[string]*anypb.Any { + if x != nil { + return x.xxx_hidden_DefaultValue + } + return nil +} + +func (x *StringMapField) GetRules() *StringMapRules { + if x != nil { + return x.xxx_hidden_Rules + } + return nil +} + +func (x *StringMapField) SetDefaultValue(v map[string]*anypb.Any) { + x.xxx_hidden_DefaultValue = v +} + +func (x *StringMapField) SetRules(v *StringMapRules) { + x.xxx_hidden_Rules = v +} + +func (x *StringMapField) HasRules() bool { + if x == nil { + return false + } + return x.xxx_hidden_Rules != nil +} + +func (x *StringMapField) ClearRules() { + x.xxx_hidden_Rules = nil +} + +type StringMapField_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + DefaultValue map[string]*anypb.Any + Rules *StringMapRules +} + +func (b0 StringMapField_builder) Build() *StringMapField { + m0 := &StringMapField{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_DefaultValue = b.DefaultValue + x.xxx_hidden_Rules = b.Rules + return m0 +} + +type StringFieldOption struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Name string `protobuf:"bytes,1,opt,name=name,proto3"` + xxx_hidden_Value string `protobuf:"bytes,2,opt,name=value,proto3"` + xxx_hidden_DisplayName string `protobuf:"bytes,3,opt,name=display_name,json=displayName,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *StringFieldOption) Reset() { + *x = StringFieldOption{} + mi := &file_c1_config_v1_config_proto_msgTypes[14] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *StringFieldOption) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*StringFieldOption) ProtoMessage() {} + +func (x *StringFieldOption) ProtoReflect() protoreflect.Message { + mi := &file_c1_config_v1_config_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) +} + +func (x *StringFieldOption) GetName() string { + if x != nil { + return x.xxx_hidden_Name + } + return "" +} + +func (x *StringFieldOption) GetValue() string { + if x != nil { + return x.xxx_hidden_Value + } + return "" +} + +func (x *StringFieldOption) GetDisplayName() string { + if x != nil { + return x.xxx_hidden_DisplayName + } + return "" +} + +func (x *StringFieldOption) SetName(v string) { + x.xxx_hidden_Name = v +} + +func (x *StringFieldOption) SetValue(v string) { + x.xxx_hidden_Value = v +} + +func (x *StringFieldOption) SetDisplayName(v string) { + x.xxx_hidden_DisplayName = v +} + +type StringFieldOption_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Name string + Value string + DisplayName string +} + +func (b0 StringFieldOption_builder) Build() *StringFieldOption { + m0 := &StringFieldOption{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Name = b.Name + x.xxx_hidden_Value = b.Value + x.xxx_hidden_DisplayName = b.DisplayName + return m0 +} + +type StringField struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_DefaultValue string `protobuf:"bytes,1,opt,name=default_value,json=defaultValue,proto3"` + xxx_hidden_Rules *StringRules `protobuf:"bytes,2,opt,name=rules,proto3,oneof"` + xxx_hidden_Type StringFieldType `protobuf:"varint,3,opt,name=type,proto3,enum=c1.config.v1.StringFieldType"` + xxx_hidden_AllowedExtensions []string `protobuf:"bytes,4,rep,name=allowed_extensions,json=allowedExtensions,proto3"` + xxx_hidden_Options *[]*StringFieldOption `protobuf:"bytes,5,rep,name=options,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *StringField) Reset() { + *x = StringField{} + mi := &file_c1_config_v1_config_proto_msgTypes[15] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *StringField) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*StringField) ProtoMessage() {} + +func (x *StringField) ProtoReflect() protoreflect.Message { + mi := &file_c1_config_v1_config_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) +} + +func (x *StringField) GetDefaultValue() string { + if x != nil { + return x.xxx_hidden_DefaultValue + } + return "" +} + +func (x *StringField) GetRules() *StringRules { + if x != nil { + return x.xxx_hidden_Rules + } + return nil +} + +func (x *StringField) GetType() StringFieldType { + if x != nil { + return x.xxx_hidden_Type + } + return StringFieldType_STRING_FIELD_TYPE_TEXT_UNSPECIFIED +} + +func (x *StringField) GetAllowedExtensions() []string { + if x != nil { + return x.xxx_hidden_AllowedExtensions + } + return nil +} + +func (x *StringField) GetOptions() []*StringFieldOption { + if x != nil { + if x.xxx_hidden_Options != nil { + return *x.xxx_hidden_Options + } + } + return nil +} + +func (x *StringField) SetDefaultValue(v string) { + x.xxx_hidden_DefaultValue = v +} + +func (x *StringField) SetRules(v *StringRules) { + x.xxx_hidden_Rules = v +} + +func (x *StringField) SetType(v StringFieldType) { + x.xxx_hidden_Type = v +} + +func (x *StringField) SetAllowedExtensions(v []string) { + x.xxx_hidden_AllowedExtensions = v +} + +func (x *StringField) SetOptions(v []*StringFieldOption) { + x.xxx_hidden_Options = &v +} + +func (x *StringField) HasRules() bool { + if x == nil { + return false + } + return x.xxx_hidden_Rules != nil +} + +func (x *StringField) ClearRules() { + x.xxx_hidden_Rules = nil +} + +type StringField_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + DefaultValue string + Rules *StringRules + Type StringFieldType + // only used for FileUpload atm, oneofs are evil + AllowedExtensions []string + Options []*StringFieldOption +} + +func (b0 StringField_builder) Build() *StringField { + m0 := &StringField{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_DefaultValue = b.DefaultValue + x.xxx_hidden_Rules = b.Rules + x.xxx_hidden_Type = b.Type + x.xxx_hidden_AllowedExtensions = b.AllowedExtensions + x.xxx_hidden_Options = &b.Options + return m0 +} + +var File_c1_config_v1_config_proto protoreflect.FileDescriptor + +const file_c1_config_v1_config_proto_rawDesc = "" + + "\n" + + "\x19c1/config/v1/config.proto\x12\fc1.config.v1\x1a\x18c1/config/v1/rules.proto\x1a\x19google/protobuf/any.proto\"\xd0\x03\n" + + "\rConfiguration\x12+\n" + + "\x06fields\x18\x01 \x03(\v2\x13.c1.config.v1.FieldR\x06fields\x12:\n" + + "\vconstraints\x18\x02 \x03(\v2\x18.c1.config.v1.ConstraintR\vconstraints\x12!\n" + + "\fdisplay_name\x18\x03 \x01(\tR\vdisplayName\x12\x19\n" + + "\bhelp_url\x18\x04 \x01(\tR\ahelpUrl\x12\x19\n" + + "\bicon_url\x18\x05 \x01(\tR\aiconUrl\x12!\n" + + "\fis_directory\x18\a \x01(\bR\visDirectory\x12\x1d\n" + + "\n" + + "catalog_id\x18\b \x01(\tR\tcatalogId\x12>\n" + + "\x1bsupports_external_resources\x18\t \x01(\bR\x19supportsExternalResources\x12>\n" + + "\x1brequires_external_connector\x18\n" + + " \x01(\bR\x19requiresExternalConnector\x12;\n" + + "\ffield_groups\x18\v \x03(\v2\x18.c1.config.v1.FieldGroupR\vfieldGroups\"\xea\x01\n" + + "\n" + + "Constraint\x120\n" + + "\x04kind\x18\x01 \x01(\x0e2\x1c.c1.config.v1.ConstraintKindR\x04kind\x12\x1f\n" + + "\vfield_names\x18\x02 \x03(\tR\n" + + "fieldNames\x122\n" + + "\x15secondary_field_names\x18\x03 \x03(\tR\x13secondaryFieldNames\x12\x12\n" + + "\x04name\x18\x04 \x01(\tR\x04name\x12\x1b\n" + + "\thelp_text\x18\x05 \x01(\tR\bhelpText\x12$\n" + + "\x0eis_field_group\x18\x06 \x01(\bR\fisFieldGroup\"\x92\x01\n" + + "\n" + + "FieldGroup\x12\x12\n" + + "\x04name\x18\x01 \x01(\tR\x04name\x12!\n" + + "\fdisplay_name\x18\x02 \x01(\tR\vdisplayName\x12\x1b\n" + + "\thelp_text\x18\x03 \x01(\tR\bhelpText\x12\x16\n" + + "\x06fields\x18\x04 \x03(\tR\x06fields\x12\x18\n" + + "\adefault\x18\x05 \x01(\bR\adefault\"\xf1\x06\n" + + "\x05Field\x12\x12\n" + + "\x04name\x18\x01 \x01(\tR\x04name\x12!\n" + + "\fdisplay_name\x18\x02 \x01(\tR\vdisplayName\x12 \n" + + "\vdescription\x18\x03 \x01(\tR\vdescription\x12 \n" + + "\vplaceholder\x18\x04 \x01(\tR\vplaceholder\x12\x1f\n" + + "\vis_required\x18\x05 \x01(\bR\n" + + "isRequired\x12\x15\n" + + "\x06is_ops\x18\x06 \x01(\bR\x05isOps\x12\x1b\n" + + "\tis_secret\x18\a \x01(\bR\bisSecret\x12>\n" + + "\fstring_field\x18d \x01(\v2\x19.c1.config.v1.StringFieldH\x00R\vstringField\x125\n" + + "\tint_field\x18e \x01(\v2\x16.c1.config.v1.IntFieldH\x00R\bintField\x128\n" + + "\n" + + "bool_field\x18f \x01(\v2\x17.c1.config.v1.BoolFieldH\x00R\tboolField\x12N\n" + + "\x12string_slice_field\x18g \x01(\v2\x1e.c1.config.v1.StringSliceFieldH\x00R\x10stringSliceField\x12H\n" + + "\x10string_map_field\x18h \x01(\v2\x1c.c1.config.v1.StringMapFieldH\x00R\x0estringMapField\x12K\n" + + "\x11resource_id_field\x18i \x01(\v2\x1d.c1.config.v1.ResourceIdFieldH\x00R\x0fresourceIdField\x12[\n" + + "\x17resource_id_slice_field\x18j \x01(\v2\".c1.config.v1.ResourceIdSliceFieldH\x00R\x14resourceIdSliceField\x12D\n" + + "\x0eresource_field\x18k \x01(\v2\x1b.c1.config.v1.ResourceFieldH\x00R\rresourceField\x12T\n" + + "\x14resource_slice_field\x18l \x01(\v2 .c1.config.v1.ResourceSliceFieldH\x00R\x12resourceSliceFieldB\a\n" + + "\x05field\"\x8a\x02\n" + + "\bResource\x129\n" + + "\vresource_id\x18\x01 \x01(\v2\x18.c1.config.v1.ResourceIdR\n" + + "resourceId\x12F\n" + + "\x12parent_resource_id\x18\x02 \x01(\v2\x18.c1.config.v1.ResourceIdR\x10parentResourceId\x12!\n" + + "\fdisplay_name\x18\x03 \x01(\tR\vdisplayName\x12 \n" + + "\vdescription\x18\x04 \x01(\tR\vdescription\x126\n" + + "\vannotations\x18\x05 \x03(\v2\x14.google.protobuf.AnyR\vannotations\"W\n" + + "\n" + + "ResourceId\x12(\n" + + "\x10resource_type_id\x18\x01 \x01(\tR\x0eresourceTypeId\x12\x1f\n" + + "\vresource_id\x18\x02 \x01(\tR\n" + + "resourceId\"L\n" + + "\rResourceField\x12;\n" + + "\rdefault_value\x18\x01 \x01(\v2\x16.c1.config.v1.ResourceR\fdefaultValue\"Q\n" + + "\x12ResourceSliceField\x12;\n" + + "\rdefault_value\x18\x01 \x03(\v2\x16.c1.config.v1.ResourceR\fdefaultValue\"\x94\x01\n" + + "\x0fResourceIdField\x12=\n" + + "\rdefault_value\x18\x01 \x01(\v2\x18.c1.config.v1.ResourceIdR\fdefaultValue\x128\n" + + "\x05rules\x18\x03 \x01(\v2\x1d.c1.config.v1.ResourceIDRulesH\x00R\x05rules\x88\x01\x01B\b\n" + + "\x06_rules\"\xa6\x01\n" + + "\x14ResourceIdSliceField\x12B\n" + + "\rdefault_value\x18\x01 \x03(\v2\x1d.c1.config.v1.ResourceIdFieldR\fdefaultValue\x12@\n" + + "\x05rules\x18\x02 \x01(\v2%.c1.config.v1.RepeatedResourceIdRulesH\x00R\x05rules\x88\x01\x01B\b\n" + + "\x06_rules\"n\n" + + "\bIntField\x12#\n" + + "\rdefault_value\x18\x01 \x01(\x03R\fdefaultValue\x123\n" + + "\x05rules\x18\x02 \x01(\v2\x18.c1.config.v1.Int64RulesH\x00R\x05rules\x88\x01\x01B\b\n" + + "\x06_rules\"n\n" + + "\tBoolField\x12#\n" + + "\rdefault_value\x18\x01 \x01(\bR\fdefaultValue\x122\n" + + "\x05rules\x18\x02 \x01(\v2\x17.c1.config.v1.BoolRulesH\x00R\x05rules\x88\x01\x01B\b\n" + + "\x06_rules\"\x7f\n" + + "\x10StringSliceField\x12#\n" + + "\rdefault_value\x18\x01 \x03(\tR\fdefaultValue\x12<\n" + + "\x05rules\x18\x02 \x01(\v2!.c1.config.v1.RepeatedStringRulesH\x00R\x05rules\x88\x01\x01B\b\n" + + "\x06_rules\"\xff\x01\n" + + "\x0eStringMapField\x12S\n" + + "\rdefault_value\x18\x01 \x03(\v2..c1.config.v1.StringMapField.DefaultValueEntryR\fdefaultValue\x127\n" + + "\x05rules\x18\x02 \x01(\v2\x1c.c1.config.v1.StringMapRulesH\x00R\x05rules\x88\x01\x01\x1aU\n" + + "\x11DefaultValueEntry\x12\x10\n" + + "\x03key\x18\x01 \x01(\tR\x03key\x12*\n" + + "\x05value\x18\x02 \x01(\v2\x14.google.protobuf.AnyR\x05value:\x028\x01B\b\n" + + "\x06_rules\"`\n" + + "\x11StringFieldOption\x12\x12\n" + + "\x04name\x18\x01 \x01(\tR\x04name\x12\x14\n" + + "\x05value\x18\x02 \x01(\tR\x05value\x12!\n" + + "\fdisplay_name\x18\x03 \x01(\tR\vdisplayName\"\x8f\x02\n" + + "\vStringField\x12#\n" + + "\rdefault_value\x18\x01 \x01(\tR\fdefaultValue\x124\n" + + "\x05rules\x18\x02 \x01(\v2\x19.c1.config.v1.StringRulesH\x00R\x05rules\x88\x01\x01\x121\n" + + "\x04type\x18\x03 \x01(\x0e2\x1d.c1.config.v1.StringFieldTypeR\x04type\x12-\n" + + "\x12allowed_extensions\x18\x04 \x03(\tR\x11allowedExtensions\x129\n" + + "\aoptions\x18\x05 \x03(\v2\x1f.c1.config.v1.StringFieldOptionR\aoptionsB\b\n" + + "\x06_rules*\xc4\x01\n" + + "\x0eConstraintKind\x12\x1f\n" + + "\x1bCONSTRAINT_KIND_UNSPECIFIED\x10\x00\x12%\n" + + "!CONSTRAINT_KIND_REQUIRED_TOGETHER\x10\x01\x12 \n" + + "\x1cCONSTRAINT_KIND_AT_LEAST_ONE\x10\x02\x12&\n" + + "\"CONSTRAINT_KIND_MUTUALLY_EXCLUSIVE\x10\x03\x12 \n" + + "\x1cCONSTRAINT_KIND_DEPENDENT_ON\x10\x04*\xc9\x01\n" + + "\x0fStringFieldType\x12&\n" + + "\"STRING_FIELD_TYPE_TEXT_UNSPECIFIED\x10\x00\x12\x1c\n" + + "\x18STRING_FIELD_TYPE_RANDOM\x10\x01\x12\x1c\n" + + "\x18STRING_FIELD_TYPE_OAUTH2\x10\x02\x12/\n" + + "+STRING_FIELD_TYPE_CONNECTOR_DERIVED_OPTIONS\x10\x03\x12!\n" + + "\x1dSTRING_FIELD_TYPE_FILE_UPLOAD\x10\x04B3Z1github.com/conductorone/baton-sdk/pb/c1/config/v1b\x06proto3" + +var file_c1_config_v1_config_proto_enumTypes = make([]protoimpl.EnumInfo, 2) +var file_c1_config_v1_config_proto_msgTypes = make([]protoimpl.MessageInfo, 17) +var file_c1_config_v1_config_proto_goTypes = []any{ + (ConstraintKind)(0), // 0: c1.config.v1.ConstraintKind + (StringFieldType)(0), // 1: c1.config.v1.StringFieldType + (*Configuration)(nil), // 2: c1.config.v1.Configuration + (*Constraint)(nil), // 3: c1.config.v1.Constraint + (*FieldGroup)(nil), // 4: c1.config.v1.FieldGroup + (*Field)(nil), // 5: c1.config.v1.Field + (*Resource)(nil), // 6: c1.config.v1.Resource + (*ResourceId)(nil), // 7: c1.config.v1.ResourceId + (*ResourceField)(nil), // 8: c1.config.v1.ResourceField + (*ResourceSliceField)(nil), // 9: c1.config.v1.ResourceSliceField + (*ResourceIdField)(nil), // 10: c1.config.v1.ResourceIdField + (*ResourceIdSliceField)(nil), // 11: c1.config.v1.ResourceIdSliceField + (*IntField)(nil), // 12: c1.config.v1.IntField + (*BoolField)(nil), // 13: c1.config.v1.BoolField + (*StringSliceField)(nil), // 14: c1.config.v1.StringSliceField + (*StringMapField)(nil), // 15: c1.config.v1.StringMapField + (*StringFieldOption)(nil), // 16: c1.config.v1.StringFieldOption + (*StringField)(nil), // 17: c1.config.v1.StringField + nil, // 18: c1.config.v1.StringMapField.DefaultValueEntry + (*anypb.Any)(nil), // 19: google.protobuf.Any + (*ResourceIDRules)(nil), // 20: c1.config.v1.ResourceIDRules + (*RepeatedResourceIdRules)(nil), // 21: c1.config.v1.RepeatedResourceIdRules + (*Int64Rules)(nil), // 22: c1.config.v1.Int64Rules + (*BoolRules)(nil), // 23: c1.config.v1.BoolRules + (*RepeatedStringRules)(nil), // 24: c1.config.v1.RepeatedStringRules + (*StringMapRules)(nil), // 25: c1.config.v1.StringMapRules + (*StringRules)(nil), // 26: c1.config.v1.StringRules +} +var file_c1_config_v1_config_proto_depIdxs = []int32{ + 5, // 0: c1.config.v1.Configuration.fields:type_name -> c1.config.v1.Field + 3, // 1: c1.config.v1.Configuration.constraints:type_name -> c1.config.v1.Constraint + 4, // 2: c1.config.v1.Configuration.field_groups:type_name -> c1.config.v1.FieldGroup + 0, // 3: c1.config.v1.Constraint.kind:type_name -> c1.config.v1.ConstraintKind + 17, // 4: c1.config.v1.Field.string_field:type_name -> c1.config.v1.StringField + 12, // 5: c1.config.v1.Field.int_field:type_name -> c1.config.v1.IntField + 13, // 6: c1.config.v1.Field.bool_field:type_name -> c1.config.v1.BoolField + 14, // 7: c1.config.v1.Field.string_slice_field:type_name -> c1.config.v1.StringSliceField + 15, // 8: c1.config.v1.Field.string_map_field:type_name -> c1.config.v1.StringMapField + 10, // 9: c1.config.v1.Field.resource_id_field:type_name -> c1.config.v1.ResourceIdField + 11, // 10: c1.config.v1.Field.resource_id_slice_field:type_name -> c1.config.v1.ResourceIdSliceField + 8, // 11: c1.config.v1.Field.resource_field:type_name -> c1.config.v1.ResourceField + 9, // 12: c1.config.v1.Field.resource_slice_field:type_name -> c1.config.v1.ResourceSliceField + 7, // 13: c1.config.v1.Resource.resource_id:type_name -> c1.config.v1.ResourceId + 7, // 14: c1.config.v1.Resource.parent_resource_id:type_name -> c1.config.v1.ResourceId + 19, // 15: c1.config.v1.Resource.annotations:type_name -> google.protobuf.Any + 6, // 16: c1.config.v1.ResourceField.default_value:type_name -> c1.config.v1.Resource + 6, // 17: c1.config.v1.ResourceSliceField.default_value:type_name -> c1.config.v1.Resource + 7, // 18: c1.config.v1.ResourceIdField.default_value:type_name -> c1.config.v1.ResourceId + 20, // 19: c1.config.v1.ResourceIdField.rules:type_name -> c1.config.v1.ResourceIDRules + 10, // 20: c1.config.v1.ResourceIdSliceField.default_value:type_name -> c1.config.v1.ResourceIdField + 21, // 21: c1.config.v1.ResourceIdSliceField.rules:type_name -> c1.config.v1.RepeatedResourceIdRules + 22, // 22: c1.config.v1.IntField.rules:type_name -> c1.config.v1.Int64Rules + 23, // 23: c1.config.v1.BoolField.rules:type_name -> c1.config.v1.BoolRules + 24, // 24: c1.config.v1.StringSliceField.rules:type_name -> c1.config.v1.RepeatedStringRules + 18, // 25: c1.config.v1.StringMapField.default_value:type_name -> c1.config.v1.StringMapField.DefaultValueEntry + 25, // 26: c1.config.v1.StringMapField.rules:type_name -> c1.config.v1.StringMapRules + 26, // 27: c1.config.v1.StringField.rules:type_name -> c1.config.v1.StringRules + 1, // 28: c1.config.v1.StringField.type:type_name -> c1.config.v1.StringFieldType + 16, // 29: c1.config.v1.StringField.options:type_name -> c1.config.v1.StringFieldOption + 19, // 30: c1.config.v1.StringMapField.DefaultValueEntry.value:type_name -> google.protobuf.Any + 31, // [31:31] is the sub-list for method output_type + 31, // [31:31] is the sub-list for method input_type + 31, // [31:31] is the sub-list for extension type_name + 31, // [31:31] is the sub-list for extension extendee + 0, // [0:31] is the sub-list for field type_name +} + +func init() { file_c1_config_v1_config_proto_init() } +func file_c1_config_v1_config_proto_init() { + if File_c1_config_v1_config_proto != nil { + return + } + file_c1_config_v1_rules_proto_init() + file_c1_config_v1_config_proto_msgTypes[3].OneofWrappers = []any{ + (*field_StringField)(nil), + (*field_IntField)(nil), + (*field_BoolField)(nil), + (*field_StringSliceField)(nil), + (*field_StringMapField)(nil), + (*field_ResourceIdField)(nil), + (*field_ResourceIdSliceField)(nil), + (*field_ResourceField)(nil), + (*field_ResourceSliceField)(nil), + } + file_c1_config_v1_config_proto_msgTypes[8].OneofWrappers = []any{} + file_c1_config_v1_config_proto_msgTypes[9].OneofWrappers = []any{} + file_c1_config_v1_config_proto_msgTypes[10].OneofWrappers = []any{} + file_c1_config_v1_config_proto_msgTypes[11].OneofWrappers = []any{} + file_c1_config_v1_config_proto_msgTypes[12].OneofWrappers = []any{} + file_c1_config_v1_config_proto_msgTypes[13].OneofWrappers = []any{} + file_c1_config_v1_config_proto_msgTypes[15].OneofWrappers = []any{} + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: unsafe.Slice(unsafe.StringData(file_c1_config_v1_config_proto_rawDesc), len(file_c1_config_v1_config_proto_rawDesc)), + NumEnums: 2, + NumMessages: 17, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_c1_config_v1_config_proto_goTypes, + DependencyIndexes: file_c1_config_v1_config_proto_depIdxs, + EnumInfos: file_c1_config_v1_config_proto_enumTypes, + MessageInfos: file_c1_config_v1_config_proto_msgTypes, + }.Build() + File_c1_config_v1_config_proto = out.File + file_c1_config_v1_config_proto_goTypes = nil + file_c1_config_v1_config_proto_depIdxs = nil +} diff --git a/vendor/github.com/conductorone/baton-sdk/pb/c1/config/v1/rules.pb.go b/vendor/github.com/conductorone/baton-sdk/pb/c1/config/v1/rules.pb.go index 0958f39c..11073384 100644 --- a/vendor/github.com/conductorone/baton-sdk/pb/c1/config/v1/rules.pb.go +++ b/vendor/github.com/conductorone/baton-sdk/pb/c1/config/v1/rules.pb.go @@ -1,16 +1,17 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.36.4 +// protoc-gen-go v1.36.10 // protoc (unknown) // source: c1/config/v1/rules.proto +//go:build !protoopaque + package v1 import ( protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" reflect "reflect" - sync "sync" unsafe "unsafe" ) @@ -98,14 +99,9 @@ func (x WellKnownString) Number() protoreflect.EnumNumber { return protoreflect.EnumNumber(x) } -// Deprecated: Use WellKnownString.Descriptor instead. -func (WellKnownString) EnumDescriptor() ([]byte, []int) { - return file_c1_config_v1_rules_proto_rawDescGZIP(), []int{0} -} - // Int64Rules describes the constraints applied to `int64` values type Int64Rules struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // Const specifies that this field must be exactly the specified value Eq *int64 `protobuf:"varint,1,opt,name=eq,proto3,oneof" json:"eq,omitempty"` // Lt specifies that this field must be less than the specified value, @@ -161,11 +157,6 @@ func (x *Int64Rules) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use Int64Rules.ProtoReflect.Descriptor instead. -func (*Int64Rules) Descriptor() ([]byte, []int) { - return file_c1_config_v1_rules_proto_rawDescGZIP(), []int{0} -} - func (x *Int64Rules) GetEq() int64 { if x != nil && x.Eq != nil { return *x.Eq @@ -229,9 +220,147 @@ func (x *Int64Rules) GetIsRequired() bool { return false } +func (x *Int64Rules) SetEq(v int64) { + x.Eq = &v +} + +func (x *Int64Rules) SetLt(v int64) { + x.Lt = &v +} + +func (x *Int64Rules) SetLte(v int64) { + x.Lte = &v +} + +func (x *Int64Rules) SetGt(v int64) { + x.Gt = &v +} + +func (x *Int64Rules) SetGte(v int64) { + x.Gte = &v +} + +func (x *Int64Rules) SetIn(v []int64) { + x.In = v +} + +func (x *Int64Rules) SetNotIn(v []int64) { + x.NotIn = v +} + +func (x *Int64Rules) SetValidateEmpty(v bool) { + x.ValidateEmpty = v +} + +func (x *Int64Rules) SetIsRequired(v bool) { + x.IsRequired = v +} + +func (x *Int64Rules) HasEq() bool { + if x == nil { + return false + } + return x.Eq != nil +} + +func (x *Int64Rules) HasLt() bool { + if x == nil { + return false + } + return x.Lt != nil +} + +func (x *Int64Rules) HasLte() bool { + if x == nil { + return false + } + return x.Lte != nil +} + +func (x *Int64Rules) HasGt() bool { + if x == nil { + return false + } + return x.Gt != nil +} + +func (x *Int64Rules) HasGte() bool { + if x == nil { + return false + } + return x.Gte != nil +} + +func (x *Int64Rules) ClearEq() { + x.Eq = nil +} + +func (x *Int64Rules) ClearLt() { + x.Lt = nil +} + +func (x *Int64Rules) ClearLte() { + x.Lte = nil +} + +func (x *Int64Rules) ClearGt() { + x.Gt = nil +} + +func (x *Int64Rules) ClearGte() { + x.Gte = nil +} + +type Int64Rules_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Const specifies that this field must be exactly the specified value + Eq *int64 + // Lt specifies that this field must be less than the specified value, + // exclusive + Lt *int64 + // Lte specifies that this field must be less than or equal to the + // specified value, inclusive + Lte *int64 + // Gt specifies that this field must be greater than the specified value, + // exclusive. If the value of Gt is larger than a specified Lt or Lte, the + // range is reversed. + Gt *int64 + // Gte specifies that this field must be greater than or equal to the + // specified value, inclusive. If the value of Gte is larger than a + // specified Lt or Lte, the range is reversed. + Gte *int64 + // In specifies that this field must be equal to one of the specified + // values + In []int64 + // NotIn specifies that this field cannot be equal to one of the specified + // values + NotIn []int64 + // IgnoreEmpty specifies that the validation rules of this field should be + // evaluated only if the field is not empty + ValidateEmpty bool + IsRequired bool +} + +func (b0 Int64Rules_builder) Build() *Int64Rules { + m0 := &Int64Rules{} + b, x := &b0, m0 + _, _ = b, x + x.Eq = b.Eq + x.Lt = b.Lt + x.Lte = b.Lte + x.Gt = b.Gt + x.Gte = b.Gte + x.In = b.In + x.NotIn = b.NotIn + x.ValidateEmpty = b.ValidateEmpty + x.IsRequired = b.IsRequired + return m0 +} + // BoolRules describes the constraints applied to `bool` values type BoolRules struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // Const specifies that this field must be exactly the specified value Eq *bool `protobuf:"varint,1,opt,name=eq,proto3,oneof" json:"eq,omitempty"` unknownFields protoimpl.UnknownFields @@ -263,11 +392,6 @@ func (x *BoolRules) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use BoolRules.ProtoReflect.Descriptor instead. -func (*BoolRules) Descriptor() ([]byte, []int) { - return file_c1_config_v1_rules_proto_rawDescGZIP(), []int{1} -} - func (x *BoolRules) GetEq() bool { if x != nil && x.Eq != nil { return *x.Eq @@ -275,9 +399,39 @@ func (x *BoolRules) GetEq() bool { return false } +func (x *BoolRules) SetEq(v bool) { + x.Eq = &v +} + +func (x *BoolRules) HasEq() bool { + if x == nil { + return false + } + return x.Eq != nil +} + +func (x *BoolRules) ClearEq() { + x.Eq = nil +} + +type BoolRules_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Const specifies that this field must be exactly the specified value + Eq *bool +} + +func (b0 BoolRules_builder) Build() *BoolRules { + m0 := &BoolRules{} + b, x := &b0, m0 + _, _ = b, x + x.Eq = b.Eq + return m0 +} + // RepeatedRules describe the constraints applied to `repeated` values type RepeatedRules struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // MinItems specifies that this field must have the specified number of // items at a minimum MinItems *uint64 `protobuf:"varint,1,opt,name=min_items,json=minItems,proto3,oneof" json:"min_items,omitempty"` @@ -331,11 +485,6 @@ func (x *RepeatedRules) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use RepeatedRules.ProtoReflect.Descriptor instead. -func (*RepeatedRules) Descriptor() ([]byte, []int) { - return file_c1_config_v1_rules_proto_rawDescGZIP(), []int{2} -} - func (x *RepeatedRules) GetMinItems() uint64 { if x != nil && x.MinItems != nil { return *x.MinItems @@ -382,7 +531,7 @@ func (x *RepeatedRules) GetBool() *BoolRules { return nil } -func (x *RepeatedRules) GetString_() *StringRules { +func (x *RepeatedRules) GetString() *StringRules { if x != nil { if x, ok := x.ItemRules.(*RepeatedRules_String_); ok { return x.String_ @@ -391,6 +540,11 @@ func (x *RepeatedRules) GetString_() *StringRules { return nil } +// Deprecated: Use GetString instead. +func (x *RepeatedRules) GetString_() *StringRules { + return x.GetString() +} + func (x *RepeatedRules) GetValidateEmpty() bool { if x != nil { return x.ValidateEmpty @@ -405,6 +559,206 @@ func (x *RepeatedRules) GetIsRequired() bool { return false } +func (x *RepeatedRules) SetMinItems(v uint64) { + x.MinItems = &v +} + +func (x *RepeatedRules) SetMaxItems(v uint64) { + x.MaxItems = &v +} + +func (x *RepeatedRules) SetUnique(v bool) { + x.Unique = v +} + +func (x *RepeatedRules) SetInt64(v *Int64Rules) { + if v == nil { + x.ItemRules = nil + return + } + x.ItemRules = &RepeatedRules_Int64{v} +} + +func (x *RepeatedRules) SetBool(v *BoolRules) { + if v == nil { + x.ItemRules = nil + return + } + x.ItemRules = &RepeatedRules_Bool{v} +} + +func (x *RepeatedRules) SetString(v *StringRules) { + if v == nil { + x.ItemRules = nil + return + } + x.ItemRules = &RepeatedRules_String_{v} +} + +func (x *RepeatedRules) SetValidateEmpty(v bool) { + x.ValidateEmpty = v +} + +func (x *RepeatedRules) SetIsRequired(v bool) { + x.IsRequired = v +} + +func (x *RepeatedRules) HasMinItems() bool { + if x == nil { + return false + } + return x.MinItems != nil +} + +func (x *RepeatedRules) HasMaxItems() bool { + if x == nil { + return false + } + return x.MaxItems != nil +} + +func (x *RepeatedRules) HasItemRules() bool { + if x == nil { + return false + } + return x.ItemRules != nil +} + +func (x *RepeatedRules) HasInt64() bool { + if x == nil { + return false + } + _, ok := x.ItemRules.(*RepeatedRules_Int64) + return ok +} + +func (x *RepeatedRules) HasBool() bool { + if x == nil { + return false + } + _, ok := x.ItemRules.(*RepeatedRules_Bool) + return ok +} + +func (x *RepeatedRules) HasString() bool { + if x == nil { + return false + } + _, ok := x.ItemRules.(*RepeatedRules_String_) + return ok +} + +func (x *RepeatedRules) ClearMinItems() { + x.MinItems = nil +} + +func (x *RepeatedRules) ClearMaxItems() { + x.MaxItems = nil +} + +func (x *RepeatedRules) ClearItemRules() { + x.ItemRules = nil +} + +func (x *RepeatedRules) ClearInt64() { + if _, ok := x.ItemRules.(*RepeatedRules_Int64); ok { + x.ItemRules = nil + } +} + +func (x *RepeatedRules) ClearBool() { + if _, ok := x.ItemRules.(*RepeatedRules_Bool); ok { + x.ItemRules = nil + } +} + +func (x *RepeatedRules) ClearString() { + if _, ok := x.ItemRules.(*RepeatedRules_String_); ok { + x.ItemRules = nil + } +} + +const RepeatedRules_ItemRules_not_set_case case_RepeatedRules_ItemRules = 0 +const RepeatedRules_Int64_case case_RepeatedRules_ItemRules = 100 +const RepeatedRules_Bool_case case_RepeatedRules_ItemRules = 101 +const RepeatedRules_String__case case_RepeatedRules_ItemRules = 102 + +func (x *RepeatedRules) WhichItemRules() case_RepeatedRules_ItemRules { + if x == nil { + return RepeatedRules_ItemRules_not_set_case + } + switch x.ItemRules.(type) { + case *RepeatedRules_Int64: + return RepeatedRules_Int64_case + case *RepeatedRules_Bool: + return RepeatedRules_Bool_case + case *RepeatedRules_String_: + return RepeatedRules_String__case + default: + return RepeatedRules_ItemRules_not_set_case + } +} + +type RepeatedRules_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // MinItems specifies that this field must have the specified number of + // items at a minimum + MinItems *uint64 + // MaxItems specifies that this field must have the specified number of + // items at a maximum + MaxItems *uint64 + // Unique specifies that all elements in this field must be unique. This + // constraint is only applicable to scalar and enum types (messages are not + // supported). + Unique bool + // Items specifies the constraints to be applied to each item in the field. + // Repeated message fields will still execute validation against each item + // unless skip is specified here. + + // Fields of oneof ItemRules: + // Scalar Field Types + Int64 *Int64Rules + Bool *BoolRules + String *StringRules + // -- end of ItemRules + // IgnoreEmpty specifies that the validation rules of this field should be + // evaluated only if the field is not empty + ValidateEmpty bool + IsRequired bool +} + +func (b0 RepeatedRules_builder) Build() *RepeatedRules { + m0 := &RepeatedRules{} + b, x := &b0, m0 + _, _ = b, x + x.MinItems = b.MinItems + x.MaxItems = b.MaxItems + x.Unique = b.Unique + if b.Int64 != nil { + x.ItemRules = &RepeatedRules_Int64{b.Int64} + } + if b.Bool != nil { + x.ItemRules = &RepeatedRules_Bool{b.Bool} + } + if b.String != nil { + x.ItemRules = &RepeatedRules_String_{b.String} + } + x.ValidateEmpty = b.ValidateEmpty + x.IsRequired = b.IsRequired + return m0 +} + +type case_RepeatedRules_ItemRules protoreflect.FieldNumber + +func (x case_RepeatedRules_ItemRules) String() string { + md := file_c1_config_v1_rules_proto_msgTypes[2].Descriptor() + if x == 0 { + return "not set" + } + return protoimpl.X.MessageFieldStringOf(md, protoreflect.FieldNumber(x)) +} + type isRepeatedRules_ItemRules interface { isRepeatedRules_ItemRules() } @@ -429,7 +783,7 @@ func (*RepeatedRules_Bool) isRepeatedRules_ItemRules() {} func (*RepeatedRules_String_) isRepeatedRules_ItemRules() {} type RepeatedStringRules struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // MinItems specifies that this field must have the specified number of // items at a minimum MinItems *uint64 `protobuf:"varint,1,opt,name=min_items,json=minItems,proto3,oneof" json:"min_items,omitempty"` @@ -474,11 +828,6 @@ func (x *RepeatedStringRules) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use RepeatedStringRules.ProtoReflect.Descriptor instead. -func (*RepeatedStringRules) Descriptor() ([]byte, []int) { - return file_c1_config_v1_rules_proto_rawDescGZIP(), []int{3} -} - func (x *RepeatedStringRules) GetMinItems() uint64 { if x != nil && x.MinItems != nil { return *x.MinItems @@ -521,8 +870,98 @@ func (x *RepeatedStringRules) GetIsRequired() bool { return false } +func (x *RepeatedStringRules) SetMinItems(v uint64) { + x.MinItems = &v +} + +func (x *RepeatedStringRules) SetMaxItems(v uint64) { + x.MaxItems = &v +} + +func (x *RepeatedStringRules) SetUnique(v bool) { + x.Unique = v +} + +func (x *RepeatedStringRules) SetItemRules(v *StringRules) { + x.ItemRules = v +} + +func (x *RepeatedStringRules) SetValidateEmpty(v bool) { + x.ValidateEmpty = v +} + +func (x *RepeatedStringRules) SetIsRequired(v bool) { + x.IsRequired = v +} + +func (x *RepeatedStringRules) HasMinItems() bool { + if x == nil { + return false + } + return x.MinItems != nil +} + +func (x *RepeatedStringRules) HasMaxItems() bool { + if x == nil { + return false + } + return x.MaxItems != nil +} + +func (x *RepeatedStringRules) HasItemRules() bool { + if x == nil { + return false + } + return x.ItemRules != nil +} + +func (x *RepeatedStringRules) ClearMinItems() { + x.MinItems = nil +} + +func (x *RepeatedStringRules) ClearMaxItems() { + x.MaxItems = nil +} + +func (x *RepeatedStringRules) ClearItemRules() { + x.ItemRules = nil +} + +type RepeatedStringRules_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // MinItems specifies that this field must have the specified number of + // items at a minimum + MinItems *uint64 + // MaxItems specifies that this field must have the specified number of + // items at a maximum + MaxItems *uint64 + // Unique specifies that all elements in this field must be unique. This + // constraint is only applicable to scalar and enum types (messages are not + // supported). + Unique bool + ItemRules *StringRules + // IgnoreEmpty specifies that the validation rules of this field should be + // evaluated only if the field is not empty + ValidateEmpty bool + IsRequired bool +} + +func (b0 RepeatedStringRules_builder) Build() *RepeatedStringRules { + m0 := &RepeatedStringRules{} + b, x := &b0, m0 + _, _ = b, x + x.MinItems = b.MinItems + x.MaxItems = b.MaxItems + x.Unique = b.Unique + x.ItemRules = b.ItemRules + x.ValidateEmpty = b.ValidateEmpty + x.IsRequired = b.IsRequired + return m0 +} + type StringRules struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // Const specifies that this field must be exactly the specified value Eq *string `protobuf:"bytes,1,opt,name=eq,proto3,oneof" json:"eq,omitempty"` // Len specifies that this field must be the specified number of @@ -593,11 +1032,6 @@ func (x *StringRules) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use StringRules.ProtoReflect.Descriptor instead. -func (*StringRules) Descriptor() ([]byte, []int) { - return file_c1_config_v1_rules_proto_rawDescGZIP(), []int{4} -} - func (x *StringRules) GetEq() string { if x != nil && x.Eq != nil { return *x.Eq @@ -696,8 +1130,230 @@ func (x *StringRules) GetIsRequired() bool { return false } +func (x *StringRules) SetEq(v string) { + x.Eq = &v +} + +func (x *StringRules) SetLen(v uint64) { + x.Len = &v +} + +func (x *StringRules) SetMinLen(v uint64) { + x.MinLen = &v +} + +func (x *StringRules) SetMaxLen(v uint64) { + x.MaxLen = &v +} + +func (x *StringRules) SetPattern(v string) { + x.Pattern = &v +} + +func (x *StringRules) SetPrefix(v string) { + x.Prefix = &v +} + +func (x *StringRules) SetSuffix(v string) { + x.Suffix = &v +} + +func (x *StringRules) SetContains(v string) { + x.Contains = &v +} + +func (x *StringRules) SetNotContains(v string) { + x.NotContains = &v +} + +func (x *StringRules) SetIn(v []string) { + x.In = v +} + +func (x *StringRules) SetNotIn(v []string) { + x.NotIn = v +} + +func (x *StringRules) SetWellKnown(v WellKnownString) { + x.WellKnown = v +} + +func (x *StringRules) SetValidateEmpty(v bool) { + x.ValidateEmpty = v +} + +func (x *StringRules) SetIsRequired(v bool) { + x.IsRequired = v +} + +func (x *StringRules) HasEq() bool { + if x == nil { + return false + } + return x.Eq != nil +} + +func (x *StringRules) HasLen() bool { + if x == nil { + return false + } + return x.Len != nil +} + +func (x *StringRules) HasMinLen() bool { + if x == nil { + return false + } + return x.MinLen != nil +} + +func (x *StringRules) HasMaxLen() bool { + if x == nil { + return false + } + return x.MaxLen != nil +} + +func (x *StringRules) HasPattern() bool { + if x == nil { + return false + } + return x.Pattern != nil +} + +func (x *StringRules) HasPrefix() bool { + if x == nil { + return false + } + return x.Prefix != nil +} + +func (x *StringRules) HasSuffix() bool { + if x == nil { + return false + } + return x.Suffix != nil +} + +func (x *StringRules) HasContains() bool { + if x == nil { + return false + } + return x.Contains != nil +} + +func (x *StringRules) HasNotContains() bool { + if x == nil { + return false + } + return x.NotContains != nil +} + +func (x *StringRules) ClearEq() { + x.Eq = nil +} + +func (x *StringRules) ClearLen() { + x.Len = nil +} + +func (x *StringRules) ClearMinLen() { + x.MinLen = nil +} + +func (x *StringRules) ClearMaxLen() { + x.MaxLen = nil +} + +func (x *StringRules) ClearPattern() { + x.Pattern = nil +} + +func (x *StringRules) ClearPrefix() { + x.Prefix = nil +} + +func (x *StringRules) ClearSuffix() { + x.Suffix = nil +} + +func (x *StringRules) ClearContains() { + x.Contains = nil +} + +func (x *StringRules) ClearNotContains() { + x.NotContains = nil +} + +type StringRules_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Const specifies that this field must be exactly the specified value + Eq *string + // Len specifies that this field must be the specified number of + // characters (Unicode code points). Note that the number of + // characters may differ from the number of bytes in the string. + Len *uint64 + // MinLen specifies that this field must be the specified number of + // characters (Unicode code points) at a minimum. Note that the number of + // characters may differ from the number of bytes in the string. + MinLen *uint64 + // MaxLen specifies that this field must be the specified number of + // characters (Unicode code points) at a maximum. Note that the number of + // characters may differ from the number of bytes in the string. + MaxLen *uint64 + // Pattern specifies that this field must match against the specified + // regular expression (RE2 syntax). The included expression should elide + // any delimiters. + Pattern *string + // Prefix specifies that this field must have the specified substring at + // the beginning of the string. + Prefix *string + // Suffix specifies that this field must have the specified substring at + // the end of the string. + Suffix *string + // Contains specifies that this field must have the specified substring + // anywhere in the string. + Contains *string + // NotContains specifies that this field cannot have the specified substring + // anywhere in the string. + NotContains *string + // In specifies that this field must be equal to one of the specified + // values + In []string + // NotIn specifies that this field cannot be equal to one of the specified + // values + NotIn []string + WellKnown WellKnownString + // IgnoreEmpty specifies that the validation rules of this field should be + // evaluated only if the field is not empty + ValidateEmpty bool + IsRequired bool +} + +func (b0 StringRules_builder) Build() *StringRules { + m0 := &StringRules{} + b, x := &b0, m0 + _, _ = b, x + x.Eq = b.Eq + x.Len = b.Len + x.MinLen = b.MinLen + x.MaxLen = b.MaxLen + x.Pattern = b.Pattern + x.Prefix = b.Prefix + x.Suffix = b.Suffix + x.Contains = b.Contains + x.NotContains = b.NotContains + x.In = b.In + x.NotIn = b.NotIn + x.WellKnown = b.WellKnown + x.ValidateEmpty = b.ValidateEmpty + x.IsRequired = b.IsRequired + return m0 +} + type StringMapRules struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // IgnoreEmpty specifies that the validation rules of this field should be // evaluated only if the field is not empty ValidateEmpty bool `protobuf:"varint,1,opt,name=validate_empty,json=validateEmpty,proto3" json:"validate_empty,omitempty"` @@ -731,11 +1387,6 @@ func (x *StringMapRules) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use StringMapRules.ProtoReflect.Descriptor instead. -func (*StringMapRules) Descriptor() ([]byte, []int) { - return file_c1_config_v1_rules_proto_rawDescGZIP(), []int{5} -} - func (x *StringMapRules) GetValidateEmpty() bool { if x != nil { return x.ValidateEmpty @@ -750,158 +1401,261 @@ func (x *StringMapRules) GetIsRequired() bool { return false } -var File_c1_config_v1_rules_proto protoreflect.FileDescriptor +func (x *StringMapRules) SetValidateEmpty(v bool) { + x.ValidateEmpty = v +} -var file_c1_config_v1_rules_proto_rawDesc = string([]byte{ - 0x0a, 0x18, 0x63, 0x31, 0x2f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2f, 0x76, 0x31, 0x2f, 0x72, - 0x75, 0x6c, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0c, 0x63, 0x31, 0x2e, 0x63, - 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x76, 0x31, 0x22, 0x8d, 0x02, 0x0a, 0x0a, 0x49, 0x6e, 0x74, - 0x36, 0x34, 0x52, 0x75, 0x6c, 0x65, 0x73, 0x12, 0x13, 0x0a, 0x02, 0x65, 0x71, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x03, 0x48, 0x00, 0x52, 0x02, 0x65, 0x71, 0x88, 0x01, 0x01, 0x12, 0x13, 0x0a, 0x02, - 0x6c, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x48, 0x01, 0x52, 0x02, 0x6c, 0x74, 0x88, 0x01, - 0x01, 0x12, 0x15, 0x0a, 0x03, 0x6c, 0x74, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x48, 0x02, - 0x52, 0x03, 0x6c, 0x74, 0x65, 0x88, 0x01, 0x01, 0x12, 0x13, 0x0a, 0x02, 0x67, 0x74, 0x18, 0x04, - 0x20, 0x01, 0x28, 0x03, 0x48, 0x03, 0x52, 0x02, 0x67, 0x74, 0x88, 0x01, 0x01, 0x12, 0x15, 0x0a, - 0x03, 0x67, 0x74, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x03, 0x48, 0x04, 0x52, 0x03, 0x67, 0x74, - 0x65, 0x88, 0x01, 0x01, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x6e, 0x18, 0x06, 0x20, 0x03, 0x28, 0x03, - 0x52, 0x02, 0x69, 0x6e, 0x12, 0x15, 0x0a, 0x06, 0x6e, 0x6f, 0x74, 0x5f, 0x69, 0x6e, 0x18, 0x07, - 0x20, 0x03, 0x28, 0x03, 0x52, 0x05, 0x6e, 0x6f, 0x74, 0x49, 0x6e, 0x12, 0x25, 0x0a, 0x0e, 0x76, - 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x65, 0x6d, 0x70, 0x74, 0x79, 0x18, 0x08, 0x20, - 0x01, 0x28, 0x08, 0x52, 0x0d, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x45, 0x6d, 0x70, - 0x74, 0x79, 0x12, 0x1f, 0x0a, 0x0b, 0x69, 0x73, 0x5f, 0x72, 0x65, 0x71, 0x75, 0x69, 0x72, 0x65, - 0x64, 0x18, 0x09, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0a, 0x69, 0x73, 0x52, 0x65, 0x71, 0x75, 0x69, - 0x72, 0x65, 0x64, 0x42, 0x05, 0x0a, 0x03, 0x5f, 0x65, 0x71, 0x42, 0x05, 0x0a, 0x03, 0x5f, 0x6c, - 0x74, 0x42, 0x06, 0x0a, 0x04, 0x5f, 0x6c, 0x74, 0x65, 0x42, 0x05, 0x0a, 0x03, 0x5f, 0x67, 0x74, - 0x42, 0x06, 0x0a, 0x04, 0x5f, 0x67, 0x74, 0x65, 0x22, 0x27, 0x0a, 0x09, 0x42, 0x6f, 0x6f, 0x6c, - 0x52, 0x75, 0x6c, 0x65, 0x73, 0x12, 0x13, 0x0a, 0x02, 0x65, 0x71, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x08, 0x48, 0x00, 0x52, 0x02, 0x65, 0x71, 0x88, 0x01, 0x01, 0x42, 0x05, 0x0a, 0x03, 0x5f, 0x65, - 0x71, 0x22, 0xf3, 0x02, 0x0a, 0x0d, 0x52, 0x65, 0x70, 0x65, 0x61, 0x74, 0x65, 0x64, 0x52, 0x75, - 0x6c, 0x65, 0x73, 0x12, 0x20, 0x0a, 0x09, 0x6d, 0x69, 0x6e, 0x5f, 0x69, 0x74, 0x65, 0x6d, 0x73, - 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x48, 0x01, 0x52, 0x08, 0x6d, 0x69, 0x6e, 0x49, 0x74, 0x65, - 0x6d, 0x73, 0x88, 0x01, 0x01, 0x12, 0x20, 0x0a, 0x09, 0x6d, 0x61, 0x78, 0x5f, 0x69, 0x74, 0x65, - 0x6d, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x48, 0x02, 0x52, 0x08, 0x6d, 0x61, 0x78, 0x49, - 0x74, 0x65, 0x6d, 0x73, 0x88, 0x01, 0x01, 0x12, 0x16, 0x0a, 0x06, 0x75, 0x6e, 0x69, 0x71, 0x75, - 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x06, 0x75, 0x6e, 0x69, 0x71, 0x75, 0x65, 0x12, - 0x30, 0x0a, 0x05, 0x69, 0x6e, 0x74, 0x36, 0x34, 0x18, 0x64, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x18, - 0x2e, 0x63, 0x31, 0x2e, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x76, 0x31, 0x2e, 0x49, 0x6e, - 0x74, 0x36, 0x34, 0x52, 0x75, 0x6c, 0x65, 0x73, 0x48, 0x00, 0x52, 0x05, 0x69, 0x6e, 0x74, 0x36, - 0x34, 0x12, 0x2d, 0x0a, 0x04, 0x62, 0x6f, 0x6f, 0x6c, 0x18, 0x65, 0x20, 0x01, 0x28, 0x0b, 0x32, - 0x17, 0x2e, 0x63, 0x31, 0x2e, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x76, 0x31, 0x2e, 0x42, - 0x6f, 0x6f, 0x6c, 0x52, 0x75, 0x6c, 0x65, 0x73, 0x48, 0x00, 0x52, 0x04, 0x62, 0x6f, 0x6f, 0x6c, - 0x12, 0x33, 0x0a, 0x06, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x18, 0x66, 0x20, 0x01, 0x28, 0x0b, - 0x32, 0x19, 0x2e, 0x63, 0x31, 0x2e, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x76, 0x31, 0x2e, - 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x75, 0x6c, 0x65, 0x73, 0x48, 0x00, 0x52, 0x06, 0x73, - 0x74, 0x72, 0x69, 0x6e, 0x67, 0x12, 0x25, 0x0a, 0x0e, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, - 0x65, 0x5f, 0x65, 0x6d, 0x70, 0x74, 0x79, 0x18, 0x04, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0d, 0x76, - 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x12, 0x1f, 0x0a, 0x0b, - 0x69, 0x73, 0x5f, 0x72, 0x65, 0x71, 0x75, 0x69, 0x72, 0x65, 0x64, 0x18, 0x05, 0x20, 0x01, 0x28, - 0x08, 0x52, 0x0a, 0x69, 0x73, 0x52, 0x65, 0x71, 0x75, 0x69, 0x72, 0x65, 0x64, 0x42, 0x0c, 0x0a, - 0x0a, 0x69, 0x74, 0x65, 0x6d, 0x5f, 0x72, 0x75, 0x6c, 0x65, 0x73, 0x42, 0x0c, 0x0a, 0x0a, 0x5f, - 0x6d, 0x69, 0x6e, 0x5f, 0x69, 0x74, 0x65, 0x6d, 0x73, 0x42, 0x0c, 0x0a, 0x0a, 0x5f, 0x6d, 0x61, - 0x78, 0x5f, 0x69, 0x74, 0x65, 0x6d, 0x73, 0x22, 0x8f, 0x02, 0x0a, 0x13, 0x52, 0x65, 0x70, 0x65, - 0x61, 0x74, 0x65, 0x64, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x75, 0x6c, 0x65, 0x73, 0x12, - 0x20, 0x0a, 0x09, 0x6d, 0x69, 0x6e, 0x5f, 0x69, 0x74, 0x65, 0x6d, 0x73, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x04, 0x48, 0x00, 0x52, 0x08, 0x6d, 0x69, 0x6e, 0x49, 0x74, 0x65, 0x6d, 0x73, 0x88, 0x01, - 0x01, 0x12, 0x20, 0x0a, 0x09, 0x6d, 0x61, 0x78, 0x5f, 0x69, 0x74, 0x65, 0x6d, 0x73, 0x18, 0x02, - 0x20, 0x01, 0x28, 0x04, 0x48, 0x01, 0x52, 0x08, 0x6d, 0x61, 0x78, 0x49, 0x74, 0x65, 0x6d, 0x73, - 0x88, 0x01, 0x01, 0x12, 0x16, 0x0a, 0x06, 0x75, 0x6e, 0x69, 0x71, 0x75, 0x65, 0x18, 0x03, 0x20, - 0x01, 0x28, 0x08, 0x52, 0x06, 0x75, 0x6e, 0x69, 0x71, 0x75, 0x65, 0x12, 0x38, 0x0a, 0x0a, 0x69, - 0x74, 0x65, 0x6d, 0x5f, 0x72, 0x75, 0x6c, 0x65, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, - 0x19, 0x2e, 0x63, 0x31, 0x2e, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x76, 0x31, 0x2e, 0x53, - 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x75, 0x6c, 0x65, 0x73, 0x52, 0x09, 0x69, 0x74, 0x65, 0x6d, - 0x52, 0x75, 0x6c, 0x65, 0x73, 0x12, 0x25, 0x0a, 0x0e, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, - 0x65, 0x5f, 0x65, 0x6d, 0x70, 0x74, 0x79, 0x18, 0x05, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0d, 0x76, - 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x12, 0x1f, 0x0a, 0x0b, - 0x69, 0x73, 0x5f, 0x72, 0x65, 0x71, 0x75, 0x69, 0x72, 0x65, 0x64, 0x18, 0x06, 0x20, 0x01, 0x28, - 0x08, 0x52, 0x0a, 0x69, 0x73, 0x52, 0x65, 0x71, 0x75, 0x69, 0x72, 0x65, 0x64, 0x42, 0x0c, 0x0a, - 0x0a, 0x5f, 0x6d, 0x69, 0x6e, 0x5f, 0x69, 0x74, 0x65, 0x6d, 0x73, 0x42, 0x0c, 0x0a, 0x0a, 0x5f, - 0x6d, 0x61, 0x78, 0x5f, 0x69, 0x74, 0x65, 0x6d, 0x73, 0x22, 0xab, 0x04, 0x0a, 0x0b, 0x53, 0x74, - 0x72, 0x69, 0x6e, 0x67, 0x52, 0x75, 0x6c, 0x65, 0x73, 0x12, 0x13, 0x0a, 0x02, 0x65, 0x71, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x02, 0x65, 0x71, 0x88, 0x01, 0x01, 0x12, 0x15, - 0x0a, 0x03, 0x6c, 0x65, 0x6e, 0x18, 0x13, 0x20, 0x01, 0x28, 0x04, 0x48, 0x01, 0x52, 0x03, 0x6c, - 0x65, 0x6e, 0x88, 0x01, 0x01, 0x12, 0x1c, 0x0a, 0x07, 0x6d, 0x69, 0x6e, 0x5f, 0x6c, 0x65, 0x6e, - 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x48, 0x02, 0x52, 0x06, 0x6d, 0x69, 0x6e, 0x4c, 0x65, 0x6e, - 0x88, 0x01, 0x01, 0x12, 0x1c, 0x0a, 0x07, 0x6d, 0x61, 0x78, 0x5f, 0x6c, 0x65, 0x6e, 0x18, 0x03, - 0x20, 0x01, 0x28, 0x04, 0x48, 0x03, 0x52, 0x06, 0x6d, 0x61, 0x78, 0x4c, 0x65, 0x6e, 0x88, 0x01, - 0x01, 0x12, 0x1d, 0x0a, 0x07, 0x70, 0x61, 0x74, 0x74, 0x65, 0x72, 0x6e, 0x18, 0x06, 0x20, 0x01, - 0x28, 0x09, 0x48, 0x04, 0x52, 0x07, 0x70, 0x61, 0x74, 0x74, 0x65, 0x72, 0x6e, 0x88, 0x01, 0x01, - 0x12, 0x1b, 0x0a, 0x06, 0x70, 0x72, 0x65, 0x66, 0x69, 0x78, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, - 0x48, 0x05, 0x52, 0x06, 0x70, 0x72, 0x65, 0x66, 0x69, 0x78, 0x88, 0x01, 0x01, 0x12, 0x1b, 0x0a, - 0x06, 0x73, 0x75, 0x66, 0x66, 0x69, 0x78, 0x18, 0x08, 0x20, 0x01, 0x28, 0x09, 0x48, 0x06, 0x52, - 0x06, 0x73, 0x75, 0x66, 0x66, 0x69, 0x78, 0x88, 0x01, 0x01, 0x12, 0x1f, 0x0a, 0x08, 0x63, 0x6f, - 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x73, 0x18, 0x09, 0x20, 0x01, 0x28, 0x09, 0x48, 0x07, 0x52, 0x08, - 0x63, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x73, 0x88, 0x01, 0x01, 0x12, 0x26, 0x0a, 0x0c, 0x6e, - 0x6f, 0x74, 0x5f, 0x63, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x73, 0x18, 0x17, 0x20, 0x01, 0x28, - 0x09, 0x48, 0x08, 0x52, 0x0b, 0x6e, 0x6f, 0x74, 0x43, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x73, - 0x88, 0x01, 0x01, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x6e, 0x18, 0x0a, 0x20, 0x03, 0x28, 0x09, 0x52, - 0x02, 0x69, 0x6e, 0x12, 0x15, 0x0a, 0x06, 0x6e, 0x6f, 0x74, 0x5f, 0x69, 0x6e, 0x18, 0x0b, 0x20, - 0x03, 0x28, 0x09, 0x52, 0x05, 0x6e, 0x6f, 0x74, 0x49, 0x6e, 0x12, 0x3c, 0x0a, 0x0a, 0x77, 0x65, - 0x6c, 0x6c, 0x5f, 0x6b, 0x6e, 0x6f, 0x77, 0x6e, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1d, - 0x2e, 0x63, 0x31, 0x2e, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x76, 0x31, 0x2e, 0x57, 0x65, - 0x6c, 0x6c, 0x4b, 0x6e, 0x6f, 0x77, 0x6e, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x09, 0x77, - 0x65, 0x6c, 0x6c, 0x4b, 0x6e, 0x6f, 0x77, 0x6e, 0x12, 0x25, 0x0a, 0x0e, 0x76, 0x61, 0x6c, 0x69, - 0x64, 0x61, 0x74, 0x65, 0x5f, 0x65, 0x6d, 0x70, 0x74, 0x79, 0x18, 0x1a, 0x20, 0x01, 0x28, 0x08, - 0x52, 0x0d, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x12, - 0x1f, 0x0a, 0x0b, 0x69, 0x73, 0x5f, 0x72, 0x65, 0x71, 0x75, 0x69, 0x72, 0x65, 0x64, 0x18, 0x1b, - 0x20, 0x01, 0x28, 0x08, 0x52, 0x0a, 0x69, 0x73, 0x52, 0x65, 0x71, 0x75, 0x69, 0x72, 0x65, 0x64, - 0x42, 0x05, 0x0a, 0x03, 0x5f, 0x65, 0x71, 0x42, 0x06, 0x0a, 0x04, 0x5f, 0x6c, 0x65, 0x6e, 0x42, - 0x0a, 0x0a, 0x08, 0x5f, 0x6d, 0x69, 0x6e, 0x5f, 0x6c, 0x65, 0x6e, 0x42, 0x0a, 0x0a, 0x08, 0x5f, - 0x6d, 0x61, 0x78, 0x5f, 0x6c, 0x65, 0x6e, 0x42, 0x0a, 0x0a, 0x08, 0x5f, 0x70, 0x61, 0x74, 0x74, - 0x65, 0x72, 0x6e, 0x42, 0x09, 0x0a, 0x07, 0x5f, 0x70, 0x72, 0x65, 0x66, 0x69, 0x78, 0x42, 0x09, - 0x0a, 0x07, 0x5f, 0x73, 0x75, 0x66, 0x66, 0x69, 0x78, 0x42, 0x0b, 0x0a, 0x09, 0x5f, 0x63, 0x6f, - 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x73, 0x42, 0x0f, 0x0a, 0x0d, 0x5f, 0x6e, 0x6f, 0x74, 0x5f, 0x63, - 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x73, 0x22, 0x58, 0x0a, 0x0e, 0x53, 0x74, 0x72, 0x69, 0x6e, - 0x67, 0x4d, 0x61, 0x70, 0x52, 0x75, 0x6c, 0x65, 0x73, 0x12, 0x25, 0x0a, 0x0e, 0x76, 0x61, 0x6c, - 0x69, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x65, 0x6d, 0x70, 0x74, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x08, 0x52, 0x0d, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x45, 0x6d, 0x70, 0x74, 0x79, - 0x12, 0x1f, 0x0a, 0x0b, 0x69, 0x73, 0x5f, 0x72, 0x65, 0x71, 0x75, 0x69, 0x72, 0x65, 0x64, 0x18, - 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0a, 0x69, 0x73, 0x52, 0x65, 0x71, 0x75, 0x69, 0x72, 0x65, - 0x64, 0x2a, 0x99, 0x02, 0x0a, 0x0f, 0x57, 0x65, 0x6c, 0x6c, 0x4b, 0x6e, 0x6f, 0x77, 0x6e, 0x53, - 0x74, 0x72, 0x69, 0x6e, 0x67, 0x12, 0x21, 0x0a, 0x1d, 0x57, 0x45, 0x4c, 0x4c, 0x5f, 0x4b, 0x4e, - 0x4f, 0x57, 0x4e, 0x5f, 0x53, 0x54, 0x52, 0x49, 0x4e, 0x47, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, - 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x1b, 0x0a, 0x17, 0x57, 0x45, 0x4c, 0x4c, - 0x5f, 0x4b, 0x4e, 0x4f, 0x57, 0x4e, 0x5f, 0x53, 0x54, 0x52, 0x49, 0x4e, 0x47, 0x5f, 0x45, 0x4d, - 0x41, 0x49, 0x4c, 0x10, 0x01, 0x12, 0x1e, 0x0a, 0x1a, 0x57, 0x45, 0x4c, 0x4c, 0x5f, 0x4b, 0x4e, - 0x4f, 0x57, 0x4e, 0x5f, 0x53, 0x54, 0x52, 0x49, 0x4e, 0x47, 0x5f, 0x48, 0x4f, 0x53, 0x54, 0x4e, - 0x41, 0x4d, 0x45, 0x10, 0x02, 0x12, 0x18, 0x0a, 0x14, 0x57, 0x45, 0x4c, 0x4c, 0x5f, 0x4b, 0x4e, - 0x4f, 0x57, 0x4e, 0x5f, 0x53, 0x54, 0x52, 0x49, 0x4e, 0x47, 0x5f, 0x49, 0x50, 0x10, 0x03, 0x12, - 0x1a, 0x0a, 0x16, 0x57, 0x45, 0x4c, 0x4c, 0x5f, 0x4b, 0x4e, 0x4f, 0x57, 0x4e, 0x5f, 0x53, 0x54, - 0x52, 0x49, 0x4e, 0x47, 0x5f, 0x49, 0x50, 0x56, 0x34, 0x10, 0x04, 0x12, 0x1a, 0x0a, 0x16, 0x57, - 0x45, 0x4c, 0x4c, 0x5f, 0x4b, 0x4e, 0x4f, 0x57, 0x4e, 0x5f, 0x53, 0x54, 0x52, 0x49, 0x4e, 0x47, - 0x5f, 0x49, 0x50, 0x56, 0x36, 0x10, 0x05, 0x12, 0x19, 0x0a, 0x15, 0x57, 0x45, 0x4c, 0x4c, 0x5f, - 0x4b, 0x4e, 0x4f, 0x57, 0x4e, 0x5f, 0x53, 0x54, 0x52, 0x49, 0x4e, 0x47, 0x5f, 0x55, 0x52, 0x49, - 0x10, 0x06, 0x12, 0x1d, 0x0a, 0x19, 0x57, 0x45, 0x4c, 0x4c, 0x5f, 0x4b, 0x4e, 0x4f, 0x57, 0x4e, - 0x5f, 0x53, 0x54, 0x52, 0x49, 0x4e, 0x47, 0x5f, 0x41, 0x44, 0x44, 0x52, 0x45, 0x53, 0x53, 0x10, - 0x07, 0x12, 0x1a, 0x0a, 0x16, 0x57, 0x45, 0x4c, 0x4c, 0x5f, 0x4b, 0x4e, 0x4f, 0x57, 0x4e, 0x5f, - 0x53, 0x54, 0x52, 0x49, 0x4e, 0x47, 0x5f, 0x55, 0x55, 0x49, 0x44, 0x10, 0x08, 0x42, 0x33, 0x5a, - 0x31, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x63, 0x6f, 0x6e, 0x64, - 0x75, 0x63, 0x74, 0x6f, 0x72, 0x6f, 0x6e, 0x65, 0x2f, 0x62, 0x61, 0x74, 0x6f, 0x6e, 0x2d, 0x73, - 0x64, 0x6b, 0x2f, 0x70, 0x62, 0x2f, 0x63, 0x31, 0x2f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2f, - 0x76, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, -}) +func (x *StringMapRules) SetIsRequired(v bool) { + x.IsRequired = v +} -var ( - file_c1_config_v1_rules_proto_rawDescOnce sync.Once - file_c1_config_v1_rules_proto_rawDescData []byte -) +type StringMapRules_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // IgnoreEmpty specifies that the validation rules of this field should be + // evaluated only if the field is not empty + ValidateEmpty bool + IsRequired bool +} -func file_c1_config_v1_rules_proto_rawDescGZIP() []byte { - file_c1_config_v1_rules_proto_rawDescOnce.Do(func() { - file_c1_config_v1_rules_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_c1_config_v1_rules_proto_rawDesc), len(file_c1_config_v1_rules_proto_rawDesc))) - }) - return file_c1_config_v1_rules_proto_rawDescData +func (b0 StringMapRules_builder) Build() *StringMapRules { + m0 := &StringMapRules{} + b, x := &b0, m0 + _, _ = b, x + x.ValidateEmpty = b.ValidateEmpty + x.IsRequired = b.IsRequired + return m0 +} + +type ResourceIDRules struct { + state protoimpl.MessageState `protogen:"hybrid.v1"` + AllowedResourceTypeIds []string `protobuf:"bytes,1,rep,name=allowed_resource_type_ids,json=allowedResourceTypeIds,proto3" json:"allowed_resource_type_ids,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *ResourceIDRules) Reset() { + *x = ResourceIDRules{} + mi := &file_c1_config_v1_rules_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } +func (x *ResourceIDRules) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ResourceIDRules) ProtoMessage() {} + +func (x *ResourceIDRules) ProtoReflect() protoreflect.Message { + mi := &file_c1_config_v1_rules_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) +} + +func (x *ResourceIDRules) GetAllowedResourceTypeIds() []string { + if x != nil { + return x.AllowedResourceTypeIds + } + return nil +} + +func (x *ResourceIDRules) SetAllowedResourceTypeIds(v []string) { + x.AllowedResourceTypeIds = v +} + +type ResourceIDRules_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + AllowedResourceTypeIds []string +} + +func (b0 ResourceIDRules_builder) Build() *ResourceIDRules { + m0 := &ResourceIDRules{} + b, x := &b0, m0 + _, _ = b, x + x.AllowedResourceTypeIds = b.AllowedResourceTypeIds + return m0 +} + +type RepeatedResourceIdRules struct { + state protoimpl.MessageState `protogen:"hybrid.v1"` + AllowedResourceTypeIds []string `protobuf:"bytes,1,rep,name=allowed_resource_type_ids,json=allowedResourceTypeIds,proto3" json:"allowed_resource_type_ids,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *RepeatedResourceIdRules) Reset() { + *x = RepeatedResourceIdRules{} + mi := &file_c1_config_v1_rules_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *RepeatedResourceIdRules) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*RepeatedResourceIdRules) ProtoMessage() {} + +func (x *RepeatedResourceIdRules) ProtoReflect() protoreflect.Message { + mi := &file_c1_config_v1_rules_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) +} + +func (x *RepeatedResourceIdRules) GetAllowedResourceTypeIds() []string { + if x != nil { + return x.AllowedResourceTypeIds + } + return nil +} + +func (x *RepeatedResourceIdRules) SetAllowedResourceTypeIds(v []string) { + x.AllowedResourceTypeIds = v +} + +type RepeatedResourceIdRules_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + AllowedResourceTypeIds []string +} + +func (b0 RepeatedResourceIdRules_builder) Build() *RepeatedResourceIdRules { + m0 := &RepeatedResourceIdRules{} + b, x := &b0, m0 + _, _ = b, x + x.AllowedResourceTypeIds = b.AllowedResourceTypeIds + return m0 +} + +var File_c1_config_v1_rules_proto protoreflect.FileDescriptor + +const file_c1_config_v1_rules_proto_rawDesc = "" + + "\n" + + "\x18c1/config/v1/rules.proto\x12\fc1.config.v1\"\x8d\x02\n" + + "\n" + + "Int64Rules\x12\x13\n" + + "\x02eq\x18\x01 \x01(\x03H\x00R\x02eq\x88\x01\x01\x12\x13\n" + + "\x02lt\x18\x02 \x01(\x03H\x01R\x02lt\x88\x01\x01\x12\x15\n" + + "\x03lte\x18\x03 \x01(\x03H\x02R\x03lte\x88\x01\x01\x12\x13\n" + + "\x02gt\x18\x04 \x01(\x03H\x03R\x02gt\x88\x01\x01\x12\x15\n" + + "\x03gte\x18\x05 \x01(\x03H\x04R\x03gte\x88\x01\x01\x12\x0e\n" + + "\x02in\x18\x06 \x03(\x03R\x02in\x12\x15\n" + + "\x06not_in\x18\a \x03(\x03R\x05notIn\x12%\n" + + "\x0evalidate_empty\x18\b \x01(\bR\rvalidateEmpty\x12\x1f\n" + + "\vis_required\x18\t \x01(\bR\n" + + "isRequiredB\x05\n" + + "\x03_eqB\x05\n" + + "\x03_ltB\x06\n" + + "\x04_lteB\x05\n" + + "\x03_gtB\x06\n" + + "\x04_gte\"'\n" + + "\tBoolRules\x12\x13\n" + + "\x02eq\x18\x01 \x01(\bH\x00R\x02eq\x88\x01\x01B\x05\n" + + "\x03_eq\"\xf3\x02\n" + + "\rRepeatedRules\x12 \n" + + "\tmin_items\x18\x01 \x01(\x04H\x01R\bminItems\x88\x01\x01\x12 \n" + + "\tmax_items\x18\x02 \x01(\x04H\x02R\bmaxItems\x88\x01\x01\x12\x16\n" + + "\x06unique\x18\x03 \x01(\bR\x06unique\x120\n" + + "\x05int64\x18d \x01(\v2\x18.c1.config.v1.Int64RulesH\x00R\x05int64\x12-\n" + + "\x04bool\x18e \x01(\v2\x17.c1.config.v1.BoolRulesH\x00R\x04bool\x123\n" + + "\x06string\x18f \x01(\v2\x19.c1.config.v1.StringRulesH\x00R\x06string\x12%\n" + + "\x0evalidate_empty\x18\x04 \x01(\bR\rvalidateEmpty\x12\x1f\n" + + "\vis_required\x18\x05 \x01(\bR\n" + + "isRequiredB\f\n" + + "\n" + + "item_rulesB\f\n" + + "\n" + + "_min_itemsB\f\n" + + "\n" + + "_max_items\"\x8f\x02\n" + + "\x13RepeatedStringRules\x12 \n" + + "\tmin_items\x18\x01 \x01(\x04H\x00R\bminItems\x88\x01\x01\x12 \n" + + "\tmax_items\x18\x02 \x01(\x04H\x01R\bmaxItems\x88\x01\x01\x12\x16\n" + + "\x06unique\x18\x03 \x01(\bR\x06unique\x128\n" + + "\n" + + "item_rules\x18\x04 \x01(\v2\x19.c1.config.v1.StringRulesR\titemRules\x12%\n" + + "\x0evalidate_empty\x18\x05 \x01(\bR\rvalidateEmpty\x12\x1f\n" + + "\vis_required\x18\x06 \x01(\bR\n" + + "isRequiredB\f\n" + + "\n" + + "_min_itemsB\f\n" + + "\n" + + "_max_items\"\xab\x04\n" + + "\vStringRules\x12\x13\n" + + "\x02eq\x18\x01 \x01(\tH\x00R\x02eq\x88\x01\x01\x12\x15\n" + + "\x03len\x18\x13 \x01(\x04H\x01R\x03len\x88\x01\x01\x12\x1c\n" + + "\amin_len\x18\x02 \x01(\x04H\x02R\x06minLen\x88\x01\x01\x12\x1c\n" + + "\amax_len\x18\x03 \x01(\x04H\x03R\x06maxLen\x88\x01\x01\x12\x1d\n" + + "\apattern\x18\x06 \x01(\tH\x04R\apattern\x88\x01\x01\x12\x1b\n" + + "\x06prefix\x18\a \x01(\tH\x05R\x06prefix\x88\x01\x01\x12\x1b\n" + + "\x06suffix\x18\b \x01(\tH\x06R\x06suffix\x88\x01\x01\x12\x1f\n" + + "\bcontains\x18\t \x01(\tH\aR\bcontains\x88\x01\x01\x12&\n" + + "\fnot_contains\x18\x17 \x01(\tH\bR\vnotContains\x88\x01\x01\x12\x0e\n" + + "\x02in\x18\n" + + " \x03(\tR\x02in\x12\x15\n" + + "\x06not_in\x18\v \x03(\tR\x05notIn\x12<\n" + + "\n" + + "well_known\x18\f \x01(\x0e2\x1d.c1.config.v1.WellKnownStringR\twellKnown\x12%\n" + + "\x0evalidate_empty\x18\x1a \x01(\bR\rvalidateEmpty\x12\x1f\n" + + "\vis_required\x18\x1b \x01(\bR\n" + + "isRequiredB\x05\n" + + "\x03_eqB\x06\n" + + "\x04_lenB\n" + + "\n" + + "\b_min_lenB\n" + + "\n" + + "\b_max_lenB\n" + + "\n" + + "\b_patternB\t\n" + + "\a_prefixB\t\n" + + "\a_suffixB\v\n" + + "\t_containsB\x0f\n" + + "\r_not_contains\"X\n" + + "\x0eStringMapRules\x12%\n" + + "\x0evalidate_empty\x18\x01 \x01(\bR\rvalidateEmpty\x12\x1f\n" + + "\vis_required\x18\x02 \x01(\bR\n" + + "isRequired\"L\n" + + "\x0fResourceIDRules\x129\n" + + "\x19allowed_resource_type_ids\x18\x01 \x03(\tR\x16allowedResourceTypeIds\"T\n" + + "\x17RepeatedResourceIdRules\x129\n" + + "\x19allowed_resource_type_ids\x18\x01 \x03(\tR\x16allowedResourceTypeIds*\x99\x02\n" + + "\x0fWellKnownString\x12!\n" + + "\x1dWELL_KNOWN_STRING_UNSPECIFIED\x10\x00\x12\x1b\n" + + "\x17WELL_KNOWN_STRING_EMAIL\x10\x01\x12\x1e\n" + + "\x1aWELL_KNOWN_STRING_HOSTNAME\x10\x02\x12\x18\n" + + "\x14WELL_KNOWN_STRING_IP\x10\x03\x12\x1a\n" + + "\x16WELL_KNOWN_STRING_IPV4\x10\x04\x12\x1a\n" + + "\x16WELL_KNOWN_STRING_IPV6\x10\x05\x12\x19\n" + + "\x15WELL_KNOWN_STRING_URI\x10\x06\x12\x1d\n" + + "\x19WELL_KNOWN_STRING_ADDRESS\x10\a\x12\x1a\n" + + "\x16WELL_KNOWN_STRING_UUID\x10\bB3Z1github.com/conductorone/baton-sdk/pb/c1/config/v1b\x06proto3" + var file_c1_config_v1_rules_proto_enumTypes = make([]protoimpl.EnumInfo, 1) -var file_c1_config_v1_rules_proto_msgTypes = make([]protoimpl.MessageInfo, 6) +var file_c1_config_v1_rules_proto_msgTypes = make([]protoimpl.MessageInfo, 8) var file_c1_config_v1_rules_proto_goTypes = []any{ - (WellKnownString)(0), // 0: c1.config.v1.WellKnownString - (*Int64Rules)(nil), // 1: c1.config.v1.Int64Rules - (*BoolRules)(nil), // 2: c1.config.v1.BoolRules - (*RepeatedRules)(nil), // 3: c1.config.v1.RepeatedRules - (*RepeatedStringRules)(nil), // 4: c1.config.v1.RepeatedStringRules - (*StringRules)(nil), // 5: c1.config.v1.StringRules - (*StringMapRules)(nil), // 6: c1.config.v1.StringMapRules + (WellKnownString)(0), // 0: c1.config.v1.WellKnownString + (*Int64Rules)(nil), // 1: c1.config.v1.Int64Rules + (*BoolRules)(nil), // 2: c1.config.v1.BoolRules + (*RepeatedRules)(nil), // 3: c1.config.v1.RepeatedRules + (*RepeatedStringRules)(nil), // 4: c1.config.v1.RepeatedStringRules + (*StringRules)(nil), // 5: c1.config.v1.StringRules + (*StringMapRules)(nil), // 6: c1.config.v1.StringMapRules + (*ResourceIDRules)(nil), // 7: c1.config.v1.ResourceIDRules + (*RepeatedResourceIdRules)(nil), // 8: c1.config.v1.RepeatedResourceIdRules } var file_c1_config_v1_rules_proto_depIdxs = []int32{ 1, // 0: c1.config.v1.RepeatedRules.int64:type_name -> c1.config.v1.Int64Rules @@ -936,7 +1690,7 @@ func file_c1_config_v1_rules_proto_init() { GoPackagePath: reflect.TypeOf(x{}).PkgPath(), RawDescriptor: unsafe.Slice(unsafe.StringData(file_c1_config_v1_rules_proto_rawDesc), len(file_c1_config_v1_rules_proto_rawDesc)), NumEnums: 1, - NumMessages: 6, + NumMessages: 8, NumExtensions: 0, NumServices: 0, }, diff --git a/vendor/github.com/conductorone/baton-sdk/pb/c1/config/v1/rules.pb.validate.go b/vendor/github.com/conductorone/baton-sdk/pb/c1/config/v1/rules.pb.validate.go index a2c8ff0d..f5f49e9e 100644 --- a/vendor/github.com/conductorone/baton-sdk/pb/c1/config/v1/rules.pb.validate.go +++ b/vendor/github.com/conductorone/baton-sdk/pb/c1/config/v1/rules.pb.validate.go @@ -892,3 +892,205 @@ var _ interface { Cause() error ErrorName() string } = StringMapRulesValidationError{} + +// Validate checks the field values on ResourceIDRules with the rules defined +// in the proto definition for this message. If any rules are violated, the +// first error encountered is returned, or nil if there are no violations. +func (m *ResourceIDRules) Validate() error { + return m.validate(false) +} + +// ValidateAll checks the field values on ResourceIDRules with the rules +// defined in the proto definition for this message. If any rules are +// violated, the result is a list of violation errors wrapped in +// ResourceIDRulesMultiError, or nil if none found. +func (m *ResourceIDRules) ValidateAll() error { + return m.validate(true) +} + +func (m *ResourceIDRules) validate(all bool) error { + if m == nil { + return nil + } + + var errors []error + + if len(errors) > 0 { + return ResourceIDRulesMultiError(errors) + } + + return nil +} + +// ResourceIDRulesMultiError is an error wrapping multiple validation errors +// returned by ResourceIDRules.ValidateAll() if the designated constraints +// aren't met. +type ResourceIDRulesMultiError []error + +// Error returns a concatenation of all the error messages it wraps. +func (m ResourceIDRulesMultiError) Error() string { + msgs := make([]string, 0, len(m)) + for _, err := range m { + msgs = append(msgs, err.Error()) + } + return strings.Join(msgs, "; ") +} + +// AllErrors returns a list of validation violation errors. +func (m ResourceIDRulesMultiError) AllErrors() []error { return m } + +// ResourceIDRulesValidationError is the validation error returned by +// ResourceIDRules.Validate if the designated constraints aren't met. +type ResourceIDRulesValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e ResourceIDRulesValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e ResourceIDRulesValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e ResourceIDRulesValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e ResourceIDRulesValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e ResourceIDRulesValidationError) ErrorName() string { return "ResourceIDRulesValidationError" } + +// Error satisfies the builtin error interface +func (e ResourceIDRulesValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sResourceIDRules.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = ResourceIDRulesValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = ResourceIDRulesValidationError{} + +// Validate checks the field values on RepeatedResourceIdRules with the rules +// defined in the proto definition for this message. If any rules are +// violated, the first error encountered is returned, or nil if there are no violations. +func (m *RepeatedResourceIdRules) Validate() error { + return m.validate(false) +} + +// ValidateAll checks the field values on RepeatedResourceIdRules with the +// rules defined in the proto definition for this message. If any rules are +// violated, the result is a list of violation errors wrapped in +// RepeatedResourceIdRulesMultiError, or nil if none found. +func (m *RepeatedResourceIdRules) ValidateAll() error { + return m.validate(true) +} + +func (m *RepeatedResourceIdRules) validate(all bool) error { + if m == nil { + return nil + } + + var errors []error + + if len(errors) > 0 { + return RepeatedResourceIdRulesMultiError(errors) + } + + return nil +} + +// RepeatedResourceIdRulesMultiError is an error wrapping multiple validation +// errors returned by RepeatedResourceIdRules.ValidateAll() if the designated +// constraints aren't met. +type RepeatedResourceIdRulesMultiError []error + +// Error returns a concatenation of all the error messages it wraps. +func (m RepeatedResourceIdRulesMultiError) Error() string { + msgs := make([]string, 0, len(m)) + for _, err := range m { + msgs = append(msgs, err.Error()) + } + return strings.Join(msgs, "; ") +} + +// AllErrors returns a list of validation violation errors. +func (m RepeatedResourceIdRulesMultiError) AllErrors() []error { return m } + +// RepeatedResourceIdRulesValidationError is the validation error returned by +// RepeatedResourceIdRules.Validate if the designated constraints aren't met. +type RepeatedResourceIdRulesValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e RepeatedResourceIdRulesValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e RepeatedResourceIdRulesValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e RepeatedResourceIdRulesValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e RepeatedResourceIdRulesValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e RepeatedResourceIdRulesValidationError) ErrorName() string { + return "RepeatedResourceIdRulesValidationError" +} + +// Error satisfies the builtin error interface +func (e RepeatedResourceIdRulesValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sRepeatedResourceIdRules.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = RepeatedResourceIdRulesValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = RepeatedResourceIdRulesValidationError{} diff --git a/vendor/github.com/conductorone/baton-sdk/pb/c1/config/v1/rules_protoopaque.pb.go b/vendor/github.com/conductorone/baton-sdk/pb/c1/config/v1/rules_protoopaque.pb.go new file mode 100644 index 00000000..87964c85 --- /dev/null +++ b/vendor/github.com/conductorone/baton-sdk/pb/c1/config/v1/rules_protoopaque.pb.go @@ -0,0 +1,1742 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.36.10 +// protoc (unknown) +// source: c1/config/v1/rules.proto + +//go:build protoopaque + +package v1 + +import ( + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + reflect "reflect" + 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 WellKnownString int32 + +const ( + WellKnownString_WELL_KNOWN_STRING_UNSPECIFIED WellKnownString = 0 + // Email specifies that the field must be a valid email address as + // defined by RFC 5322 + WellKnownString_WELL_KNOWN_STRING_EMAIL WellKnownString = 1 + // Hostname specifies that the field must be a valid hostname as + // defined by RFC 1034. This constraint does not support + // internationalized domain names (IDNs). + WellKnownString_WELL_KNOWN_STRING_HOSTNAME WellKnownString = 2 + // Ip specifies that the field must be a valid IP (v4 or v6) address. + // Valid IPv6 addresses should not include surrounding square brackets. + WellKnownString_WELL_KNOWN_STRING_IP WellKnownString = 3 + // Ipv4 specifies that the field must be a valid IPv4 address. + WellKnownString_WELL_KNOWN_STRING_IPV4 WellKnownString = 4 + // Ipv6 specifies that the field must be a valid IPv6 address. Valid + // IPv6 addresses should not include surrounding square brackets. + WellKnownString_WELL_KNOWN_STRING_IPV6 WellKnownString = 5 + WellKnownString_WELL_KNOWN_STRING_URI WellKnownString = 6 + // Address specifies that the field must be either a valid hostname as + // defined by RFC 1034 (which does not support internationalized domain + // names or IDNs), or it can be a valid IP (v4 or v6). + WellKnownString_WELL_KNOWN_STRING_ADDRESS WellKnownString = 7 + // Uuid specifies that the field must be a valid UUID as defined by + // RFC 4122 + WellKnownString_WELL_KNOWN_STRING_UUID WellKnownString = 8 +) + +// Enum value maps for WellKnownString. +var ( + WellKnownString_name = map[int32]string{ + 0: "WELL_KNOWN_STRING_UNSPECIFIED", + 1: "WELL_KNOWN_STRING_EMAIL", + 2: "WELL_KNOWN_STRING_HOSTNAME", + 3: "WELL_KNOWN_STRING_IP", + 4: "WELL_KNOWN_STRING_IPV4", + 5: "WELL_KNOWN_STRING_IPV6", + 6: "WELL_KNOWN_STRING_URI", + 7: "WELL_KNOWN_STRING_ADDRESS", + 8: "WELL_KNOWN_STRING_UUID", + } + WellKnownString_value = map[string]int32{ + "WELL_KNOWN_STRING_UNSPECIFIED": 0, + "WELL_KNOWN_STRING_EMAIL": 1, + "WELL_KNOWN_STRING_HOSTNAME": 2, + "WELL_KNOWN_STRING_IP": 3, + "WELL_KNOWN_STRING_IPV4": 4, + "WELL_KNOWN_STRING_IPV6": 5, + "WELL_KNOWN_STRING_URI": 6, + "WELL_KNOWN_STRING_ADDRESS": 7, + "WELL_KNOWN_STRING_UUID": 8, + } +) + +func (x WellKnownString) Enum() *WellKnownString { + p := new(WellKnownString) + *p = x + return p +} + +func (x WellKnownString) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (WellKnownString) Descriptor() protoreflect.EnumDescriptor { + return file_c1_config_v1_rules_proto_enumTypes[0].Descriptor() +} + +func (WellKnownString) Type() protoreflect.EnumType { + return &file_c1_config_v1_rules_proto_enumTypes[0] +} + +func (x WellKnownString) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Int64Rules describes the constraints applied to `int64` values +type Int64Rules struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Eq int64 `protobuf:"varint,1,opt,name=eq,proto3,oneof"` + xxx_hidden_Lt int64 `protobuf:"varint,2,opt,name=lt,proto3,oneof"` + xxx_hidden_Lte int64 `protobuf:"varint,3,opt,name=lte,proto3,oneof"` + xxx_hidden_Gt int64 `protobuf:"varint,4,opt,name=gt,proto3,oneof"` + xxx_hidden_Gte int64 `protobuf:"varint,5,opt,name=gte,proto3,oneof"` + xxx_hidden_In []int64 `protobuf:"varint,6,rep,packed,name=in,proto3"` + xxx_hidden_NotIn []int64 `protobuf:"varint,7,rep,packed,name=not_in,json=notIn,proto3"` + xxx_hidden_ValidateEmpty bool `protobuf:"varint,8,opt,name=validate_empty,json=validateEmpty,proto3"` + xxx_hidden_IsRequired bool `protobuf:"varint,9,opt,name=is_required,json=isRequired,proto3"` + XXX_raceDetectHookData protoimpl.RaceDetectHookData + XXX_presence [1]uint32 + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *Int64Rules) Reset() { + *x = Int64Rules{} + mi := &file_c1_config_v1_rules_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *Int64Rules) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Int64Rules) ProtoMessage() {} + +func (x *Int64Rules) ProtoReflect() protoreflect.Message { + mi := &file_c1_config_v1_rules_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) +} + +func (x *Int64Rules) GetEq() int64 { + if x != nil { + return x.xxx_hidden_Eq + } + return 0 +} + +func (x *Int64Rules) GetLt() int64 { + if x != nil { + return x.xxx_hidden_Lt + } + return 0 +} + +func (x *Int64Rules) GetLte() int64 { + if x != nil { + return x.xxx_hidden_Lte + } + return 0 +} + +func (x *Int64Rules) GetGt() int64 { + if x != nil { + return x.xxx_hidden_Gt + } + return 0 +} + +func (x *Int64Rules) GetGte() int64 { + if x != nil { + return x.xxx_hidden_Gte + } + return 0 +} + +func (x *Int64Rules) GetIn() []int64 { + if x != nil { + return x.xxx_hidden_In + } + return nil +} + +func (x *Int64Rules) GetNotIn() []int64 { + if x != nil { + return x.xxx_hidden_NotIn + } + return nil +} + +func (x *Int64Rules) GetValidateEmpty() bool { + if x != nil { + return x.xxx_hidden_ValidateEmpty + } + return false +} + +func (x *Int64Rules) GetIsRequired() bool { + if x != nil { + return x.xxx_hidden_IsRequired + } + return false +} + +func (x *Int64Rules) SetEq(v int64) { + x.xxx_hidden_Eq = v + protoimpl.X.SetPresent(&(x.XXX_presence[0]), 0, 9) +} + +func (x *Int64Rules) SetLt(v int64) { + x.xxx_hidden_Lt = v + protoimpl.X.SetPresent(&(x.XXX_presence[0]), 1, 9) +} + +func (x *Int64Rules) SetLte(v int64) { + x.xxx_hidden_Lte = v + protoimpl.X.SetPresent(&(x.XXX_presence[0]), 2, 9) +} + +func (x *Int64Rules) SetGt(v int64) { + x.xxx_hidden_Gt = v + protoimpl.X.SetPresent(&(x.XXX_presence[0]), 3, 9) +} + +func (x *Int64Rules) SetGte(v int64) { + x.xxx_hidden_Gte = v + protoimpl.X.SetPresent(&(x.XXX_presence[0]), 4, 9) +} + +func (x *Int64Rules) SetIn(v []int64) { + x.xxx_hidden_In = v +} + +func (x *Int64Rules) SetNotIn(v []int64) { + x.xxx_hidden_NotIn = v +} + +func (x *Int64Rules) SetValidateEmpty(v bool) { + x.xxx_hidden_ValidateEmpty = v +} + +func (x *Int64Rules) SetIsRequired(v bool) { + x.xxx_hidden_IsRequired = v +} + +func (x *Int64Rules) HasEq() bool { + if x == nil { + return false + } + return protoimpl.X.Present(&(x.XXX_presence[0]), 0) +} + +func (x *Int64Rules) HasLt() bool { + if x == nil { + return false + } + return protoimpl.X.Present(&(x.XXX_presence[0]), 1) +} + +func (x *Int64Rules) HasLte() bool { + if x == nil { + return false + } + return protoimpl.X.Present(&(x.XXX_presence[0]), 2) +} + +func (x *Int64Rules) HasGt() bool { + if x == nil { + return false + } + return protoimpl.X.Present(&(x.XXX_presence[0]), 3) +} + +func (x *Int64Rules) HasGte() bool { + if x == nil { + return false + } + return protoimpl.X.Present(&(x.XXX_presence[0]), 4) +} + +func (x *Int64Rules) ClearEq() { + protoimpl.X.ClearPresent(&(x.XXX_presence[0]), 0) + x.xxx_hidden_Eq = 0 +} + +func (x *Int64Rules) ClearLt() { + protoimpl.X.ClearPresent(&(x.XXX_presence[0]), 1) + x.xxx_hidden_Lt = 0 +} + +func (x *Int64Rules) ClearLte() { + protoimpl.X.ClearPresent(&(x.XXX_presence[0]), 2) + x.xxx_hidden_Lte = 0 +} + +func (x *Int64Rules) ClearGt() { + protoimpl.X.ClearPresent(&(x.XXX_presence[0]), 3) + x.xxx_hidden_Gt = 0 +} + +func (x *Int64Rules) ClearGte() { + protoimpl.X.ClearPresent(&(x.XXX_presence[0]), 4) + x.xxx_hidden_Gte = 0 +} + +type Int64Rules_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Const specifies that this field must be exactly the specified value + Eq *int64 + // Lt specifies that this field must be less than the specified value, + // exclusive + Lt *int64 + // Lte specifies that this field must be less than or equal to the + // specified value, inclusive + Lte *int64 + // Gt specifies that this field must be greater than the specified value, + // exclusive. If the value of Gt is larger than a specified Lt or Lte, the + // range is reversed. + Gt *int64 + // Gte specifies that this field must be greater than or equal to the + // specified value, inclusive. If the value of Gte is larger than a + // specified Lt or Lte, the range is reversed. + Gte *int64 + // In specifies that this field must be equal to one of the specified + // values + In []int64 + // NotIn specifies that this field cannot be equal to one of the specified + // values + NotIn []int64 + // IgnoreEmpty specifies that the validation rules of this field should be + // evaluated only if the field is not empty + ValidateEmpty bool + IsRequired bool +} + +func (b0 Int64Rules_builder) Build() *Int64Rules { + m0 := &Int64Rules{} + b, x := &b0, m0 + _, _ = b, x + if b.Eq != nil { + protoimpl.X.SetPresentNonAtomic(&(x.XXX_presence[0]), 0, 9) + x.xxx_hidden_Eq = *b.Eq + } + if b.Lt != nil { + protoimpl.X.SetPresentNonAtomic(&(x.XXX_presence[0]), 1, 9) + x.xxx_hidden_Lt = *b.Lt + } + if b.Lte != nil { + protoimpl.X.SetPresentNonAtomic(&(x.XXX_presence[0]), 2, 9) + x.xxx_hidden_Lte = *b.Lte + } + if b.Gt != nil { + protoimpl.X.SetPresentNonAtomic(&(x.XXX_presence[0]), 3, 9) + x.xxx_hidden_Gt = *b.Gt + } + if b.Gte != nil { + protoimpl.X.SetPresentNonAtomic(&(x.XXX_presence[0]), 4, 9) + x.xxx_hidden_Gte = *b.Gte + } + x.xxx_hidden_In = b.In + x.xxx_hidden_NotIn = b.NotIn + x.xxx_hidden_ValidateEmpty = b.ValidateEmpty + x.xxx_hidden_IsRequired = b.IsRequired + return m0 +} + +// BoolRules describes the constraints applied to `bool` values +type BoolRules struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Eq bool `protobuf:"varint,1,opt,name=eq,proto3,oneof"` + XXX_raceDetectHookData protoimpl.RaceDetectHookData + XXX_presence [1]uint32 + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *BoolRules) Reset() { + *x = BoolRules{} + mi := &file_c1_config_v1_rules_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *BoolRules) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*BoolRules) ProtoMessage() {} + +func (x *BoolRules) ProtoReflect() protoreflect.Message { + mi := &file_c1_config_v1_rules_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) +} + +func (x *BoolRules) GetEq() bool { + if x != nil { + return x.xxx_hidden_Eq + } + return false +} + +func (x *BoolRules) SetEq(v bool) { + x.xxx_hidden_Eq = v + protoimpl.X.SetPresent(&(x.XXX_presence[0]), 0, 1) +} + +func (x *BoolRules) HasEq() bool { + if x == nil { + return false + } + return protoimpl.X.Present(&(x.XXX_presence[0]), 0) +} + +func (x *BoolRules) ClearEq() { + protoimpl.X.ClearPresent(&(x.XXX_presence[0]), 0) + x.xxx_hidden_Eq = false +} + +type BoolRules_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Const specifies that this field must be exactly the specified value + Eq *bool +} + +func (b0 BoolRules_builder) Build() *BoolRules { + m0 := &BoolRules{} + b, x := &b0, m0 + _, _ = b, x + if b.Eq != nil { + protoimpl.X.SetPresentNonAtomic(&(x.XXX_presence[0]), 0, 1) + x.xxx_hidden_Eq = *b.Eq + } + return m0 +} + +// RepeatedRules describe the constraints applied to `repeated` values +type RepeatedRules struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_MinItems uint64 `protobuf:"varint,1,opt,name=min_items,json=minItems,proto3,oneof"` + xxx_hidden_MaxItems uint64 `protobuf:"varint,2,opt,name=max_items,json=maxItems,proto3,oneof"` + xxx_hidden_Unique bool `protobuf:"varint,3,opt,name=unique,proto3"` + xxx_hidden_ItemRules isRepeatedRules_ItemRules `protobuf_oneof:"item_rules"` + xxx_hidden_ValidateEmpty bool `protobuf:"varint,4,opt,name=validate_empty,json=validateEmpty,proto3"` + xxx_hidden_IsRequired bool `protobuf:"varint,5,opt,name=is_required,json=isRequired,proto3"` + XXX_raceDetectHookData protoimpl.RaceDetectHookData + XXX_presence [1]uint32 + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *RepeatedRules) Reset() { + *x = RepeatedRules{} + mi := &file_c1_config_v1_rules_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *RepeatedRules) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*RepeatedRules) ProtoMessage() {} + +func (x *RepeatedRules) ProtoReflect() protoreflect.Message { + mi := &file_c1_config_v1_rules_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) +} + +func (x *RepeatedRules) GetMinItems() uint64 { + if x != nil { + return x.xxx_hidden_MinItems + } + return 0 +} + +func (x *RepeatedRules) GetMaxItems() uint64 { + if x != nil { + return x.xxx_hidden_MaxItems + } + return 0 +} + +func (x *RepeatedRules) GetUnique() bool { + if x != nil { + return x.xxx_hidden_Unique + } + return false +} + +func (x *RepeatedRules) GetInt64() *Int64Rules { + if x != nil { + if x, ok := x.xxx_hidden_ItemRules.(*repeatedRules_Int64); ok { + return x.Int64 + } + } + return nil +} + +func (x *RepeatedRules) GetBool() *BoolRules { + if x != nil { + if x, ok := x.xxx_hidden_ItemRules.(*repeatedRules_Bool); ok { + return x.Bool + } + } + return nil +} + +func (x *RepeatedRules) GetString() *StringRules { + if x != nil { + if x, ok := x.xxx_hidden_ItemRules.(*repeatedRules_String_); ok { + return x.String_ + } + } + return nil +} + +func (x *RepeatedRules) GetValidateEmpty() bool { + if x != nil { + return x.xxx_hidden_ValidateEmpty + } + return false +} + +func (x *RepeatedRules) GetIsRequired() bool { + if x != nil { + return x.xxx_hidden_IsRequired + } + return false +} + +func (x *RepeatedRules) SetMinItems(v uint64) { + x.xxx_hidden_MinItems = v + protoimpl.X.SetPresent(&(x.XXX_presence[0]), 0, 6) +} + +func (x *RepeatedRules) SetMaxItems(v uint64) { + x.xxx_hidden_MaxItems = v + protoimpl.X.SetPresent(&(x.XXX_presence[0]), 1, 6) +} + +func (x *RepeatedRules) SetUnique(v bool) { + x.xxx_hidden_Unique = v +} + +func (x *RepeatedRules) SetInt64(v *Int64Rules) { + if v == nil { + x.xxx_hidden_ItemRules = nil + return + } + x.xxx_hidden_ItemRules = &repeatedRules_Int64{v} +} + +func (x *RepeatedRules) SetBool(v *BoolRules) { + if v == nil { + x.xxx_hidden_ItemRules = nil + return + } + x.xxx_hidden_ItemRules = &repeatedRules_Bool{v} +} + +func (x *RepeatedRules) SetString(v *StringRules) { + if v == nil { + x.xxx_hidden_ItemRules = nil + return + } + x.xxx_hidden_ItemRules = &repeatedRules_String_{v} +} + +func (x *RepeatedRules) SetValidateEmpty(v bool) { + x.xxx_hidden_ValidateEmpty = v +} + +func (x *RepeatedRules) SetIsRequired(v bool) { + x.xxx_hidden_IsRequired = v +} + +func (x *RepeatedRules) HasMinItems() bool { + if x == nil { + return false + } + return protoimpl.X.Present(&(x.XXX_presence[0]), 0) +} + +func (x *RepeatedRules) HasMaxItems() bool { + if x == nil { + return false + } + return protoimpl.X.Present(&(x.XXX_presence[0]), 1) +} + +func (x *RepeatedRules) HasItemRules() bool { + if x == nil { + return false + } + return x.xxx_hidden_ItemRules != nil +} + +func (x *RepeatedRules) HasInt64() bool { + if x == nil { + return false + } + _, ok := x.xxx_hidden_ItemRules.(*repeatedRules_Int64) + return ok +} + +func (x *RepeatedRules) HasBool() bool { + if x == nil { + return false + } + _, ok := x.xxx_hidden_ItemRules.(*repeatedRules_Bool) + return ok +} + +func (x *RepeatedRules) HasString() bool { + if x == nil { + return false + } + _, ok := x.xxx_hidden_ItemRules.(*repeatedRules_String_) + return ok +} + +func (x *RepeatedRules) ClearMinItems() { + protoimpl.X.ClearPresent(&(x.XXX_presence[0]), 0) + x.xxx_hidden_MinItems = 0 +} + +func (x *RepeatedRules) ClearMaxItems() { + protoimpl.X.ClearPresent(&(x.XXX_presence[0]), 1) + x.xxx_hidden_MaxItems = 0 +} + +func (x *RepeatedRules) ClearItemRules() { + x.xxx_hidden_ItemRules = nil +} + +func (x *RepeatedRules) ClearInt64() { + if _, ok := x.xxx_hidden_ItemRules.(*repeatedRules_Int64); ok { + x.xxx_hidden_ItemRules = nil + } +} + +func (x *RepeatedRules) ClearBool() { + if _, ok := x.xxx_hidden_ItemRules.(*repeatedRules_Bool); ok { + x.xxx_hidden_ItemRules = nil + } +} + +func (x *RepeatedRules) ClearString() { + if _, ok := x.xxx_hidden_ItemRules.(*repeatedRules_String_); ok { + x.xxx_hidden_ItemRules = nil + } +} + +const RepeatedRules_ItemRules_not_set_case case_RepeatedRules_ItemRules = 0 +const RepeatedRules_Int64_case case_RepeatedRules_ItemRules = 100 +const RepeatedRules_Bool_case case_RepeatedRules_ItemRules = 101 +const RepeatedRules_String__case case_RepeatedRules_ItemRules = 102 + +func (x *RepeatedRules) WhichItemRules() case_RepeatedRules_ItemRules { + if x == nil { + return RepeatedRules_ItemRules_not_set_case + } + switch x.xxx_hidden_ItemRules.(type) { + case *repeatedRules_Int64: + return RepeatedRules_Int64_case + case *repeatedRules_Bool: + return RepeatedRules_Bool_case + case *repeatedRules_String_: + return RepeatedRules_String__case + default: + return RepeatedRules_ItemRules_not_set_case + } +} + +type RepeatedRules_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // MinItems specifies that this field must have the specified number of + // items at a minimum + MinItems *uint64 + // MaxItems specifies that this field must have the specified number of + // items at a maximum + MaxItems *uint64 + // Unique specifies that all elements in this field must be unique. This + // constraint is only applicable to scalar and enum types (messages are not + // supported). + Unique bool + // Items specifies the constraints to be applied to each item in the field. + // Repeated message fields will still execute validation against each item + // unless skip is specified here. + + // Fields of oneof xxx_hidden_ItemRules: + // Scalar Field Types + Int64 *Int64Rules + Bool *BoolRules + String *StringRules + // -- end of xxx_hidden_ItemRules + // IgnoreEmpty specifies that the validation rules of this field should be + // evaluated only if the field is not empty + ValidateEmpty bool + IsRequired bool +} + +func (b0 RepeatedRules_builder) Build() *RepeatedRules { + m0 := &RepeatedRules{} + b, x := &b0, m0 + _, _ = b, x + if b.MinItems != nil { + protoimpl.X.SetPresentNonAtomic(&(x.XXX_presence[0]), 0, 6) + x.xxx_hidden_MinItems = *b.MinItems + } + if b.MaxItems != nil { + protoimpl.X.SetPresentNonAtomic(&(x.XXX_presence[0]), 1, 6) + x.xxx_hidden_MaxItems = *b.MaxItems + } + x.xxx_hidden_Unique = b.Unique + if b.Int64 != nil { + x.xxx_hidden_ItemRules = &repeatedRules_Int64{b.Int64} + } + if b.Bool != nil { + x.xxx_hidden_ItemRules = &repeatedRules_Bool{b.Bool} + } + if b.String != nil { + x.xxx_hidden_ItemRules = &repeatedRules_String_{b.String} + } + x.xxx_hidden_ValidateEmpty = b.ValidateEmpty + x.xxx_hidden_IsRequired = b.IsRequired + return m0 +} + +type case_RepeatedRules_ItemRules protoreflect.FieldNumber + +func (x case_RepeatedRules_ItemRules) String() string { + md := file_c1_config_v1_rules_proto_msgTypes[2].Descriptor() + if x == 0 { + return "not set" + } + return protoimpl.X.MessageFieldStringOf(md, protoreflect.FieldNumber(x)) +} + +type isRepeatedRules_ItemRules interface { + isRepeatedRules_ItemRules() +} + +type repeatedRules_Int64 struct { + // Scalar Field Types + Int64 *Int64Rules `protobuf:"bytes,100,opt,name=int64,proto3,oneof"` +} + +type repeatedRules_Bool struct { + Bool *BoolRules `protobuf:"bytes,101,opt,name=bool,proto3,oneof"` +} + +type repeatedRules_String_ struct { + String_ *StringRules `protobuf:"bytes,102,opt,name=string,proto3,oneof"` // RepeatedRules repeated = 103; +} + +func (*repeatedRules_Int64) isRepeatedRules_ItemRules() {} + +func (*repeatedRules_Bool) isRepeatedRules_ItemRules() {} + +func (*repeatedRules_String_) isRepeatedRules_ItemRules() {} + +type RepeatedStringRules struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_MinItems uint64 `protobuf:"varint,1,opt,name=min_items,json=minItems,proto3,oneof"` + xxx_hidden_MaxItems uint64 `protobuf:"varint,2,opt,name=max_items,json=maxItems,proto3,oneof"` + xxx_hidden_Unique bool `protobuf:"varint,3,opt,name=unique,proto3"` + xxx_hidden_ItemRules *StringRules `protobuf:"bytes,4,opt,name=item_rules,json=itemRules,proto3"` + xxx_hidden_ValidateEmpty bool `protobuf:"varint,5,opt,name=validate_empty,json=validateEmpty,proto3"` + xxx_hidden_IsRequired bool `protobuf:"varint,6,opt,name=is_required,json=isRequired,proto3"` + XXX_raceDetectHookData protoimpl.RaceDetectHookData + XXX_presence [1]uint32 + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *RepeatedStringRules) Reset() { + *x = RepeatedStringRules{} + mi := &file_c1_config_v1_rules_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *RepeatedStringRules) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*RepeatedStringRules) ProtoMessage() {} + +func (x *RepeatedStringRules) ProtoReflect() protoreflect.Message { + mi := &file_c1_config_v1_rules_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) +} + +func (x *RepeatedStringRules) GetMinItems() uint64 { + if x != nil { + return x.xxx_hidden_MinItems + } + return 0 +} + +func (x *RepeatedStringRules) GetMaxItems() uint64 { + if x != nil { + return x.xxx_hidden_MaxItems + } + return 0 +} + +func (x *RepeatedStringRules) GetUnique() bool { + if x != nil { + return x.xxx_hidden_Unique + } + return false +} + +func (x *RepeatedStringRules) GetItemRules() *StringRules { + if x != nil { + return x.xxx_hidden_ItemRules + } + return nil +} + +func (x *RepeatedStringRules) GetValidateEmpty() bool { + if x != nil { + return x.xxx_hidden_ValidateEmpty + } + return false +} + +func (x *RepeatedStringRules) GetIsRequired() bool { + if x != nil { + return x.xxx_hidden_IsRequired + } + return false +} + +func (x *RepeatedStringRules) SetMinItems(v uint64) { + x.xxx_hidden_MinItems = v + protoimpl.X.SetPresent(&(x.XXX_presence[0]), 0, 6) +} + +func (x *RepeatedStringRules) SetMaxItems(v uint64) { + x.xxx_hidden_MaxItems = v + protoimpl.X.SetPresent(&(x.XXX_presence[0]), 1, 6) +} + +func (x *RepeatedStringRules) SetUnique(v bool) { + x.xxx_hidden_Unique = v +} + +func (x *RepeatedStringRules) SetItemRules(v *StringRules) { + x.xxx_hidden_ItemRules = v +} + +func (x *RepeatedStringRules) SetValidateEmpty(v bool) { + x.xxx_hidden_ValidateEmpty = v +} + +func (x *RepeatedStringRules) SetIsRequired(v bool) { + x.xxx_hidden_IsRequired = v +} + +func (x *RepeatedStringRules) HasMinItems() bool { + if x == nil { + return false + } + return protoimpl.X.Present(&(x.XXX_presence[0]), 0) +} + +func (x *RepeatedStringRules) HasMaxItems() bool { + if x == nil { + return false + } + return protoimpl.X.Present(&(x.XXX_presence[0]), 1) +} + +func (x *RepeatedStringRules) HasItemRules() bool { + if x == nil { + return false + } + return x.xxx_hidden_ItemRules != nil +} + +func (x *RepeatedStringRules) ClearMinItems() { + protoimpl.X.ClearPresent(&(x.XXX_presence[0]), 0) + x.xxx_hidden_MinItems = 0 +} + +func (x *RepeatedStringRules) ClearMaxItems() { + protoimpl.X.ClearPresent(&(x.XXX_presence[0]), 1) + x.xxx_hidden_MaxItems = 0 +} + +func (x *RepeatedStringRules) ClearItemRules() { + x.xxx_hidden_ItemRules = nil +} + +type RepeatedStringRules_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // MinItems specifies that this field must have the specified number of + // items at a minimum + MinItems *uint64 + // MaxItems specifies that this field must have the specified number of + // items at a maximum + MaxItems *uint64 + // Unique specifies that all elements in this field must be unique. This + // constraint is only applicable to scalar and enum types (messages are not + // supported). + Unique bool + ItemRules *StringRules + // IgnoreEmpty specifies that the validation rules of this field should be + // evaluated only if the field is not empty + ValidateEmpty bool + IsRequired bool +} + +func (b0 RepeatedStringRules_builder) Build() *RepeatedStringRules { + m0 := &RepeatedStringRules{} + b, x := &b0, m0 + _, _ = b, x + if b.MinItems != nil { + protoimpl.X.SetPresentNonAtomic(&(x.XXX_presence[0]), 0, 6) + x.xxx_hidden_MinItems = *b.MinItems + } + if b.MaxItems != nil { + protoimpl.X.SetPresentNonAtomic(&(x.XXX_presence[0]), 1, 6) + x.xxx_hidden_MaxItems = *b.MaxItems + } + x.xxx_hidden_Unique = b.Unique + x.xxx_hidden_ItemRules = b.ItemRules + x.xxx_hidden_ValidateEmpty = b.ValidateEmpty + x.xxx_hidden_IsRequired = b.IsRequired + return m0 +} + +type StringRules struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Eq *string `protobuf:"bytes,1,opt,name=eq,proto3,oneof"` + xxx_hidden_Len uint64 `protobuf:"varint,19,opt,name=len,proto3,oneof"` + xxx_hidden_MinLen uint64 `protobuf:"varint,2,opt,name=min_len,json=minLen,proto3,oneof"` + xxx_hidden_MaxLen uint64 `protobuf:"varint,3,opt,name=max_len,json=maxLen,proto3,oneof"` + xxx_hidden_Pattern *string `protobuf:"bytes,6,opt,name=pattern,proto3,oneof"` + xxx_hidden_Prefix *string `protobuf:"bytes,7,opt,name=prefix,proto3,oneof"` + xxx_hidden_Suffix *string `protobuf:"bytes,8,opt,name=suffix,proto3,oneof"` + xxx_hidden_Contains *string `protobuf:"bytes,9,opt,name=contains,proto3,oneof"` + xxx_hidden_NotContains *string `protobuf:"bytes,23,opt,name=not_contains,json=notContains,proto3,oneof"` + xxx_hidden_In []string `protobuf:"bytes,10,rep,name=in,proto3"` + xxx_hidden_NotIn []string `protobuf:"bytes,11,rep,name=not_in,json=notIn,proto3"` + xxx_hidden_WellKnown WellKnownString `protobuf:"varint,12,opt,name=well_known,json=wellKnown,proto3,enum=c1.config.v1.WellKnownString"` + xxx_hidden_ValidateEmpty bool `protobuf:"varint,26,opt,name=validate_empty,json=validateEmpty,proto3"` + xxx_hidden_IsRequired bool `protobuf:"varint,27,opt,name=is_required,json=isRequired,proto3"` + XXX_raceDetectHookData protoimpl.RaceDetectHookData + XXX_presence [1]uint32 + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *StringRules) Reset() { + *x = StringRules{} + mi := &file_c1_config_v1_rules_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *StringRules) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*StringRules) ProtoMessage() {} + +func (x *StringRules) ProtoReflect() protoreflect.Message { + mi := &file_c1_config_v1_rules_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) +} + +func (x *StringRules) GetEq() string { + if x != nil { + if x.xxx_hidden_Eq != nil { + return *x.xxx_hidden_Eq + } + return "" + } + return "" +} + +func (x *StringRules) GetLen() uint64 { + if x != nil { + return x.xxx_hidden_Len + } + return 0 +} + +func (x *StringRules) GetMinLen() uint64 { + if x != nil { + return x.xxx_hidden_MinLen + } + return 0 +} + +func (x *StringRules) GetMaxLen() uint64 { + if x != nil { + return x.xxx_hidden_MaxLen + } + return 0 +} + +func (x *StringRules) GetPattern() string { + if x != nil { + if x.xxx_hidden_Pattern != nil { + return *x.xxx_hidden_Pattern + } + return "" + } + return "" +} + +func (x *StringRules) GetPrefix() string { + if x != nil { + if x.xxx_hidden_Prefix != nil { + return *x.xxx_hidden_Prefix + } + return "" + } + return "" +} + +func (x *StringRules) GetSuffix() string { + if x != nil { + if x.xxx_hidden_Suffix != nil { + return *x.xxx_hidden_Suffix + } + return "" + } + return "" +} + +func (x *StringRules) GetContains() string { + if x != nil { + if x.xxx_hidden_Contains != nil { + return *x.xxx_hidden_Contains + } + return "" + } + return "" +} + +func (x *StringRules) GetNotContains() string { + if x != nil { + if x.xxx_hidden_NotContains != nil { + return *x.xxx_hidden_NotContains + } + return "" + } + return "" +} + +func (x *StringRules) GetIn() []string { + if x != nil { + return x.xxx_hidden_In + } + return nil +} + +func (x *StringRules) GetNotIn() []string { + if x != nil { + return x.xxx_hidden_NotIn + } + return nil +} + +func (x *StringRules) GetWellKnown() WellKnownString { + if x != nil { + return x.xxx_hidden_WellKnown + } + return WellKnownString_WELL_KNOWN_STRING_UNSPECIFIED +} + +func (x *StringRules) GetValidateEmpty() bool { + if x != nil { + return x.xxx_hidden_ValidateEmpty + } + return false +} + +func (x *StringRules) GetIsRequired() bool { + if x != nil { + return x.xxx_hidden_IsRequired + } + return false +} + +func (x *StringRules) SetEq(v string) { + x.xxx_hidden_Eq = &v + protoimpl.X.SetPresent(&(x.XXX_presence[0]), 0, 14) +} + +func (x *StringRules) SetLen(v uint64) { + x.xxx_hidden_Len = v + protoimpl.X.SetPresent(&(x.XXX_presence[0]), 1, 14) +} + +func (x *StringRules) SetMinLen(v uint64) { + x.xxx_hidden_MinLen = v + protoimpl.X.SetPresent(&(x.XXX_presence[0]), 2, 14) +} + +func (x *StringRules) SetMaxLen(v uint64) { + x.xxx_hidden_MaxLen = v + protoimpl.X.SetPresent(&(x.XXX_presence[0]), 3, 14) +} + +func (x *StringRules) SetPattern(v string) { + x.xxx_hidden_Pattern = &v + protoimpl.X.SetPresent(&(x.XXX_presence[0]), 4, 14) +} + +func (x *StringRules) SetPrefix(v string) { + x.xxx_hidden_Prefix = &v + protoimpl.X.SetPresent(&(x.XXX_presence[0]), 5, 14) +} + +func (x *StringRules) SetSuffix(v string) { + x.xxx_hidden_Suffix = &v + protoimpl.X.SetPresent(&(x.XXX_presence[0]), 6, 14) +} + +func (x *StringRules) SetContains(v string) { + x.xxx_hidden_Contains = &v + protoimpl.X.SetPresent(&(x.XXX_presence[0]), 7, 14) +} + +func (x *StringRules) SetNotContains(v string) { + x.xxx_hidden_NotContains = &v + protoimpl.X.SetPresent(&(x.XXX_presence[0]), 8, 14) +} + +func (x *StringRules) SetIn(v []string) { + x.xxx_hidden_In = v +} + +func (x *StringRules) SetNotIn(v []string) { + x.xxx_hidden_NotIn = v +} + +func (x *StringRules) SetWellKnown(v WellKnownString) { + x.xxx_hidden_WellKnown = v +} + +func (x *StringRules) SetValidateEmpty(v bool) { + x.xxx_hidden_ValidateEmpty = v +} + +func (x *StringRules) SetIsRequired(v bool) { + x.xxx_hidden_IsRequired = v +} + +func (x *StringRules) HasEq() bool { + if x == nil { + return false + } + return protoimpl.X.Present(&(x.XXX_presence[0]), 0) +} + +func (x *StringRules) HasLen() bool { + if x == nil { + return false + } + return protoimpl.X.Present(&(x.XXX_presence[0]), 1) +} + +func (x *StringRules) HasMinLen() bool { + if x == nil { + return false + } + return protoimpl.X.Present(&(x.XXX_presence[0]), 2) +} + +func (x *StringRules) HasMaxLen() bool { + if x == nil { + return false + } + return protoimpl.X.Present(&(x.XXX_presence[0]), 3) +} + +func (x *StringRules) HasPattern() bool { + if x == nil { + return false + } + return protoimpl.X.Present(&(x.XXX_presence[0]), 4) +} + +func (x *StringRules) HasPrefix() bool { + if x == nil { + return false + } + return protoimpl.X.Present(&(x.XXX_presence[0]), 5) +} + +func (x *StringRules) HasSuffix() bool { + if x == nil { + return false + } + return protoimpl.X.Present(&(x.XXX_presence[0]), 6) +} + +func (x *StringRules) HasContains() bool { + if x == nil { + return false + } + return protoimpl.X.Present(&(x.XXX_presence[0]), 7) +} + +func (x *StringRules) HasNotContains() bool { + if x == nil { + return false + } + return protoimpl.X.Present(&(x.XXX_presence[0]), 8) +} + +func (x *StringRules) ClearEq() { + protoimpl.X.ClearPresent(&(x.XXX_presence[0]), 0) + x.xxx_hidden_Eq = nil +} + +func (x *StringRules) ClearLen() { + protoimpl.X.ClearPresent(&(x.XXX_presence[0]), 1) + x.xxx_hidden_Len = 0 +} + +func (x *StringRules) ClearMinLen() { + protoimpl.X.ClearPresent(&(x.XXX_presence[0]), 2) + x.xxx_hidden_MinLen = 0 +} + +func (x *StringRules) ClearMaxLen() { + protoimpl.X.ClearPresent(&(x.XXX_presence[0]), 3) + x.xxx_hidden_MaxLen = 0 +} + +func (x *StringRules) ClearPattern() { + protoimpl.X.ClearPresent(&(x.XXX_presence[0]), 4) + x.xxx_hidden_Pattern = nil +} + +func (x *StringRules) ClearPrefix() { + protoimpl.X.ClearPresent(&(x.XXX_presence[0]), 5) + x.xxx_hidden_Prefix = nil +} + +func (x *StringRules) ClearSuffix() { + protoimpl.X.ClearPresent(&(x.XXX_presence[0]), 6) + x.xxx_hidden_Suffix = nil +} + +func (x *StringRules) ClearContains() { + protoimpl.X.ClearPresent(&(x.XXX_presence[0]), 7) + x.xxx_hidden_Contains = nil +} + +func (x *StringRules) ClearNotContains() { + protoimpl.X.ClearPresent(&(x.XXX_presence[0]), 8) + x.xxx_hidden_NotContains = nil +} + +type StringRules_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Const specifies that this field must be exactly the specified value + Eq *string + // Len specifies that this field must be the specified number of + // characters (Unicode code points). Note that the number of + // characters may differ from the number of bytes in the string. + Len *uint64 + // MinLen specifies that this field must be the specified number of + // characters (Unicode code points) at a minimum. Note that the number of + // characters may differ from the number of bytes in the string. + MinLen *uint64 + // MaxLen specifies that this field must be the specified number of + // characters (Unicode code points) at a maximum. Note that the number of + // characters may differ from the number of bytes in the string. + MaxLen *uint64 + // Pattern specifies that this field must match against the specified + // regular expression (RE2 syntax). The included expression should elide + // any delimiters. + Pattern *string + // Prefix specifies that this field must have the specified substring at + // the beginning of the string. + Prefix *string + // Suffix specifies that this field must have the specified substring at + // the end of the string. + Suffix *string + // Contains specifies that this field must have the specified substring + // anywhere in the string. + Contains *string + // NotContains specifies that this field cannot have the specified substring + // anywhere in the string. + NotContains *string + // In specifies that this field must be equal to one of the specified + // values + In []string + // NotIn specifies that this field cannot be equal to one of the specified + // values + NotIn []string + WellKnown WellKnownString + // IgnoreEmpty specifies that the validation rules of this field should be + // evaluated only if the field is not empty + ValidateEmpty bool + IsRequired bool +} + +func (b0 StringRules_builder) Build() *StringRules { + m0 := &StringRules{} + b, x := &b0, m0 + _, _ = b, x + if b.Eq != nil { + protoimpl.X.SetPresentNonAtomic(&(x.XXX_presence[0]), 0, 14) + x.xxx_hidden_Eq = b.Eq + } + if b.Len != nil { + protoimpl.X.SetPresentNonAtomic(&(x.XXX_presence[0]), 1, 14) + x.xxx_hidden_Len = *b.Len + } + if b.MinLen != nil { + protoimpl.X.SetPresentNonAtomic(&(x.XXX_presence[0]), 2, 14) + x.xxx_hidden_MinLen = *b.MinLen + } + if b.MaxLen != nil { + protoimpl.X.SetPresentNonAtomic(&(x.XXX_presence[0]), 3, 14) + x.xxx_hidden_MaxLen = *b.MaxLen + } + if b.Pattern != nil { + protoimpl.X.SetPresentNonAtomic(&(x.XXX_presence[0]), 4, 14) + x.xxx_hidden_Pattern = b.Pattern + } + if b.Prefix != nil { + protoimpl.X.SetPresentNonAtomic(&(x.XXX_presence[0]), 5, 14) + x.xxx_hidden_Prefix = b.Prefix + } + if b.Suffix != nil { + protoimpl.X.SetPresentNonAtomic(&(x.XXX_presence[0]), 6, 14) + x.xxx_hidden_Suffix = b.Suffix + } + if b.Contains != nil { + protoimpl.X.SetPresentNonAtomic(&(x.XXX_presence[0]), 7, 14) + x.xxx_hidden_Contains = b.Contains + } + if b.NotContains != nil { + protoimpl.X.SetPresentNonAtomic(&(x.XXX_presence[0]), 8, 14) + x.xxx_hidden_NotContains = b.NotContains + } + x.xxx_hidden_In = b.In + x.xxx_hidden_NotIn = b.NotIn + x.xxx_hidden_WellKnown = b.WellKnown + x.xxx_hidden_ValidateEmpty = b.ValidateEmpty + x.xxx_hidden_IsRequired = b.IsRequired + return m0 +} + +type StringMapRules struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_ValidateEmpty bool `protobuf:"varint,1,opt,name=validate_empty,json=validateEmpty,proto3"` + xxx_hidden_IsRequired bool `protobuf:"varint,2,opt,name=is_required,json=isRequired,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *StringMapRules) Reset() { + *x = StringMapRules{} + mi := &file_c1_config_v1_rules_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *StringMapRules) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*StringMapRules) ProtoMessage() {} + +func (x *StringMapRules) ProtoReflect() protoreflect.Message { + mi := &file_c1_config_v1_rules_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) +} + +func (x *StringMapRules) GetValidateEmpty() bool { + if x != nil { + return x.xxx_hidden_ValidateEmpty + } + return false +} + +func (x *StringMapRules) GetIsRequired() bool { + if x != nil { + return x.xxx_hidden_IsRequired + } + return false +} + +func (x *StringMapRules) SetValidateEmpty(v bool) { + x.xxx_hidden_ValidateEmpty = v +} + +func (x *StringMapRules) SetIsRequired(v bool) { + x.xxx_hidden_IsRequired = v +} + +type StringMapRules_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // IgnoreEmpty specifies that the validation rules of this field should be + // evaluated only if the field is not empty + ValidateEmpty bool + IsRequired bool +} + +func (b0 StringMapRules_builder) Build() *StringMapRules { + m0 := &StringMapRules{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_ValidateEmpty = b.ValidateEmpty + x.xxx_hidden_IsRequired = b.IsRequired + return m0 +} + +type ResourceIDRules struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_AllowedResourceTypeIds []string `protobuf:"bytes,1,rep,name=allowed_resource_type_ids,json=allowedResourceTypeIds,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *ResourceIDRules) Reset() { + *x = ResourceIDRules{} + mi := &file_c1_config_v1_rules_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *ResourceIDRules) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ResourceIDRules) ProtoMessage() {} + +func (x *ResourceIDRules) ProtoReflect() protoreflect.Message { + mi := &file_c1_config_v1_rules_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) +} + +func (x *ResourceIDRules) GetAllowedResourceTypeIds() []string { + if x != nil { + return x.xxx_hidden_AllowedResourceTypeIds + } + return nil +} + +func (x *ResourceIDRules) SetAllowedResourceTypeIds(v []string) { + x.xxx_hidden_AllowedResourceTypeIds = v +} + +type ResourceIDRules_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + AllowedResourceTypeIds []string +} + +func (b0 ResourceIDRules_builder) Build() *ResourceIDRules { + m0 := &ResourceIDRules{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_AllowedResourceTypeIds = b.AllowedResourceTypeIds + return m0 +} + +type RepeatedResourceIdRules struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_AllowedResourceTypeIds []string `protobuf:"bytes,1,rep,name=allowed_resource_type_ids,json=allowedResourceTypeIds,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *RepeatedResourceIdRules) Reset() { + *x = RepeatedResourceIdRules{} + mi := &file_c1_config_v1_rules_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *RepeatedResourceIdRules) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*RepeatedResourceIdRules) ProtoMessage() {} + +func (x *RepeatedResourceIdRules) ProtoReflect() protoreflect.Message { + mi := &file_c1_config_v1_rules_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) +} + +func (x *RepeatedResourceIdRules) GetAllowedResourceTypeIds() []string { + if x != nil { + return x.xxx_hidden_AllowedResourceTypeIds + } + return nil +} + +func (x *RepeatedResourceIdRules) SetAllowedResourceTypeIds(v []string) { + x.xxx_hidden_AllowedResourceTypeIds = v +} + +type RepeatedResourceIdRules_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + AllowedResourceTypeIds []string +} + +func (b0 RepeatedResourceIdRules_builder) Build() *RepeatedResourceIdRules { + m0 := &RepeatedResourceIdRules{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_AllowedResourceTypeIds = b.AllowedResourceTypeIds + return m0 +} + +var File_c1_config_v1_rules_proto protoreflect.FileDescriptor + +const file_c1_config_v1_rules_proto_rawDesc = "" + + "\n" + + "\x18c1/config/v1/rules.proto\x12\fc1.config.v1\"\x8d\x02\n" + + "\n" + + "Int64Rules\x12\x13\n" + + "\x02eq\x18\x01 \x01(\x03H\x00R\x02eq\x88\x01\x01\x12\x13\n" + + "\x02lt\x18\x02 \x01(\x03H\x01R\x02lt\x88\x01\x01\x12\x15\n" + + "\x03lte\x18\x03 \x01(\x03H\x02R\x03lte\x88\x01\x01\x12\x13\n" + + "\x02gt\x18\x04 \x01(\x03H\x03R\x02gt\x88\x01\x01\x12\x15\n" + + "\x03gte\x18\x05 \x01(\x03H\x04R\x03gte\x88\x01\x01\x12\x0e\n" + + "\x02in\x18\x06 \x03(\x03R\x02in\x12\x15\n" + + "\x06not_in\x18\a \x03(\x03R\x05notIn\x12%\n" + + "\x0evalidate_empty\x18\b \x01(\bR\rvalidateEmpty\x12\x1f\n" + + "\vis_required\x18\t \x01(\bR\n" + + "isRequiredB\x05\n" + + "\x03_eqB\x05\n" + + "\x03_ltB\x06\n" + + "\x04_lteB\x05\n" + + "\x03_gtB\x06\n" + + "\x04_gte\"'\n" + + "\tBoolRules\x12\x13\n" + + "\x02eq\x18\x01 \x01(\bH\x00R\x02eq\x88\x01\x01B\x05\n" + + "\x03_eq\"\xf3\x02\n" + + "\rRepeatedRules\x12 \n" + + "\tmin_items\x18\x01 \x01(\x04H\x01R\bminItems\x88\x01\x01\x12 \n" + + "\tmax_items\x18\x02 \x01(\x04H\x02R\bmaxItems\x88\x01\x01\x12\x16\n" + + "\x06unique\x18\x03 \x01(\bR\x06unique\x120\n" + + "\x05int64\x18d \x01(\v2\x18.c1.config.v1.Int64RulesH\x00R\x05int64\x12-\n" + + "\x04bool\x18e \x01(\v2\x17.c1.config.v1.BoolRulesH\x00R\x04bool\x123\n" + + "\x06string\x18f \x01(\v2\x19.c1.config.v1.StringRulesH\x00R\x06string\x12%\n" + + "\x0evalidate_empty\x18\x04 \x01(\bR\rvalidateEmpty\x12\x1f\n" + + "\vis_required\x18\x05 \x01(\bR\n" + + "isRequiredB\f\n" + + "\n" + + "item_rulesB\f\n" + + "\n" + + "_min_itemsB\f\n" + + "\n" + + "_max_items\"\x8f\x02\n" + + "\x13RepeatedStringRules\x12 \n" + + "\tmin_items\x18\x01 \x01(\x04H\x00R\bminItems\x88\x01\x01\x12 \n" + + "\tmax_items\x18\x02 \x01(\x04H\x01R\bmaxItems\x88\x01\x01\x12\x16\n" + + "\x06unique\x18\x03 \x01(\bR\x06unique\x128\n" + + "\n" + + "item_rules\x18\x04 \x01(\v2\x19.c1.config.v1.StringRulesR\titemRules\x12%\n" + + "\x0evalidate_empty\x18\x05 \x01(\bR\rvalidateEmpty\x12\x1f\n" + + "\vis_required\x18\x06 \x01(\bR\n" + + "isRequiredB\f\n" + + "\n" + + "_min_itemsB\f\n" + + "\n" + + "_max_items\"\xab\x04\n" + + "\vStringRules\x12\x13\n" + + "\x02eq\x18\x01 \x01(\tH\x00R\x02eq\x88\x01\x01\x12\x15\n" + + "\x03len\x18\x13 \x01(\x04H\x01R\x03len\x88\x01\x01\x12\x1c\n" + + "\amin_len\x18\x02 \x01(\x04H\x02R\x06minLen\x88\x01\x01\x12\x1c\n" + + "\amax_len\x18\x03 \x01(\x04H\x03R\x06maxLen\x88\x01\x01\x12\x1d\n" + + "\apattern\x18\x06 \x01(\tH\x04R\apattern\x88\x01\x01\x12\x1b\n" + + "\x06prefix\x18\a \x01(\tH\x05R\x06prefix\x88\x01\x01\x12\x1b\n" + + "\x06suffix\x18\b \x01(\tH\x06R\x06suffix\x88\x01\x01\x12\x1f\n" + + "\bcontains\x18\t \x01(\tH\aR\bcontains\x88\x01\x01\x12&\n" + + "\fnot_contains\x18\x17 \x01(\tH\bR\vnotContains\x88\x01\x01\x12\x0e\n" + + "\x02in\x18\n" + + " \x03(\tR\x02in\x12\x15\n" + + "\x06not_in\x18\v \x03(\tR\x05notIn\x12<\n" + + "\n" + + "well_known\x18\f \x01(\x0e2\x1d.c1.config.v1.WellKnownStringR\twellKnown\x12%\n" + + "\x0evalidate_empty\x18\x1a \x01(\bR\rvalidateEmpty\x12\x1f\n" + + "\vis_required\x18\x1b \x01(\bR\n" + + "isRequiredB\x05\n" + + "\x03_eqB\x06\n" + + "\x04_lenB\n" + + "\n" + + "\b_min_lenB\n" + + "\n" + + "\b_max_lenB\n" + + "\n" + + "\b_patternB\t\n" + + "\a_prefixB\t\n" + + "\a_suffixB\v\n" + + "\t_containsB\x0f\n" + + "\r_not_contains\"X\n" + + "\x0eStringMapRules\x12%\n" + + "\x0evalidate_empty\x18\x01 \x01(\bR\rvalidateEmpty\x12\x1f\n" + + "\vis_required\x18\x02 \x01(\bR\n" + + "isRequired\"L\n" + + "\x0fResourceIDRules\x129\n" + + "\x19allowed_resource_type_ids\x18\x01 \x03(\tR\x16allowedResourceTypeIds\"T\n" + + "\x17RepeatedResourceIdRules\x129\n" + + "\x19allowed_resource_type_ids\x18\x01 \x03(\tR\x16allowedResourceTypeIds*\x99\x02\n" + + "\x0fWellKnownString\x12!\n" + + "\x1dWELL_KNOWN_STRING_UNSPECIFIED\x10\x00\x12\x1b\n" + + "\x17WELL_KNOWN_STRING_EMAIL\x10\x01\x12\x1e\n" + + "\x1aWELL_KNOWN_STRING_HOSTNAME\x10\x02\x12\x18\n" + + "\x14WELL_KNOWN_STRING_IP\x10\x03\x12\x1a\n" + + "\x16WELL_KNOWN_STRING_IPV4\x10\x04\x12\x1a\n" + + "\x16WELL_KNOWN_STRING_IPV6\x10\x05\x12\x19\n" + + "\x15WELL_KNOWN_STRING_URI\x10\x06\x12\x1d\n" + + "\x19WELL_KNOWN_STRING_ADDRESS\x10\a\x12\x1a\n" + + "\x16WELL_KNOWN_STRING_UUID\x10\bB3Z1github.com/conductorone/baton-sdk/pb/c1/config/v1b\x06proto3" + +var file_c1_config_v1_rules_proto_enumTypes = make([]protoimpl.EnumInfo, 1) +var file_c1_config_v1_rules_proto_msgTypes = make([]protoimpl.MessageInfo, 8) +var file_c1_config_v1_rules_proto_goTypes = []any{ + (WellKnownString)(0), // 0: c1.config.v1.WellKnownString + (*Int64Rules)(nil), // 1: c1.config.v1.Int64Rules + (*BoolRules)(nil), // 2: c1.config.v1.BoolRules + (*RepeatedRules)(nil), // 3: c1.config.v1.RepeatedRules + (*RepeatedStringRules)(nil), // 4: c1.config.v1.RepeatedStringRules + (*StringRules)(nil), // 5: c1.config.v1.StringRules + (*StringMapRules)(nil), // 6: c1.config.v1.StringMapRules + (*ResourceIDRules)(nil), // 7: c1.config.v1.ResourceIDRules + (*RepeatedResourceIdRules)(nil), // 8: c1.config.v1.RepeatedResourceIdRules +} +var file_c1_config_v1_rules_proto_depIdxs = []int32{ + 1, // 0: c1.config.v1.RepeatedRules.int64:type_name -> c1.config.v1.Int64Rules + 2, // 1: c1.config.v1.RepeatedRules.bool:type_name -> c1.config.v1.BoolRules + 5, // 2: c1.config.v1.RepeatedRules.string:type_name -> c1.config.v1.StringRules + 5, // 3: c1.config.v1.RepeatedStringRules.item_rules:type_name -> c1.config.v1.StringRules + 0, // 4: c1.config.v1.StringRules.well_known:type_name -> c1.config.v1.WellKnownString + 5, // [5:5] is the sub-list for method output_type + 5, // [5:5] 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_c1_config_v1_rules_proto_init() } +func file_c1_config_v1_rules_proto_init() { + if File_c1_config_v1_rules_proto != nil { + return + } + file_c1_config_v1_rules_proto_msgTypes[0].OneofWrappers = []any{} + file_c1_config_v1_rules_proto_msgTypes[1].OneofWrappers = []any{} + file_c1_config_v1_rules_proto_msgTypes[2].OneofWrappers = []any{ + (*repeatedRules_Int64)(nil), + (*repeatedRules_Bool)(nil), + (*repeatedRules_String_)(nil), + } + file_c1_config_v1_rules_proto_msgTypes[3].OneofWrappers = []any{} + file_c1_config_v1_rules_proto_msgTypes[4].OneofWrappers = []any{} + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: unsafe.Slice(unsafe.StringData(file_c1_config_v1_rules_proto_rawDesc), len(file_c1_config_v1_rules_proto_rawDesc)), + NumEnums: 1, + NumMessages: 8, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_c1_config_v1_rules_proto_goTypes, + DependencyIndexes: file_c1_config_v1_rules_proto_depIdxs, + EnumInfos: file_c1_config_v1_rules_proto_enumTypes, + MessageInfos: file_c1_config_v1_rules_proto_msgTypes, + }.Build() + File_c1_config_v1_rules_proto = out.File + file_c1_config_v1_rules_proto_goTypes = nil + file_c1_config_v1_rules_proto_depIdxs = nil +} diff --git a/vendor/github.com/conductorone/baton-sdk/pb/c1/connector/v2/action.pb.go b/vendor/github.com/conductorone/baton-sdk/pb/c1/connector/v2/action.pb.go index 569a555f..d8fbaf70 100644 --- a/vendor/github.com/conductorone/baton-sdk/pb/c1/connector/v2/action.pb.go +++ b/vendor/github.com/conductorone/baton-sdk/pb/c1/connector/v2/action.pb.go @@ -1,9 +1,11 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.36.4 +// protoc-gen-go v1.36.10 // protoc (unknown) // source: c1/connector/v2/action.proto +//go:build !protoopaque + package v2 import ( @@ -13,7 +15,6 @@ import ( anypb "google.golang.org/protobuf/types/known/anypb" structpb "google.golang.org/protobuf/types/known/structpb" reflect "reflect" - sync "sync" unsafe "unsafe" ) @@ -77,21 +78,86 @@ func (x BatonActionStatus) Number() protoreflect.EnumNumber { return protoreflect.EnumNumber(x) } -// Deprecated: Use BatonActionStatus.Descriptor instead. -func (BatonActionStatus) EnumDescriptor() ([]byte, []int) { - return file_c1_connector_v2_action_proto_rawDescGZIP(), []int{0} +// This defines the action type. +type ActionType int32 + +const ( + ActionType_ACTION_TYPE_UNSPECIFIED ActionType = 0 + ActionType_ACTION_TYPE_DYNAMIC ActionType = 1 + ActionType_ACTION_TYPE_ACCOUNT ActionType = 2 + ActionType_ACTION_TYPE_ACCOUNT_UPDATE_PROFILE ActionType = 3 + ActionType_ACTION_TYPE_ACCOUNT_DISABLE ActionType = 4 + ActionType_ACTION_TYPE_ACCOUNT_ENABLE ActionType = 5 + // Generic resource actions + ActionType_ACTION_TYPE_RESOURCE_CREATE ActionType = 6 + ActionType_ACTION_TYPE_RESOURCE_DELETE ActionType = 7 + ActionType_ACTION_TYPE_RESOURCE_ENABLE ActionType = 8 + ActionType_ACTION_TYPE_RESOURCE_DISABLE ActionType = 9 +) + +// Enum value maps for ActionType. +var ( + ActionType_name = map[int32]string{ + 0: "ACTION_TYPE_UNSPECIFIED", + 1: "ACTION_TYPE_DYNAMIC", + 2: "ACTION_TYPE_ACCOUNT", + 3: "ACTION_TYPE_ACCOUNT_UPDATE_PROFILE", + 4: "ACTION_TYPE_ACCOUNT_DISABLE", + 5: "ACTION_TYPE_ACCOUNT_ENABLE", + 6: "ACTION_TYPE_RESOURCE_CREATE", + 7: "ACTION_TYPE_RESOURCE_DELETE", + 8: "ACTION_TYPE_RESOURCE_ENABLE", + 9: "ACTION_TYPE_RESOURCE_DISABLE", + } + ActionType_value = map[string]int32{ + "ACTION_TYPE_UNSPECIFIED": 0, + "ACTION_TYPE_DYNAMIC": 1, + "ACTION_TYPE_ACCOUNT": 2, + "ACTION_TYPE_ACCOUNT_UPDATE_PROFILE": 3, + "ACTION_TYPE_ACCOUNT_DISABLE": 4, + "ACTION_TYPE_ACCOUNT_ENABLE": 5, + "ACTION_TYPE_RESOURCE_CREATE": 6, + "ACTION_TYPE_RESOURCE_DELETE": 7, + "ACTION_TYPE_RESOURCE_ENABLE": 8, + "ACTION_TYPE_RESOURCE_DISABLE": 9, + } +) + +func (x ActionType) Enum() *ActionType { + p := new(ActionType) + *p = x + return p +} + +func (x ActionType) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (ActionType) Descriptor() protoreflect.EnumDescriptor { + return file_c1_connector_v2_action_proto_enumTypes[1].Descriptor() +} + +func (ActionType) Type() protoreflect.EnumType { + return &file_c1_connector_v2_action_proto_enumTypes[1] +} + +func (x ActionType) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) } type BatonActionSchema struct { - state protoimpl.MessageState `protogen:"open.v1"` - Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` - Arguments []*v1.Field `protobuf:"bytes,2,rep,name=arguments,proto3" json:"arguments,omitempty"` - Constraints []*v1.Constraint `protobuf:"bytes,3,rep,name=constraints,proto3" json:"constraints,omitempty"` - ReturnTypes []*v1.Field `protobuf:"bytes,4,rep,name=return_types,json=returnTypes,proto3" json:"return_types,omitempty"` - DisplayName string `protobuf:"bytes,5,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"` - Description string `protobuf:"bytes,6,opt,name=description,proto3" json:"description,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"hybrid.v1"` + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + Arguments []*v1.Field `protobuf:"bytes,2,rep,name=arguments,proto3" json:"arguments,omitempty"` + Constraints []*v1.Constraint `protobuf:"bytes,3,rep,name=constraints,proto3" json:"constraints,omitempty"` + ReturnTypes []*v1.Field `protobuf:"bytes,4,rep,name=return_types,json=returnTypes,proto3" json:"return_types,omitempty"` + DisplayName string `protobuf:"bytes,5,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"` + Description string `protobuf:"bytes,6,opt,name=description,proto3" json:"description,omitempty"` + ActionType []ActionType `protobuf:"varint,7,rep,packed,name=action_type,json=actionType,proto3,enum=c1.connector.v2.ActionType" json:"action_type,omitempty"` + // Optional: if set, this action is scoped to a specific resource type + ResourceTypeId string `protobuf:"bytes,8,opt,name=resource_type_id,json=resourceTypeId,proto3" json:"resource_type_id,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *BatonActionSchema) Reset() { @@ -119,11 +185,6 @@ func (x *BatonActionSchema) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use BatonActionSchema.ProtoReflect.Descriptor instead. -func (*BatonActionSchema) Descriptor() ([]byte, []int) { - return file_c1_connector_v2_action_proto_rawDescGZIP(), []int{0} -} - func (x *BatonActionSchema) GetName() string { if x != nil { return x.Name @@ -166,13 +227,90 @@ func (x *BatonActionSchema) GetDescription() string { return "" } +func (x *BatonActionSchema) GetActionType() []ActionType { + if x != nil { + return x.ActionType + } + return nil +} + +func (x *BatonActionSchema) GetResourceTypeId() string { + if x != nil { + return x.ResourceTypeId + } + return "" +} + +func (x *BatonActionSchema) SetName(v string) { + x.Name = v +} + +func (x *BatonActionSchema) SetArguments(v []*v1.Field) { + x.Arguments = v +} + +func (x *BatonActionSchema) SetConstraints(v []*v1.Constraint) { + x.Constraints = v +} + +func (x *BatonActionSchema) SetReturnTypes(v []*v1.Field) { + x.ReturnTypes = v +} + +func (x *BatonActionSchema) SetDisplayName(v string) { + x.DisplayName = v +} + +func (x *BatonActionSchema) SetDescription(v string) { + x.Description = v +} + +func (x *BatonActionSchema) SetActionType(v []ActionType) { + x.ActionType = v +} + +func (x *BatonActionSchema) SetResourceTypeId(v string) { + x.ResourceTypeId = v +} + +type BatonActionSchema_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Name string + Arguments []*v1.Field + Constraints []*v1.Constraint + ReturnTypes []*v1.Field + DisplayName string + Description string + ActionType []ActionType + // Optional: if set, this action is scoped to a specific resource type + ResourceTypeId string +} + +func (b0 BatonActionSchema_builder) Build() *BatonActionSchema { + m0 := &BatonActionSchema{} + b, x := &b0, m0 + _, _ = b, x + x.Name = b.Name + x.Arguments = b.Arguments + x.Constraints = b.Constraints + x.ReturnTypes = b.ReturnTypes + x.DisplayName = b.DisplayName + x.Description = b.Description + x.ActionType = b.ActionType + x.ResourceTypeId = b.ResourceTypeId + return m0 +} + type InvokeActionRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` - Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` - Args *structpb.Struct `protobuf:"bytes,2,opt,name=args,proto3" json:"args,omitempty"` - Annotations []*anypb.Any `protobuf:"bytes,3,rep,name=annotations,proto3" json:"annotations,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"hybrid.v1"` + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + Args *structpb.Struct `protobuf:"bytes,2,opt,name=args,proto3" json:"args,omitempty"` + Annotations []*anypb.Any `protobuf:"bytes,3,rep,name=annotations,proto3" json:"annotations,omitempty"` + // Optional: if set, invokes a resource-scoped action + ResourceTypeId string `protobuf:"bytes,4,opt,name=resource_type_id,json=resourceTypeId,proto3" json:"resource_type_id,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *InvokeActionRequest) Reset() { @@ -200,11 +338,6 @@ func (x *InvokeActionRequest) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use InvokeActionRequest.ProtoReflect.Descriptor instead. -func (*InvokeActionRequest) Descriptor() ([]byte, []int) { - return file_c1_connector_v2_action_proto_rawDescGZIP(), []int{1} -} - func (x *InvokeActionRequest) GetName() string { if x != nil { return x.Name @@ -226,8 +359,63 @@ func (x *InvokeActionRequest) GetAnnotations() []*anypb.Any { return nil } +func (x *InvokeActionRequest) GetResourceTypeId() string { + if x != nil { + return x.ResourceTypeId + } + return "" +} + +func (x *InvokeActionRequest) SetName(v string) { + x.Name = v +} + +func (x *InvokeActionRequest) SetArgs(v *structpb.Struct) { + x.Args = v +} + +func (x *InvokeActionRequest) SetAnnotations(v []*anypb.Any) { + x.Annotations = v +} + +func (x *InvokeActionRequest) SetResourceTypeId(v string) { + x.ResourceTypeId = v +} + +func (x *InvokeActionRequest) HasArgs() bool { + if x == nil { + return false + } + return x.Args != nil +} + +func (x *InvokeActionRequest) ClearArgs() { + x.Args = nil +} + +type InvokeActionRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Name string + Args *structpb.Struct + Annotations []*anypb.Any + // Optional: if set, invokes a resource-scoped action + ResourceTypeId string +} + +func (b0 InvokeActionRequest_builder) Build() *InvokeActionRequest { + m0 := &InvokeActionRequest{} + b, x := &b0, m0 + _, _ = b, x + x.Name = b.Name + x.Args = b.Args + x.Annotations = b.Annotations + x.ResourceTypeId = b.ResourceTypeId + return m0 +} + type InvokeActionResponse struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Status BatonActionStatus `protobuf:"varint,2,opt,name=status,proto3,enum=c1.connector.v2.BatonActionStatus" json:"status,omitempty"` Annotations []*anypb.Any `protobuf:"bytes,3,rep,name=annotations,proto3" json:"annotations,omitempty"` @@ -262,11 +450,6 @@ func (x *InvokeActionResponse) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use InvokeActionResponse.ProtoReflect.Descriptor instead. -func (*InvokeActionResponse) Descriptor() ([]byte, []int) { - return file_c1_connector_v2_action_proto_rawDescGZIP(), []int{2} -} - func (x *InvokeActionResponse) GetId() string { if x != nil { return x.Id @@ -302,8 +485,61 @@ func (x *InvokeActionResponse) GetName() string { return "" } +func (x *InvokeActionResponse) SetId(v string) { + x.Id = v +} + +func (x *InvokeActionResponse) SetStatus(v BatonActionStatus) { + x.Status = v +} + +func (x *InvokeActionResponse) SetAnnotations(v []*anypb.Any) { + x.Annotations = v +} + +func (x *InvokeActionResponse) SetResponse(v *structpb.Struct) { + x.Response = v +} + +func (x *InvokeActionResponse) SetName(v string) { + x.Name = v +} + +func (x *InvokeActionResponse) HasResponse() bool { + if x == nil { + return false + } + return x.Response != nil +} + +func (x *InvokeActionResponse) ClearResponse() { + x.Response = nil +} + +type InvokeActionResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Id string + Status BatonActionStatus + Annotations []*anypb.Any + Response *structpb.Struct + Name string +} + +func (b0 InvokeActionResponse_builder) Build() *InvokeActionResponse { + m0 := &InvokeActionResponse{} + b, x := &b0, m0 + _, _ = b, x + x.Id = b.Id + x.Status = b.Status + x.Annotations = b.Annotations + x.Response = b.Response + x.Name = b.Name + return m0 +} + type GetActionStatusRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // Deprecated: Marked as deprecated in c1/connector/v2/action.proto. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"` @@ -337,11 +573,6 @@ func (x *GetActionStatusRequest) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use GetActionStatusRequest.ProtoReflect.Descriptor instead. -func (*GetActionStatusRequest) Descriptor() ([]byte, []int) { - return file_c1_connector_v2_action_proto_rawDescGZIP(), []int{3} -} - // Deprecated: Marked as deprecated in c1/connector/v2/action.proto. func (x *GetActionStatusRequest) GetName() string { if x != nil { @@ -364,8 +595,40 @@ func (x *GetActionStatusRequest) GetAnnotations() []*anypb.Any { return nil } +// Deprecated: Marked as deprecated in c1/connector/v2/action.proto. +func (x *GetActionStatusRequest) SetName(v string) { + x.Name = v +} + +func (x *GetActionStatusRequest) SetId(v string) { + x.Id = v +} + +func (x *GetActionStatusRequest) SetAnnotations(v []*anypb.Any) { + x.Annotations = v +} + +type GetActionStatusRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Deprecated: Marked as deprecated in c1/connector/v2/action.proto. + Name string + Id string + Annotations []*anypb.Any +} + +func (b0 GetActionStatusRequest_builder) Build() *GetActionStatusRequest { + m0 := &GetActionStatusRequest{} + b, x := &b0, m0 + _, _ = b, x + x.Name = b.Name + x.Id = b.Id + x.Annotations = b.Annotations + return m0 +} + type GetActionStatusResponse struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"` Status BatonActionStatus `protobuf:"varint,3,opt,name=status,proto3,enum=c1.connector.v2.BatonActionStatus" json:"status,omitempty"` @@ -400,11 +663,6 @@ func (x *GetActionStatusResponse) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use GetActionStatusResponse.ProtoReflect.Descriptor instead. -func (*GetActionStatusResponse) Descriptor() ([]byte, []int) { - return file_c1_connector_v2_action_proto_rawDescGZIP(), []int{4} -} - func (x *GetActionStatusResponse) GetName() string { if x != nil { return x.Name @@ -440,8 +698,61 @@ func (x *GetActionStatusResponse) GetResponse() *structpb.Struct { return nil } +func (x *GetActionStatusResponse) SetName(v string) { + x.Name = v +} + +func (x *GetActionStatusResponse) SetId(v string) { + x.Id = v +} + +func (x *GetActionStatusResponse) SetStatus(v BatonActionStatus) { + x.Status = v +} + +func (x *GetActionStatusResponse) SetAnnotations(v []*anypb.Any) { + x.Annotations = v +} + +func (x *GetActionStatusResponse) SetResponse(v *structpb.Struct) { + x.Response = v +} + +func (x *GetActionStatusResponse) HasResponse() bool { + if x == nil { + return false + } + return x.Response != nil +} + +func (x *GetActionStatusResponse) ClearResponse() { + x.Response = nil +} + +type GetActionStatusResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Name string + Id string + Status BatonActionStatus + Annotations []*anypb.Any + Response *structpb.Struct +} + +func (b0 GetActionStatusResponse_builder) Build() *GetActionStatusResponse { + m0 := &GetActionStatusResponse{} + b, x := &b0, m0 + _, _ = b, x + x.Name = b.Name + x.Id = b.Id + x.Status = b.Status + x.Annotations = b.Annotations + x.Response = b.Response + return m0 +} + type GetActionSchemaRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Annotations []*anypb.Any `protobuf:"bytes,2,rep,name=annotations,proto3" json:"annotations,omitempty"` unknownFields protoimpl.UnknownFields @@ -473,11 +784,6 @@ func (x *GetActionSchemaRequest) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use GetActionSchemaRequest.ProtoReflect.Descriptor instead. -func (*GetActionSchemaRequest) Descriptor() ([]byte, []int) { - return file_c1_connector_v2_action_proto_rawDescGZIP(), []int{5} -} - func (x *GetActionSchemaRequest) GetName() string { if x != nil { return x.Name @@ -492,8 +798,32 @@ func (x *GetActionSchemaRequest) GetAnnotations() []*anypb.Any { return nil } +func (x *GetActionSchemaRequest) SetName(v string) { + x.Name = v +} + +func (x *GetActionSchemaRequest) SetAnnotations(v []*anypb.Any) { + x.Annotations = v +} + +type GetActionSchemaRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Name string + Annotations []*anypb.Any +} + +func (b0 GetActionSchemaRequest_builder) Build() *GetActionSchemaRequest { + m0 := &GetActionSchemaRequest{} + b, x := &b0, m0 + _, _ = b, x + x.Name = b.Name + x.Annotations = b.Annotations + return m0 +} + type GetActionSchemaResponse struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` Schema *BatonActionSchema `protobuf:"bytes,1,opt,name=schema,proto3" json:"schema,omitempty"` Annotations []*anypb.Any `protobuf:"bytes,2,rep,name=annotations,proto3" json:"annotations,omitempty"` unknownFields protoimpl.UnknownFields @@ -525,11 +855,6 @@ func (x *GetActionSchemaResponse) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use GetActionSchemaResponse.ProtoReflect.Descriptor instead. -func (*GetActionSchemaResponse) Descriptor() ([]byte, []int) { - return file_c1_connector_v2_action_proto_rawDescGZIP(), []int{6} -} - func (x *GetActionSchemaResponse) GetSchema() *BatonActionSchema { if x != nil { return x.Schema @@ -544,11 +869,48 @@ func (x *GetActionSchemaResponse) GetAnnotations() []*anypb.Any { return nil } +func (x *GetActionSchemaResponse) SetSchema(v *BatonActionSchema) { + x.Schema = v +} + +func (x *GetActionSchemaResponse) SetAnnotations(v []*anypb.Any) { + x.Annotations = v +} + +func (x *GetActionSchemaResponse) HasSchema() bool { + if x == nil { + return false + } + return x.Schema != nil +} + +func (x *GetActionSchemaResponse) ClearSchema() { + x.Schema = nil +} + +type GetActionSchemaResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Schema *BatonActionSchema + Annotations []*anypb.Any +} + +func (b0 GetActionSchemaResponse_builder) Build() *GetActionSchemaResponse { + m0 := &GetActionSchemaResponse{} + b, x := &b0, m0 + _, _ = b, x + x.Schema = b.Schema + x.Annotations = b.Annotations + return m0 +} + type ListActionSchemasRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` - Annotations []*anypb.Any `protobuf:"bytes,1,rep,name=annotations,proto3" json:"annotations,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"hybrid.v1"` + Annotations []*anypb.Any `protobuf:"bytes,1,rep,name=annotations,proto3" json:"annotations,omitempty"` + // Optional: filter to only return actions for a specific resource type + ResourceTypeId string `protobuf:"bytes,2,opt,name=resource_type_id,json=resourceTypeId,proto3" json:"resource_type_id,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *ListActionSchemasRequest) Reset() { @@ -576,11 +938,6 @@ func (x *ListActionSchemasRequest) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use ListActionSchemasRequest.ProtoReflect.Descriptor instead. -func (*ListActionSchemasRequest) Descriptor() ([]byte, []int) { - return file_c1_connector_v2_action_proto_rawDescGZIP(), []int{7} -} - func (x *ListActionSchemasRequest) GetAnnotations() []*anypb.Any { if x != nil { return x.Annotations @@ -588,8 +945,40 @@ func (x *ListActionSchemasRequest) GetAnnotations() []*anypb.Any { return nil } +func (x *ListActionSchemasRequest) GetResourceTypeId() string { + if x != nil { + return x.ResourceTypeId + } + return "" +} + +func (x *ListActionSchemasRequest) SetAnnotations(v []*anypb.Any) { + x.Annotations = v +} + +func (x *ListActionSchemasRequest) SetResourceTypeId(v string) { + x.ResourceTypeId = v +} + +type ListActionSchemasRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Annotations []*anypb.Any + // Optional: filter to only return actions for a specific resource type + ResourceTypeId string +} + +func (b0 ListActionSchemasRequest_builder) Build() *ListActionSchemasRequest { + m0 := &ListActionSchemasRequest{} + b, x := &b0, m0 + _, _ = b, x + x.Annotations = b.Annotations + x.ResourceTypeId = b.ResourceTypeId + return m0 +} + type ListActionSchemasResponse struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` Schemas []*BatonActionSchema `protobuf:"bytes,1,rep,name=schemas,proto3" json:"schemas,omitempty"` Annotations []*anypb.Any `protobuf:"bytes,2,rep,name=annotations,proto3" json:"annotations,omitempty"` unknownFields protoimpl.UnknownFields @@ -621,11 +1010,6 @@ func (x *ListActionSchemasResponse) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use ListActionSchemasResponse.ProtoReflect.Descriptor instead. -func (*ListActionSchemasResponse) Descriptor() ([]byte, []int) { - return file_c1_connector_v2_action_proto_rawDescGZIP(), []int{8} -} - func (x *ListActionSchemasResponse) GetSchemas() []*BatonActionSchema { if x != nil { return x.Schemas @@ -640,219 +1024,155 @@ func (x *ListActionSchemasResponse) GetAnnotations() []*anypb.Any { return nil } -var File_c1_connector_v2_action_proto protoreflect.FileDescriptor +func (x *ListActionSchemasResponse) SetSchemas(v []*BatonActionSchema) { + x.Schemas = v +} + +func (x *ListActionSchemasResponse) SetAnnotations(v []*anypb.Any) { + x.Annotations = v +} -var file_c1_connector_v2_action_proto_rawDesc = string([]byte{ - 0x0a, 0x1c, 0x63, 0x31, 0x2f, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x2f, 0x76, - 0x32, 0x2f, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0f, - 0x63, 0x31, 0x2e, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x2e, 0x76, 0x32, 0x1a, - 0x19, 0x63, 0x31, 0x2f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2f, 0x76, 0x31, 0x2f, 0x63, 0x6f, - 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x19, 0x67, 0x6f, 0x6f, 0x67, - 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x61, 0x6e, 0x79, 0x2e, - 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1c, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, - 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x73, 0x74, 0x72, 0x75, 0x63, 0x74, 0x2e, 0x70, 0x72, - 0x6f, 0x74, 0x6f, 0x22, 0x93, 0x02, 0x0a, 0x11, 0x42, 0x61, 0x74, 0x6f, 0x6e, 0x41, 0x63, 0x74, - 0x69, 0x6f, 0x6e, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, - 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x31, 0x0a, - 0x09, 0x61, 0x72, 0x67, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, - 0x32, 0x13, 0x2e, 0x63, 0x31, 0x2e, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x76, 0x31, 0x2e, - 0x46, 0x69, 0x65, 0x6c, 0x64, 0x52, 0x09, 0x61, 0x72, 0x67, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x73, - 0x12, 0x3a, 0x0a, 0x0b, 0x63, 0x6f, 0x6e, 0x73, 0x74, 0x72, 0x61, 0x69, 0x6e, 0x74, 0x73, 0x18, - 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x63, 0x31, 0x2e, 0x63, 0x6f, 0x6e, 0x66, 0x69, - 0x67, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6f, 0x6e, 0x73, 0x74, 0x72, 0x61, 0x69, 0x6e, 0x74, 0x52, - 0x0b, 0x63, 0x6f, 0x6e, 0x73, 0x74, 0x72, 0x61, 0x69, 0x6e, 0x74, 0x73, 0x12, 0x36, 0x0a, 0x0c, - 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x18, 0x04, 0x20, 0x03, - 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x63, 0x31, 0x2e, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x76, - 0x31, 0x2e, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x52, 0x0b, 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x54, - 0x79, 0x70, 0x65, 0x73, 0x12, 0x21, 0x0a, 0x0c, 0x64, 0x69, 0x73, 0x70, 0x6c, 0x61, 0x79, 0x5f, - 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x69, 0x73, 0x70, - 0x6c, 0x61, 0x79, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x20, 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, - 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x65, - 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x8e, 0x01, 0x0a, 0x13, 0x49, 0x6e, - 0x76, 0x6f, 0x6b, 0x65, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x2b, 0x0a, 0x04, 0x61, 0x72, 0x67, 0x73, 0x18, 0x02, 0x20, - 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, - 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x53, 0x74, 0x72, 0x75, 0x63, 0x74, 0x52, 0x04, 0x61, 0x72, - 0x67, 0x73, 0x12, 0x36, 0x0a, 0x0b, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, - 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, - 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x41, 0x6e, 0x79, 0x52, 0x0b, 0x61, - 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x22, 0xe3, 0x01, 0x0a, 0x14, 0x49, - 0x6e, 0x76, 0x6f, 0x6b, 0x65, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, - 0x6e, 0x73, 0x65, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x02, 0x69, 0x64, 0x12, 0x3a, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x02, 0x20, - 0x01, 0x28, 0x0e, 0x32, 0x22, 0x2e, 0x63, 0x31, 0x2e, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, - 0x6f, 0x72, 0x2e, 0x76, 0x32, 0x2e, 0x42, 0x61, 0x74, 0x6f, 0x6e, 0x41, 0x63, 0x74, 0x69, 0x6f, - 0x6e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, - 0x36, 0x0a, 0x0b, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x03, - 0x20, 0x03, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, - 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x41, 0x6e, 0x79, 0x52, 0x0b, 0x61, 0x6e, 0x6e, 0x6f, - 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x33, 0x0a, 0x08, 0x72, 0x65, 0x73, 0x70, 0x6f, - 0x6e, 0x73, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x67, 0x6f, 0x6f, 0x67, - 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x53, 0x74, 0x72, 0x75, - 0x63, 0x74, 0x52, 0x08, 0x72, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x12, 0x0a, 0x04, - 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, - 0x22, 0x78, 0x0a, 0x16, 0x47, 0x65, 0x74, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x74, 0x61, - 0x74, 0x75, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x16, 0x0a, 0x04, 0x6e, 0x61, - 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x02, 0x18, 0x01, 0x52, 0x04, 0x6e, 0x61, - 0x6d, 0x65, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, - 0x69, 0x64, 0x12, 0x36, 0x0a, 0x0b, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, - 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, - 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x41, 0x6e, 0x79, 0x52, 0x0b, 0x61, - 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x22, 0xe6, 0x01, 0x0a, 0x17, 0x47, - 0x65, 0x74, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x65, - 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, - 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x3a, 0x0a, 0x06, 0x73, 0x74, - 0x61, 0x74, 0x75, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x22, 0x2e, 0x63, 0x31, 0x2e, - 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x2e, 0x76, 0x32, 0x2e, 0x42, 0x61, 0x74, - 0x6f, 0x6e, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x06, - 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x36, 0x0a, 0x0b, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, - 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x67, 0x6f, - 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x41, 0x6e, - 0x79, 0x52, 0x0b, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x33, - 0x0a, 0x08, 0x72, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, - 0x32, 0x17, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, - 0x75, 0x66, 0x2e, 0x53, 0x74, 0x72, 0x75, 0x63, 0x74, 0x52, 0x08, 0x72, 0x65, 0x73, 0x70, 0x6f, - 0x6e, 0x73, 0x65, 0x22, 0x64, 0x0a, 0x16, 0x47, 0x65, 0x74, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, - 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x12, 0x0a, - 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, - 0x65, 0x12, 0x36, 0x0a, 0x0b, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, - 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, - 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x41, 0x6e, 0x79, 0x52, 0x0b, 0x61, 0x6e, - 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x22, 0x8d, 0x01, 0x0a, 0x17, 0x47, 0x65, - 0x74, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x52, 0x65, 0x73, - 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x3a, 0x0a, 0x06, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x63, 0x31, 0x2e, 0x63, 0x6f, 0x6e, 0x6e, 0x65, - 0x63, 0x74, 0x6f, 0x72, 0x2e, 0x76, 0x32, 0x2e, 0x42, 0x61, 0x74, 0x6f, 0x6e, 0x41, 0x63, 0x74, - 0x69, 0x6f, 0x6e, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x52, 0x06, 0x73, 0x63, 0x68, 0x65, 0x6d, - 0x61, 0x12, 0x36, 0x0a, 0x0b, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, - 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, - 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x41, 0x6e, 0x79, 0x52, 0x0b, 0x61, 0x6e, - 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x22, 0x52, 0x0a, 0x18, 0x4c, 0x69, 0x73, - 0x74, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x73, 0x52, 0x65, - 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x36, 0x0a, 0x0b, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, - 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x67, 0x6f, 0x6f, - 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x41, 0x6e, 0x79, - 0x52, 0x0b, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x22, 0x91, 0x01, - 0x0a, 0x19, 0x4c, 0x69, 0x73, 0x74, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x63, 0x68, 0x65, - 0x6d, 0x61, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x3c, 0x0a, 0x07, 0x73, - 0x63, 0x68, 0x65, 0x6d, 0x61, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x63, - 0x31, 0x2e, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x2e, 0x76, 0x32, 0x2e, 0x42, - 0x61, 0x74, 0x6f, 0x6e, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, - 0x52, 0x07, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x73, 0x12, 0x36, 0x0a, 0x0b, 0x61, 0x6e, 0x6e, - 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x14, - 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, - 0x2e, 0x41, 0x6e, 0x79, 0x52, 0x0b, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, - 0x73, 0x2a, 0xdd, 0x01, 0x0a, 0x11, 0x42, 0x61, 0x74, 0x6f, 0x6e, 0x41, 0x63, 0x74, 0x69, 0x6f, - 0x6e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x23, 0x0a, 0x1f, 0x42, 0x41, 0x54, 0x4f, 0x4e, - 0x5f, 0x41, 0x43, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, 0x55, - 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x1f, 0x0a, 0x1b, - 0x42, 0x41, 0x54, 0x4f, 0x4e, 0x5f, 0x41, 0x43, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x53, 0x54, 0x41, - 0x54, 0x55, 0x53, 0x5f, 0x55, 0x4e, 0x4b, 0x4e, 0x4f, 0x57, 0x4e, 0x10, 0x01, 0x12, 0x1f, 0x0a, - 0x1b, 0x42, 0x41, 0x54, 0x4f, 0x4e, 0x5f, 0x41, 0x43, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x53, 0x54, - 0x41, 0x54, 0x55, 0x53, 0x5f, 0x50, 0x45, 0x4e, 0x44, 0x49, 0x4e, 0x47, 0x10, 0x02, 0x12, 0x1f, - 0x0a, 0x1b, 0x42, 0x41, 0x54, 0x4f, 0x4e, 0x5f, 0x41, 0x43, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x53, - 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, 0x52, 0x55, 0x4e, 0x4e, 0x49, 0x4e, 0x47, 0x10, 0x03, 0x12, - 0x20, 0x0a, 0x1c, 0x42, 0x41, 0x54, 0x4f, 0x4e, 0x5f, 0x41, 0x43, 0x54, 0x49, 0x4f, 0x4e, 0x5f, - 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, 0x43, 0x4f, 0x4d, 0x50, 0x4c, 0x45, 0x54, 0x45, 0x10, - 0x04, 0x12, 0x1e, 0x0a, 0x1a, 0x42, 0x41, 0x54, 0x4f, 0x4e, 0x5f, 0x41, 0x43, 0x54, 0x49, 0x4f, - 0x4e, 0x5f, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, 0x46, 0x41, 0x49, 0x4c, 0x45, 0x44, 0x10, - 0x05, 0x32, 0xa4, 0x03, 0x0a, 0x0d, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x65, 0x72, 0x76, - 0x69, 0x63, 0x65, 0x12, 0x5b, 0x0a, 0x0c, 0x49, 0x6e, 0x76, 0x6f, 0x6b, 0x65, 0x41, 0x63, 0x74, - 0x69, 0x6f, 0x6e, 0x12, 0x24, 0x2e, 0x63, 0x31, 0x2e, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, - 0x6f, 0x72, 0x2e, 0x76, 0x32, 0x2e, 0x49, 0x6e, 0x76, 0x6f, 0x6b, 0x65, 0x41, 0x63, 0x74, 0x69, - 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x25, 0x2e, 0x63, 0x31, 0x2e, 0x63, - 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x2e, 0x76, 0x32, 0x2e, 0x49, 0x6e, 0x76, 0x6f, - 0x6b, 0x65, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, - 0x12, 0x64, 0x0a, 0x0f, 0x47, 0x65, 0x74, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x74, 0x61, - 0x74, 0x75, 0x73, 0x12, 0x27, 0x2e, 0x63, 0x31, 0x2e, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, - 0x6f, 0x72, 0x2e, 0x76, 0x32, 0x2e, 0x47, 0x65, 0x74, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x53, - 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x28, 0x2e, 0x63, - 0x31, 0x2e, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x2e, 0x76, 0x32, 0x2e, 0x47, - 0x65, 0x74, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x65, - 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x64, 0x0a, 0x0f, 0x47, 0x65, 0x74, 0x41, 0x63, 0x74, - 0x69, 0x6f, 0x6e, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x12, 0x27, 0x2e, 0x63, 0x31, 0x2e, 0x63, - 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x2e, 0x76, 0x32, 0x2e, 0x47, 0x65, 0x74, 0x41, - 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x52, 0x65, 0x71, 0x75, 0x65, - 0x73, 0x74, 0x1a, 0x28, 0x2e, 0x63, 0x31, 0x2e, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, - 0x72, 0x2e, 0x76, 0x32, 0x2e, 0x47, 0x65, 0x74, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x63, - 0x68, 0x65, 0x6d, 0x61, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x6a, 0x0a, 0x11, - 0x4c, 0x69, 0x73, 0x74, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, - 0x73, 0x12, 0x29, 0x2e, 0x63, 0x31, 0x2e, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, - 0x2e, 0x76, 0x32, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x63, - 0x68, 0x65, 0x6d, 0x61, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2a, 0x2e, 0x63, - 0x31, 0x2e, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x2e, 0x76, 0x32, 0x2e, 0x4c, - 0x69, 0x73, 0x74, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x73, - 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x42, 0x36, 0x5a, 0x34, 0x67, 0x69, 0x74, 0x68, - 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x63, 0x6f, 0x6e, 0x64, 0x75, 0x63, 0x74, 0x6f, 0x72, - 0x6f, 0x6e, 0x65, 0x2f, 0x62, 0x61, 0x74, 0x6f, 0x6e, 0x2d, 0x73, 0x64, 0x6b, 0x2f, 0x70, 0x62, - 0x2f, 0x63, 0x31, 0x2f, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x2f, 0x76, 0x32, - 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, -}) +type ListActionSchemasResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. -var ( - file_c1_connector_v2_action_proto_rawDescOnce sync.Once - file_c1_connector_v2_action_proto_rawDescData []byte -) + Schemas []*BatonActionSchema + Annotations []*anypb.Any +} -func file_c1_connector_v2_action_proto_rawDescGZIP() []byte { - file_c1_connector_v2_action_proto_rawDescOnce.Do(func() { - file_c1_connector_v2_action_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_c1_connector_v2_action_proto_rawDesc), len(file_c1_connector_v2_action_proto_rawDesc))) - }) - return file_c1_connector_v2_action_proto_rawDescData +func (b0 ListActionSchemasResponse_builder) Build() *ListActionSchemasResponse { + m0 := &ListActionSchemasResponse{} + b, x := &b0, m0 + _, _ = b, x + x.Schemas = b.Schemas + x.Annotations = b.Annotations + return m0 } -var file_c1_connector_v2_action_proto_enumTypes = make([]protoimpl.EnumInfo, 1) +var File_c1_connector_v2_action_proto protoreflect.FileDescriptor + +const file_c1_connector_v2_action_proto_rawDesc = "" + + "\n" + + "\x1cc1/connector/v2/action.proto\x12\x0fc1.connector.v2\x1a\x19c1/config/v1/config.proto\x1a\x19google/protobuf/any.proto\x1a\x1cgoogle/protobuf/struct.proto\"\xfb\x02\n" + + "\x11BatonActionSchema\x12\x12\n" + + "\x04name\x18\x01 \x01(\tR\x04name\x121\n" + + "\targuments\x18\x02 \x03(\v2\x13.c1.config.v1.FieldR\targuments\x12:\n" + + "\vconstraints\x18\x03 \x03(\v2\x18.c1.config.v1.ConstraintR\vconstraints\x126\n" + + "\freturn_types\x18\x04 \x03(\v2\x13.c1.config.v1.FieldR\vreturnTypes\x12!\n" + + "\fdisplay_name\x18\x05 \x01(\tR\vdisplayName\x12 \n" + + "\vdescription\x18\x06 \x01(\tR\vdescription\x12<\n" + + "\vaction_type\x18\a \x03(\x0e2\x1b.c1.connector.v2.ActionTypeR\n" + + "actionType\x12(\n" + + "\x10resource_type_id\x18\b \x01(\tR\x0eresourceTypeId\"\xb8\x01\n" + + "\x13InvokeActionRequest\x12\x12\n" + + "\x04name\x18\x01 \x01(\tR\x04name\x12+\n" + + "\x04args\x18\x02 \x01(\v2\x17.google.protobuf.StructR\x04args\x126\n" + + "\vannotations\x18\x03 \x03(\v2\x14.google.protobuf.AnyR\vannotations\x12(\n" + + "\x10resource_type_id\x18\x04 \x01(\tR\x0eresourceTypeId\"\xe3\x01\n" + + "\x14InvokeActionResponse\x12\x0e\n" + + "\x02id\x18\x01 \x01(\tR\x02id\x12:\n" + + "\x06status\x18\x02 \x01(\x0e2\".c1.connector.v2.BatonActionStatusR\x06status\x126\n" + + "\vannotations\x18\x03 \x03(\v2\x14.google.protobuf.AnyR\vannotations\x123\n" + + "\bresponse\x18\x04 \x01(\v2\x17.google.protobuf.StructR\bresponse\x12\x12\n" + + "\x04name\x18\x05 \x01(\tR\x04name\"x\n" + + "\x16GetActionStatusRequest\x12\x16\n" + + "\x04name\x18\x01 \x01(\tB\x02\x18\x01R\x04name\x12\x0e\n" + + "\x02id\x18\x02 \x01(\tR\x02id\x126\n" + + "\vannotations\x18\x03 \x03(\v2\x14.google.protobuf.AnyR\vannotations\"\xe6\x01\n" + + "\x17GetActionStatusResponse\x12\x12\n" + + "\x04name\x18\x01 \x01(\tR\x04name\x12\x0e\n" + + "\x02id\x18\x02 \x01(\tR\x02id\x12:\n" + + "\x06status\x18\x03 \x01(\x0e2\".c1.connector.v2.BatonActionStatusR\x06status\x126\n" + + "\vannotations\x18\x04 \x03(\v2\x14.google.protobuf.AnyR\vannotations\x123\n" + + "\bresponse\x18\x05 \x01(\v2\x17.google.protobuf.StructR\bresponse\"d\n" + + "\x16GetActionSchemaRequest\x12\x12\n" + + "\x04name\x18\x01 \x01(\tR\x04name\x126\n" + + "\vannotations\x18\x02 \x03(\v2\x14.google.protobuf.AnyR\vannotations\"\x8d\x01\n" + + "\x17GetActionSchemaResponse\x12:\n" + + "\x06schema\x18\x01 \x01(\v2\".c1.connector.v2.BatonActionSchemaR\x06schema\x126\n" + + "\vannotations\x18\x02 \x03(\v2\x14.google.protobuf.AnyR\vannotations\"|\n" + + "\x18ListActionSchemasRequest\x126\n" + + "\vannotations\x18\x01 \x03(\v2\x14.google.protobuf.AnyR\vannotations\x12(\n" + + "\x10resource_type_id\x18\x02 \x01(\tR\x0eresourceTypeId\"\x91\x01\n" + + "\x19ListActionSchemasResponse\x12<\n" + + "\aschemas\x18\x01 \x03(\v2\".c1.connector.v2.BatonActionSchemaR\aschemas\x126\n" + + "\vannotations\x18\x02 \x03(\v2\x14.google.protobuf.AnyR\vannotations*\xdd\x01\n" + + "\x11BatonActionStatus\x12#\n" + + "\x1fBATON_ACTION_STATUS_UNSPECIFIED\x10\x00\x12\x1f\n" + + "\x1bBATON_ACTION_STATUS_UNKNOWN\x10\x01\x12\x1f\n" + + "\x1bBATON_ACTION_STATUS_PENDING\x10\x02\x12\x1f\n" + + "\x1bBATON_ACTION_STATUS_RUNNING\x10\x03\x12 \n" + + "\x1cBATON_ACTION_STATUS_COMPLETE\x10\x04\x12\x1e\n" + + "\x1aBATON_ACTION_STATUS_FAILED\x10\x05*\xc9\x02\n" + + "\n" + + "ActionType\x12\x1b\n" + + "\x17ACTION_TYPE_UNSPECIFIED\x10\x00\x12\x17\n" + + "\x13ACTION_TYPE_DYNAMIC\x10\x01\x12\x17\n" + + "\x13ACTION_TYPE_ACCOUNT\x10\x02\x12&\n" + + "\"ACTION_TYPE_ACCOUNT_UPDATE_PROFILE\x10\x03\x12\x1f\n" + + "\x1bACTION_TYPE_ACCOUNT_DISABLE\x10\x04\x12\x1e\n" + + "\x1aACTION_TYPE_ACCOUNT_ENABLE\x10\x05\x12\x1f\n" + + "\x1bACTION_TYPE_RESOURCE_CREATE\x10\x06\x12\x1f\n" + + "\x1bACTION_TYPE_RESOURCE_DELETE\x10\a\x12\x1f\n" + + "\x1bACTION_TYPE_RESOURCE_ENABLE\x10\b\x12 \n" + + "\x1cACTION_TYPE_RESOURCE_DISABLE\x10\t2\xa4\x03\n" + + "\rActionService\x12[\n" + + "\fInvokeAction\x12$.c1.connector.v2.InvokeActionRequest\x1a%.c1.connector.v2.InvokeActionResponse\x12d\n" + + "\x0fGetActionStatus\x12'.c1.connector.v2.GetActionStatusRequest\x1a(.c1.connector.v2.GetActionStatusResponse\x12d\n" + + "\x0fGetActionSchema\x12'.c1.connector.v2.GetActionSchemaRequest\x1a(.c1.connector.v2.GetActionSchemaResponse\x12j\n" + + "\x11ListActionSchemas\x12).c1.connector.v2.ListActionSchemasRequest\x1a*.c1.connector.v2.ListActionSchemasResponseB6Z4github.com/conductorone/baton-sdk/pb/c1/connector/v2b\x06proto3" + +var file_c1_connector_v2_action_proto_enumTypes = make([]protoimpl.EnumInfo, 2) var file_c1_connector_v2_action_proto_msgTypes = make([]protoimpl.MessageInfo, 9) var file_c1_connector_v2_action_proto_goTypes = []any{ (BatonActionStatus)(0), // 0: c1.connector.v2.BatonActionStatus - (*BatonActionSchema)(nil), // 1: c1.connector.v2.BatonActionSchema - (*InvokeActionRequest)(nil), // 2: c1.connector.v2.InvokeActionRequest - (*InvokeActionResponse)(nil), // 3: c1.connector.v2.InvokeActionResponse - (*GetActionStatusRequest)(nil), // 4: c1.connector.v2.GetActionStatusRequest - (*GetActionStatusResponse)(nil), // 5: c1.connector.v2.GetActionStatusResponse - (*GetActionSchemaRequest)(nil), // 6: c1.connector.v2.GetActionSchemaRequest - (*GetActionSchemaResponse)(nil), // 7: c1.connector.v2.GetActionSchemaResponse - (*ListActionSchemasRequest)(nil), // 8: c1.connector.v2.ListActionSchemasRequest - (*ListActionSchemasResponse)(nil), // 9: c1.connector.v2.ListActionSchemasResponse - (*v1.Field)(nil), // 10: c1.config.v1.Field - (*v1.Constraint)(nil), // 11: c1.config.v1.Constraint - (*structpb.Struct)(nil), // 12: google.protobuf.Struct - (*anypb.Any)(nil), // 13: google.protobuf.Any + (ActionType)(0), // 1: c1.connector.v2.ActionType + (*BatonActionSchema)(nil), // 2: c1.connector.v2.BatonActionSchema + (*InvokeActionRequest)(nil), // 3: c1.connector.v2.InvokeActionRequest + (*InvokeActionResponse)(nil), // 4: c1.connector.v2.InvokeActionResponse + (*GetActionStatusRequest)(nil), // 5: c1.connector.v2.GetActionStatusRequest + (*GetActionStatusResponse)(nil), // 6: c1.connector.v2.GetActionStatusResponse + (*GetActionSchemaRequest)(nil), // 7: c1.connector.v2.GetActionSchemaRequest + (*GetActionSchemaResponse)(nil), // 8: c1.connector.v2.GetActionSchemaResponse + (*ListActionSchemasRequest)(nil), // 9: c1.connector.v2.ListActionSchemasRequest + (*ListActionSchemasResponse)(nil), // 10: c1.connector.v2.ListActionSchemasResponse + (*v1.Field)(nil), // 11: c1.config.v1.Field + (*v1.Constraint)(nil), // 12: c1.config.v1.Constraint + (*structpb.Struct)(nil), // 13: google.protobuf.Struct + (*anypb.Any)(nil), // 14: google.protobuf.Any } var file_c1_connector_v2_action_proto_depIdxs = []int32{ - 10, // 0: c1.connector.v2.BatonActionSchema.arguments:type_name -> c1.config.v1.Field - 11, // 1: c1.connector.v2.BatonActionSchema.constraints:type_name -> c1.config.v1.Constraint - 10, // 2: c1.connector.v2.BatonActionSchema.return_types:type_name -> c1.config.v1.Field - 12, // 3: c1.connector.v2.InvokeActionRequest.args:type_name -> google.protobuf.Struct - 13, // 4: c1.connector.v2.InvokeActionRequest.annotations:type_name -> google.protobuf.Any - 0, // 5: c1.connector.v2.InvokeActionResponse.status:type_name -> c1.connector.v2.BatonActionStatus - 13, // 6: c1.connector.v2.InvokeActionResponse.annotations:type_name -> google.protobuf.Any - 12, // 7: c1.connector.v2.InvokeActionResponse.response:type_name -> google.protobuf.Struct - 13, // 8: c1.connector.v2.GetActionStatusRequest.annotations:type_name -> google.protobuf.Any - 0, // 9: c1.connector.v2.GetActionStatusResponse.status:type_name -> c1.connector.v2.BatonActionStatus - 13, // 10: c1.connector.v2.GetActionStatusResponse.annotations:type_name -> google.protobuf.Any - 12, // 11: c1.connector.v2.GetActionStatusResponse.response:type_name -> google.protobuf.Struct - 13, // 12: c1.connector.v2.GetActionSchemaRequest.annotations:type_name -> google.protobuf.Any - 1, // 13: c1.connector.v2.GetActionSchemaResponse.schema:type_name -> c1.connector.v2.BatonActionSchema - 13, // 14: c1.connector.v2.GetActionSchemaResponse.annotations:type_name -> google.protobuf.Any - 13, // 15: c1.connector.v2.ListActionSchemasRequest.annotations:type_name -> google.protobuf.Any - 1, // 16: c1.connector.v2.ListActionSchemasResponse.schemas:type_name -> c1.connector.v2.BatonActionSchema - 13, // 17: c1.connector.v2.ListActionSchemasResponse.annotations:type_name -> google.protobuf.Any - 2, // 18: c1.connector.v2.ActionService.InvokeAction:input_type -> c1.connector.v2.InvokeActionRequest - 4, // 19: c1.connector.v2.ActionService.GetActionStatus:input_type -> c1.connector.v2.GetActionStatusRequest - 6, // 20: c1.connector.v2.ActionService.GetActionSchema:input_type -> c1.connector.v2.GetActionSchemaRequest - 8, // 21: c1.connector.v2.ActionService.ListActionSchemas:input_type -> c1.connector.v2.ListActionSchemasRequest - 3, // 22: c1.connector.v2.ActionService.InvokeAction:output_type -> c1.connector.v2.InvokeActionResponse - 5, // 23: c1.connector.v2.ActionService.GetActionStatus:output_type -> c1.connector.v2.GetActionStatusResponse - 7, // 24: c1.connector.v2.ActionService.GetActionSchema:output_type -> c1.connector.v2.GetActionSchemaResponse - 9, // 25: c1.connector.v2.ActionService.ListActionSchemas:output_type -> c1.connector.v2.ListActionSchemasResponse - 22, // [22:26] is the sub-list for method output_type - 18, // [18:22] is the sub-list for method input_type - 18, // [18:18] is the sub-list for extension type_name - 18, // [18:18] is the sub-list for extension extendee - 0, // [0:18] is the sub-list for field type_name + 11, // 0: c1.connector.v2.BatonActionSchema.arguments:type_name -> c1.config.v1.Field + 12, // 1: c1.connector.v2.BatonActionSchema.constraints:type_name -> c1.config.v1.Constraint + 11, // 2: c1.connector.v2.BatonActionSchema.return_types:type_name -> c1.config.v1.Field + 1, // 3: c1.connector.v2.BatonActionSchema.action_type:type_name -> c1.connector.v2.ActionType + 13, // 4: c1.connector.v2.InvokeActionRequest.args:type_name -> google.protobuf.Struct + 14, // 5: c1.connector.v2.InvokeActionRequest.annotations:type_name -> google.protobuf.Any + 0, // 6: c1.connector.v2.InvokeActionResponse.status:type_name -> c1.connector.v2.BatonActionStatus + 14, // 7: c1.connector.v2.InvokeActionResponse.annotations:type_name -> google.protobuf.Any + 13, // 8: c1.connector.v2.InvokeActionResponse.response:type_name -> google.protobuf.Struct + 14, // 9: c1.connector.v2.GetActionStatusRequest.annotations:type_name -> google.protobuf.Any + 0, // 10: c1.connector.v2.GetActionStatusResponse.status:type_name -> c1.connector.v2.BatonActionStatus + 14, // 11: c1.connector.v2.GetActionStatusResponse.annotations:type_name -> google.protobuf.Any + 13, // 12: c1.connector.v2.GetActionStatusResponse.response:type_name -> google.protobuf.Struct + 14, // 13: c1.connector.v2.GetActionSchemaRequest.annotations:type_name -> google.protobuf.Any + 2, // 14: c1.connector.v2.GetActionSchemaResponse.schema:type_name -> c1.connector.v2.BatonActionSchema + 14, // 15: c1.connector.v2.GetActionSchemaResponse.annotations:type_name -> google.protobuf.Any + 14, // 16: c1.connector.v2.ListActionSchemasRequest.annotations:type_name -> google.protobuf.Any + 2, // 17: c1.connector.v2.ListActionSchemasResponse.schemas:type_name -> c1.connector.v2.BatonActionSchema + 14, // 18: c1.connector.v2.ListActionSchemasResponse.annotations:type_name -> google.protobuf.Any + 3, // 19: c1.connector.v2.ActionService.InvokeAction:input_type -> c1.connector.v2.InvokeActionRequest + 5, // 20: c1.connector.v2.ActionService.GetActionStatus:input_type -> c1.connector.v2.GetActionStatusRequest + 7, // 21: c1.connector.v2.ActionService.GetActionSchema:input_type -> c1.connector.v2.GetActionSchemaRequest + 9, // 22: c1.connector.v2.ActionService.ListActionSchemas:input_type -> c1.connector.v2.ListActionSchemasRequest + 4, // 23: c1.connector.v2.ActionService.InvokeAction:output_type -> c1.connector.v2.InvokeActionResponse + 6, // 24: c1.connector.v2.ActionService.GetActionStatus:output_type -> c1.connector.v2.GetActionStatusResponse + 8, // 25: c1.connector.v2.ActionService.GetActionSchema:output_type -> c1.connector.v2.GetActionSchemaResponse + 10, // 26: c1.connector.v2.ActionService.ListActionSchemas:output_type -> c1.connector.v2.ListActionSchemasResponse + 23, // [23:27] is the sub-list for method output_type + 19, // [19:23] is the sub-list for method input_type + 19, // [19:19] is the sub-list for extension type_name + 19, // [19:19] is the sub-list for extension extendee + 0, // [0:19] is the sub-list for field type_name } func init() { file_c1_connector_v2_action_proto_init() } @@ -865,7 +1185,7 @@ func file_c1_connector_v2_action_proto_init() { File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), RawDescriptor: unsafe.Slice(unsafe.StringData(file_c1_connector_v2_action_proto_rawDesc), len(file_c1_connector_v2_action_proto_rawDesc)), - NumEnums: 1, + NumEnums: 2, NumMessages: 9, NumExtensions: 0, NumServices: 1, diff --git a/vendor/github.com/conductorone/baton-sdk/pb/c1/connector/v2/action.pb.validate.go b/vendor/github.com/conductorone/baton-sdk/pb/c1/connector/v2/action.pb.validate.go index 590b0616..40566def 100644 --- a/vendor/github.com/conductorone/baton-sdk/pb/c1/connector/v2/action.pb.validate.go +++ b/vendor/github.com/conductorone/baton-sdk/pb/c1/connector/v2/action.pb.validate.go @@ -165,6 +165,8 @@ func (m *BatonActionSchema) validate(all bool) error { // no validation rules for Description + // no validation rules for ResourceTypeId + if len(errors) > 0 { return BatonActionSchemaMultiError(errors) } @@ -332,6 +334,8 @@ func (m *InvokeActionRequest) validate(all bool) error { } + // no validation rules for ResourceTypeId + if len(errors) > 0 { return InvokeActionRequestMultiError(errors) } @@ -1253,6 +1257,8 @@ func (m *ListActionSchemasRequest) validate(all bool) error { } + // no validation rules for ResourceTypeId + if len(errors) > 0 { return ListActionSchemasRequestMultiError(errors) } diff --git a/vendor/github.com/conductorone/baton-sdk/pb/c1/connector/v2/action_protoopaque.pb.go b/vendor/github.com/conductorone/baton-sdk/pb/c1/connector/v2/action_protoopaque.pb.go new file mode 100644 index 00000000..44664477 --- /dev/null +++ b/vendor/github.com/conductorone/baton-sdk/pb/c1/connector/v2/action_protoopaque.pb.go @@ -0,0 +1,1221 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.36.10 +// protoc (unknown) +// source: c1/connector/v2/action.proto + +//go:build protoopaque + +package v2 + +import ( + v1 "github.com/conductorone/baton-sdk/pb/c1/config/v1" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + anypb "google.golang.org/protobuf/types/known/anypb" + structpb "google.golang.org/protobuf/types/known/structpb" + reflect "reflect" + 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 BatonActionStatus int32 + +const ( + BatonActionStatus_BATON_ACTION_STATUS_UNSPECIFIED BatonActionStatus = 0 + BatonActionStatus_BATON_ACTION_STATUS_UNKNOWN BatonActionStatus = 1 + BatonActionStatus_BATON_ACTION_STATUS_PENDING BatonActionStatus = 2 + BatonActionStatus_BATON_ACTION_STATUS_RUNNING BatonActionStatus = 3 + BatonActionStatus_BATON_ACTION_STATUS_COMPLETE BatonActionStatus = 4 + BatonActionStatus_BATON_ACTION_STATUS_FAILED BatonActionStatus = 5 +) + +// Enum value maps for BatonActionStatus. +var ( + BatonActionStatus_name = map[int32]string{ + 0: "BATON_ACTION_STATUS_UNSPECIFIED", + 1: "BATON_ACTION_STATUS_UNKNOWN", + 2: "BATON_ACTION_STATUS_PENDING", + 3: "BATON_ACTION_STATUS_RUNNING", + 4: "BATON_ACTION_STATUS_COMPLETE", + 5: "BATON_ACTION_STATUS_FAILED", + } + BatonActionStatus_value = map[string]int32{ + "BATON_ACTION_STATUS_UNSPECIFIED": 0, + "BATON_ACTION_STATUS_UNKNOWN": 1, + "BATON_ACTION_STATUS_PENDING": 2, + "BATON_ACTION_STATUS_RUNNING": 3, + "BATON_ACTION_STATUS_COMPLETE": 4, + "BATON_ACTION_STATUS_FAILED": 5, + } +) + +func (x BatonActionStatus) Enum() *BatonActionStatus { + p := new(BatonActionStatus) + *p = x + return p +} + +func (x BatonActionStatus) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (BatonActionStatus) Descriptor() protoreflect.EnumDescriptor { + return file_c1_connector_v2_action_proto_enumTypes[0].Descriptor() +} + +func (BatonActionStatus) Type() protoreflect.EnumType { + return &file_c1_connector_v2_action_proto_enumTypes[0] +} + +func (x BatonActionStatus) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// This defines the action type. +type ActionType int32 + +const ( + ActionType_ACTION_TYPE_UNSPECIFIED ActionType = 0 + ActionType_ACTION_TYPE_DYNAMIC ActionType = 1 + ActionType_ACTION_TYPE_ACCOUNT ActionType = 2 + ActionType_ACTION_TYPE_ACCOUNT_UPDATE_PROFILE ActionType = 3 + ActionType_ACTION_TYPE_ACCOUNT_DISABLE ActionType = 4 + ActionType_ACTION_TYPE_ACCOUNT_ENABLE ActionType = 5 + // Generic resource actions + ActionType_ACTION_TYPE_RESOURCE_CREATE ActionType = 6 + ActionType_ACTION_TYPE_RESOURCE_DELETE ActionType = 7 + ActionType_ACTION_TYPE_RESOURCE_ENABLE ActionType = 8 + ActionType_ACTION_TYPE_RESOURCE_DISABLE ActionType = 9 +) + +// Enum value maps for ActionType. +var ( + ActionType_name = map[int32]string{ + 0: "ACTION_TYPE_UNSPECIFIED", + 1: "ACTION_TYPE_DYNAMIC", + 2: "ACTION_TYPE_ACCOUNT", + 3: "ACTION_TYPE_ACCOUNT_UPDATE_PROFILE", + 4: "ACTION_TYPE_ACCOUNT_DISABLE", + 5: "ACTION_TYPE_ACCOUNT_ENABLE", + 6: "ACTION_TYPE_RESOURCE_CREATE", + 7: "ACTION_TYPE_RESOURCE_DELETE", + 8: "ACTION_TYPE_RESOURCE_ENABLE", + 9: "ACTION_TYPE_RESOURCE_DISABLE", + } + ActionType_value = map[string]int32{ + "ACTION_TYPE_UNSPECIFIED": 0, + "ACTION_TYPE_DYNAMIC": 1, + "ACTION_TYPE_ACCOUNT": 2, + "ACTION_TYPE_ACCOUNT_UPDATE_PROFILE": 3, + "ACTION_TYPE_ACCOUNT_DISABLE": 4, + "ACTION_TYPE_ACCOUNT_ENABLE": 5, + "ACTION_TYPE_RESOURCE_CREATE": 6, + "ACTION_TYPE_RESOURCE_DELETE": 7, + "ACTION_TYPE_RESOURCE_ENABLE": 8, + "ACTION_TYPE_RESOURCE_DISABLE": 9, + } +) + +func (x ActionType) Enum() *ActionType { + p := new(ActionType) + *p = x + return p +} + +func (x ActionType) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (ActionType) Descriptor() protoreflect.EnumDescriptor { + return file_c1_connector_v2_action_proto_enumTypes[1].Descriptor() +} + +func (ActionType) Type() protoreflect.EnumType { + return &file_c1_connector_v2_action_proto_enumTypes[1] +} + +func (x ActionType) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +type BatonActionSchema struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Name string `protobuf:"bytes,1,opt,name=name,proto3"` + xxx_hidden_Arguments *[]*v1.Field `protobuf:"bytes,2,rep,name=arguments,proto3"` + xxx_hidden_Constraints *[]*v1.Constraint `protobuf:"bytes,3,rep,name=constraints,proto3"` + xxx_hidden_ReturnTypes *[]*v1.Field `protobuf:"bytes,4,rep,name=return_types,json=returnTypes,proto3"` + xxx_hidden_DisplayName string `protobuf:"bytes,5,opt,name=display_name,json=displayName,proto3"` + xxx_hidden_Description string `protobuf:"bytes,6,opt,name=description,proto3"` + xxx_hidden_ActionType []ActionType `protobuf:"varint,7,rep,packed,name=action_type,json=actionType,proto3,enum=c1.connector.v2.ActionType"` + xxx_hidden_ResourceTypeId string `protobuf:"bytes,8,opt,name=resource_type_id,json=resourceTypeId,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *BatonActionSchema) Reset() { + *x = BatonActionSchema{} + mi := &file_c1_connector_v2_action_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *BatonActionSchema) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*BatonActionSchema) ProtoMessage() {} + +func (x *BatonActionSchema) ProtoReflect() protoreflect.Message { + mi := &file_c1_connector_v2_action_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) +} + +func (x *BatonActionSchema) GetName() string { + if x != nil { + return x.xxx_hidden_Name + } + return "" +} + +func (x *BatonActionSchema) GetArguments() []*v1.Field { + if x != nil { + if x.xxx_hidden_Arguments != nil { + return *x.xxx_hidden_Arguments + } + } + return nil +} + +func (x *BatonActionSchema) GetConstraints() []*v1.Constraint { + if x != nil { + if x.xxx_hidden_Constraints != nil { + return *x.xxx_hidden_Constraints + } + } + return nil +} + +func (x *BatonActionSchema) GetReturnTypes() []*v1.Field { + if x != nil { + if x.xxx_hidden_ReturnTypes != nil { + return *x.xxx_hidden_ReturnTypes + } + } + return nil +} + +func (x *BatonActionSchema) GetDisplayName() string { + if x != nil { + return x.xxx_hidden_DisplayName + } + return "" +} + +func (x *BatonActionSchema) GetDescription() string { + if x != nil { + return x.xxx_hidden_Description + } + return "" +} + +func (x *BatonActionSchema) GetActionType() []ActionType { + if x != nil { + return x.xxx_hidden_ActionType + } + return nil +} + +func (x *BatonActionSchema) GetResourceTypeId() string { + if x != nil { + return x.xxx_hidden_ResourceTypeId + } + return "" +} + +func (x *BatonActionSchema) SetName(v string) { + x.xxx_hidden_Name = v +} + +func (x *BatonActionSchema) SetArguments(v []*v1.Field) { + x.xxx_hidden_Arguments = &v +} + +func (x *BatonActionSchema) SetConstraints(v []*v1.Constraint) { + x.xxx_hidden_Constraints = &v +} + +func (x *BatonActionSchema) SetReturnTypes(v []*v1.Field) { + x.xxx_hidden_ReturnTypes = &v +} + +func (x *BatonActionSchema) SetDisplayName(v string) { + x.xxx_hidden_DisplayName = v +} + +func (x *BatonActionSchema) SetDescription(v string) { + x.xxx_hidden_Description = v +} + +func (x *BatonActionSchema) SetActionType(v []ActionType) { + x.xxx_hidden_ActionType = v +} + +func (x *BatonActionSchema) SetResourceTypeId(v string) { + x.xxx_hidden_ResourceTypeId = v +} + +type BatonActionSchema_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Name string + Arguments []*v1.Field + Constraints []*v1.Constraint + ReturnTypes []*v1.Field + DisplayName string + Description string + ActionType []ActionType + // Optional: if set, this action is scoped to a specific resource type + ResourceTypeId string +} + +func (b0 BatonActionSchema_builder) Build() *BatonActionSchema { + m0 := &BatonActionSchema{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Name = b.Name + x.xxx_hidden_Arguments = &b.Arguments + x.xxx_hidden_Constraints = &b.Constraints + x.xxx_hidden_ReturnTypes = &b.ReturnTypes + x.xxx_hidden_DisplayName = b.DisplayName + x.xxx_hidden_Description = b.Description + x.xxx_hidden_ActionType = b.ActionType + x.xxx_hidden_ResourceTypeId = b.ResourceTypeId + return m0 +} + +type InvokeActionRequest struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Name string `protobuf:"bytes,1,opt,name=name,proto3"` + xxx_hidden_Args *structpb.Struct `protobuf:"bytes,2,opt,name=args,proto3"` + xxx_hidden_Annotations *[]*anypb.Any `protobuf:"bytes,3,rep,name=annotations,proto3"` + xxx_hidden_ResourceTypeId string `protobuf:"bytes,4,opt,name=resource_type_id,json=resourceTypeId,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *InvokeActionRequest) Reset() { + *x = InvokeActionRequest{} + mi := &file_c1_connector_v2_action_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *InvokeActionRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*InvokeActionRequest) ProtoMessage() {} + +func (x *InvokeActionRequest) ProtoReflect() protoreflect.Message { + mi := &file_c1_connector_v2_action_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) +} + +func (x *InvokeActionRequest) GetName() string { + if x != nil { + return x.xxx_hidden_Name + } + return "" +} + +func (x *InvokeActionRequest) GetArgs() *structpb.Struct { + if x != nil { + return x.xxx_hidden_Args + } + return nil +} + +func (x *InvokeActionRequest) GetAnnotations() []*anypb.Any { + if x != nil { + if x.xxx_hidden_Annotations != nil { + return *x.xxx_hidden_Annotations + } + } + return nil +} + +func (x *InvokeActionRequest) GetResourceTypeId() string { + if x != nil { + return x.xxx_hidden_ResourceTypeId + } + return "" +} + +func (x *InvokeActionRequest) SetName(v string) { + x.xxx_hidden_Name = v +} + +func (x *InvokeActionRequest) SetArgs(v *structpb.Struct) { + x.xxx_hidden_Args = v +} + +func (x *InvokeActionRequest) SetAnnotations(v []*anypb.Any) { + x.xxx_hidden_Annotations = &v +} + +func (x *InvokeActionRequest) SetResourceTypeId(v string) { + x.xxx_hidden_ResourceTypeId = v +} + +func (x *InvokeActionRequest) HasArgs() bool { + if x == nil { + return false + } + return x.xxx_hidden_Args != nil +} + +func (x *InvokeActionRequest) ClearArgs() { + x.xxx_hidden_Args = nil +} + +type InvokeActionRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Name string + Args *structpb.Struct + Annotations []*anypb.Any + // Optional: if set, invokes a resource-scoped action + ResourceTypeId string +} + +func (b0 InvokeActionRequest_builder) Build() *InvokeActionRequest { + m0 := &InvokeActionRequest{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Name = b.Name + x.xxx_hidden_Args = b.Args + x.xxx_hidden_Annotations = &b.Annotations + x.xxx_hidden_ResourceTypeId = b.ResourceTypeId + return m0 +} + +type InvokeActionResponse struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Id string `protobuf:"bytes,1,opt,name=id,proto3"` + xxx_hidden_Status BatonActionStatus `protobuf:"varint,2,opt,name=status,proto3,enum=c1.connector.v2.BatonActionStatus"` + xxx_hidden_Annotations *[]*anypb.Any `protobuf:"bytes,3,rep,name=annotations,proto3"` + xxx_hidden_Response *structpb.Struct `protobuf:"bytes,4,opt,name=response,proto3"` + xxx_hidden_Name string `protobuf:"bytes,5,opt,name=name,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *InvokeActionResponse) Reset() { + *x = InvokeActionResponse{} + mi := &file_c1_connector_v2_action_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *InvokeActionResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*InvokeActionResponse) ProtoMessage() {} + +func (x *InvokeActionResponse) ProtoReflect() protoreflect.Message { + mi := &file_c1_connector_v2_action_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) +} + +func (x *InvokeActionResponse) GetId() string { + if x != nil { + return x.xxx_hidden_Id + } + return "" +} + +func (x *InvokeActionResponse) GetStatus() BatonActionStatus { + if x != nil { + return x.xxx_hidden_Status + } + return BatonActionStatus_BATON_ACTION_STATUS_UNSPECIFIED +} + +func (x *InvokeActionResponse) GetAnnotations() []*anypb.Any { + if x != nil { + if x.xxx_hidden_Annotations != nil { + return *x.xxx_hidden_Annotations + } + } + return nil +} + +func (x *InvokeActionResponse) GetResponse() *structpb.Struct { + if x != nil { + return x.xxx_hidden_Response + } + return nil +} + +func (x *InvokeActionResponse) GetName() string { + if x != nil { + return x.xxx_hidden_Name + } + return "" +} + +func (x *InvokeActionResponse) SetId(v string) { + x.xxx_hidden_Id = v +} + +func (x *InvokeActionResponse) SetStatus(v BatonActionStatus) { + x.xxx_hidden_Status = v +} + +func (x *InvokeActionResponse) SetAnnotations(v []*anypb.Any) { + x.xxx_hidden_Annotations = &v +} + +func (x *InvokeActionResponse) SetResponse(v *structpb.Struct) { + x.xxx_hidden_Response = v +} + +func (x *InvokeActionResponse) SetName(v string) { + x.xxx_hidden_Name = v +} + +func (x *InvokeActionResponse) HasResponse() bool { + if x == nil { + return false + } + return x.xxx_hidden_Response != nil +} + +func (x *InvokeActionResponse) ClearResponse() { + x.xxx_hidden_Response = nil +} + +type InvokeActionResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Id string + Status BatonActionStatus + Annotations []*anypb.Any + Response *structpb.Struct + Name string +} + +func (b0 InvokeActionResponse_builder) Build() *InvokeActionResponse { + m0 := &InvokeActionResponse{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Id = b.Id + x.xxx_hidden_Status = b.Status + x.xxx_hidden_Annotations = &b.Annotations + x.xxx_hidden_Response = b.Response + x.xxx_hidden_Name = b.Name + return m0 +} + +type GetActionStatusRequest struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Name string `protobuf:"bytes,1,opt,name=name,proto3"` + xxx_hidden_Id string `protobuf:"bytes,2,opt,name=id,proto3"` + xxx_hidden_Annotations *[]*anypb.Any `protobuf:"bytes,3,rep,name=annotations,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *GetActionStatusRequest) Reset() { + *x = GetActionStatusRequest{} + mi := &file_c1_connector_v2_action_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *GetActionStatusRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetActionStatusRequest) ProtoMessage() {} + +func (x *GetActionStatusRequest) ProtoReflect() protoreflect.Message { + mi := &file_c1_connector_v2_action_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: Marked as deprecated in c1/connector/v2/action.proto. +func (x *GetActionStatusRequest) GetName() string { + if x != nil { + return x.xxx_hidden_Name + } + return "" +} + +func (x *GetActionStatusRequest) GetId() string { + if x != nil { + return x.xxx_hidden_Id + } + return "" +} + +func (x *GetActionStatusRequest) GetAnnotations() []*anypb.Any { + if x != nil { + if x.xxx_hidden_Annotations != nil { + return *x.xxx_hidden_Annotations + } + } + return nil +} + +// Deprecated: Marked as deprecated in c1/connector/v2/action.proto. +func (x *GetActionStatusRequest) SetName(v string) { + x.xxx_hidden_Name = v +} + +func (x *GetActionStatusRequest) SetId(v string) { + x.xxx_hidden_Id = v +} + +func (x *GetActionStatusRequest) SetAnnotations(v []*anypb.Any) { + x.xxx_hidden_Annotations = &v +} + +type GetActionStatusRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Deprecated: Marked as deprecated in c1/connector/v2/action.proto. + Name string + Id string + Annotations []*anypb.Any +} + +func (b0 GetActionStatusRequest_builder) Build() *GetActionStatusRequest { + m0 := &GetActionStatusRequest{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Name = b.Name + x.xxx_hidden_Id = b.Id + x.xxx_hidden_Annotations = &b.Annotations + return m0 +} + +type GetActionStatusResponse struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Name string `protobuf:"bytes,1,opt,name=name,proto3"` + xxx_hidden_Id string `protobuf:"bytes,2,opt,name=id,proto3"` + xxx_hidden_Status BatonActionStatus `protobuf:"varint,3,opt,name=status,proto3,enum=c1.connector.v2.BatonActionStatus"` + xxx_hidden_Annotations *[]*anypb.Any `protobuf:"bytes,4,rep,name=annotations,proto3"` + xxx_hidden_Response *structpb.Struct `protobuf:"bytes,5,opt,name=response,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *GetActionStatusResponse) Reset() { + *x = GetActionStatusResponse{} + mi := &file_c1_connector_v2_action_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *GetActionStatusResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetActionStatusResponse) ProtoMessage() {} + +func (x *GetActionStatusResponse) ProtoReflect() protoreflect.Message { + mi := &file_c1_connector_v2_action_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) +} + +func (x *GetActionStatusResponse) GetName() string { + if x != nil { + return x.xxx_hidden_Name + } + return "" +} + +func (x *GetActionStatusResponse) GetId() string { + if x != nil { + return x.xxx_hidden_Id + } + return "" +} + +func (x *GetActionStatusResponse) GetStatus() BatonActionStatus { + if x != nil { + return x.xxx_hidden_Status + } + return BatonActionStatus_BATON_ACTION_STATUS_UNSPECIFIED +} + +func (x *GetActionStatusResponse) GetAnnotations() []*anypb.Any { + if x != nil { + if x.xxx_hidden_Annotations != nil { + return *x.xxx_hidden_Annotations + } + } + return nil +} + +func (x *GetActionStatusResponse) GetResponse() *structpb.Struct { + if x != nil { + return x.xxx_hidden_Response + } + return nil +} + +func (x *GetActionStatusResponse) SetName(v string) { + x.xxx_hidden_Name = v +} + +func (x *GetActionStatusResponse) SetId(v string) { + x.xxx_hidden_Id = v +} + +func (x *GetActionStatusResponse) SetStatus(v BatonActionStatus) { + x.xxx_hidden_Status = v +} + +func (x *GetActionStatusResponse) SetAnnotations(v []*anypb.Any) { + x.xxx_hidden_Annotations = &v +} + +func (x *GetActionStatusResponse) SetResponse(v *structpb.Struct) { + x.xxx_hidden_Response = v +} + +func (x *GetActionStatusResponse) HasResponse() bool { + if x == nil { + return false + } + return x.xxx_hidden_Response != nil +} + +func (x *GetActionStatusResponse) ClearResponse() { + x.xxx_hidden_Response = nil +} + +type GetActionStatusResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Name string + Id string + Status BatonActionStatus + Annotations []*anypb.Any + Response *structpb.Struct +} + +func (b0 GetActionStatusResponse_builder) Build() *GetActionStatusResponse { + m0 := &GetActionStatusResponse{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Name = b.Name + x.xxx_hidden_Id = b.Id + x.xxx_hidden_Status = b.Status + x.xxx_hidden_Annotations = &b.Annotations + x.xxx_hidden_Response = b.Response + return m0 +} + +type GetActionSchemaRequest struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Name string `protobuf:"bytes,1,opt,name=name,proto3"` + xxx_hidden_Annotations *[]*anypb.Any `protobuf:"bytes,2,rep,name=annotations,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *GetActionSchemaRequest) Reset() { + *x = GetActionSchemaRequest{} + mi := &file_c1_connector_v2_action_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *GetActionSchemaRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetActionSchemaRequest) ProtoMessage() {} + +func (x *GetActionSchemaRequest) ProtoReflect() protoreflect.Message { + mi := &file_c1_connector_v2_action_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) +} + +func (x *GetActionSchemaRequest) GetName() string { + if x != nil { + return x.xxx_hidden_Name + } + return "" +} + +func (x *GetActionSchemaRequest) GetAnnotations() []*anypb.Any { + if x != nil { + if x.xxx_hidden_Annotations != nil { + return *x.xxx_hidden_Annotations + } + } + return nil +} + +func (x *GetActionSchemaRequest) SetName(v string) { + x.xxx_hidden_Name = v +} + +func (x *GetActionSchemaRequest) SetAnnotations(v []*anypb.Any) { + x.xxx_hidden_Annotations = &v +} + +type GetActionSchemaRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Name string + Annotations []*anypb.Any +} + +func (b0 GetActionSchemaRequest_builder) Build() *GetActionSchemaRequest { + m0 := &GetActionSchemaRequest{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Name = b.Name + x.xxx_hidden_Annotations = &b.Annotations + return m0 +} + +type GetActionSchemaResponse struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Schema *BatonActionSchema `protobuf:"bytes,1,opt,name=schema,proto3"` + xxx_hidden_Annotations *[]*anypb.Any `protobuf:"bytes,2,rep,name=annotations,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *GetActionSchemaResponse) Reset() { + *x = GetActionSchemaResponse{} + mi := &file_c1_connector_v2_action_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *GetActionSchemaResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetActionSchemaResponse) ProtoMessage() {} + +func (x *GetActionSchemaResponse) ProtoReflect() protoreflect.Message { + mi := &file_c1_connector_v2_action_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) +} + +func (x *GetActionSchemaResponse) GetSchema() *BatonActionSchema { + if x != nil { + return x.xxx_hidden_Schema + } + return nil +} + +func (x *GetActionSchemaResponse) GetAnnotations() []*anypb.Any { + if x != nil { + if x.xxx_hidden_Annotations != nil { + return *x.xxx_hidden_Annotations + } + } + return nil +} + +func (x *GetActionSchemaResponse) SetSchema(v *BatonActionSchema) { + x.xxx_hidden_Schema = v +} + +func (x *GetActionSchemaResponse) SetAnnotations(v []*anypb.Any) { + x.xxx_hidden_Annotations = &v +} + +func (x *GetActionSchemaResponse) HasSchema() bool { + if x == nil { + return false + } + return x.xxx_hidden_Schema != nil +} + +func (x *GetActionSchemaResponse) ClearSchema() { + x.xxx_hidden_Schema = nil +} + +type GetActionSchemaResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Schema *BatonActionSchema + Annotations []*anypb.Any +} + +func (b0 GetActionSchemaResponse_builder) Build() *GetActionSchemaResponse { + m0 := &GetActionSchemaResponse{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Schema = b.Schema + x.xxx_hidden_Annotations = &b.Annotations + return m0 +} + +type ListActionSchemasRequest struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Annotations *[]*anypb.Any `protobuf:"bytes,1,rep,name=annotations,proto3"` + xxx_hidden_ResourceTypeId string `protobuf:"bytes,2,opt,name=resource_type_id,json=resourceTypeId,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *ListActionSchemasRequest) Reset() { + *x = ListActionSchemasRequest{} + mi := &file_c1_connector_v2_action_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *ListActionSchemasRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ListActionSchemasRequest) ProtoMessage() {} + +func (x *ListActionSchemasRequest) ProtoReflect() protoreflect.Message { + mi := &file_c1_connector_v2_action_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) +} + +func (x *ListActionSchemasRequest) GetAnnotations() []*anypb.Any { + if x != nil { + if x.xxx_hidden_Annotations != nil { + return *x.xxx_hidden_Annotations + } + } + return nil +} + +func (x *ListActionSchemasRequest) GetResourceTypeId() string { + if x != nil { + return x.xxx_hidden_ResourceTypeId + } + return "" +} + +func (x *ListActionSchemasRequest) SetAnnotations(v []*anypb.Any) { + x.xxx_hidden_Annotations = &v +} + +func (x *ListActionSchemasRequest) SetResourceTypeId(v string) { + x.xxx_hidden_ResourceTypeId = v +} + +type ListActionSchemasRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Annotations []*anypb.Any + // Optional: filter to only return actions for a specific resource type + ResourceTypeId string +} + +func (b0 ListActionSchemasRequest_builder) Build() *ListActionSchemasRequest { + m0 := &ListActionSchemasRequest{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Annotations = &b.Annotations + x.xxx_hidden_ResourceTypeId = b.ResourceTypeId + return m0 +} + +type ListActionSchemasResponse struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Schemas *[]*BatonActionSchema `protobuf:"bytes,1,rep,name=schemas,proto3"` + xxx_hidden_Annotations *[]*anypb.Any `protobuf:"bytes,2,rep,name=annotations,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *ListActionSchemasResponse) Reset() { + *x = ListActionSchemasResponse{} + mi := &file_c1_connector_v2_action_proto_msgTypes[8] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *ListActionSchemasResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ListActionSchemasResponse) ProtoMessage() {} + +func (x *ListActionSchemasResponse) ProtoReflect() protoreflect.Message { + mi := &file_c1_connector_v2_action_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) +} + +func (x *ListActionSchemasResponse) GetSchemas() []*BatonActionSchema { + if x != nil { + if x.xxx_hidden_Schemas != nil { + return *x.xxx_hidden_Schemas + } + } + return nil +} + +func (x *ListActionSchemasResponse) GetAnnotations() []*anypb.Any { + if x != nil { + if x.xxx_hidden_Annotations != nil { + return *x.xxx_hidden_Annotations + } + } + return nil +} + +func (x *ListActionSchemasResponse) SetSchemas(v []*BatonActionSchema) { + x.xxx_hidden_Schemas = &v +} + +func (x *ListActionSchemasResponse) SetAnnotations(v []*anypb.Any) { + x.xxx_hidden_Annotations = &v +} + +type ListActionSchemasResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Schemas []*BatonActionSchema + Annotations []*anypb.Any +} + +func (b0 ListActionSchemasResponse_builder) Build() *ListActionSchemasResponse { + m0 := &ListActionSchemasResponse{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Schemas = &b.Schemas + x.xxx_hidden_Annotations = &b.Annotations + return m0 +} + +var File_c1_connector_v2_action_proto protoreflect.FileDescriptor + +const file_c1_connector_v2_action_proto_rawDesc = "" + + "\n" + + "\x1cc1/connector/v2/action.proto\x12\x0fc1.connector.v2\x1a\x19c1/config/v1/config.proto\x1a\x19google/protobuf/any.proto\x1a\x1cgoogle/protobuf/struct.proto\"\xfb\x02\n" + + "\x11BatonActionSchema\x12\x12\n" + + "\x04name\x18\x01 \x01(\tR\x04name\x121\n" + + "\targuments\x18\x02 \x03(\v2\x13.c1.config.v1.FieldR\targuments\x12:\n" + + "\vconstraints\x18\x03 \x03(\v2\x18.c1.config.v1.ConstraintR\vconstraints\x126\n" + + "\freturn_types\x18\x04 \x03(\v2\x13.c1.config.v1.FieldR\vreturnTypes\x12!\n" + + "\fdisplay_name\x18\x05 \x01(\tR\vdisplayName\x12 \n" + + "\vdescription\x18\x06 \x01(\tR\vdescription\x12<\n" + + "\vaction_type\x18\a \x03(\x0e2\x1b.c1.connector.v2.ActionTypeR\n" + + "actionType\x12(\n" + + "\x10resource_type_id\x18\b \x01(\tR\x0eresourceTypeId\"\xb8\x01\n" + + "\x13InvokeActionRequest\x12\x12\n" + + "\x04name\x18\x01 \x01(\tR\x04name\x12+\n" + + "\x04args\x18\x02 \x01(\v2\x17.google.protobuf.StructR\x04args\x126\n" + + "\vannotations\x18\x03 \x03(\v2\x14.google.protobuf.AnyR\vannotations\x12(\n" + + "\x10resource_type_id\x18\x04 \x01(\tR\x0eresourceTypeId\"\xe3\x01\n" + + "\x14InvokeActionResponse\x12\x0e\n" + + "\x02id\x18\x01 \x01(\tR\x02id\x12:\n" + + "\x06status\x18\x02 \x01(\x0e2\".c1.connector.v2.BatonActionStatusR\x06status\x126\n" + + "\vannotations\x18\x03 \x03(\v2\x14.google.protobuf.AnyR\vannotations\x123\n" + + "\bresponse\x18\x04 \x01(\v2\x17.google.protobuf.StructR\bresponse\x12\x12\n" + + "\x04name\x18\x05 \x01(\tR\x04name\"x\n" + + "\x16GetActionStatusRequest\x12\x16\n" + + "\x04name\x18\x01 \x01(\tB\x02\x18\x01R\x04name\x12\x0e\n" + + "\x02id\x18\x02 \x01(\tR\x02id\x126\n" + + "\vannotations\x18\x03 \x03(\v2\x14.google.protobuf.AnyR\vannotations\"\xe6\x01\n" + + "\x17GetActionStatusResponse\x12\x12\n" + + "\x04name\x18\x01 \x01(\tR\x04name\x12\x0e\n" + + "\x02id\x18\x02 \x01(\tR\x02id\x12:\n" + + "\x06status\x18\x03 \x01(\x0e2\".c1.connector.v2.BatonActionStatusR\x06status\x126\n" + + "\vannotations\x18\x04 \x03(\v2\x14.google.protobuf.AnyR\vannotations\x123\n" + + "\bresponse\x18\x05 \x01(\v2\x17.google.protobuf.StructR\bresponse\"d\n" + + "\x16GetActionSchemaRequest\x12\x12\n" + + "\x04name\x18\x01 \x01(\tR\x04name\x126\n" + + "\vannotations\x18\x02 \x03(\v2\x14.google.protobuf.AnyR\vannotations\"\x8d\x01\n" + + "\x17GetActionSchemaResponse\x12:\n" + + "\x06schema\x18\x01 \x01(\v2\".c1.connector.v2.BatonActionSchemaR\x06schema\x126\n" + + "\vannotations\x18\x02 \x03(\v2\x14.google.protobuf.AnyR\vannotations\"|\n" + + "\x18ListActionSchemasRequest\x126\n" + + "\vannotations\x18\x01 \x03(\v2\x14.google.protobuf.AnyR\vannotations\x12(\n" + + "\x10resource_type_id\x18\x02 \x01(\tR\x0eresourceTypeId\"\x91\x01\n" + + "\x19ListActionSchemasResponse\x12<\n" + + "\aschemas\x18\x01 \x03(\v2\".c1.connector.v2.BatonActionSchemaR\aschemas\x126\n" + + "\vannotations\x18\x02 \x03(\v2\x14.google.protobuf.AnyR\vannotations*\xdd\x01\n" + + "\x11BatonActionStatus\x12#\n" + + "\x1fBATON_ACTION_STATUS_UNSPECIFIED\x10\x00\x12\x1f\n" + + "\x1bBATON_ACTION_STATUS_UNKNOWN\x10\x01\x12\x1f\n" + + "\x1bBATON_ACTION_STATUS_PENDING\x10\x02\x12\x1f\n" + + "\x1bBATON_ACTION_STATUS_RUNNING\x10\x03\x12 \n" + + "\x1cBATON_ACTION_STATUS_COMPLETE\x10\x04\x12\x1e\n" + + "\x1aBATON_ACTION_STATUS_FAILED\x10\x05*\xc9\x02\n" + + "\n" + + "ActionType\x12\x1b\n" + + "\x17ACTION_TYPE_UNSPECIFIED\x10\x00\x12\x17\n" + + "\x13ACTION_TYPE_DYNAMIC\x10\x01\x12\x17\n" + + "\x13ACTION_TYPE_ACCOUNT\x10\x02\x12&\n" + + "\"ACTION_TYPE_ACCOUNT_UPDATE_PROFILE\x10\x03\x12\x1f\n" + + "\x1bACTION_TYPE_ACCOUNT_DISABLE\x10\x04\x12\x1e\n" + + "\x1aACTION_TYPE_ACCOUNT_ENABLE\x10\x05\x12\x1f\n" + + "\x1bACTION_TYPE_RESOURCE_CREATE\x10\x06\x12\x1f\n" + + "\x1bACTION_TYPE_RESOURCE_DELETE\x10\a\x12\x1f\n" + + "\x1bACTION_TYPE_RESOURCE_ENABLE\x10\b\x12 \n" + + "\x1cACTION_TYPE_RESOURCE_DISABLE\x10\t2\xa4\x03\n" + + "\rActionService\x12[\n" + + "\fInvokeAction\x12$.c1.connector.v2.InvokeActionRequest\x1a%.c1.connector.v2.InvokeActionResponse\x12d\n" + + "\x0fGetActionStatus\x12'.c1.connector.v2.GetActionStatusRequest\x1a(.c1.connector.v2.GetActionStatusResponse\x12d\n" + + "\x0fGetActionSchema\x12'.c1.connector.v2.GetActionSchemaRequest\x1a(.c1.connector.v2.GetActionSchemaResponse\x12j\n" + + "\x11ListActionSchemas\x12).c1.connector.v2.ListActionSchemasRequest\x1a*.c1.connector.v2.ListActionSchemasResponseB6Z4github.com/conductorone/baton-sdk/pb/c1/connector/v2b\x06proto3" + +var file_c1_connector_v2_action_proto_enumTypes = make([]protoimpl.EnumInfo, 2) +var file_c1_connector_v2_action_proto_msgTypes = make([]protoimpl.MessageInfo, 9) +var file_c1_connector_v2_action_proto_goTypes = []any{ + (BatonActionStatus)(0), // 0: c1.connector.v2.BatonActionStatus + (ActionType)(0), // 1: c1.connector.v2.ActionType + (*BatonActionSchema)(nil), // 2: c1.connector.v2.BatonActionSchema + (*InvokeActionRequest)(nil), // 3: c1.connector.v2.InvokeActionRequest + (*InvokeActionResponse)(nil), // 4: c1.connector.v2.InvokeActionResponse + (*GetActionStatusRequest)(nil), // 5: c1.connector.v2.GetActionStatusRequest + (*GetActionStatusResponse)(nil), // 6: c1.connector.v2.GetActionStatusResponse + (*GetActionSchemaRequest)(nil), // 7: c1.connector.v2.GetActionSchemaRequest + (*GetActionSchemaResponse)(nil), // 8: c1.connector.v2.GetActionSchemaResponse + (*ListActionSchemasRequest)(nil), // 9: c1.connector.v2.ListActionSchemasRequest + (*ListActionSchemasResponse)(nil), // 10: c1.connector.v2.ListActionSchemasResponse + (*v1.Field)(nil), // 11: c1.config.v1.Field + (*v1.Constraint)(nil), // 12: c1.config.v1.Constraint + (*structpb.Struct)(nil), // 13: google.protobuf.Struct + (*anypb.Any)(nil), // 14: google.protobuf.Any +} +var file_c1_connector_v2_action_proto_depIdxs = []int32{ + 11, // 0: c1.connector.v2.BatonActionSchema.arguments:type_name -> c1.config.v1.Field + 12, // 1: c1.connector.v2.BatonActionSchema.constraints:type_name -> c1.config.v1.Constraint + 11, // 2: c1.connector.v2.BatonActionSchema.return_types:type_name -> c1.config.v1.Field + 1, // 3: c1.connector.v2.BatonActionSchema.action_type:type_name -> c1.connector.v2.ActionType + 13, // 4: c1.connector.v2.InvokeActionRequest.args:type_name -> google.protobuf.Struct + 14, // 5: c1.connector.v2.InvokeActionRequest.annotations:type_name -> google.protobuf.Any + 0, // 6: c1.connector.v2.InvokeActionResponse.status:type_name -> c1.connector.v2.BatonActionStatus + 14, // 7: c1.connector.v2.InvokeActionResponse.annotations:type_name -> google.protobuf.Any + 13, // 8: c1.connector.v2.InvokeActionResponse.response:type_name -> google.protobuf.Struct + 14, // 9: c1.connector.v2.GetActionStatusRequest.annotations:type_name -> google.protobuf.Any + 0, // 10: c1.connector.v2.GetActionStatusResponse.status:type_name -> c1.connector.v2.BatonActionStatus + 14, // 11: c1.connector.v2.GetActionStatusResponse.annotations:type_name -> google.protobuf.Any + 13, // 12: c1.connector.v2.GetActionStatusResponse.response:type_name -> google.protobuf.Struct + 14, // 13: c1.connector.v2.GetActionSchemaRequest.annotations:type_name -> google.protobuf.Any + 2, // 14: c1.connector.v2.GetActionSchemaResponse.schema:type_name -> c1.connector.v2.BatonActionSchema + 14, // 15: c1.connector.v2.GetActionSchemaResponse.annotations:type_name -> google.protobuf.Any + 14, // 16: c1.connector.v2.ListActionSchemasRequest.annotations:type_name -> google.protobuf.Any + 2, // 17: c1.connector.v2.ListActionSchemasResponse.schemas:type_name -> c1.connector.v2.BatonActionSchema + 14, // 18: c1.connector.v2.ListActionSchemasResponse.annotations:type_name -> google.protobuf.Any + 3, // 19: c1.connector.v2.ActionService.InvokeAction:input_type -> c1.connector.v2.InvokeActionRequest + 5, // 20: c1.connector.v2.ActionService.GetActionStatus:input_type -> c1.connector.v2.GetActionStatusRequest + 7, // 21: c1.connector.v2.ActionService.GetActionSchema:input_type -> c1.connector.v2.GetActionSchemaRequest + 9, // 22: c1.connector.v2.ActionService.ListActionSchemas:input_type -> c1.connector.v2.ListActionSchemasRequest + 4, // 23: c1.connector.v2.ActionService.InvokeAction:output_type -> c1.connector.v2.InvokeActionResponse + 6, // 24: c1.connector.v2.ActionService.GetActionStatus:output_type -> c1.connector.v2.GetActionStatusResponse + 8, // 25: c1.connector.v2.ActionService.GetActionSchema:output_type -> c1.connector.v2.GetActionSchemaResponse + 10, // 26: c1.connector.v2.ActionService.ListActionSchemas:output_type -> c1.connector.v2.ListActionSchemasResponse + 23, // [23:27] is the sub-list for method output_type + 19, // [19:23] is the sub-list for method input_type + 19, // [19:19] is the sub-list for extension type_name + 19, // [19:19] is the sub-list for extension extendee + 0, // [0:19] is the sub-list for field type_name +} + +func init() { file_c1_connector_v2_action_proto_init() } +func file_c1_connector_v2_action_proto_init() { + if File_c1_connector_v2_action_proto != nil { + return + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: unsafe.Slice(unsafe.StringData(file_c1_connector_v2_action_proto_rawDesc), len(file_c1_connector_v2_action_proto_rawDesc)), + NumEnums: 2, + NumMessages: 9, + NumExtensions: 0, + NumServices: 1, + }, + GoTypes: file_c1_connector_v2_action_proto_goTypes, + DependencyIndexes: file_c1_connector_v2_action_proto_depIdxs, + EnumInfos: file_c1_connector_v2_action_proto_enumTypes, + MessageInfos: file_c1_connector_v2_action_proto_msgTypes, + }.Build() + File_c1_connector_v2_action_proto = out.File + file_c1_connector_v2_action_proto_goTypes = nil + file_c1_connector_v2_action_proto_depIdxs = nil +} diff --git a/vendor/github.com/conductorone/baton-sdk/pb/c1/connector/v2/annotation_baton_id.pb.go b/vendor/github.com/conductorone/baton-sdk/pb/c1/connector/v2/annotation_baton_id.pb.go index 88f6033b..94dc93dc 100644 --- a/vendor/github.com/conductorone/baton-sdk/pb/c1/connector/v2/annotation_baton_id.pb.go +++ b/vendor/github.com/conductorone/baton-sdk/pb/c1/connector/v2/annotation_baton_id.pb.go @@ -1,16 +1,17 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.36.4 +// protoc-gen-go v1.36.10 // protoc (unknown) // source: c1/connector/v2/annotation_baton_id.proto +//go:build !protoopaque + package v2 import ( protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" reflect "reflect" - sync "sync" unsafe "unsafe" ) @@ -22,7 +23,7 @@ const ( ) type ExternalResourceMatch struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` ResourceType ResourceType_Trait `protobuf:"varint,1,opt,name=resource_type,json=resourceType,proto3,enum=c1.connector.v2.ResourceType_Trait" json:"resource_type,omitempty"` Key string `protobuf:"bytes,2,opt,name=key,proto3" json:"key,omitempty"` Value string `protobuf:"bytes,3,opt,name=value,proto3" json:"value,omitempty"` @@ -55,11 +56,6 @@ func (x *ExternalResourceMatch) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use ExternalResourceMatch.ProtoReflect.Descriptor instead. -func (*ExternalResourceMatch) Descriptor() ([]byte, []int) { - return file_c1_connector_v2_annotation_baton_id_proto_rawDescGZIP(), []int{0} -} - func (x *ExternalResourceMatch) GetResourceType() ResourceType_Trait { if x != nil { return x.ResourceType @@ -81,8 +77,38 @@ func (x *ExternalResourceMatch) GetValue() string { return "" } +func (x *ExternalResourceMatch) SetResourceType(v ResourceType_Trait) { + x.ResourceType = v +} + +func (x *ExternalResourceMatch) SetKey(v string) { + x.Key = v +} + +func (x *ExternalResourceMatch) SetValue(v string) { + x.Value = v +} + +type ExternalResourceMatch_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + ResourceType ResourceType_Trait + Key string + Value string +} + +func (b0 ExternalResourceMatch_builder) Build() *ExternalResourceMatch { + m0 := &ExternalResourceMatch{} + b, x := &b0, m0 + _, _ = b, x + x.ResourceType = b.ResourceType + x.Key = b.Key + x.Value = b.Value + return m0 +} + type ExternalResourceMatchAll struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` ResourceType ResourceType_Trait `protobuf:"varint,1,opt,name=resource_type,json=resourceType,proto3,enum=c1.connector.v2.ResourceType_Trait" json:"resource_type,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache @@ -113,11 +139,6 @@ func (x *ExternalResourceMatchAll) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use ExternalResourceMatchAll.ProtoReflect.Descriptor instead. -func (*ExternalResourceMatchAll) Descriptor() ([]byte, []int) { - return file_c1_connector_v2_annotation_baton_id_proto_rawDescGZIP(), []int{1} -} - func (x *ExternalResourceMatchAll) GetResourceType() ResourceType_Trait { if x != nil { return x.ResourceType @@ -125,8 +146,26 @@ func (x *ExternalResourceMatchAll) GetResourceType() ResourceType_Trait { return ResourceType_TRAIT_UNSPECIFIED } +func (x *ExternalResourceMatchAll) SetResourceType(v ResourceType_Trait) { + x.ResourceType = v +} + +type ExternalResourceMatchAll_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + ResourceType ResourceType_Trait +} + +func (b0 ExternalResourceMatchAll_builder) Build() *ExternalResourceMatchAll { + m0 := &ExternalResourceMatchAll{} + b, x := &b0, m0 + _, _ = b, x + x.ResourceType = b.ResourceType + return m0 +} + type ExternalResourceMatchID struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache @@ -157,11 +196,6 @@ func (x *ExternalResourceMatchID) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use ExternalResourceMatchID.ProtoReflect.Descriptor instead. -func (*ExternalResourceMatchID) Descriptor() ([]byte, []int) { - return file_c1_connector_v2_annotation_baton_id_proto_rawDescGZIP(), []int{2} -} - func (x *ExternalResourceMatchID) GetId() string { if x != nil { return x.Id @@ -169,8 +203,26 @@ func (x *ExternalResourceMatchID) GetId() string { return "" } +func (x *ExternalResourceMatchID) SetId(v string) { + x.Id = v +} + +type ExternalResourceMatchID_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Id string +} + +func (b0 ExternalResourceMatchID_builder) Build() *ExternalResourceMatchID { + m0 := &ExternalResourceMatchID{} + b, x := &b0, m0 + _, _ = b, x + x.Id = b.Id + return m0 +} + type BatonID struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } @@ -200,56 +252,32 @@ func (x *BatonID) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use BatonID.ProtoReflect.Descriptor instead. -func (*BatonID) Descriptor() ([]byte, []int) { - return file_c1_connector_v2_annotation_baton_id_proto_rawDescGZIP(), []int{3} +type BatonID_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + } -var File_c1_connector_v2_annotation_baton_id_proto protoreflect.FileDescriptor +func (b0 BatonID_builder) Build() *BatonID { + m0 := &BatonID{} + b, x := &b0, m0 + _, _ = b, x + return m0 +} -var file_c1_connector_v2_annotation_baton_id_proto_rawDesc = string([]byte{ - 0x0a, 0x29, 0x63, 0x31, 0x2f, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x2f, 0x76, - 0x32, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x62, 0x61, 0x74, - 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0f, 0x63, 0x31, 0x2e, - 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x2e, 0x76, 0x32, 0x1a, 0x1e, 0x63, 0x31, - 0x2f, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x2f, 0x76, 0x32, 0x2f, 0x72, 0x65, - 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x89, 0x01, 0x0a, - 0x15, 0x45, 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, - 0x65, 0x4d, 0x61, 0x74, 0x63, 0x68, 0x12, 0x48, 0x0a, 0x0d, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, - 0x63, 0x65, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x23, 0x2e, - 0x63, 0x31, 0x2e, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x2e, 0x76, 0x32, 0x2e, - 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x54, 0x79, 0x70, 0x65, 0x2e, 0x54, 0x72, 0x61, - 0x69, 0x74, 0x52, 0x0c, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x54, 0x79, 0x70, 0x65, - 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, - 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x22, 0x64, 0x0a, 0x18, 0x45, 0x78, 0x74, 0x65, - 0x72, 0x6e, 0x61, 0x6c, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x4d, 0x61, 0x74, 0x63, - 0x68, 0x41, 0x6c, 0x6c, 0x12, 0x48, 0x0a, 0x0d, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, - 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x23, 0x2e, 0x63, 0x31, - 0x2e, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x2e, 0x76, 0x32, 0x2e, 0x52, 0x65, - 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x54, 0x79, 0x70, 0x65, 0x2e, 0x54, 0x72, 0x61, 0x69, 0x74, - 0x52, 0x0c, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x54, 0x79, 0x70, 0x65, 0x22, 0x29, - 0x0a, 0x17, 0x45, 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, - 0x63, 0x65, 0x4d, 0x61, 0x74, 0x63, 0x68, 0x49, 0x44, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x22, 0x09, 0x0a, 0x07, 0x42, 0x61, 0x74, - 0x6f, 0x6e, 0x49, 0x44, 0x42, 0x36, 0x5a, 0x34, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, - 0x6f, 0x6d, 0x2f, 0x63, 0x6f, 0x6e, 0x64, 0x75, 0x63, 0x74, 0x6f, 0x72, 0x6f, 0x6e, 0x65, 0x2f, - 0x62, 0x61, 0x74, 0x6f, 0x6e, 0x2d, 0x73, 0x64, 0x6b, 0x2f, 0x70, 0x62, 0x2f, 0x63, 0x31, 0x2f, - 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x2f, 0x76, 0x32, 0x62, 0x06, 0x70, 0x72, - 0x6f, 0x74, 0x6f, 0x33, -}) - -var ( - file_c1_connector_v2_annotation_baton_id_proto_rawDescOnce sync.Once - file_c1_connector_v2_annotation_baton_id_proto_rawDescData []byte -) +var File_c1_connector_v2_annotation_baton_id_proto protoreflect.FileDescriptor -func file_c1_connector_v2_annotation_baton_id_proto_rawDescGZIP() []byte { - file_c1_connector_v2_annotation_baton_id_proto_rawDescOnce.Do(func() { - file_c1_connector_v2_annotation_baton_id_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_c1_connector_v2_annotation_baton_id_proto_rawDesc), len(file_c1_connector_v2_annotation_baton_id_proto_rawDesc))) - }) - return file_c1_connector_v2_annotation_baton_id_proto_rawDescData -} +const file_c1_connector_v2_annotation_baton_id_proto_rawDesc = "" + + "\n" + + ")c1/connector/v2/annotation_baton_id.proto\x12\x0fc1.connector.v2\x1a\x1ec1/connector/v2/resource.proto\"\x89\x01\n" + + "\x15ExternalResourceMatch\x12H\n" + + "\rresource_type\x18\x01 \x01(\x0e2#.c1.connector.v2.ResourceType.TraitR\fresourceType\x12\x10\n" + + "\x03key\x18\x02 \x01(\tR\x03key\x12\x14\n" + + "\x05value\x18\x03 \x01(\tR\x05value\"d\n" + + "\x18ExternalResourceMatchAll\x12H\n" + + "\rresource_type\x18\x01 \x01(\x0e2#.c1.connector.v2.ResourceType.TraitR\fresourceType\")\n" + + "\x17ExternalResourceMatchID\x12\x0e\n" + + "\x02id\x18\x01 \x01(\tR\x02id\"\t\n" + + "\aBatonIDB6Z4github.com/conductorone/baton-sdk/pb/c1/connector/v2b\x06proto3" var file_c1_connector_v2_annotation_baton_id_proto_msgTypes = make([]protoimpl.MessageInfo, 4) var file_c1_connector_v2_annotation_baton_id_proto_goTypes = []any{ diff --git a/vendor/github.com/conductorone/baton-sdk/pb/c1/connector/v2/annotation_baton_id_protoopaque.pb.go b/vendor/github.com/conductorone/baton-sdk/pb/c1/connector/v2/annotation_baton_id_protoopaque.pb.go new file mode 100644 index 00000000..14b010c5 --- /dev/null +++ b/vendor/github.com/conductorone/baton-sdk/pb/c1/connector/v2/annotation_baton_id_protoopaque.pb.go @@ -0,0 +1,323 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.36.10 +// protoc (unknown) +// source: c1/connector/v2/annotation_baton_id.proto + +//go:build protoopaque + +package v2 + +import ( + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + reflect "reflect" + 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 ExternalResourceMatch struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_ResourceType ResourceType_Trait `protobuf:"varint,1,opt,name=resource_type,json=resourceType,proto3,enum=c1.connector.v2.ResourceType_Trait"` + xxx_hidden_Key string `protobuf:"bytes,2,opt,name=key,proto3"` + xxx_hidden_Value string `protobuf:"bytes,3,opt,name=value,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *ExternalResourceMatch) Reset() { + *x = ExternalResourceMatch{} + mi := &file_c1_connector_v2_annotation_baton_id_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *ExternalResourceMatch) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ExternalResourceMatch) ProtoMessage() {} + +func (x *ExternalResourceMatch) ProtoReflect() protoreflect.Message { + mi := &file_c1_connector_v2_annotation_baton_id_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) +} + +func (x *ExternalResourceMatch) GetResourceType() ResourceType_Trait { + if x != nil { + return x.xxx_hidden_ResourceType + } + return ResourceType_TRAIT_UNSPECIFIED +} + +func (x *ExternalResourceMatch) GetKey() string { + if x != nil { + return x.xxx_hidden_Key + } + return "" +} + +func (x *ExternalResourceMatch) GetValue() string { + if x != nil { + return x.xxx_hidden_Value + } + return "" +} + +func (x *ExternalResourceMatch) SetResourceType(v ResourceType_Trait) { + x.xxx_hidden_ResourceType = v +} + +func (x *ExternalResourceMatch) SetKey(v string) { + x.xxx_hidden_Key = v +} + +func (x *ExternalResourceMatch) SetValue(v string) { + x.xxx_hidden_Value = v +} + +type ExternalResourceMatch_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + ResourceType ResourceType_Trait + Key string + Value string +} + +func (b0 ExternalResourceMatch_builder) Build() *ExternalResourceMatch { + m0 := &ExternalResourceMatch{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_ResourceType = b.ResourceType + x.xxx_hidden_Key = b.Key + x.xxx_hidden_Value = b.Value + return m0 +} + +type ExternalResourceMatchAll struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_ResourceType ResourceType_Trait `protobuf:"varint,1,opt,name=resource_type,json=resourceType,proto3,enum=c1.connector.v2.ResourceType_Trait"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *ExternalResourceMatchAll) Reset() { + *x = ExternalResourceMatchAll{} + mi := &file_c1_connector_v2_annotation_baton_id_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *ExternalResourceMatchAll) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ExternalResourceMatchAll) ProtoMessage() {} + +func (x *ExternalResourceMatchAll) ProtoReflect() protoreflect.Message { + mi := &file_c1_connector_v2_annotation_baton_id_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) +} + +func (x *ExternalResourceMatchAll) GetResourceType() ResourceType_Trait { + if x != nil { + return x.xxx_hidden_ResourceType + } + return ResourceType_TRAIT_UNSPECIFIED +} + +func (x *ExternalResourceMatchAll) SetResourceType(v ResourceType_Trait) { + x.xxx_hidden_ResourceType = v +} + +type ExternalResourceMatchAll_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + ResourceType ResourceType_Trait +} + +func (b0 ExternalResourceMatchAll_builder) Build() *ExternalResourceMatchAll { + m0 := &ExternalResourceMatchAll{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_ResourceType = b.ResourceType + return m0 +} + +type ExternalResourceMatchID struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Id string `protobuf:"bytes,1,opt,name=id,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *ExternalResourceMatchID) Reset() { + *x = ExternalResourceMatchID{} + mi := &file_c1_connector_v2_annotation_baton_id_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *ExternalResourceMatchID) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ExternalResourceMatchID) ProtoMessage() {} + +func (x *ExternalResourceMatchID) ProtoReflect() protoreflect.Message { + mi := &file_c1_connector_v2_annotation_baton_id_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) +} + +func (x *ExternalResourceMatchID) GetId() string { + if x != nil { + return x.xxx_hidden_Id + } + return "" +} + +func (x *ExternalResourceMatchID) SetId(v string) { + x.xxx_hidden_Id = v +} + +type ExternalResourceMatchID_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Id string +} + +func (b0 ExternalResourceMatchID_builder) Build() *ExternalResourceMatchID { + m0 := &ExternalResourceMatchID{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Id = b.Id + return m0 +} + +type BatonID struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *BatonID) Reset() { + *x = BatonID{} + mi := &file_c1_connector_v2_annotation_baton_id_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *BatonID) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*BatonID) ProtoMessage() {} + +func (x *BatonID) ProtoReflect() protoreflect.Message { + mi := &file_c1_connector_v2_annotation_baton_id_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) +} + +type BatonID_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + +} + +func (b0 BatonID_builder) Build() *BatonID { + m0 := &BatonID{} + b, x := &b0, m0 + _, _ = b, x + return m0 +} + +var File_c1_connector_v2_annotation_baton_id_proto protoreflect.FileDescriptor + +const file_c1_connector_v2_annotation_baton_id_proto_rawDesc = "" + + "\n" + + ")c1/connector/v2/annotation_baton_id.proto\x12\x0fc1.connector.v2\x1a\x1ec1/connector/v2/resource.proto\"\x89\x01\n" + + "\x15ExternalResourceMatch\x12H\n" + + "\rresource_type\x18\x01 \x01(\x0e2#.c1.connector.v2.ResourceType.TraitR\fresourceType\x12\x10\n" + + "\x03key\x18\x02 \x01(\tR\x03key\x12\x14\n" + + "\x05value\x18\x03 \x01(\tR\x05value\"d\n" + + "\x18ExternalResourceMatchAll\x12H\n" + + "\rresource_type\x18\x01 \x01(\x0e2#.c1.connector.v2.ResourceType.TraitR\fresourceType\")\n" + + "\x17ExternalResourceMatchID\x12\x0e\n" + + "\x02id\x18\x01 \x01(\tR\x02id\"\t\n" + + "\aBatonIDB6Z4github.com/conductorone/baton-sdk/pb/c1/connector/v2b\x06proto3" + +var file_c1_connector_v2_annotation_baton_id_proto_msgTypes = make([]protoimpl.MessageInfo, 4) +var file_c1_connector_v2_annotation_baton_id_proto_goTypes = []any{ + (*ExternalResourceMatch)(nil), // 0: c1.connector.v2.ExternalResourceMatch + (*ExternalResourceMatchAll)(nil), // 1: c1.connector.v2.ExternalResourceMatchAll + (*ExternalResourceMatchID)(nil), // 2: c1.connector.v2.ExternalResourceMatchID + (*BatonID)(nil), // 3: c1.connector.v2.BatonID + (ResourceType_Trait)(0), // 4: c1.connector.v2.ResourceType.Trait +} +var file_c1_connector_v2_annotation_baton_id_proto_depIdxs = []int32{ + 4, // 0: c1.connector.v2.ExternalResourceMatch.resource_type:type_name -> c1.connector.v2.ResourceType.Trait + 4, // 1: c1.connector.v2.ExternalResourceMatchAll.resource_type:type_name -> c1.connector.v2.ResourceType.Trait + 2, // [2:2] is the sub-list for method output_type + 2, // [2:2] is the sub-list for method input_type + 2, // [2:2] is the sub-list for extension type_name + 2, // [2:2] is the sub-list for extension extendee + 0, // [0:2] is the sub-list for field type_name +} + +func init() { file_c1_connector_v2_annotation_baton_id_proto_init() } +func file_c1_connector_v2_annotation_baton_id_proto_init() { + if File_c1_connector_v2_annotation_baton_id_proto != nil { + return + } + file_c1_connector_v2_resource_proto_init() + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: unsafe.Slice(unsafe.StringData(file_c1_connector_v2_annotation_baton_id_proto_rawDesc), len(file_c1_connector_v2_annotation_baton_id_proto_rawDesc)), + NumEnums: 0, + NumMessages: 4, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_c1_connector_v2_annotation_baton_id_proto_goTypes, + DependencyIndexes: file_c1_connector_v2_annotation_baton_id_proto_depIdxs, + MessageInfos: file_c1_connector_v2_annotation_baton_id_proto_msgTypes, + }.Build() + File_c1_connector_v2_annotation_baton_id_proto = out.File + file_c1_connector_v2_annotation_baton_id_proto_goTypes = nil + file_c1_connector_v2_annotation_baton_id_proto_depIdxs = nil +} diff --git a/vendor/github.com/conductorone/baton-sdk/pb/c1/connector/v2/annotation_entitlement.pb.go b/vendor/github.com/conductorone/baton-sdk/pb/c1/connector/v2/annotation_entitlement.pb.go index 1abd77fb..3c218d56 100644 --- a/vendor/github.com/conductorone/baton-sdk/pb/c1/connector/v2/annotation_entitlement.pb.go +++ b/vendor/github.com/conductorone/baton-sdk/pb/c1/connector/v2/annotation_entitlement.pb.go @@ -1,9 +1,11 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.36.4 +// protoc-gen-go v1.36.10 // protoc (unknown) // source: c1/connector/v2/annotation_entitlement.proto +//go:build !protoopaque + package v2 import ( @@ -11,7 +13,6 @@ import ( protoimpl "google.golang.org/protobuf/runtime/protoimpl" structpb "google.golang.org/protobuf/types/known/structpb" reflect "reflect" - sync "sync" unsafe "unsafe" ) @@ -23,7 +24,7 @@ const ( ) type EntitlementImmutable struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` SourceId string `protobuf:"bytes,1,opt,name=source_id,json=sourceId,proto3" json:"source_id,omitempty"` Metadata *structpb.Struct `protobuf:"bytes,2,opt,name=metadata,proto3" json:"metadata,omitempty"` unknownFields protoimpl.UnknownFields @@ -55,11 +56,6 @@ func (x *EntitlementImmutable) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use EntitlementImmutable.ProtoReflect.Descriptor instead. -func (*EntitlementImmutable) Descriptor() ([]byte, []int) { - return file_c1_connector_v2_annotation_entitlement_proto_rawDescGZIP(), []int{0} -} - func (x *EntitlementImmutable) GetSourceId() string { if x != nil { return x.SourceId @@ -74,40 +70,50 @@ func (x *EntitlementImmutable) GetMetadata() *structpb.Struct { return nil } -var File_c1_connector_v2_annotation_entitlement_proto protoreflect.FileDescriptor +func (x *EntitlementImmutable) SetSourceId(v string) { + x.SourceId = v +} -var file_c1_connector_v2_annotation_entitlement_proto_rawDesc = string([]byte{ - 0x0a, 0x2c, 0x63, 0x31, 0x2f, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x2f, 0x76, - 0x32, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x65, 0x6e, 0x74, - 0x69, 0x74, 0x6c, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0f, - 0x63, 0x31, 0x2e, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x2e, 0x76, 0x32, 0x1a, - 0x1c, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, - 0x2f, 0x73, 0x74, 0x72, 0x75, 0x63, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x68, 0x0a, - 0x14, 0x45, 0x6e, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x49, 0x6d, 0x6d, 0x75, - 0x74, 0x61, 0x62, 0x6c, 0x65, 0x12, 0x1b, 0x0a, 0x09, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, - 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, - 0x49, 0x64, 0x12, 0x33, 0x0a, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x18, 0x02, - 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, - 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x53, 0x74, 0x72, 0x75, 0x63, 0x74, 0x52, 0x08, 0x6d, - 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x42, 0x36, 0x5a, 0x34, 0x67, 0x69, 0x74, 0x68, 0x75, - 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x63, 0x6f, 0x6e, 0x64, 0x75, 0x63, 0x74, 0x6f, 0x72, 0x6f, - 0x6e, 0x65, 0x2f, 0x62, 0x61, 0x74, 0x6f, 0x6e, 0x2d, 0x73, 0x64, 0x6b, 0x2f, 0x70, 0x62, 0x2f, - 0x63, 0x31, 0x2f, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x2f, 0x76, 0x32, 0x62, - 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, -}) - -var ( - file_c1_connector_v2_annotation_entitlement_proto_rawDescOnce sync.Once - file_c1_connector_v2_annotation_entitlement_proto_rawDescData []byte -) +func (x *EntitlementImmutable) SetMetadata(v *structpb.Struct) { + x.Metadata = v +} + +func (x *EntitlementImmutable) HasMetadata() bool { + if x == nil { + return false + } + return x.Metadata != nil +} -func file_c1_connector_v2_annotation_entitlement_proto_rawDescGZIP() []byte { - file_c1_connector_v2_annotation_entitlement_proto_rawDescOnce.Do(func() { - file_c1_connector_v2_annotation_entitlement_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_c1_connector_v2_annotation_entitlement_proto_rawDesc), len(file_c1_connector_v2_annotation_entitlement_proto_rawDesc))) - }) - return file_c1_connector_v2_annotation_entitlement_proto_rawDescData +func (x *EntitlementImmutable) ClearMetadata() { + x.Metadata = nil } +type EntitlementImmutable_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + SourceId string + Metadata *structpb.Struct +} + +func (b0 EntitlementImmutable_builder) Build() *EntitlementImmutable { + m0 := &EntitlementImmutable{} + b, x := &b0, m0 + _, _ = b, x + x.SourceId = b.SourceId + x.Metadata = b.Metadata + return m0 +} + +var File_c1_connector_v2_annotation_entitlement_proto protoreflect.FileDescriptor + +const file_c1_connector_v2_annotation_entitlement_proto_rawDesc = "" + + "\n" + + ",c1/connector/v2/annotation_entitlement.proto\x12\x0fc1.connector.v2\x1a\x1cgoogle/protobuf/struct.proto\"h\n" + + "\x14EntitlementImmutable\x12\x1b\n" + + "\tsource_id\x18\x01 \x01(\tR\bsourceId\x123\n" + + "\bmetadata\x18\x02 \x01(\v2\x17.google.protobuf.StructR\bmetadataB6Z4github.com/conductorone/baton-sdk/pb/c1/connector/v2b\x06proto3" + var file_c1_connector_v2_annotation_entitlement_proto_msgTypes = make([]protoimpl.MessageInfo, 1) var file_c1_connector_v2_annotation_entitlement_proto_goTypes = []any{ (*EntitlementImmutable)(nil), // 0: c1.connector.v2.EntitlementImmutable diff --git a/vendor/github.com/conductorone/baton-sdk/pb/c1/connector/v2/annotation_entitlement_protoopaque.pb.go b/vendor/github.com/conductorone/baton-sdk/pb/c1/connector/v2/annotation_entitlement_protoopaque.pb.go new file mode 100644 index 00000000..9baa65cf --- /dev/null +++ b/vendor/github.com/conductorone/baton-sdk/pb/c1/connector/v2/annotation_entitlement_protoopaque.pb.go @@ -0,0 +1,153 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.36.10 +// protoc (unknown) +// source: c1/connector/v2/annotation_entitlement.proto + +//go:build protoopaque + +package v2 + +import ( + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + structpb "google.golang.org/protobuf/types/known/structpb" + reflect "reflect" + 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 EntitlementImmutable struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_SourceId string `protobuf:"bytes,1,opt,name=source_id,json=sourceId,proto3"` + xxx_hidden_Metadata *structpb.Struct `protobuf:"bytes,2,opt,name=metadata,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *EntitlementImmutable) Reset() { + *x = EntitlementImmutable{} + mi := &file_c1_connector_v2_annotation_entitlement_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *EntitlementImmutable) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*EntitlementImmutable) ProtoMessage() {} + +func (x *EntitlementImmutable) ProtoReflect() protoreflect.Message { + mi := &file_c1_connector_v2_annotation_entitlement_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) +} + +func (x *EntitlementImmutable) GetSourceId() string { + if x != nil { + return x.xxx_hidden_SourceId + } + return "" +} + +func (x *EntitlementImmutable) GetMetadata() *structpb.Struct { + if x != nil { + return x.xxx_hidden_Metadata + } + return nil +} + +func (x *EntitlementImmutable) SetSourceId(v string) { + x.xxx_hidden_SourceId = v +} + +func (x *EntitlementImmutable) SetMetadata(v *structpb.Struct) { + x.xxx_hidden_Metadata = v +} + +func (x *EntitlementImmutable) HasMetadata() bool { + if x == nil { + return false + } + return x.xxx_hidden_Metadata != nil +} + +func (x *EntitlementImmutable) ClearMetadata() { + x.xxx_hidden_Metadata = nil +} + +type EntitlementImmutable_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + SourceId string + Metadata *structpb.Struct +} + +func (b0 EntitlementImmutable_builder) Build() *EntitlementImmutable { + m0 := &EntitlementImmutable{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_SourceId = b.SourceId + x.xxx_hidden_Metadata = b.Metadata + return m0 +} + +var File_c1_connector_v2_annotation_entitlement_proto protoreflect.FileDescriptor + +const file_c1_connector_v2_annotation_entitlement_proto_rawDesc = "" + + "\n" + + ",c1/connector/v2/annotation_entitlement.proto\x12\x0fc1.connector.v2\x1a\x1cgoogle/protobuf/struct.proto\"h\n" + + "\x14EntitlementImmutable\x12\x1b\n" + + "\tsource_id\x18\x01 \x01(\tR\bsourceId\x123\n" + + "\bmetadata\x18\x02 \x01(\v2\x17.google.protobuf.StructR\bmetadataB6Z4github.com/conductorone/baton-sdk/pb/c1/connector/v2b\x06proto3" + +var file_c1_connector_v2_annotation_entitlement_proto_msgTypes = make([]protoimpl.MessageInfo, 1) +var file_c1_connector_v2_annotation_entitlement_proto_goTypes = []any{ + (*EntitlementImmutable)(nil), // 0: c1.connector.v2.EntitlementImmutable + (*structpb.Struct)(nil), // 1: google.protobuf.Struct +} +var file_c1_connector_v2_annotation_entitlement_proto_depIdxs = []int32{ + 1, // 0: c1.connector.v2.EntitlementImmutable.metadata:type_name -> google.protobuf.Struct + 1, // [1:1] is the sub-list for method output_type + 1, // [1:1] is the sub-list for method input_type + 1, // [1:1] is the sub-list for extension type_name + 1, // [1:1] is the sub-list for extension extendee + 0, // [0:1] is the sub-list for field type_name +} + +func init() { file_c1_connector_v2_annotation_entitlement_proto_init() } +func file_c1_connector_v2_annotation_entitlement_proto_init() { + if File_c1_connector_v2_annotation_entitlement_proto != nil { + return + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: unsafe.Slice(unsafe.StringData(file_c1_connector_v2_annotation_entitlement_proto_rawDesc), len(file_c1_connector_v2_annotation_entitlement_proto_rawDesc)), + NumEnums: 0, + NumMessages: 1, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_c1_connector_v2_annotation_entitlement_proto_goTypes, + DependencyIndexes: file_c1_connector_v2_annotation_entitlement_proto_depIdxs, + MessageInfos: file_c1_connector_v2_annotation_entitlement_proto_msgTypes, + }.Build() + File_c1_connector_v2_annotation_entitlement_proto = out.File + file_c1_connector_v2_annotation_entitlement_proto_goTypes = nil + file_c1_connector_v2_annotation_entitlement_proto_depIdxs = nil +} diff --git a/vendor/github.com/conductorone/baton-sdk/pb/c1/connector/v2/annotation_etag.pb.go b/vendor/github.com/conductorone/baton-sdk/pb/c1/connector/v2/annotation_etag.pb.go index 939bedd9..a106ae0a 100644 --- a/vendor/github.com/conductorone/baton-sdk/pb/c1/connector/v2/annotation_etag.pb.go +++ b/vendor/github.com/conductorone/baton-sdk/pb/c1/connector/v2/annotation_etag.pb.go @@ -1,9 +1,11 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.36.4 +// protoc-gen-go v1.36.10 // protoc (unknown) // source: c1/connector/v2/annotation_etag.proto +//go:build !protoopaque + package v2 import ( @@ -11,7 +13,6 @@ import ( protoimpl "google.golang.org/protobuf/runtime/protoimpl" structpb "google.golang.org/protobuf/types/known/structpb" reflect "reflect" - sync "sync" unsafe "unsafe" ) @@ -23,7 +24,7 @@ const ( ) type ETag struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` Value string `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"` EntitlementId string `protobuf:"bytes,2,opt,name=entitlement_id,json=entitlementId,proto3" json:"entitlement_id,omitempty"` unknownFields protoimpl.UnknownFields @@ -55,11 +56,6 @@ func (x *ETag) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use ETag.ProtoReflect.Descriptor instead. -func (*ETag) Descriptor() ([]byte, []int) { - return file_c1_connector_v2_annotation_etag_proto_rawDescGZIP(), []int{0} -} - func (x *ETag) GetValue() string { if x != nil { return x.Value @@ -74,8 +70,32 @@ func (x *ETag) GetEntitlementId() string { return "" } +func (x *ETag) SetValue(v string) { + x.Value = v +} + +func (x *ETag) SetEntitlementId(v string) { + x.EntitlementId = v +} + +type ETag_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Value string + EntitlementId string +} + +func (b0 ETag_builder) Build() *ETag { + m0 := &ETag{} + b, x := &b0, m0 + _, _ = b, x + x.Value = b.Value + x.EntitlementId = b.EntitlementId + return m0 +} + type ETagMetadata struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` Metadata *structpb.Struct `protobuf:"bytes,1,opt,name=metadata,proto3" json:"metadata,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache @@ -106,11 +126,6 @@ func (x *ETagMetadata) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use ETagMetadata.ProtoReflect.Descriptor instead. -func (*ETagMetadata) Descriptor() ([]byte, []int) { - return file_c1_connector_v2_annotation_etag_proto_rawDescGZIP(), []int{1} -} - func (x *ETagMetadata) GetMetadata() *structpb.Struct { if x != nil { return x.Metadata @@ -118,8 +133,37 @@ func (x *ETagMetadata) GetMetadata() *structpb.Struct { return nil } +func (x *ETagMetadata) SetMetadata(v *structpb.Struct) { + x.Metadata = v +} + +func (x *ETagMetadata) HasMetadata() bool { + if x == nil { + return false + } + return x.Metadata != nil +} + +func (x *ETagMetadata) ClearMetadata() { + x.Metadata = nil +} + +type ETagMetadata_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Metadata *structpb.Struct +} + +func (b0 ETagMetadata_builder) Build() *ETagMetadata { + m0 := &ETagMetadata{} + b, x := &b0, m0 + _, _ = b, x + x.Metadata = b.Metadata + return m0 +} + type ETagMatch struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` EntitlementId string `protobuf:"bytes,1,opt,name=entitlement_id,json=entitlementId,proto3" json:"entitlement_id,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache @@ -150,11 +194,6 @@ func (x *ETagMatch) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use ETagMatch.ProtoReflect.Descriptor instead. -func (*ETagMatch) Descriptor() ([]byte, []int) { - return file_c1_connector_v2_annotation_etag_proto_rawDescGZIP(), []int{2} -} - func (x *ETagMatch) GetEntitlementId() string { if x != nil { return x.EntitlementId @@ -162,45 +201,37 @@ func (x *ETagMatch) GetEntitlementId() string { return "" } -var File_c1_connector_v2_annotation_etag_proto protoreflect.FileDescriptor +func (x *ETagMatch) SetEntitlementId(v string) { + x.EntitlementId = v +} -var file_c1_connector_v2_annotation_etag_proto_rawDesc = string([]byte{ - 0x0a, 0x25, 0x63, 0x31, 0x2f, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x2f, 0x76, - 0x32, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x65, 0x74, 0x61, - 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0f, 0x63, 0x31, 0x2e, 0x63, 0x6f, 0x6e, 0x6e, - 0x65, 0x63, 0x74, 0x6f, 0x72, 0x2e, 0x76, 0x32, 0x1a, 0x1c, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, - 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x73, 0x74, 0x72, 0x75, 0x63, 0x74, - 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x43, 0x0a, 0x04, 0x45, 0x54, 0x61, 0x67, 0x12, 0x14, - 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, - 0x61, 0x6c, 0x75, 0x65, 0x12, 0x25, 0x0a, 0x0e, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x6d, - 0x65, 0x6e, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x65, 0x6e, - 0x74, 0x69, 0x74, 0x6c, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x49, 0x64, 0x22, 0x43, 0x0a, 0x0c, 0x45, - 0x54, 0x61, 0x67, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0x33, 0x0a, 0x08, 0x6d, - 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, - 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, - 0x53, 0x74, 0x72, 0x75, 0x63, 0x74, 0x52, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, - 0x22, 0x32, 0x0a, 0x09, 0x45, 0x54, 0x61, 0x67, 0x4d, 0x61, 0x74, 0x63, 0x68, 0x12, 0x25, 0x0a, - 0x0e, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x5f, 0x69, 0x64, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x6d, 0x65, - 0x6e, 0x74, 0x49, 0x64, 0x42, 0x36, 0x5a, 0x34, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, - 0x6f, 0x6d, 0x2f, 0x63, 0x6f, 0x6e, 0x64, 0x75, 0x63, 0x74, 0x6f, 0x72, 0x6f, 0x6e, 0x65, 0x2f, - 0x62, 0x61, 0x74, 0x6f, 0x6e, 0x2d, 0x73, 0x64, 0x6b, 0x2f, 0x70, 0x62, 0x2f, 0x63, 0x31, 0x2f, - 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x2f, 0x76, 0x32, 0x62, 0x06, 0x70, 0x72, - 0x6f, 0x74, 0x6f, 0x33, -}) - -var ( - file_c1_connector_v2_annotation_etag_proto_rawDescOnce sync.Once - file_c1_connector_v2_annotation_etag_proto_rawDescData []byte -) +type ETagMatch_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. -func file_c1_connector_v2_annotation_etag_proto_rawDescGZIP() []byte { - file_c1_connector_v2_annotation_etag_proto_rawDescOnce.Do(func() { - file_c1_connector_v2_annotation_etag_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_c1_connector_v2_annotation_etag_proto_rawDesc), len(file_c1_connector_v2_annotation_etag_proto_rawDesc))) - }) - return file_c1_connector_v2_annotation_etag_proto_rawDescData + EntitlementId string } +func (b0 ETagMatch_builder) Build() *ETagMatch { + m0 := &ETagMatch{} + b, x := &b0, m0 + _, _ = b, x + x.EntitlementId = b.EntitlementId + return m0 +} + +var File_c1_connector_v2_annotation_etag_proto protoreflect.FileDescriptor + +const file_c1_connector_v2_annotation_etag_proto_rawDesc = "" + + "\n" + + "%c1/connector/v2/annotation_etag.proto\x12\x0fc1.connector.v2\x1a\x1cgoogle/protobuf/struct.proto\"C\n" + + "\x04ETag\x12\x14\n" + + "\x05value\x18\x01 \x01(\tR\x05value\x12%\n" + + "\x0eentitlement_id\x18\x02 \x01(\tR\rentitlementId\"C\n" + + "\fETagMetadata\x123\n" + + "\bmetadata\x18\x01 \x01(\v2\x17.google.protobuf.StructR\bmetadata\"2\n" + + "\tETagMatch\x12%\n" + + "\x0eentitlement_id\x18\x01 \x01(\tR\rentitlementIdB6Z4github.com/conductorone/baton-sdk/pb/c1/connector/v2b\x06proto3" + var file_c1_connector_v2_annotation_etag_proto_msgTypes = make([]protoimpl.MessageInfo, 3) var file_c1_connector_v2_annotation_etag_proto_goTypes = []any{ (*ETag)(nil), // 0: c1.connector.v2.ETag diff --git a/vendor/github.com/conductorone/baton-sdk/pb/c1/connector/v2/annotation_etag_protoopaque.pb.go b/vendor/github.com/conductorone/baton-sdk/pb/c1/connector/v2/annotation_etag_protoopaque.pb.go new file mode 100644 index 00000000..09c9512b --- /dev/null +++ b/vendor/github.com/conductorone/baton-sdk/pb/c1/connector/v2/annotation_etag_protoopaque.pb.go @@ -0,0 +1,273 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.36.10 +// protoc (unknown) +// source: c1/connector/v2/annotation_etag.proto + +//go:build protoopaque + +package v2 + +import ( + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + structpb "google.golang.org/protobuf/types/known/structpb" + reflect "reflect" + 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 ETag struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Value string `protobuf:"bytes,1,opt,name=value,proto3"` + xxx_hidden_EntitlementId string `protobuf:"bytes,2,opt,name=entitlement_id,json=entitlementId,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *ETag) Reset() { + *x = ETag{} + mi := &file_c1_connector_v2_annotation_etag_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *ETag) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ETag) ProtoMessage() {} + +func (x *ETag) ProtoReflect() protoreflect.Message { + mi := &file_c1_connector_v2_annotation_etag_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) +} + +func (x *ETag) GetValue() string { + if x != nil { + return x.xxx_hidden_Value + } + return "" +} + +func (x *ETag) GetEntitlementId() string { + if x != nil { + return x.xxx_hidden_EntitlementId + } + return "" +} + +func (x *ETag) SetValue(v string) { + x.xxx_hidden_Value = v +} + +func (x *ETag) SetEntitlementId(v string) { + x.xxx_hidden_EntitlementId = v +} + +type ETag_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Value string + EntitlementId string +} + +func (b0 ETag_builder) Build() *ETag { + m0 := &ETag{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Value = b.Value + x.xxx_hidden_EntitlementId = b.EntitlementId + return m0 +} + +type ETagMetadata struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Metadata *structpb.Struct `protobuf:"bytes,1,opt,name=metadata,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *ETagMetadata) Reset() { + *x = ETagMetadata{} + mi := &file_c1_connector_v2_annotation_etag_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *ETagMetadata) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ETagMetadata) ProtoMessage() {} + +func (x *ETagMetadata) ProtoReflect() protoreflect.Message { + mi := &file_c1_connector_v2_annotation_etag_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) +} + +func (x *ETagMetadata) GetMetadata() *structpb.Struct { + if x != nil { + return x.xxx_hidden_Metadata + } + return nil +} + +func (x *ETagMetadata) SetMetadata(v *structpb.Struct) { + x.xxx_hidden_Metadata = v +} + +func (x *ETagMetadata) HasMetadata() bool { + if x == nil { + return false + } + return x.xxx_hidden_Metadata != nil +} + +func (x *ETagMetadata) ClearMetadata() { + x.xxx_hidden_Metadata = nil +} + +type ETagMetadata_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Metadata *structpb.Struct +} + +func (b0 ETagMetadata_builder) Build() *ETagMetadata { + m0 := &ETagMetadata{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Metadata = b.Metadata + return m0 +} + +type ETagMatch struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_EntitlementId string `protobuf:"bytes,1,opt,name=entitlement_id,json=entitlementId,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *ETagMatch) Reset() { + *x = ETagMatch{} + mi := &file_c1_connector_v2_annotation_etag_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *ETagMatch) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ETagMatch) ProtoMessage() {} + +func (x *ETagMatch) ProtoReflect() protoreflect.Message { + mi := &file_c1_connector_v2_annotation_etag_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) +} + +func (x *ETagMatch) GetEntitlementId() string { + if x != nil { + return x.xxx_hidden_EntitlementId + } + return "" +} + +func (x *ETagMatch) SetEntitlementId(v string) { + x.xxx_hidden_EntitlementId = v +} + +type ETagMatch_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + EntitlementId string +} + +func (b0 ETagMatch_builder) Build() *ETagMatch { + m0 := &ETagMatch{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_EntitlementId = b.EntitlementId + return m0 +} + +var File_c1_connector_v2_annotation_etag_proto protoreflect.FileDescriptor + +const file_c1_connector_v2_annotation_etag_proto_rawDesc = "" + + "\n" + + "%c1/connector/v2/annotation_etag.proto\x12\x0fc1.connector.v2\x1a\x1cgoogle/protobuf/struct.proto\"C\n" + + "\x04ETag\x12\x14\n" + + "\x05value\x18\x01 \x01(\tR\x05value\x12%\n" + + "\x0eentitlement_id\x18\x02 \x01(\tR\rentitlementId\"C\n" + + "\fETagMetadata\x123\n" + + "\bmetadata\x18\x01 \x01(\v2\x17.google.protobuf.StructR\bmetadata\"2\n" + + "\tETagMatch\x12%\n" + + "\x0eentitlement_id\x18\x01 \x01(\tR\rentitlementIdB6Z4github.com/conductorone/baton-sdk/pb/c1/connector/v2b\x06proto3" + +var file_c1_connector_v2_annotation_etag_proto_msgTypes = make([]protoimpl.MessageInfo, 3) +var file_c1_connector_v2_annotation_etag_proto_goTypes = []any{ + (*ETag)(nil), // 0: c1.connector.v2.ETag + (*ETagMetadata)(nil), // 1: c1.connector.v2.ETagMetadata + (*ETagMatch)(nil), // 2: c1.connector.v2.ETagMatch + (*structpb.Struct)(nil), // 3: google.protobuf.Struct +} +var file_c1_connector_v2_annotation_etag_proto_depIdxs = []int32{ + 3, // 0: c1.connector.v2.ETagMetadata.metadata:type_name -> google.protobuf.Struct + 1, // [1:1] is the sub-list for method output_type + 1, // [1:1] is the sub-list for method input_type + 1, // [1:1] is the sub-list for extension type_name + 1, // [1:1] is the sub-list for extension extendee + 0, // [0:1] is the sub-list for field type_name +} + +func init() { file_c1_connector_v2_annotation_etag_proto_init() } +func file_c1_connector_v2_annotation_etag_proto_init() { + if File_c1_connector_v2_annotation_etag_proto != nil { + return + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: unsafe.Slice(unsafe.StringData(file_c1_connector_v2_annotation_etag_proto_rawDesc), len(file_c1_connector_v2_annotation_etag_proto_rawDesc)), + NumEnums: 0, + NumMessages: 3, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_c1_connector_v2_annotation_etag_proto_goTypes, + DependencyIndexes: file_c1_connector_v2_annotation_etag_proto_depIdxs, + MessageInfos: file_c1_connector_v2_annotation_etag_proto_msgTypes, + }.Build() + File_c1_connector_v2_annotation_etag_proto = out.File + file_c1_connector_v2_annotation_etag_proto_goTypes = nil + file_c1_connector_v2_annotation_etag_proto_depIdxs = nil +} diff --git a/vendor/github.com/conductorone/baton-sdk/pb/c1/connector/v2/annotation_external_link.pb.go b/vendor/github.com/conductorone/baton-sdk/pb/c1/connector/v2/annotation_external_link.pb.go index 65c95579..92a69bb8 100644 --- a/vendor/github.com/conductorone/baton-sdk/pb/c1/connector/v2/annotation_external_link.pb.go +++ b/vendor/github.com/conductorone/baton-sdk/pb/c1/connector/v2/annotation_external_link.pb.go @@ -1,9 +1,11 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.36.4 +// protoc-gen-go v1.36.10 // protoc (unknown) // source: c1/connector/v2/annotation_external_link.proto +//go:build !protoopaque + package v2 import ( @@ -11,7 +13,6 @@ import ( protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" reflect "reflect" - sync "sync" unsafe "unsafe" ) @@ -23,7 +24,7 @@ const ( ) type ExternalLink struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` Url string `protobuf:"bytes,1,opt,name=url,proto3" json:"url,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache @@ -54,11 +55,6 @@ func (x *ExternalLink) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use ExternalLink.ProtoReflect.Descriptor instead. -func (*ExternalLink) Descriptor() ([]byte, []int) { - return file_c1_connector_v2_annotation_external_link_proto_rawDescGZIP(), []int{0} -} - func (x *ExternalLink) GetUrl() string { if x != nil { return x.Url @@ -66,37 +62,32 @@ func (x *ExternalLink) GetUrl() string { return "" } -var File_c1_connector_v2_annotation_external_link_proto protoreflect.FileDescriptor +func (x *ExternalLink) SetUrl(v string) { + x.Url = v +} -var file_c1_connector_v2_annotation_external_link_proto_rawDesc = string([]byte{ - 0x0a, 0x2e, 0x63, 0x31, 0x2f, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x2f, 0x76, - 0x32, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x65, 0x78, 0x74, - 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x5f, 0x6c, 0x69, 0x6e, 0x6b, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, - 0x12, 0x0f, 0x63, 0x31, 0x2e, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x2e, 0x76, - 0x32, 0x1a, 0x17, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x2f, 0x76, 0x61, 0x6c, 0x69, - 0x64, 0x61, 0x74, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x3c, 0x0a, 0x0c, 0x45, 0x78, - 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x4c, 0x69, 0x6e, 0x6b, 0x12, 0x2c, 0x0a, 0x03, 0x75, 0x72, - 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x1a, 0xfa, 0x42, 0x17, 0x72, 0x15, 0x20, 0x01, - 0x28, 0x80, 0x08, 0x3a, 0x08, 0x68, 0x74, 0x74, 0x70, 0x73, 0x3a, 0x2f, 0x2f, 0xd0, 0x01, 0x01, - 0x88, 0x01, 0x01, 0x52, 0x03, 0x75, 0x72, 0x6c, 0x42, 0x36, 0x5a, 0x34, 0x67, 0x69, 0x74, 0x68, - 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x63, 0x6f, 0x6e, 0x64, 0x75, 0x63, 0x74, 0x6f, 0x72, - 0x6f, 0x6e, 0x65, 0x2f, 0x62, 0x61, 0x74, 0x6f, 0x6e, 0x2d, 0x73, 0x64, 0x6b, 0x2f, 0x70, 0x62, - 0x2f, 0x63, 0x31, 0x2f, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x2f, 0x76, 0x32, - 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, -}) - -var ( - file_c1_connector_v2_annotation_external_link_proto_rawDescOnce sync.Once - file_c1_connector_v2_annotation_external_link_proto_rawDescData []byte -) +type ExternalLink_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. -func file_c1_connector_v2_annotation_external_link_proto_rawDescGZIP() []byte { - file_c1_connector_v2_annotation_external_link_proto_rawDescOnce.Do(func() { - file_c1_connector_v2_annotation_external_link_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_c1_connector_v2_annotation_external_link_proto_rawDesc), len(file_c1_connector_v2_annotation_external_link_proto_rawDesc))) - }) - return file_c1_connector_v2_annotation_external_link_proto_rawDescData + Url string } +func (b0 ExternalLink_builder) Build() *ExternalLink { + m0 := &ExternalLink{} + b, x := &b0, m0 + _, _ = b, x + x.Url = b.Url + return m0 +} + +var File_c1_connector_v2_annotation_external_link_proto protoreflect.FileDescriptor + +const file_c1_connector_v2_annotation_external_link_proto_rawDesc = "" + + "\n" + + ".c1/connector/v2/annotation_external_link.proto\x12\x0fc1.connector.v2\x1a\x17validate/validate.proto\"<\n" + + "\fExternalLink\x12,\n" + + "\x03url\x18\x01 \x01(\tB\x1a\xfaB\x17r\x15 \x01(\x80\b:\bhttps://\xd0\x01\x01\x88\x01\x01R\x03urlB6Z4github.com/conductorone/baton-sdk/pb/c1/connector/v2b\x06proto3" + var file_c1_connector_v2_annotation_external_link_proto_msgTypes = make([]protoimpl.MessageInfo, 1) var file_c1_connector_v2_annotation_external_link_proto_goTypes = []any{ (*ExternalLink)(nil), // 0: c1.connector.v2.ExternalLink diff --git a/vendor/github.com/conductorone/baton-sdk/pb/c1/connector/v2/annotation_external_link_protoopaque.pb.go b/vendor/github.com/conductorone/baton-sdk/pb/c1/connector/v2/annotation_external_link_protoopaque.pb.go new file mode 100644 index 00000000..f04710cc --- /dev/null +++ b/vendor/github.com/conductorone/baton-sdk/pb/c1/connector/v2/annotation_external_link_protoopaque.pb.go @@ -0,0 +1,125 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.36.10 +// protoc (unknown) +// source: c1/connector/v2/annotation_external_link.proto + +//go:build protoopaque + +package v2 + +import ( + _ "github.com/envoyproxy/protoc-gen-validate/validate" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + reflect "reflect" + 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 ExternalLink struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Url string `protobuf:"bytes,1,opt,name=url,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *ExternalLink) Reset() { + *x = ExternalLink{} + mi := &file_c1_connector_v2_annotation_external_link_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *ExternalLink) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ExternalLink) ProtoMessage() {} + +func (x *ExternalLink) ProtoReflect() protoreflect.Message { + mi := &file_c1_connector_v2_annotation_external_link_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) +} + +func (x *ExternalLink) GetUrl() string { + if x != nil { + return x.xxx_hidden_Url + } + return "" +} + +func (x *ExternalLink) SetUrl(v string) { + x.xxx_hidden_Url = v +} + +type ExternalLink_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Url string +} + +func (b0 ExternalLink_builder) Build() *ExternalLink { + m0 := &ExternalLink{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Url = b.Url + return m0 +} + +var File_c1_connector_v2_annotation_external_link_proto protoreflect.FileDescriptor + +const file_c1_connector_v2_annotation_external_link_proto_rawDesc = "" + + "\n" + + ".c1/connector/v2/annotation_external_link.proto\x12\x0fc1.connector.v2\x1a\x17validate/validate.proto\"<\n" + + "\fExternalLink\x12,\n" + + "\x03url\x18\x01 \x01(\tB\x1a\xfaB\x17r\x15 \x01(\x80\b:\bhttps://\xd0\x01\x01\x88\x01\x01R\x03urlB6Z4github.com/conductorone/baton-sdk/pb/c1/connector/v2b\x06proto3" + +var file_c1_connector_v2_annotation_external_link_proto_msgTypes = make([]protoimpl.MessageInfo, 1) +var file_c1_connector_v2_annotation_external_link_proto_goTypes = []any{ + (*ExternalLink)(nil), // 0: c1.connector.v2.ExternalLink +} +var file_c1_connector_v2_annotation_external_link_proto_depIdxs = []int32{ + 0, // [0:0] is the sub-list for method output_type + 0, // [0:0] 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_c1_connector_v2_annotation_external_link_proto_init() } +func file_c1_connector_v2_annotation_external_link_proto_init() { + if File_c1_connector_v2_annotation_external_link_proto != nil { + return + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: unsafe.Slice(unsafe.StringData(file_c1_connector_v2_annotation_external_link_proto_rawDesc), len(file_c1_connector_v2_annotation_external_link_proto_rawDesc)), + NumEnums: 0, + NumMessages: 1, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_c1_connector_v2_annotation_external_link_proto_goTypes, + DependencyIndexes: file_c1_connector_v2_annotation_external_link_proto_depIdxs, + MessageInfos: file_c1_connector_v2_annotation_external_link_proto_msgTypes, + }.Build() + File_c1_connector_v2_annotation_external_link_proto = out.File + file_c1_connector_v2_annotation_external_link_proto_goTypes = nil + file_c1_connector_v2_annotation_external_link_proto_depIdxs = nil +} diff --git a/vendor/github.com/conductorone/baton-sdk/pb/c1/connector/v2/annotation_external_ticket.pb.go b/vendor/github.com/conductorone/baton-sdk/pb/c1/connector/v2/annotation_external_ticket.pb.go index 2803d103..61f83574 100644 --- a/vendor/github.com/conductorone/baton-sdk/pb/c1/connector/v2/annotation_external_ticket.pb.go +++ b/vendor/github.com/conductorone/baton-sdk/pb/c1/connector/v2/annotation_external_ticket.pb.go @@ -1,16 +1,17 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.36.4 +// protoc-gen-go v1.36.10 // protoc (unknown) // source: c1/connector/v2/annotation_external_ticket.proto +//go:build !protoopaque + package v2 import ( protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" reflect "reflect" - sync "sync" unsafe "unsafe" ) @@ -22,7 +23,7 @@ const ( ) type ExternalTicketSettings struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` Enabled bool `protobuf:"varint,1,opt,name=enabled,proto3" json:"enabled,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache @@ -53,11 +54,6 @@ func (x *ExternalTicketSettings) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use ExternalTicketSettings.ProtoReflect.Descriptor instead. -func (*ExternalTicketSettings) Descriptor() ([]byte, []int) { - return file_c1_connector_v2_annotation_external_ticket_proto_rawDescGZIP(), []int{0} -} - func (x *ExternalTicketSettings) GetEnabled() bool { if x != nil { return x.Enabled @@ -65,8 +61,26 @@ func (x *ExternalTicketSettings) GetEnabled() bool { return false } +func (x *ExternalTicketSettings) SetEnabled(v bool) { + x.Enabled = v +} + +type ExternalTicketSettings_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Enabled bool +} + +func (b0 ExternalTicketSettings_builder) Build() *ExternalTicketSettings { + m0 := &ExternalTicketSettings{} + b, x := &b0, m0 + _, _ = b, x + x.Enabled = b.Enabled + return m0 +} + type ExternalTicketRef struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` ExternalTicketProvisionerConfigId string `protobuf:"bytes,2,opt,name=external_ticket_provisioner_config_id,json=externalTicketProvisionerConfigId,proto3" json:"external_ticket_provisioner_config_id,omitempty"` unknownFields protoimpl.UnknownFields @@ -98,11 +112,6 @@ func (x *ExternalTicketRef) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use ExternalTicketRef.ProtoReflect.Descriptor instead. -func (*ExternalTicketRef) Descriptor() ([]byte, []int) { - return file_c1_connector_v2_annotation_external_ticket_proto_rawDescGZIP(), []int{1} -} - func (x *ExternalTicketRef) GetId() string { if x != nil { return x.Id @@ -117,42 +126,41 @@ func (x *ExternalTicketRef) GetExternalTicketProvisionerConfigId() string { return "" } -var File_c1_connector_v2_annotation_external_ticket_proto protoreflect.FileDescriptor +func (x *ExternalTicketRef) SetId(v string) { + x.Id = v +} -var file_c1_connector_v2_annotation_external_ticket_proto_rawDesc = string([]byte{ - 0x0a, 0x30, 0x63, 0x31, 0x2f, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x2f, 0x76, - 0x32, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x65, 0x78, 0x74, - 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x5f, 0x74, 0x69, 0x63, 0x6b, 0x65, 0x74, 0x2e, 0x70, 0x72, 0x6f, - 0x74, 0x6f, 0x12, 0x0f, 0x63, 0x31, 0x2e, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, - 0x2e, 0x76, 0x32, 0x22, 0x32, 0x0a, 0x16, 0x45, 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x54, - 0x69, 0x63, 0x6b, 0x65, 0x74, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x12, 0x18, 0x0a, - 0x07, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x07, - 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x22, 0x75, 0x0a, 0x11, 0x45, 0x78, 0x74, 0x65, 0x72, - 0x6e, 0x61, 0x6c, 0x54, 0x69, 0x63, 0x6b, 0x65, 0x74, 0x52, 0x65, 0x66, 0x12, 0x0e, 0x0a, 0x02, - 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x50, 0x0a, 0x25, - 0x65, 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x5f, 0x74, 0x69, 0x63, 0x6b, 0x65, 0x74, 0x5f, - 0x70, 0x72, 0x6f, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x65, 0x72, 0x5f, 0x63, 0x6f, 0x6e, 0x66, - 0x69, 0x67, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x21, 0x65, 0x78, 0x74, - 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x54, 0x69, 0x63, 0x6b, 0x65, 0x74, 0x50, 0x72, 0x6f, 0x76, 0x69, - 0x73, 0x69, 0x6f, 0x6e, 0x65, 0x72, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x49, 0x64, 0x42, 0x36, - 0x5a, 0x34, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x63, 0x6f, 0x6e, - 0x64, 0x75, 0x63, 0x74, 0x6f, 0x72, 0x6f, 0x6e, 0x65, 0x2f, 0x62, 0x61, 0x74, 0x6f, 0x6e, 0x2d, - 0x73, 0x64, 0x6b, 0x2f, 0x70, 0x62, 0x2f, 0x63, 0x31, 0x2f, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, - 0x74, 0x6f, 0x72, 0x2f, 0x76, 0x32, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, -}) - -var ( - file_c1_connector_v2_annotation_external_ticket_proto_rawDescOnce sync.Once - file_c1_connector_v2_annotation_external_ticket_proto_rawDescData []byte -) +func (x *ExternalTicketRef) SetExternalTicketProvisionerConfigId(v string) { + x.ExternalTicketProvisionerConfigId = v +} + +type ExternalTicketRef_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. -func file_c1_connector_v2_annotation_external_ticket_proto_rawDescGZIP() []byte { - file_c1_connector_v2_annotation_external_ticket_proto_rawDescOnce.Do(func() { - file_c1_connector_v2_annotation_external_ticket_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_c1_connector_v2_annotation_external_ticket_proto_rawDesc), len(file_c1_connector_v2_annotation_external_ticket_proto_rawDesc))) - }) - return file_c1_connector_v2_annotation_external_ticket_proto_rawDescData + Id string + ExternalTicketProvisionerConfigId string } +func (b0 ExternalTicketRef_builder) Build() *ExternalTicketRef { + m0 := &ExternalTicketRef{} + b, x := &b0, m0 + _, _ = b, x + x.Id = b.Id + x.ExternalTicketProvisionerConfigId = b.ExternalTicketProvisionerConfigId + return m0 +} + +var File_c1_connector_v2_annotation_external_ticket_proto protoreflect.FileDescriptor + +const file_c1_connector_v2_annotation_external_ticket_proto_rawDesc = "" + + "\n" + + "0c1/connector/v2/annotation_external_ticket.proto\x12\x0fc1.connector.v2\"2\n" + + "\x16ExternalTicketSettings\x12\x18\n" + + "\aenabled\x18\x01 \x01(\bR\aenabled\"u\n" + + "\x11ExternalTicketRef\x12\x0e\n" + + "\x02id\x18\x01 \x01(\tR\x02id\x12P\n" + + "%external_ticket_provisioner_config_id\x18\x02 \x01(\tR!externalTicketProvisionerConfigIdB6Z4github.com/conductorone/baton-sdk/pb/c1/connector/v2b\x06proto3" + var file_c1_connector_v2_annotation_external_ticket_proto_msgTypes = make([]protoimpl.MessageInfo, 2) var file_c1_connector_v2_annotation_external_ticket_proto_goTypes = []any{ (*ExternalTicketSettings)(nil), // 0: c1.connector.v2.ExternalTicketSettings diff --git a/vendor/github.com/conductorone/baton-sdk/pb/c1/connector/v2/annotation_external_ticket_protoopaque.pb.go b/vendor/github.com/conductorone/baton-sdk/pb/c1/connector/v2/annotation_external_ticket_protoopaque.pb.go new file mode 100644 index 00000000..9a7fce75 --- /dev/null +++ b/vendor/github.com/conductorone/baton-sdk/pb/c1/connector/v2/annotation_external_ticket_protoopaque.pb.go @@ -0,0 +1,199 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.36.10 +// protoc (unknown) +// source: c1/connector/v2/annotation_external_ticket.proto + +//go:build protoopaque + +package v2 + +import ( + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + reflect "reflect" + 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 ExternalTicketSettings struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Enabled bool `protobuf:"varint,1,opt,name=enabled,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *ExternalTicketSettings) Reset() { + *x = ExternalTicketSettings{} + mi := &file_c1_connector_v2_annotation_external_ticket_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *ExternalTicketSettings) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ExternalTicketSettings) ProtoMessage() {} + +func (x *ExternalTicketSettings) ProtoReflect() protoreflect.Message { + mi := &file_c1_connector_v2_annotation_external_ticket_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) +} + +func (x *ExternalTicketSettings) GetEnabled() bool { + if x != nil { + return x.xxx_hidden_Enabled + } + return false +} + +func (x *ExternalTicketSettings) SetEnabled(v bool) { + x.xxx_hidden_Enabled = v +} + +type ExternalTicketSettings_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Enabled bool +} + +func (b0 ExternalTicketSettings_builder) Build() *ExternalTicketSettings { + m0 := &ExternalTicketSettings{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Enabled = b.Enabled + return m0 +} + +type ExternalTicketRef struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Id string `protobuf:"bytes,1,opt,name=id,proto3"` + xxx_hidden_ExternalTicketProvisionerConfigId string `protobuf:"bytes,2,opt,name=external_ticket_provisioner_config_id,json=externalTicketProvisionerConfigId,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *ExternalTicketRef) Reset() { + *x = ExternalTicketRef{} + mi := &file_c1_connector_v2_annotation_external_ticket_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *ExternalTicketRef) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ExternalTicketRef) ProtoMessage() {} + +func (x *ExternalTicketRef) ProtoReflect() protoreflect.Message { + mi := &file_c1_connector_v2_annotation_external_ticket_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) +} + +func (x *ExternalTicketRef) GetId() string { + if x != nil { + return x.xxx_hidden_Id + } + return "" +} + +func (x *ExternalTicketRef) GetExternalTicketProvisionerConfigId() string { + if x != nil { + return x.xxx_hidden_ExternalTicketProvisionerConfigId + } + return "" +} + +func (x *ExternalTicketRef) SetId(v string) { + x.xxx_hidden_Id = v +} + +func (x *ExternalTicketRef) SetExternalTicketProvisionerConfigId(v string) { + x.xxx_hidden_ExternalTicketProvisionerConfigId = v +} + +type ExternalTicketRef_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Id string + ExternalTicketProvisionerConfigId string +} + +func (b0 ExternalTicketRef_builder) Build() *ExternalTicketRef { + m0 := &ExternalTicketRef{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Id = b.Id + x.xxx_hidden_ExternalTicketProvisionerConfigId = b.ExternalTicketProvisionerConfigId + return m0 +} + +var File_c1_connector_v2_annotation_external_ticket_proto protoreflect.FileDescriptor + +const file_c1_connector_v2_annotation_external_ticket_proto_rawDesc = "" + + "\n" + + "0c1/connector/v2/annotation_external_ticket.proto\x12\x0fc1.connector.v2\"2\n" + + "\x16ExternalTicketSettings\x12\x18\n" + + "\aenabled\x18\x01 \x01(\bR\aenabled\"u\n" + + "\x11ExternalTicketRef\x12\x0e\n" + + "\x02id\x18\x01 \x01(\tR\x02id\x12P\n" + + "%external_ticket_provisioner_config_id\x18\x02 \x01(\tR!externalTicketProvisionerConfigIdB6Z4github.com/conductorone/baton-sdk/pb/c1/connector/v2b\x06proto3" + +var file_c1_connector_v2_annotation_external_ticket_proto_msgTypes = make([]protoimpl.MessageInfo, 2) +var file_c1_connector_v2_annotation_external_ticket_proto_goTypes = []any{ + (*ExternalTicketSettings)(nil), // 0: c1.connector.v2.ExternalTicketSettings + (*ExternalTicketRef)(nil), // 1: c1.connector.v2.ExternalTicketRef +} +var file_c1_connector_v2_annotation_external_ticket_proto_depIdxs = []int32{ + 0, // [0:0] is the sub-list for method output_type + 0, // [0:0] 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_c1_connector_v2_annotation_external_ticket_proto_init() } +func file_c1_connector_v2_annotation_external_ticket_proto_init() { + if File_c1_connector_v2_annotation_external_ticket_proto != nil { + return + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: unsafe.Slice(unsafe.StringData(file_c1_connector_v2_annotation_external_ticket_proto_rawDesc), len(file_c1_connector_v2_annotation_external_ticket_proto_rawDesc)), + NumEnums: 0, + NumMessages: 2, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_c1_connector_v2_annotation_external_ticket_proto_goTypes, + DependencyIndexes: file_c1_connector_v2_annotation_external_ticket_proto_depIdxs, + MessageInfos: file_c1_connector_v2_annotation_external_ticket_proto_msgTypes, + }.Build() + File_c1_connector_v2_annotation_external_ticket_proto = out.File + file_c1_connector_v2_annotation_external_ticket_proto_goTypes = nil + file_c1_connector_v2_annotation_external_ticket_proto_depIdxs = nil +} diff --git a/vendor/github.com/conductorone/baton-sdk/pb/c1/connector/v2/annotation_grant.pb.go b/vendor/github.com/conductorone/baton-sdk/pb/c1/connector/v2/annotation_grant.pb.go index b2a5e03e..65fa98c4 100644 --- a/vendor/github.com/conductorone/baton-sdk/pb/c1/connector/v2/annotation_grant.pb.go +++ b/vendor/github.com/conductorone/baton-sdk/pb/c1/connector/v2/annotation_grant.pb.go @@ -1,9 +1,11 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.36.4 +// protoc-gen-go v1.36.10 // protoc (unknown) // source: c1/connector/v2/annotation_grant.proto +//go:build !protoopaque + package v2 import ( @@ -11,7 +13,6 @@ import ( protoimpl "google.golang.org/protobuf/runtime/protoimpl" structpb "google.golang.org/protobuf/types/known/structpb" reflect "reflect" - sync "sync" unsafe "unsafe" ) @@ -23,7 +24,7 @@ const ( ) type GrantMetadata struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` Metadata *structpb.Struct `protobuf:"bytes,1,opt,name=metadata,proto3" json:"metadata,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache @@ -54,11 +55,6 @@ func (x *GrantMetadata) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use GrantMetadata.ProtoReflect.Descriptor instead. -func (*GrantMetadata) Descriptor() ([]byte, []int) { - return file_c1_connector_v2_annotation_grant_proto_rawDescGZIP(), []int{0} -} - func (x *GrantMetadata) GetMetadata() *structpb.Struct { if x != nil { return x.Metadata @@ -66,8 +62,37 @@ func (x *GrantMetadata) GetMetadata() *structpb.Struct { return nil } +func (x *GrantMetadata) SetMetadata(v *structpb.Struct) { + x.Metadata = v +} + +func (x *GrantMetadata) HasMetadata() bool { + if x == nil { + return false + } + return x.Metadata != nil +} + +func (x *GrantMetadata) ClearMetadata() { + x.Metadata = nil +} + +type GrantMetadata_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Metadata *structpb.Struct +} + +func (b0 GrantMetadata_builder) Build() *GrantMetadata { + m0 := &GrantMetadata{} + b, x := &b0, m0 + _, _ = b, x + x.Metadata = b.Metadata + return m0 +} + type GrantExpandable struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` EntitlementIds []string `protobuf:"bytes,1,rep,name=entitlement_ids,json=entitlementIds,proto3" json:"entitlement_ids,omitempty"` Shallow bool `protobuf:"varint,2,opt,name=shallow,proto3" json:"shallow,omitempty"` ResourceTypeIds []string `protobuf:"bytes,3,rep,name=resource_type_ids,json=resourceTypeIds,proto3" json:"resource_type_ids,omitempty"` @@ -100,11 +125,6 @@ func (x *GrantExpandable) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use GrantExpandable.ProtoReflect.Descriptor instead. -func (*GrantExpandable) Descriptor() ([]byte, []int) { - return file_c1_connector_v2_annotation_grant_proto_rawDescGZIP(), []int{1} -} - func (x *GrantExpandable) GetEntitlementIds() []string { if x != nil { return x.EntitlementIds @@ -126,9 +146,39 @@ func (x *GrantExpandable) GetResourceTypeIds() []string { return nil } +func (x *GrantExpandable) SetEntitlementIds(v []string) { + x.EntitlementIds = v +} + +func (x *GrantExpandable) SetShallow(v bool) { + x.Shallow = v +} + +func (x *GrantExpandable) SetResourceTypeIds(v []string) { + x.ResourceTypeIds = v +} + +type GrantExpandable_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + EntitlementIds []string + Shallow bool + ResourceTypeIds []string +} + +func (b0 GrantExpandable_builder) Build() *GrantExpandable { + m0 := &GrantExpandable{} + b, x := &b0, m0 + _, _ = b, x + x.EntitlementIds = b.EntitlementIds + x.Shallow = b.Shallow + x.ResourceTypeIds = b.ResourceTypeIds + return m0 +} + // Grant cannot be updated or revoked. For example, membership in an "all users" group. type GrantImmutable struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` SourceId string `protobuf:"bytes,1,opt,name=source_id,json=sourceId,proto3" json:"source_id,omitempty"` Metadata *structpb.Struct `protobuf:"bytes,2,opt,name=metadata,proto3" json:"metadata,omitempty"` unknownFields protoimpl.UnknownFields @@ -160,11 +210,6 @@ func (x *GrantImmutable) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use GrantImmutable.ProtoReflect.Descriptor instead. -func (*GrantImmutable) Descriptor() ([]byte, []int) { - return file_c1_connector_v2_annotation_grant_proto_rawDescGZIP(), []int{2} -} - func (x *GrantImmutable) GetSourceId() string { if x != nil { return x.SourceId @@ -179,9 +224,44 @@ func (x *GrantImmutable) GetMetadata() *structpb.Struct { return nil } +func (x *GrantImmutable) SetSourceId(v string) { + x.SourceId = v +} + +func (x *GrantImmutable) SetMetadata(v *structpb.Struct) { + x.Metadata = v +} + +func (x *GrantImmutable) HasMetadata() bool { + if x == nil { + return false + } + return x.Metadata != nil +} + +func (x *GrantImmutable) ClearMetadata() { + x.Metadata = nil +} + +type GrantImmutable_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + SourceId string + Metadata *structpb.Struct +} + +func (b0 GrantImmutable_builder) Build() *GrantImmutable { + m0 := &GrantImmutable{} + b, x := &b0, m0 + _, _ = b, x + x.SourceId = b.SourceId + x.Metadata = b.Metadata + return m0 +} + // Grant was not created because the entitlement already existed. type GrantAlreadyExists struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } @@ -211,14 +291,21 @@ func (x *GrantAlreadyExists) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use GrantAlreadyExists.ProtoReflect.Descriptor instead. -func (*GrantAlreadyExists) Descriptor() ([]byte, []int) { - return file_c1_connector_v2_annotation_grant_proto_rawDescGZIP(), []int{3} +type GrantAlreadyExists_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + +} + +func (b0 GrantAlreadyExists_builder) Build() *GrantAlreadyExists { + m0 := &GrantAlreadyExists{} + b, x := &b0, m0 + _, _ = b, x + return m0 } // Grant was not revoked because the entitlement does not exist. type GrantAlreadyRevoked struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } @@ -248,72 +335,93 @@ func (x *GrantAlreadyRevoked) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use GrantAlreadyRevoked.ProtoReflect.Descriptor instead. -func (*GrantAlreadyRevoked) Descriptor() ([]byte, []int) { - return file_c1_connector_v2_annotation_grant_proto_rawDescGZIP(), []int{4} +type GrantAlreadyRevoked_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + } -var File_c1_connector_v2_annotation_grant_proto protoreflect.FileDescriptor +func (b0 GrantAlreadyRevoked_builder) Build() *GrantAlreadyRevoked { + m0 := &GrantAlreadyRevoked{} + b, x := &b0, m0 + _, _ = b, x + return m0 +} -var file_c1_connector_v2_annotation_grant_proto_rawDesc = string([]byte{ - 0x0a, 0x26, 0x63, 0x31, 0x2f, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x2f, 0x76, - 0x32, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x67, 0x72, 0x61, - 0x6e, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0f, 0x63, 0x31, 0x2e, 0x63, 0x6f, 0x6e, - 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x2e, 0x76, 0x32, 0x1a, 0x1c, 0x67, 0x6f, 0x6f, 0x67, 0x6c, - 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x73, 0x74, 0x72, 0x75, 0x63, - 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x44, 0x0a, 0x0d, 0x47, 0x72, 0x61, 0x6e, 0x74, - 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0x33, 0x0a, 0x08, 0x6d, 0x65, 0x74, 0x61, - 0x64, 0x61, 0x74, 0x61, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x67, 0x6f, 0x6f, - 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x53, 0x74, 0x72, - 0x75, 0x63, 0x74, 0x52, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x22, 0x80, 0x01, - 0x0a, 0x0f, 0x47, 0x72, 0x61, 0x6e, 0x74, 0x45, 0x78, 0x70, 0x61, 0x6e, 0x64, 0x61, 0x62, 0x6c, - 0x65, 0x12, 0x27, 0x0a, 0x0f, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x6d, 0x65, 0x6e, 0x74, - 0x5f, 0x69, 0x64, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0e, 0x65, 0x6e, 0x74, 0x69, - 0x74, 0x6c, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x49, 0x64, 0x73, 0x12, 0x18, 0x0a, 0x07, 0x73, 0x68, - 0x61, 0x6c, 0x6c, 0x6f, 0x77, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x07, 0x73, 0x68, 0x61, - 0x6c, 0x6c, 0x6f, 0x77, 0x12, 0x2a, 0x0a, 0x11, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, - 0x5f, 0x74, 0x79, 0x70, 0x65, 0x5f, 0x69, 0x64, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x09, 0x52, - 0x0f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x54, 0x79, 0x70, 0x65, 0x49, 0x64, 0x73, - 0x22, 0x62, 0x0a, 0x0e, 0x47, 0x72, 0x61, 0x6e, 0x74, 0x49, 0x6d, 0x6d, 0x75, 0x74, 0x61, 0x62, - 0x6c, 0x65, 0x12, 0x1b, 0x0a, 0x09, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x69, 0x64, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x49, 0x64, 0x12, - 0x33, 0x0a, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x18, 0x02, 0x20, 0x01, 0x28, - 0x0b, 0x32, 0x17, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, - 0x62, 0x75, 0x66, 0x2e, 0x53, 0x74, 0x72, 0x75, 0x63, 0x74, 0x52, 0x08, 0x6d, 0x65, 0x74, 0x61, - 0x64, 0x61, 0x74, 0x61, 0x22, 0x14, 0x0a, 0x12, 0x47, 0x72, 0x61, 0x6e, 0x74, 0x41, 0x6c, 0x72, - 0x65, 0x61, 0x64, 0x79, 0x45, 0x78, 0x69, 0x73, 0x74, 0x73, 0x22, 0x15, 0x0a, 0x13, 0x47, 0x72, - 0x61, 0x6e, 0x74, 0x41, 0x6c, 0x72, 0x65, 0x61, 0x64, 0x79, 0x52, 0x65, 0x76, 0x6f, 0x6b, 0x65, - 0x64, 0x42, 0x36, 0x5a, 0x34, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, - 0x63, 0x6f, 0x6e, 0x64, 0x75, 0x63, 0x74, 0x6f, 0x72, 0x6f, 0x6e, 0x65, 0x2f, 0x62, 0x61, 0x74, - 0x6f, 0x6e, 0x2d, 0x73, 0x64, 0x6b, 0x2f, 0x70, 0x62, 0x2f, 0x63, 0x31, 0x2f, 0x63, 0x6f, 0x6e, - 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x2f, 0x76, 0x32, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, - 0x33, -}) - -var ( - file_c1_connector_v2_annotation_grant_proto_rawDescOnce sync.Once - file_c1_connector_v2_annotation_grant_proto_rawDescData []byte -) +// If a resource for a grant doesn't exist, insert it. +type InsertResourceGrants struct { + state protoimpl.MessageState `protogen:"hybrid.v1"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *InsertResourceGrants) Reset() { + *x = InsertResourceGrants{} + mi := &file_c1_connector_v2_annotation_grant_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} -func file_c1_connector_v2_annotation_grant_proto_rawDescGZIP() []byte { - file_c1_connector_v2_annotation_grant_proto_rawDescOnce.Do(func() { - file_c1_connector_v2_annotation_grant_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_c1_connector_v2_annotation_grant_proto_rawDesc), len(file_c1_connector_v2_annotation_grant_proto_rawDesc))) - }) - return file_c1_connector_v2_annotation_grant_proto_rawDescData +func (x *InsertResourceGrants) String() string { + return protoimpl.X.MessageStringOf(x) } -var file_c1_connector_v2_annotation_grant_proto_msgTypes = make([]protoimpl.MessageInfo, 5) +func (*InsertResourceGrants) ProtoMessage() {} + +func (x *InsertResourceGrants) ProtoReflect() protoreflect.Message { + mi := &file_c1_connector_v2_annotation_grant_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) +} + +type InsertResourceGrants_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + +} + +func (b0 InsertResourceGrants_builder) Build() *InsertResourceGrants { + m0 := &InsertResourceGrants{} + b, x := &b0, m0 + _, _ = b, x + return m0 +} + +var File_c1_connector_v2_annotation_grant_proto protoreflect.FileDescriptor + +const file_c1_connector_v2_annotation_grant_proto_rawDesc = "" + + "\n" + + "&c1/connector/v2/annotation_grant.proto\x12\x0fc1.connector.v2\x1a\x1cgoogle/protobuf/struct.proto\"D\n" + + "\rGrantMetadata\x123\n" + + "\bmetadata\x18\x01 \x01(\v2\x17.google.protobuf.StructR\bmetadata\"\x80\x01\n" + + "\x0fGrantExpandable\x12'\n" + + "\x0fentitlement_ids\x18\x01 \x03(\tR\x0eentitlementIds\x12\x18\n" + + "\ashallow\x18\x02 \x01(\bR\ashallow\x12*\n" + + "\x11resource_type_ids\x18\x03 \x03(\tR\x0fresourceTypeIds\"b\n" + + "\x0eGrantImmutable\x12\x1b\n" + + "\tsource_id\x18\x01 \x01(\tR\bsourceId\x123\n" + + "\bmetadata\x18\x02 \x01(\v2\x17.google.protobuf.StructR\bmetadata\"\x14\n" + + "\x12GrantAlreadyExists\"\x15\n" + + "\x13GrantAlreadyRevoked\"\x16\n" + + "\x14InsertResourceGrantsB6Z4github.com/conductorone/baton-sdk/pb/c1/connector/v2b\x06proto3" + +var file_c1_connector_v2_annotation_grant_proto_msgTypes = make([]protoimpl.MessageInfo, 6) var file_c1_connector_v2_annotation_grant_proto_goTypes = []any{ - (*GrantMetadata)(nil), // 0: c1.connector.v2.GrantMetadata - (*GrantExpandable)(nil), // 1: c1.connector.v2.GrantExpandable - (*GrantImmutable)(nil), // 2: c1.connector.v2.GrantImmutable - (*GrantAlreadyExists)(nil), // 3: c1.connector.v2.GrantAlreadyExists - (*GrantAlreadyRevoked)(nil), // 4: c1.connector.v2.GrantAlreadyRevoked - (*structpb.Struct)(nil), // 5: google.protobuf.Struct + (*GrantMetadata)(nil), // 0: c1.connector.v2.GrantMetadata + (*GrantExpandable)(nil), // 1: c1.connector.v2.GrantExpandable + (*GrantImmutable)(nil), // 2: c1.connector.v2.GrantImmutable + (*GrantAlreadyExists)(nil), // 3: c1.connector.v2.GrantAlreadyExists + (*GrantAlreadyRevoked)(nil), // 4: c1.connector.v2.GrantAlreadyRevoked + (*InsertResourceGrants)(nil), // 5: c1.connector.v2.InsertResourceGrants + (*structpb.Struct)(nil), // 6: google.protobuf.Struct } var file_c1_connector_v2_annotation_grant_proto_depIdxs = []int32{ - 5, // 0: c1.connector.v2.GrantMetadata.metadata:type_name -> google.protobuf.Struct - 5, // 1: c1.connector.v2.GrantImmutable.metadata:type_name -> google.protobuf.Struct + 6, // 0: c1.connector.v2.GrantMetadata.metadata:type_name -> google.protobuf.Struct + 6, // 1: c1.connector.v2.GrantImmutable.metadata:type_name -> google.protobuf.Struct 2, // [2:2] is the sub-list for method output_type 2, // [2:2] is the sub-list for method input_type 2, // [2:2] is the sub-list for extension type_name @@ -332,7 +440,7 @@ func file_c1_connector_v2_annotation_grant_proto_init() { GoPackagePath: reflect.TypeOf(x{}).PkgPath(), RawDescriptor: unsafe.Slice(unsafe.StringData(file_c1_connector_v2_annotation_grant_proto_rawDesc), len(file_c1_connector_v2_annotation_grant_proto_rawDesc)), NumEnums: 0, - NumMessages: 5, + NumMessages: 6, NumExtensions: 0, NumServices: 0, }, diff --git a/vendor/github.com/conductorone/baton-sdk/pb/c1/connector/v2/annotation_grant.pb.validate.go b/vendor/github.com/conductorone/baton-sdk/pb/c1/connector/v2/annotation_grant.pb.validate.go index 33017b39..399f62ae 100644 --- a/vendor/github.com/conductorone/baton-sdk/pb/c1/connector/v2/annotation_grant.pb.validate.go +++ b/vendor/github.com/conductorone/baton-sdk/pb/c1/connector/v2/annotation_grant.pb.validate.go @@ -600,3 +600,105 @@ var _ interface { Cause() error ErrorName() string } = GrantAlreadyRevokedValidationError{} + +// Validate checks the field values on InsertResourceGrants with the rules +// defined in the proto definition for this message. If any rules are +// violated, the first error encountered is returned, or nil if there are no violations. +func (m *InsertResourceGrants) Validate() error { + return m.validate(false) +} + +// ValidateAll checks the field values on InsertResourceGrants with the rules +// defined in the proto definition for this message. If any rules are +// violated, the result is a list of violation errors wrapped in +// InsertResourceGrantsMultiError, or nil if none found. +func (m *InsertResourceGrants) ValidateAll() error { + return m.validate(true) +} + +func (m *InsertResourceGrants) validate(all bool) error { + if m == nil { + return nil + } + + var errors []error + + if len(errors) > 0 { + return InsertResourceGrantsMultiError(errors) + } + + return nil +} + +// InsertResourceGrantsMultiError is an error wrapping multiple validation +// errors returned by InsertResourceGrants.ValidateAll() if the designated +// constraints aren't met. +type InsertResourceGrantsMultiError []error + +// Error returns a concatenation of all the error messages it wraps. +func (m InsertResourceGrantsMultiError) Error() string { + msgs := make([]string, 0, len(m)) + for _, err := range m { + msgs = append(msgs, err.Error()) + } + return strings.Join(msgs, "; ") +} + +// AllErrors returns a list of validation violation errors. +func (m InsertResourceGrantsMultiError) AllErrors() []error { return m } + +// InsertResourceGrantsValidationError is the validation error returned by +// InsertResourceGrants.Validate if the designated constraints aren't met. +type InsertResourceGrantsValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e InsertResourceGrantsValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e InsertResourceGrantsValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e InsertResourceGrantsValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e InsertResourceGrantsValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e InsertResourceGrantsValidationError) ErrorName() string { + return "InsertResourceGrantsValidationError" +} + +// Error satisfies the builtin error interface +func (e InsertResourceGrantsValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sInsertResourceGrants.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = InsertResourceGrantsValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = InsertResourceGrantsValidationError{} diff --git a/vendor/github.com/conductorone/baton-sdk/pb/c1/connector/v2/annotation_grant_protoopaque.pb.go b/vendor/github.com/conductorone/baton-sdk/pb/c1/connector/v2/annotation_grant_protoopaque.pb.go new file mode 100644 index 00000000..71bd67e3 --- /dev/null +++ b/vendor/github.com/conductorone/baton-sdk/pb/c1/connector/v2/annotation_grant_protoopaque.pb.go @@ -0,0 +1,454 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.36.10 +// protoc (unknown) +// source: c1/connector/v2/annotation_grant.proto + +//go:build protoopaque + +package v2 + +import ( + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + structpb "google.golang.org/protobuf/types/known/structpb" + reflect "reflect" + 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 GrantMetadata struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Metadata *structpb.Struct `protobuf:"bytes,1,opt,name=metadata,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *GrantMetadata) Reset() { + *x = GrantMetadata{} + mi := &file_c1_connector_v2_annotation_grant_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *GrantMetadata) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GrantMetadata) ProtoMessage() {} + +func (x *GrantMetadata) ProtoReflect() protoreflect.Message { + mi := &file_c1_connector_v2_annotation_grant_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) +} + +func (x *GrantMetadata) GetMetadata() *structpb.Struct { + if x != nil { + return x.xxx_hidden_Metadata + } + return nil +} + +func (x *GrantMetadata) SetMetadata(v *structpb.Struct) { + x.xxx_hidden_Metadata = v +} + +func (x *GrantMetadata) HasMetadata() bool { + if x == nil { + return false + } + return x.xxx_hidden_Metadata != nil +} + +func (x *GrantMetadata) ClearMetadata() { + x.xxx_hidden_Metadata = nil +} + +type GrantMetadata_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Metadata *structpb.Struct +} + +func (b0 GrantMetadata_builder) Build() *GrantMetadata { + m0 := &GrantMetadata{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Metadata = b.Metadata + return m0 +} + +type GrantExpandable struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_EntitlementIds []string `protobuf:"bytes,1,rep,name=entitlement_ids,json=entitlementIds,proto3"` + xxx_hidden_Shallow bool `protobuf:"varint,2,opt,name=shallow,proto3"` + xxx_hidden_ResourceTypeIds []string `protobuf:"bytes,3,rep,name=resource_type_ids,json=resourceTypeIds,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *GrantExpandable) Reset() { + *x = GrantExpandable{} + mi := &file_c1_connector_v2_annotation_grant_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *GrantExpandable) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GrantExpandable) ProtoMessage() {} + +func (x *GrantExpandable) ProtoReflect() protoreflect.Message { + mi := &file_c1_connector_v2_annotation_grant_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) +} + +func (x *GrantExpandable) GetEntitlementIds() []string { + if x != nil { + return x.xxx_hidden_EntitlementIds + } + return nil +} + +func (x *GrantExpandable) GetShallow() bool { + if x != nil { + return x.xxx_hidden_Shallow + } + return false +} + +func (x *GrantExpandable) GetResourceTypeIds() []string { + if x != nil { + return x.xxx_hidden_ResourceTypeIds + } + return nil +} + +func (x *GrantExpandable) SetEntitlementIds(v []string) { + x.xxx_hidden_EntitlementIds = v +} + +func (x *GrantExpandable) SetShallow(v bool) { + x.xxx_hidden_Shallow = v +} + +func (x *GrantExpandable) SetResourceTypeIds(v []string) { + x.xxx_hidden_ResourceTypeIds = v +} + +type GrantExpandable_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + EntitlementIds []string + Shallow bool + ResourceTypeIds []string +} + +func (b0 GrantExpandable_builder) Build() *GrantExpandable { + m0 := &GrantExpandable{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_EntitlementIds = b.EntitlementIds + x.xxx_hidden_Shallow = b.Shallow + x.xxx_hidden_ResourceTypeIds = b.ResourceTypeIds + return m0 +} + +// Grant cannot be updated or revoked. For example, membership in an "all users" group. +type GrantImmutable struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_SourceId string `protobuf:"bytes,1,opt,name=source_id,json=sourceId,proto3"` + xxx_hidden_Metadata *structpb.Struct `protobuf:"bytes,2,opt,name=metadata,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *GrantImmutable) Reset() { + *x = GrantImmutable{} + mi := &file_c1_connector_v2_annotation_grant_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *GrantImmutable) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GrantImmutable) ProtoMessage() {} + +func (x *GrantImmutable) ProtoReflect() protoreflect.Message { + mi := &file_c1_connector_v2_annotation_grant_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) +} + +func (x *GrantImmutable) GetSourceId() string { + if x != nil { + return x.xxx_hidden_SourceId + } + return "" +} + +func (x *GrantImmutable) GetMetadata() *structpb.Struct { + if x != nil { + return x.xxx_hidden_Metadata + } + return nil +} + +func (x *GrantImmutable) SetSourceId(v string) { + x.xxx_hidden_SourceId = v +} + +func (x *GrantImmutable) SetMetadata(v *structpb.Struct) { + x.xxx_hidden_Metadata = v +} + +func (x *GrantImmutable) HasMetadata() bool { + if x == nil { + return false + } + return x.xxx_hidden_Metadata != nil +} + +func (x *GrantImmutable) ClearMetadata() { + x.xxx_hidden_Metadata = nil +} + +type GrantImmutable_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + SourceId string + Metadata *structpb.Struct +} + +func (b0 GrantImmutable_builder) Build() *GrantImmutable { + m0 := &GrantImmutable{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_SourceId = b.SourceId + x.xxx_hidden_Metadata = b.Metadata + return m0 +} + +// Grant was not created because the entitlement already existed. +type GrantAlreadyExists struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *GrantAlreadyExists) Reset() { + *x = GrantAlreadyExists{} + mi := &file_c1_connector_v2_annotation_grant_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *GrantAlreadyExists) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GrantAlreadyExists) ProtoMessage() {} + +func (x *GrantAlreadyExists) ProtoReflect() protoreflect.Message { + mi := &file_c1_connector_v2_annotation_grant_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) +} + +type GrantAlreadyExists_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + +} + +func (b0 GrantAlreadyExists_builder) Build() *GrantAlreadyExists { + m0 := &GrantAlreadyExists{} + b, x := &b0, m0 + _, _ = b, x + return m0 +} + +// Grant was not revoked because the entitlement does not exist. +type GrantAlreadyRevoked struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *GrantAlreadyRevoked) Reset() { + *x = GrantAlreadyRevoked{} + mi := &file_c1_connector_v2_annotation_grant_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *GrantAlreadyRevoked) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GrantAlreadyRevoked) ProtoMessage() {} + +func (x *GrantAlreadyRevoked) ProtoReflect() protoreflect.Message { + mi := &file_c1_connector_v2_annotation_grant_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) +} + +type GrantAlreadyRevoked_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + +} + +func (b0 GrantAlreadyRevoked_builder) Build() *GrantAlreadyRevoked { + m0 := &GrantAlreadyRevoked{} + b, x := &b0, m0 + _, _ = b, x + return m0 +} + +// If a resource for a grant doesn't exist, insert it. +type InsertResourceGrants struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *InsertResourceGrants) Reset() { + *x = InsertResourceGrants{} + mi := &file_c1_connector_v2_annotation_grant_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *InsertResourceGrants) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*InsertResourceGrants) ProtoMessage() {} + +func (x *InsertResourceGrants) ProtoReflect() protoreflect.Message { + mi := &file_c1_connector_v2_annotation_grant_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) +} + +type InsertResourceGrants_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + +} + +func (b0 InsertResourceGrants_builder) Build() *InsertResourceGrants { + m0 := &InsertResourceGrants{} + b, x := &b0, m0 + _, _ = b, x + return m0 +} + +var File_c1_connector_v2_annotation_grant_proto protoreflect.FileDescriptor + +const file_c1_connector_v2_annotation_grant_proto_rawDesc = "" + + "\n" + + "&c1/connector/v2/annotation_grant.proto\x12\x0fc1.connector.v2\x1a\x1cgoogle/protobuf/struct.proto\"D\n" + + "\rGrantMetadata\x123\n" + + "\bmetadata\x18\x01 \x01(\v2\x17.google.protobuf.StructR\bmetadata\"\x80\x01\n" + + "\x0fGrantExpandable\x12'\n" + + "\x0fentitlement_ids\x18\x01 \x03(\tR\x0eentitlementIds\x12\x18\n" + + "\ashallow\x18\x02 \x01(\bR\ashallow\x12*\n" + + "\x11resource_type_ids\x18\x03 \x03(\tR\x0fresourceTypeIds\"b\n" + + "\x0eGrantImmutable\x12\x1b\n" + + "\tsource_id\x18\x01 \x01(\tR\bsourceId\x123\n" + + "\bmetadata\x18\x02 \x01(\v2\x17.google.protobuf.StructR\bmetadata\"\x14\n" + + "\x12GrantAlreadyExists\"\x15\n" + + "\x13GrantAlreadyRevoked\"\x16\n" + + "\x14InsertResourceGrantsB6Z4github.com/conductorone/baton-sdk/pb/c1/connector/v2b\x06proto3" + +var file_c1_connector_v2_annotation_grant_proto_msgTypes = make([]protoimpl.MessageInfo, 6) +var file_c1_connector_v2_annotation_grant_proto_goTypes = []any{ + (*GrantMetadata)(nil), // 0: c1.connector.v2.GrantMetadata + (*GrantExpandable)(nil), // 1: c1.connector.v2.GrantExpandable + (*GrantImmutable)(nil), // 2: c1.connector.v2.GrantImmutable + (*GrantAlreadyExists)(nil), // 3: c1.connector.v2.GrantAlreadyExists + (*GrantAlreadyRevoked)(nil), // 4: c1.connector.v2.GrantAlreadyRevoked + (*InsertResourceGrants)(nil), // 5: c1.connector.v2.InsertResourceGrants + (*structpb.Struct)(nil), // 6: google.protobuf.Struct +} +var file_c1_connector_v2_annotation_grant_proto_depIdxs = []int32{ + 6, // 0: c1.connector.v2.GrantMetadata.metadata:type_name -> google.protobuf.Struct + 6, // 1: c1.connector.v2.GrantImmutable.metadata:type_name -> google.protobuf.Struct + 2, // [2:2] is the sub-list for method output_type + 2, // [2:2] is the sub-list for method input_type + 2, // [2:2] is the sub-list for extension type_name + 2, // [2:2] is the sub-list for extension extendee + 0, // [0:2] is the sub-list for field type_name +} + +func init() { file_c1_connector_v2_annotation_grant_proto_init() } +func file_c1_connector_v2_annotation_grant_proto_init() { + if File_c1_connector_v2_annotation_grant_proto != nil { + return + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: unsafe.Slice(unsafe.StringData(file_c1_connector_v2_annotation_grant_proto_rawDesc), len(file_c1_connector_v2_annotation_grant_proto_rawDesc)), + NumEnums: 0, + NumMessages: 6, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_c1_connector_v2_annotation_grant_proto_goTypes, + DependencyIndexes: file_c1_connector_v2_annotation_grant_proto_depIdxs, + MessageInfos: file_c1_connector_v2_annotation_grant_proto_msgTypes, + }.Build() + File_c1_connector_v2_annotation_grant_proto = out.File + file_c1_connector_v2_annotation_grant_proto_goTypes = nil + file_c1_connector_v2_annotation_grant_proto_depIdxs = nil +} diff --git a/vendor/github.com/conductorone/baton-sdk/pb/c1/connector/v2/annotation_ratelimit.pb.go b/vendor/github.com/conductorone/baton-sdk/pb/c1/connector/v2/annotation_ratelimit.pb.go index 3f711ada..9522f6d9 100644 --- a/vendor/github.com/conductorone/baton-sdk/pb/c1/connector/v2/annotation_ratelimit.pb.go +++ b/vendor/github.com/conductorone/baton-sdk/pb/c1/connector/v2/annotation_ratelimit.pb.go @@ -1,9 +1,11 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.36.4 +// protoc-gen-go v1.36.10 // protoc (unknown) // source: c1/connector/v2/annotation_ratelimit.proto +//go:build !protoopaque + package v2 import ( @@ -11,7 +13,6 @@ import ( protoimpl "google.golang.org/protobuf/runtime/protoimpl" timestamppb "google.golang.org/protobuf/types/known/timestamppb" reflect "reflect" - sync "sync" unsafe "unsafe" ) @@ -69,13 +70,8 @@ func (x RateLimitDescription_Status) Number() protoreflect.EnumNumber { return protoreflect.EnumNumber(x) } -// Deprecated: Use RateLimitDescription_Status.Descriptor instead. -func (RateLimitDescription_Status) EnumDescriptor() ([]byte, []int) { - return file_c1_connector_v2_annotation_ratelimit_proto_rawDescGZIP(), []int{0, 0} -} - type RateLimitDescription struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` Status RateLimitDescription_Status `protobuf:"varint,1,opt,name=status,proto3,enum=c1.connector.v2.RateLimitDescription_Status" json:"status,omitempty"` Limit int64 `protobuf:"varint,2,opt,name=limit,proto3" json:"limit,omitempty"` Remaining int64 `protobuf:"varint,3,opt,name=remaining,proto3" json:"remaining,omitempty"` @@ -109,11 +105,6 @@ func (x *RateLimitDescription) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use RateLimitDescription.ProtoReflect.Descriptor instead. -func (*RateLimitDescription) Descriptor() ([]byte, []int) { - return file_c1_connector_v2_annotation_ratelimit_proto_rawDescGZIP(), []int{0} -} - func (x *RateLimitDescription) GetStatus() RateLimitDescription_Status { if x != nil { return x.Status @@ -142,52 +133,69 @@ func (x *RateLimitDescription) GetResetAt() *timestamppb.Timestamp { return nil } -var File_c1_connector_v2_annotation_ratelimit_proto protoreflect.FileDescriptor +func (x *RateLimitDescription) SetStatus(v RateLimitDescription_Status) { + x.Status = v +} -var file_c1_connector_v2_annotation_ratelimit_proto_rawDesc = string([]byte{ - 0x0a, 0x2a, 0x63, 0x31, 0x2f, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x2f, 0x76, - 0x32, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x72, 0x61, 0x74, - 0x65, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0f, 0x63, 0x31, - 0x2e, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x2e, 0x76, 0x32, 0x1a, 0x1f, 0x67, - 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x74, - 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xa0, - 0x02, 0x0a, 0x14, 0x52, 0x61, 0x74, 0x65, 0x4c, 0x69, 0x6d, 0x69, 0x74, 0x44, 0x65, 0x73, 0x63, - 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x44, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, - 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x2c, 0x2e, 0x63, 0x31, 0x2e, 0x63, 0x6f, 0x6e, - 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x2e, 0x76, 0x32, 0x2e, 0x52, 0x61, 0x74, 0x65, 0x4c, 0x69, - 0x6d, 0x69, 0x74, 0x44, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x53, - 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x14, 0x0a, - 0x05, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x05, 0x6c, 0x69, - 0x6d, 0x69, 0x74, 0x12, 0x1c, 0x0a, 0x09, 0x72, 0x65, 0x6d, 0x61, 0x69, 0x6e, 0x69, 0x6e, 0x67, - 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x09, 0x72, 0x65, 0x6d, 0x61, 0x69, 0x6e, 0x69, 0x6e, - 0x67, 0x12, 0x35, 0x0a, 0x08, 0x72, 0x65, 0x73, 0x65, 0x74, 0x5f, 0x61, 0x74, 0x18, 0x04, 0x20, - 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, - 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, - 0x07, 0x72, 0x65, 0x73, 0x65, 0x74, 0x41, 0x74, 0x22, 0x57, 0x0a, 0x06, 0x53, 0x74, 0x61, 0x74, - 0x75, 0x73, 0x12, 0x16, 0x0a, 0x12, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, 0x55, 0x4e, 0x53, - 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x0d, 0x0a, 0x09, 0x53, 0x54, - 0x41, 0x54, 0x55, 0x53, 0x5f, 0x4f, 0x4b, 0x10, 0x01, 0x12, 0x14, 0x0a, 0x10, 0x53, 0x54, 0x41, - 0x54, 0x55, 0x53, 0x5f, 0x4f, 0x56, 0x45, 0x52, 0x4c, 0x49, 0x4d, 0x49, 0x54, 0x10, 0x02, 0x12, - 0x10, 0x0a, 0x0c, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, 0x45, 0x52, 0x52, 0x4f, 0x52, 0x10, - 0x03, 0x42, 0x36, 0x5a, 0x34, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, - 0x63, 0x6f, 0x6e, 0x64, 0x75, 0x63, 0x74, 0x6f, 0x72, 0x6f, 0x6e, 0x65, 0x2f, 0x62, 0x61, 0x74, - 0x6f, 0x6e, 0x2d, 0x73, 0x64, 0x6b, 0x2f, 0x70, 0x62, 0x2f, 0x63, 0x31, 0x2f, 0x63, 0x6f, 0x6e, - 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x2f, 0x76, 0x32, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, - 0x33, -}) +func (x *RateLimitDescription) SetLimit(v int64) { + x.Limit = v +} -var ( - file_c1_connector_v2_annotation_ratelimit_proto_rawDescOnce sync.Once - file_c1_connector_v2_annotation_ratelimit_proto_rawDescData []byte -) +func (x *RateLimitDescription) SetRemaining(v int64) { + x.Remaining = v +} + +func (x *RateLimitDescription) SetResetAt(v *timestamppb.Timestamp) { + x.ResetAt = v +} + +func (x *RateLimitDescription) HasResetAt() bool { + if x == nil { + return false + } + return x.ResetAt != nil +} + +func (x *RateLimitDescription) ClearResetAt() { + x.ResetAt = nil +} -func file_c1_connector_v2_annotation_ratelimit_proto_rawDescGZIP() []byte { - file_c1_connector_v2_annotation_ratelimit_proto_rawDescOnce.Do(func() { - file_c1_connector_v2_annotation_ratelimit_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_c1_connector_v2_annotation_ratelimit_proto_rawDesc), len(file_c1_connector_v2_annotation_ratelimit_proto_rawDesc))) - }) - return file_c1_connector_v2_annotation_ratelimit_proto_rawDescData +type RateLimitDescription_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Status RateLimitDescription_Status + Limit int64 + Remaining int64 + ResetAt *timestamppb.Timestamp +} + +func (b0 RateLimitDescription_builder) Build() *RateLimitDescription { + m0 := &RateLimitDescription{} + b, x := &b0, m0 + _, _ = b, x + x.Status = b.Status + x.Limit = b.Limit + x.Remaining = b.Remaining + x.ResetAt = b.ResetAt + return m0 } +var File_c1_connector_v2_annotation_ratelimit_proto protoreflect.FileDescriptor + +const file_c1_connector_v2_annotation_ratelimit_proto_rawDesc = "" + + "\n" + + "*c1/connector/v2/annotation_ratelimit.proto\x12\x0fc1.connector.v2\x1a\x1fgoogle/protobuf/timestamp.proto\"\xa0\x02\n" + + "\x14RateLimitDescription\x12D\n" + + "\x06status\x18\x01 \x01(\x0e2,.c1.connector.v2.RateLimitDescription.StatusR\x06status\x12\x14\n" + + "\x05limit\x18\x02 \x01(\x03R\x05limit\x12\x1c\n" + + "\tremaining\x18\x03 \x01(\x03R\tremaining\x125\n" + + "\breset_at\x18\x04 \x01(\v2\x1a.google.protobuf.TimestampR\aresetAt\"W\n" + + "\x06Status\x12\x16\n" + + "\x12STATUS_UNSPECIFIED\x10\x00\x12\r\n" + + "\tSTATUS_OK\x10\x01\x12\x14\n" + + "\x10STATUS_OVERLIMIT\x10\x02\x12\x10\n" + + "\fSTATUS_ERROR\x10\x03B6Z4github.com/conductorone/baton-sdk/pb/c1/connector/v2b\x06proto3" + var file_c1_connector_v2_annotation_ratelimit_proto_enumTypes = make([]protoimpl.EnumInfo, 1) var file_c1_connector_v2_annotation_ratelimit_proto_msgTypes = make([]protoimpl.MessageInfo, 1) var file_c1_connector_v2_annotation_ratelimit_proto_goTypes = []any{ diff --git a/vendor/github.com/conductorone/baton-sdk/pb/c1/connector/v2/annotation_ratelimit_protoopaque.pb.go b/vendor/github.com/conductorone/baton-sdk/pb/c1/connector/v2/annotation_ratelimit_protoopaque.pb.go new file mode 100644 index 00000000..f96edadf --- /dev/null +++ b/vendor/github.com/conductorone/baton-sdk/pb/c1/connector/v2/annotation_ratelimit_protoopaque.pb.go @@ -0,0 +1,239 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.36.10 +// protoc (unknown) +// source: c1/connector/v2/annotation_ratelimit.proto + +//go:build protoopaque + +package v2 + +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" + 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 RateLimitDescription_Status int32 + +const ( + RateLimitDescription_STATUS_UNSPECIFIED RateLimitDescription_Status = 0 + RateLimitDescription_STATUS_OK RateLimitDescription_Status = 1 + RateLimitDescription_STATUS_OVERLIMIT RateLimitDescription_Status = 2 + RateLimitDescription_STATUS_ERROR RateLimitDescription_Status = 3 +) + +// Enum value maps for RateLimitDescription_Status. +var ( + RateLimitDescription_Status_name = map[int32]string{ + 0: "STATUS_UNSPECIFIED", + 1: "STATUS_OK", + 2: "STATUS_OVERLIMIT", + 3: "STATUS_ERROR", + } + RateLimitDescription_Status_value = map[string]int32{ + "STATUS_UNSPECIFIED": 0, + "STATUS_OK": 1, + "STATUS_OVERLIMIT": 2, + "STATUS_ERROR": 3, + } +) + +func (x RateLimitDescription_Status) Enum() *RateLimitDescription_Status { + p := new(RateLimitDescription_Status) + *p = x + return p +} + +func (x RateLimitDescription_Status) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (RateLimitDescription_Status) Descriptor() protoreflect.EnumDescriptor { + return file_c1_connector_v2_annotation_ratelimit_proto_enumTypes[0].Descriptor() +} + +func (RateLimitDescription_Status) Type() protoreflect.EnumType { + return &file_c1_connector_v2_annotation_ratelimit_proto_enumTypes[0] +} + +func (x RateLimitDescription_Status) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +type RateLimitDescription struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Status RateLimitDescription_Status `protobuf:"varint,1,opt,name=status,proto3,enum=c1.connector.v2.RateLimitDescription_Status"` + xxx_hidden_Limit int64 `protobuf:"varint,2,opt,name=limit,proto3"` + xxx_hidden_Remaining int64 `protobuf:"varint,3,opt,name=remaining,proto3"` + xxx_hidden_ResetAt *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=reset_at,json=resetAt,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *RateLimitDescription) Reset() { + *x = RateLimitDescription{} + mi := &file_c1_connector_v2_annotation_ratelimit_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *RateLimitDescription) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*RateLimitDescription) ProtoMessage() {} + +func (x *RateLimitDescription) ProtoReflect() protoreflect.Message { + mi := &file_c1_connector_v2_annotation_ratelimit_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) +} + +func (x *RateLimitDescription) GetStatus() RateLimitDescription_Status { + if x != nil { + return x.xxx_hidden_Status + } + return RateLimitDescription_STATUS_UNSPECIFIED +} + +func (x *RateLimitDescription) GetLimit() int64 { + if x != nil { + return x.xxx_hidden_Limit + } + return 0 +} + +func (x *RateLimitDescription) GetRemaining() int64 { + if x != nil { + return x.xxx_hidden_Remaining + } + return 0 +} + +func (x *RateLimitDescription) GetResetAt() *timestamppb.Timestamp { + if x != nil { + return x.xxx_hidden_ResetAt + } + return nil +} + +func (x *RateLimitDescription) SetStatus(v RateLimitDescription_Status) { + x.xxx_hidden_Status = v +} + +func (x *RateLimitDescription) SetLimit(v int64) { + x.xxx_hidden_Limit = v +} + +func (x *RateLimitDescription) SetRemaining(v int64) { + x.xxx_hidden_Remaining = v +} + +func (x *RateLimitDescription) SetResetAt(v *timestamppb.Timestamp) { + x.xxx_hidden_ResetAt = v +} + +func (x *RateLimitDescription) HasResetAt() bool { + if x == nil { + return false + } + return x.xxx_hidden_ResetAt != nil +} + +func (x *RateLimitDescription) ClearResetAt() { + x.xxx_hidden_ResetAt = nil +} + +type RateLimitDescription_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Status RateLimitDescription_Status + Limit int64 + Remaining int64 + ResetAt *timestamppb.Timestamp +} + +func (b0 RateLimitDescription_builder) Build() *RateLimitDescription { + m0 := &RateLimitDescription{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Status = b.Status + x.xxx_hidden_Limit = b.Limit + x.xxx_hidden_Remaining = b.Remaining + x.xxx_hidden_ResetAt = b.ResetAt + return m0 +} + +var File_c1_connector_v2_annotation_ratelimit_proto protoreflect.FileDescriptor + +const file_c1_connector_v2_annotation_ratelimit_proto_rawDesc = "" + + "\n" + + "*c1/connector/v2/annotation_ratelimit.proto\x12\x0fc1.connector.v2\x1a\x1fgoogle/protobuf/timestamp.proto\"\xa0\x02\n" + + "\x14RateLimitDescription\x12D\n" + + "\x06status\x18\x01 \x01(\x0e2,.c1.connector.v2.RateLimitDescription.StatusR\x06status\x12\x14\n" + + "\x05limit\x18\x02 \x01(\x03R\x05limit\x12\x1c\n" + + "\tremaining\x18\x03 \x01(\x03R\tremaining\x125\n" + + "\breset_at\x18\x04 \x01(\v2\x1a.google.protobuf.TimestampR\aresetAt\"W\n" + + "\x06Status\x12\x16\n" + + "\x12STATUS_UNSPECIFIED\x10\x00\x12\r\n" + + "\tSTATUS_OK\x10\x01\x12\x14\n" + + "\x10STATUS_OVERLIMIT\x10\x02\x12\x10\n" + + "\fSTATUS_ERROR\x10\x03B6Z4github.com/conductorone/baton-sdk/pb/c1/connector/v2b\x06proto3" + +var file_c1_connector_v2_annotation_ratelimit_proto_enumTypes = make([]protoimpl.EnumInfo, 1) +var file_c1_connector_v2_annotation_ratelimit_proto_msgTypes = make([]protoimpl.MessageInfo, 1) +var file_c1_connector_v2_annotation_ratelimit_proto_goTypes = []any{ + (RateLimitDescription_Status)(0), // 0: c1.connector.v2.RateLimitDescription.Status + (*RateLimitDescription)(nil), // 1: c1.connector.v2.RateLimitDescription + (*timestamppb.Timestamp)(nil), // 2: google.protobuf.Timestamp +} +var file_c1_connector_v2_annotation_ratelimit_proto_depIdxs = []int32{ + 0, // 0: c1.connector.v2.RateLimitDescription.status:type_name -> c1.connector.v2.RateLimitDescription.Status + 2, // 1: c1.connector.v2.RateLimitDescription.reset_at:type_name -> google.protobuf.Timestamp + 2, // [2:2] is the sub-list for method output_type + 2, // [2:2] is the sub-list for method input_type + 2, // [2:2] is the sub-list for extension type_name + 2, // [2:2] is the sub-list for extension extendee + 0, // [0:2] is the sub-list for field type_name +} + +func init() { file_c1_connector_v2_annotation_ratelimit_proto_init() } +func file_c1_connector_v2_annotation_ratelimit_proto_init() { + if File_c1_connector_v2_annotation_ratelimit_proto != nil { + return + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: unsafe.Slice(unsafe.StringData(file_c1_connector_v2_annotation_ratelimit_proto_rawDesc), len(file_c1_connector_v2_annotation_ratelimit_proto_rawDesc)), + NumEnums: 1, + NumMessages: 1, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_c1_connector_v2_annotation_ratelimit_proto_goTypes, + DependencyIndexes: file_c1_connector_v2_annotation_ratelimit_proto_depIdxs, + EnumInfos: file_c1_connector_v2_annotation_ratelimit_proto_enumTypes, + MessageInfos: file_c1_connector_v2_annotation_ratelimit_proto_msgTypes, + }.Build() + File_c1_connector_v2_annotation_ratelimit_proto = out.File + file_c1_connector_v2_annotation_ratelimit_proto_goTypes = nil + file_c1_connector_v2_annotation_ratelimit_proto_depIdxs = nil +} diff --git a/vendor/github.com/conductorone/baton-sdk/pb/c1/connector/v2/annotation_raw_id.pb.go b/vendor/github.com/conductorone/baton-sdk/pb/c1/connector/v2/annotation_raw_id.pb.go index 72063239..b80d787e 100644 --- a/vendor/github.com/conductorone/baton-sdk/pb/c1/connector/v2/annotation_raw_id.pb.go +++ b/vendor/github.com/conductorone/baton-sdk/pb/c1/connector/v2/annotation_raw_id.pb.go @@ -1,16 +1,17 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.36.4 +// protoc-gen-go v1.36.10 // protoc (unknown) // source: c1/connector/v2/annotation_raw_id.proto +//go:build !protoopaque + package v2 import ( protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" reflect "reflect" - sync "sync" unsafe "unsafe" ) @@ -23,7 +24,7 @@ const ( // Raw ID from whatever API the resource/entitlement/grant came from. type RawId struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache @@ -54,11 +55,6 @@ func (x *RawId) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use RawId.ProtoReflect.Descriptor instead. -func (*RawId) Descriptor() ([]byte, []int) { - return file_c1_connector_v2_annotation_raw_id_proto_rawDescGZIP(), []int{0} -} - func (x *RawId) GetId() string { if x != nil { return x.Id @@ -66,33 +62,32 @@ func (x *RawId) GetId() string { return "" } -var File_c1_connector_v2_annotation_raw_id_proto protoreflect.FileDescriptor +func (x *RawId) SetId(v string) { + x.Id = v +} -var file_c1_connector_v2_annotation_raw_id_proto_rawDesc = string([]byte{ - 0x0a, 0x27, 0x63, 0x31, 0x2f, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x2f, 0x76, - 0x32, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x72, 0x61, 0x77, - 0x5f, 0x69, 0x64, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0f, 0x63, 0x31, 0x2e, 0x63, 0x6f, - 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x2e, 0x76, 0x32, 0x22, 0x17, 0x0a, 0x05, 0x52, 0x61, - 0x77, 0x49, 0x64, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x02, 0x69, 0x64, 0x42, 0x36, 0x5a, 0x34, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, - 0x6d, 0x2f, 0x63, 0x6f, 0x6e, 0x64, 0x75, 0x63, 0x74, 0x6f, 0x72, 0x6f, 0x6e, 0x65, 0x2f, 0x62, - 0x61, 0x74, 0x6f, 0x6e, 0x2d, 0x73, 0x64, 0x6b, 0x2f, 0x70, 0x62, 0x2f, 0x63, 0x31, 0x2f, 0x63, - 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x2f, 0x76, 0x32, 0x62, 0x06, 0x70, 0x72, 0x6f, - 0x74, 0x6f, 0x33, -}) - -var ( - file_c1_connector_v2_annotation_raw_id_proto_rawDescOnce sync.Once - file_c1_connector_v2_annotation_raw_id_proto_rawDescData []byte -) +type RawId_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. -func file_c1_connector_v2_annotation_raw_id_proto_rawDescGZIP() []byte { - file_c1_connector_v2_annotation_raw_id_proto_rawDescOnce.Do(func() { - file_c1_connector_v2_annotation_raw_id_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_c1_connector_v2_annotation_raw_id_proto_rawDesc), len(file_c1_connector_v2_annotation_raw_id_proto_rawDesc))) - }) - return file_c1_connector_v2_annotation_raw_id_proto_rawDescData + Id string } +func (b0 RawId_builder) Build() *RawId { + m0 := &RawId{} + b, x := &b0, m0 + _, _ = b, x + x.Id = b.Id + return m0 +} + +var File_c1_connector_v2_annotation_raw_id_proto protoreflect.FileDescriptor + +const file_c1_connector_v2_annotation_raw_id_proto_rawDesc = "" + + "\n" + + "'c1/connector/v2/annotation_raw_id.proto\x12\x0fc1.connector.v2\"\x17\n" + + "\x05RawId\x12\x0e\n" + + "\x02id\x18\x01 \x01(\tR\x02idB6Z4github.com/conductorone/baton-sdk/pb/c1/connector/v2b\x06proto3" + var file_c1_connector_v2_annotation_raw_id_proto_msgTypes = make([]protoimpl.MessageInfo, 1) var file_c1_connector_v2_annotation_raw_id_proto_goTypes = []any{ (*RawId)(nil), // 0: c1.connector.v2.RawId diff --git a/vendor/github.com/conductorone/baton-sdk/pb/c1/connector/v2/annotation_raw_id_protoopaque.pb.go b/vendor/github.com/conductorone/baton-sdk/pb/c1/connector/v2/annotation_raw_id_protoopaque.pb.go new file mode 100644 index 00000000..48b8713d --- /dev/null +++ b/vendor/github.com/conductorone/baton-sdk/pb/c1/connector/v2/annotation_raw_id_protoopaque.pb.go @@ -0,0 +1,125 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.36.10 +// protoc (unknown) +// source: c1/connector/v2/annotation_raw_id.proto + +//go:build protoopaque + +package v2 + +import ( + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + reflect "reflect" + 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) +) + +// Raw ID from whatever API the resource/entitlement/grant came from. +type RawId struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Id string `protobuf:"bytes,1,opt,name=id,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *RawId) Reset() { + *x = RawId{} + mi := &file_c1_connector_v2_annotation_raw_id_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *RawId) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*RawId) ProtoMessage() {} + +func (x *RawId) ProtoReflect() protoreflect.Message { + mi := &file_c1_connector_v2_annotation_raw_id_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) +} + +func (x *RawId) GetId() string { + if x != nil { + return x.xxx_hidden_Id + } + return "" +} + +func (x *RawId) SetId(v string) { + x.xxx_hidden_Id = v +} + +type RawId_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Id string +} + +func (b0 RawId_builder) Build() *RawId { + m0 := &RawId{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Id = b.Id + return m0 +} + +var File_c1_connector_v2_annotation_raw_id_proto protoreflect.FileDescriptor + +const file_c1_connector_v2_annotation_raw_id_proto_rawDesc = "" + + "\n" + + "'c1/connector/v2/annotation_raw_id.proto\x12\x0fc1.connector.v2\"\x17\n" + + "\x05RawId\x12\x0e\n" + + "\x02id\x18\x01 \x01(\tR\x02idB6Z4github.com/conductorone/baton-sdk/pb/c1/connector/v2b\x06proto3" + +var file_c1_connector_v2_annotation_raw_id_proto_msgTypes = make([]protoimpl.MessageInfo, 1) +var file_c1_connector_v2_annotation_raw_id_proto_goTypes = []any{ + (*RawId)(nil), // 0: c1.connector.v2.RawId +} +var file_c1_connector_v2_annotation_raw_id_proto_depIdxs = []int32{ + 0, // [0:0] is the sub-list for method output_type + 0, // [0:0] 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_c1_connector_v2_annotation_raw_id_proto_init() } +func file_c1_connector_v2_annotation_raw_id_proto_init() { + if File_c1_connector_v2_annotation_raw_id_proto != nil { + return + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: unsafe.Slice(unsafe.StringData(file_c1_connector_v2_annotation_raw_id_proto_rawDesc), len(file_c1_connector_v2_annotation_raw_id_proto_rawDesc)), + NumEnums: 0, + NumMessages: 1, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_c1_connector_v2_annotation_raw_id_proto_goTypes, + DependencyIndexes: file_c1_connector_v2_annotation_raw_id_proto_depIdxs, + MessageInfos: file_c1_connector_v2_annotation_raw_id_proto_msgTypes, + }.Build() + File_c1_connector_v2_annotation_raw_id_proto = out.File + file_c1_connector_v2_annotation_raw_id_proto_goTypes = nil + file_c1_connector_v2_annotation_raw_id_proto_depIdxs = nil +} diff --git a/vendor/github.com/conductorone/baton-sdk/pb/c1/connector/v2/annotation_request.pb.go b/vendor/github.com/conductorone/baton-sdk/pb/c1/connector/v2/annotation_request.pb.go index 50d405e7..73e1f9cd 100644 --- a/vendor/github.com/conductorone/baton-sdk/pb/c1/connector/v2/annotation_request.pb.go +++ b/vendor/github.com/conductorone/baton-sdk/pb/c1/connector/v2/annotation_request.pb.go @@ -1,16 +1,17 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.36.4 +// protoc-gen-go v1.36.10 // protoc (unknown) // source: c1/connector/v2/annotation_request.proto +//go:build !protoopaque + package v2 import ( protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" reflect "reflect" - sync "sync" unsafe "unsafe" ) @@ -22,7 +23,7 @@ const ( ) type RequestId struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` RequestId string `protobuf:"bytes,1,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache @@ -53,11 +54,6 @@ func (x *RequestId) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use RequestId.ProtoReflect.Descriptor instead. -func (*RequestId) Descriptor() ([]byte, []int) { - return file_c1_connector_v2_annotation_request_proto_rawDescGZIP(), []int{0} -} - func (x *RequestId) GetRequestId() string { if x != nil { return x.RequestId @@ -65,34 +61,33 @@ func (x *RequestId) GetRequestId() string { return "" } -var File_c1_connector_v2_annotation_request_proto protoreflect.FileDescriptor +func (x *RequestId) SetRequestId(v string) { + x.RequestId = v +} -var file_c1_connector_v2_annotation_request_proto_rawDesc = string([]byte{ - 0x0a, 0x28, 0x63, 0x31, 0x2f, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x2f, 0x76, - 0x32, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x72, 0x65, 0x71, - 0x75, 0x65, 0x73, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0f, 0x63, 0x31, 0x2e, 0x63, - 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x2e, 0x76, 0x32, 0x22, 0x2a, 0x0a, 0x09, 0x52, - 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x49, 0x64, 0x12, 0x1d, 0x0a, 0x0a, 0x72, 0x65, 0x71, 0x75, - 0x65, 0x73, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x72, 0x65, - 0x71, 0x75, 0x65, 0x73, 0x74, 0x49, 0x64, 0x42, 0x36, 0x5a, 0x34, 0x67, 0x69, 0x74, 0x68, 0x75, - 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x63, 0x6f, 0x6e, 0x64, 0x75, 0x63, 0x74, 0x6f, 0x72, 0x6f, - 0x6e, 0x65, 0x2f, 0x62, 0x61, 0x74, 0x6f, 0x6e, 0x2d, 0x73, 0x64, 0x6b, 0x2f, 0x70, 0x62, 0x2f, - 0x63, 0x31, 0x2f, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x2f, 0x76, 0x32, 0x62, - 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, -}) - -var ( - file_c1_connector_v2_annotation_request_proto_rawDescOnce sync.Once - file_c1_connector_v2_annotation_request_proto_rawDescData []byte -) +type RequestId_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. -func file_c1_connector_v2_annotation_request_proto_rawDescGZIP() []byte { - file_c1_connector_v2_annotation_request_proto_rawDescOnce.Do(func() { - file_c1_connector_v2_annotation_request_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_c1_connector_v2_annotation_request_proto_rawDesc), len(file_c1_connector_v2_annotation_request_proto_rawDesc))) - }) - return file_c1_connector_v2_annotation_request_proto_rawDescData + RequestId string } +func (b0 RequestId_builder) Build() *RequestId { + m0 := &RequestId{} + b, x := &b0, m0 + _, _ = b, x + x.RequestId = b.RequestId + return m0 +} + +var File_c1_connector_v2_annotation_request_proto protoreflect.FileDescriptor + +const file_c1_connector_v2_annotation_request_proto_rawDesc = "" + + "\n" + + "(c1/connector/v2/annotation_request.proto\x12\x0fc1.connector.v2\"*\n" + + "\tRequestId\x12\x1d\n" + + "\n" + + "request_id\x18\x01 \x01(\tR\trequestIdB6Z4github.com/conductorone/baton-sdk/pb/c1/connector/v2b\x06proto3" + var file_c1_connector_v2_annotation_request_proto_msgTypes = make([]protoimpl.MessageInfo, 1) var file_c1_connector_v2_annotation_request_proto_goTypes = []any{ (*RequestId)(nil), // 0: c1.connector.v2.RequestId diff --git a/vendor/github.com/conductorone/baton-sdk/pb/c1/connector/v2/annotation_request_protoopaque.pb.go b/vendor/github.com/conductorone/baton-sdk/pb/c1/connector/v2/annotation_request_protoopaque.pb.go new file mode 100644 index 00000000..574527ec --- /dev/null +++ b/vendor/github.com/conductorone/baton-sdk/pb/c1/connector/v2/annotation_request_protoopaque.pb.go @@ -0,0 +1,125 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.36.10 +// protoc (unknown) +// source: c1/connector/v2/annotation_request.proto + +//go:build protoopaque + +package v2 + +import ( + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + reflect "reflect" + 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 RequestId struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_RequestId string `protobuf:"bytes,1,opt,name=request_id,json=requestId,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *RequestId) Reset() { + *x = RequestId{} + mi := &file_c1_connector_v2_annotation_request_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *RequestId) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*RequestId) ProtoMessage() {} + +func (x *RequestId) ProtoReflect() protoreflect.Message { + mi := &file_c1_connector_v2_annotation_request_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) +} + +func (x *RequestId) GetRequestId() string { + if x != nil { + return x.xxx_hidden_RequestId + } + return "" +} + +func (x *RequestId) SetRequestId(v string) { + x.xxx_hidden_RequestId = v +} + +type RequestId_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + RequestId string +} + +func (b0 RequestId_builder) Build() *RequestId { + m0 := &RequestId{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_RequestId = b.RequestId + return m0 +} + +var File_c1_connector_v2_annotation_request_proto protoreflect.FileDescriptor + +const file_c1_connector_v2_annotation_request_proto_rawDesc = "" + + "\n" + + "(c1/connector/v2/annotation_request.proto\x12\x0fc1.connector.v2\"*\n" + + "\tRequestId\x12\x1d\n" + + "\n" + + "request_id\x18\x01 \x01(\tR\trequestIdB6Z4github.com/conductorone/baton-sdk/pb/c1/connector/v2b\x06proto3" + +var file_c1_connector_v2_annotation_request_proto_msgTypes = make([]protoimpl.MessageInfo, 1) +var file_c1_connector_v2_annotation_request_proto_goTypes = []any{ + (*RequestId)(nil), // 0: c1.connector.v2.RequestId +} +var file_c1_connector_v2_annotation_request_proto_depIdxs = []int32{ + 0, // [0:0] is the sub-list for method output_type + 0, // [0:0] 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_c1_connector_v2_annotation_request_proto_init() } +func file_c1_connector_v2_annotation_request_proto_init() { + if File_c1_connector_v2_annotation_request_proto != nil { + return + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: unsafe.Slice(unsafe.StringData(file_c1_connector_v2_annotation_request_proto_rawDesc), len(file_c1_connector_v2_annotation_request_proto_rawDesc)), + NumEnums: 0, + NumMessages: 1, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_c1_connector_v2_annotation_request_proto_goTypes, + DependencyIndexes: file_c1_connector_v2_annotation_request_proto_depIdxs, + MessageInfos: file_c1_connector_v2_annotation_request_proto_msgTypes, + }.Build() + File_c1_connector_v2_annotation_request_proto = out.File + file_c1_connector_v2_annotation_request_proto_goTypes = nil + file_c1_connector_v2_annotation_request_proto_depIdxs = nil +} diff --git a/vendor/github.com/conductorone/baton-sdk/pb/c1/connector/v2/annotation_resource_tree.pb.go b/vendor/github.com/conductorone/baton-sdk/pb/c1/connector/v2/annotation_resource_tree.pb.go index 61612ece..407721f2 100644 --- a/vendor/github.com/conductorone/baton-sdk/pb/c1/connector/v2/annotation_resource_tree.pb.go +++ b/vendor/github.com/conductorone/baton-sdk/pb/c1/connector/v2/annotation_resource_tree.pb.go @@ -1,16 +1,17 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.36.4 +// protoc-gen-go v1.36.10 // protoc (unknown) // source: c1/connector/v2/annotation_resource_tree.proto +//go:build !protoopaque + package v2 import ( protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" reflect "reflect" - sync "sync" unsafe "unsafe" ) @@ -22,7 +23,7 @@ const ( ) type ChildResourceType struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` ResourceTypeId string `protobuf:"bytes,1,opt,name=resource_type_id,json=resourceTypeId,proto3" json:"resource_type_id,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache @@ -53,11 +54,6 @@ func (x *ChildResourceType) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use ChildResourceType.ProtoReflect.Descriptor instead. -func (*ChildResourceType) Descriptor() ([]byte, []int) { - return file_c1_connector_v2_annotation_resource_tree_proto_rawDescGZIP(), []int{0} -} - func (x *ChildResourceType) GetResourceTypeId() string { if x != nil { return x.ResourceTypeId @@ -65,8 +61,26 @@ func (x *ChildResourceType) GetResourceTypeId() string { return "" } +func (x *ChildResourceType) SetResourceTypeId(v string) { + x.ResourceTypeId = v +} + +type ChildResourceType_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + ResourceTypeId string +} + +func (b0 ChildResourceType_builder) Build() *ChildResourceType { + m0 := &ChildResourceType{} + b, x := &b0, m0 + _, _ = b, x + x.ResourceTypeId = b.ResourceTypeId + return m0 +} + type SkipEntitlementsAndGrants struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } @@ -96,13 +110,20 @@ func (x *SkipEntitlementsAndGrants) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use SkipEntitlementsAndGrants.ProtoReflect.Descriptor instead. -func (*SkipEntitlementsAndGrants) Descriptor() ([]byte, []int) { - return file_c1_connector_v2_annotation_resource_tree_proto_rawDescGZIP(), []int{1} +type SkipEntitlementsAndGrants_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + +} + +func (b0 SkipEntitlementsAndGrants_builder) Build() *SkipEntitlementsAndGrants { + m0 := &SkipEntitlementsAndGrants{} + b, x := &b0, m0 + _, _ = b, x + return m0 } type SkipGrants struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } @@ -132,48 +153,79 @@ func (x *SkipGrants) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use SkipGrants.ProtoReflect.Descriptor instead. -func (*SkipGrants) Descriptor() ([]byte, []int) { - return file_c1_connector_v2_annotation_resource_tree_proto_rawDescGZIP(), []int{2} +type SkipGrants_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + } -var File_c1_connector_v2_annotation_resource_tree_proto protoreflect.FileDescriptor +func (b0 SkipGrants_builder) Build() *SkipGrants { + m0 := &SkipGrants{} + b, x := &b0, m0 + _, _ = b, x + return m0 +} -var file_c1_connector_v2_annotation_resource_tree_proto_rawDesc = string([]byte{ - 0x0a, 0x2e, 0x63, 0x31, 0x2f, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x2f, 0x76, - 0x32, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x72, 0x65, 0x73, - 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x74, 0x72, 0x65, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, - 0x12, 0x0f, 0x63, 0x31, 0x2e, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x2e, 0x76, - 0x32, 0x22, 0x3d, 0x0a, 0x11, 0x43, 0x68, 0x69, 0x6c, 0x64, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, - 0x63, 0x65, 0x54, 0x79, 0x70, 0x65, 0x12, 0x28, 0x0a, 0x10, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, - 0x63, 0x65, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x0e, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x54, 0x79, 0x70, 0x65, 0x49, 0x64, - 0x22, 0x1b, 0x0a, 0x19, 0x53, 0x6b, 0x69, 0x70, 0x45, 0x6e, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x6d, - 0x65, 0x6e, 0x74, 0x73, 0x41, 0x6e, 0x64, 0x47, 0x72, 0x61, 0x6e, 0x74, 0x73, 0x22, 0x0c, 0x0a, - 0x0a, 0x53, 0x6b, 0x69, 0x70, 0x47, 0x72, 0x61, 0x6e, 0x74, 0x73, 0x42, 0x36, 0x5a, 0x34, 0x67, - 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x63, 0x6f, 0x6e, 0x64, 0x75, 0x63, - 0x74, 0x6f, 0x72, 0x6f, 0x6e, 0x65, 0x2f, 0x62, 0x61, 0x74, 0x6f, 0x6e, 0x2d, 0x73, 0x64, 0x6b, - 0x2f, 0x70, 0x62, 0x2f, 0x63, 0x31, 0x2f, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, - 0x2f, 0x76, 0x32, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, -}) - -var ( - file_c1_connector_v2_annotation_resource_tree_proto_rawDescOnce sync.Once - file_c1_connector_v2_annotation_resource_tree_proto_rawDescData []byte -) +type SkipEntitlements struct { + state protoimpl.MessageState `protogen:"hybrid.v1"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *SkipEntitlements) Reset() { + *x = SkipEntitlements{} + mi := &file_c1_connector_v2_annotation_resource_tree_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *SkipEntitlements) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*SkipEntitlements) ProtoMessage() {} + +func (x *SkipEntitlements) ProtoReflect() protoreflect.Message { + mi := &file_c1_connector_v2_annotation_resource_tree_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) +} + +type SkipEntitlements_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. -func file_c1_connector_v2_annotation_resource_tree_proto_rawDescGZIP() []byte { - file_c1_connector_v2_annotation_resource_tree_proto_rawDescOnce.Do(func() { - file_c1_connector_v2_annotation_resource_tree_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_c1_connector_v2_annotation_resource_tree_proto_rawDesc), len(file_c1_connector_v2_annotation_resource_tree_proto_rawDesc))) - }) - return file_c1_connector_v2_annotation_resource_tree_proto_rawDescData } -var file_c1_connector_v2_annotation_resource_tree_proto_msgTypes = make([]protoimpl.MessageInfo, 3) +func (b0 SkipEntitlements_builder) Build() *SkipEntitlements { + m0 := &SkipEntitlements{} + b, x := &b0, m0 + _, _ = b, x + return m0 +} + +var File_c1_connector_v2_annotation_resource_tree_proto protoreflect.FileDescriptor + +const file_c1_connector_v2_annotation_resource_tree_proto_rawDesc = "" + + "\n" + + ".c1/connector/v2/annotation_resource_tree.proto\x12\x0fc1.connector.v2\"=\n" + + "\x11ChildResourceType\x12(\n" + + "\x10resource_type_id\x18\x01 \x01(\tR\x0eresourceTypeId\"\x1b\n" + + "\x19SkipEntitlementsAndGrants\"\f\n" + + "\n" + + "SkipGrants\"\x12\n" + + "\x10SkipEntitlementsB6Z4github.com/conductorone/baton-sdk/pb/c1/connector/v2b\x06proto3" + +var file_c1_connector_v2_annotation_resource_tree_proto_msgTypes = make([]protoimpl.MessageInfo, 4) var file_c1_connector_v2_annotation_resource_tree_proto_goTypes = []any{ (*ChildResourceType)(nil), // 0: c1.connector.v2.ChildResourceType (*SkipEntitlementsAndGrants)(nil), // 1: c1.connector.v2.SkipEntitlementsAndGrants (*SkipGrants)(nil), // 2: c1.connector.v2.SkipGrants + (*SkipEntitlements)(nil), // 3: c1.connector.v2.SkipEntitlements } var file_c1_connector_v2_annotation_resource_tree_proto_depIdxs = []int32{ 0, // [0:0] is the sub-list for method output_type @@ -194,7 +246,7 @@ func file_c1_connector_v2_annotation_resource_tree_proto_init() { GoPackagePath: reflect.TypeOf(x{}).PkgPath(), RawDescriptor: unsafe.Slice(unsafe.StringData(file_c1_connector_v2_annotation_resource_tree_proto_rawDesc), len(file_c1_connector_v2_annotation_resource_tree_proto_rawDesc)), NumEnums: 0, - NumMessages: 3, + NumMessages: 4, NumExtensions: 0, NumServices: 0, }, diff --git a/vendor/github.com/conductorone/baton-sdk/pb/c1/connector/v2/annotation_resource_tree.pb.validate.go b/vendor/github.com/conductorone/baton-sdk/pb/c1/connector/v2/annotation_resource_tree.pb.validate.go index 36e768bd..8cff9db3 100644 --- a/vendor/github.com/conductorone/baton-sdk/pb/c1/connector/v2/annotation_resource_tree.pb.validate.go +++ b/vendor/github.com/conductorone/baton-sdk/pb/c1/connector/v2/annotation_resource_tree.pb.validate.go @@ -339,3 +339,103 @@ var _ interface { Cause() error ErrorName() string } = SkipGrantsValidationError{} + +// Validate checks the field values on SkipEntitlements with the rules defined +// in the proto definition for this message. If any rules are violated, the +// first error encountered is returned, or nil if there are no violations. +func (m *SkipEntitlements) Validate() error { + return m.validate(false) +} + +// ValidateAll checks the field values on SkipEntitlements with the rules +// defined in the proto definition for this message. If any rules are +// violated, the result is a list of violation errors wrapped in +// SkipEntitlementsMultiError, or nil if none found. +func (m *SkipEntitlements) ValidateAll() error { + return m.validate(true) +} + +func (m *SkipEntitlements) validate(all bool) error { + if m == nil { + return nil + } + + var errors []error + + if len(errors) > 0 { + return SkipEntitlementsMultiError(errors) + } + + return nil +} + +// SkipEntitlementsMultiError is an error wrapping multiple validation errors +// returned by SkipEntitlements.ValidateAll() if the designated constraints +// aren't met. +type SkipEntitlementsMultiError []error + +// Error returns a concatenation of all the error messages it wraps. +func (m SkipEntitlementsMultiError) Error() string { + msgs := make([]string, 0, len(m)) + for _, err := range m { + msgs = append(msgs, err.Error()) + } + return strings.Join(msgs, "; ") +} + +// AllErrors returns a list of validation violation errors. +func (m SkipEntitlementsMultiError) AllErrors() []error { return m } + +// SkipEntitlementsValidationError is the validation error returned by +// SkipEntitlements.Validate if the designated constraints aren't met. +type SkipEntitlementsValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e SkipEntitlementsValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e SkipEntitlementsValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e SkipEntitlementsValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e SkipEntitlementsValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e SkipEntitlementsValidationError) ErrorName() string { return "SkipEntitlementsValidationError" } + +// Error satisfies the builtin error interface +func (e SkipEntitlementsValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sSkipEntitlements.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = SkipEntitlementsValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = SkipEntitlementsValidationError{} diff --git a/vendor/github.com/conductorone/baton-sdk/pb/c1/connector/v2/annotation_resource_tree_protoopaque.pb.go b/vendor/github.com/conductorone/baton-sdk/pb/c1/connector/v2/annotation_resource_tree_protoopaque.pb.go new file mode 100644 index 00000000..187165f9 --- /dev/null +++ b/vendor/github.com/conductorone/baton-sdk/pb/c1/connector/v2/annotation_resource_tree_protoopaque.pb.go @@ -0,0 +1,260 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.36.10 +// protoc (unknown) +// source: c1/connector/v2/annotation_resource_tree.proto + +//go:build protoopaque + +package v2 + +import ( + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + reflect "reflect" + 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 ChildResourceType struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_ResourceTypeId string `protobuf:"bytes,1,opt,name=resource_type_id,json=resourceTypeId,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *ChildResourceType) Reset() { + *x = ChildResourceType{} + mi := &file_c1_connector_v2_annotation_resource_tree_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *ChildResourceType) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ChildResourceType) ProtoMessage() {} + +func (x *ChildResourceType) ProtoReflect() protoreflect.Message { + mi := &file_c1_connector_v2_annotation_resource_tree_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) +} + +func (x *ChildResourceType) GetResourceTypeId() string { + if x != nil { + return x.xxx_hidden_ResourceTypeId + } + return "" +} + +func (x *ChildResourceType) SetResourceTypeId(v string) { + x.xxx_hidden_ResourceTypeId = v +} + +type ChildResourceType_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + ResourceTypeId string +} + +func (b0 ChildResourceType_builder) Build() *ChildResourceType { + m0 := &ChildResourceType{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_ResourceTypeId = b.ResourceTypeId + return m0 +} + +type SkipEntitlementsAndGrants struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *SkipEntitlementsAndGrants) Reset() { + *x = SkipEntitlementsAndGrants{} + mi := &file_c1_connector_v2_annotation_resource_tree_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *SkipEntitlementsAndGrants) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*SkipEntitlementsAndGrants) ProtoMessage() {} + +func (x *SkipEntitlementsAndGrants) ProtoReflect() protoreflect.Message { + mi := &file_c1_connector_v2_annotation_resource_tree_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) +} + +type SkipEntitlementsAndGrants_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + +} + +func (b0 SkipEntitlementsAndGrants_builder) Build() *SkipEntitlementsAndGrants { + m0 := &SkipEntitlementsAndGrants{} + b, x := &b0, m0 + _, _ = b, x + return m0 +} + +type SkipGrants struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *SkipGrants) Reset() { + *x = SkipGrants{} + mi := &file_c1_connector_v2_annotation_resource_tree_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *SkipGrants) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*SkipGrants) ProtoMessage() {} + +func (x *SkipGrants) ProtoReflect() protoreflect.Message { + mi := &file_c1_connector_v2_annotation_resource_tree_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) +} + +type SkipGrants_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + +} + +func (b0 SkipGrants_builder) Build() *SkipGrants { + m0 := &SkipGrants{} + b, x := &b0, m0 + _, _ = b, x + return m0 +} + +type SkipEntitlements struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *SkipEntitlements) Reset() { + *x = SkipEntitlements{} + mi := &file_c1_connector_v2_annotation_resource_tree_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *SkipEntitlements) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*SkipEntitlements) ProtoMessage() {} + +func (x *SkipEntitlements) ProtoReflect() protoreflect.Message { + mi := &file_c1_connector_v2_annotation_resource_tree_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) +} + +type SkipEntitlements_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + +} + +func (b0 SkipEntitlements_builder) Build() *SkipEntitlements { + m0 := &SkipEntitlements{} + b, x := &b0, m0 + _, _ = b, x + return m0 +} + +var File_c1_connector_v2_annotation_resource_tree_proto protoreflect.FileDescriptor + +const file_c1_connector_v2_annotation_resource_tree_proto_rawDesc = "" + + "\n" + + ".c1/connector/v2/annotation_resource_tree.proto\x12\x0fc1.connector.v2\"=\n" + + "\x11ChildResourceType\x12(\n" + + "\x10resource_type_id\x18\x01 \x01(\tR\x0eresourceTypeId\"\x1b\n" + + "\x19SkipEntitlementsAndGrants\"\f\n" + + "\n" + + "SkipGrants\"\x12\n" + + "\x10SkipEntitlementsB6Z4github.com/conductorone/baton-sdk/pb/c1/connector/v2b\x06proto3" + +var file_c1_connector_v2_annotation_resource_tree_proto_msgTypes = make([]protoimpl.MessageInfo, 4) +var file_c1_connector_v2_annotation_resource_tree_proto_goTypes = []any{ + (*ChildResourceType)(nil), // 0: c1.connector.v2.ChildResourceType + (*SkipEntitlementsAndGrants)(nil), // 1: c1.connector.v2.SkipEntitlementsAndGrants + (*SkipGrants)(nil), // 2: c1.connector.v2.SkipGrants + (*SkipEntitlements)(nil), // 3: c1.connector.v2.SkipEntitlements +} +var file_c1_connector_v2_annotation_resource_tree_proto_depIdxs = []int32{ + 0, // [0:0] is the sub-list for method output_type + 0, // [0:0] 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_c1_connector_v2_annotation_resource_tree_proto_init() } +func file_c1_connector_v2_annotation_resource_tree_proto_init() { + if File_c1_connector_v2_annotation_resource_tree_proto != nil { + return + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: unsafe.Slice(unsafe.StringData(file_c1_connector_v2_annotation_resource_tree_proto_rawDesc), len(file_c1_connector_v2_annotation_resource_tree_proto_rawDesc)), + NumEnums: 0, + NumMessages: 4, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_c1_connector_v2_annotation_resource_tree_proto_goTypes, + DependencyIndexes: file_c1_connector_v2_annotation_resource_tree_proto_depIdxs, + MessageInfos: file_c1_connector_v2_annotation_resource_tree_proto_msgTypes, + }.Build() + File_c1_connector_v2_annotation_resource_tree_proto = out.File + file_c1_connector_v2_annotation_resource_tree_proto_goTypes = nil + file_c1_connector_v2_annotation_resource_tree_proto_depIdxs = nil +} diff --git a/vendor/github.com/conductorone/baton-sdk/pb/c1/connector/v2/annotation_security_insight.pb.go b/vendor/github.com/conductorone/baton-sdk/pb/c1/connector/v2/annotation_security_insight.pb.go new file mode 100644 index 00000000..9da76c41 --- /dev/null +++ b/vendor/github.com/conductorone/baton-sdk/pb/c1/connector/v2/annotation_security_insight.pb.go @@ -0,0 +1,535 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.36.10 +// protoc (unknown) +// source: c1/connector/v2/annotation_security_insight.proto + +//go:build !protoopaque + +package v2 + +import ( + _ "github.com/envoyproxy/protoc-gen-validate/validate" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + timestamppb "google.golang.org/protobuf/types/known/timestamppb" + reflect "reflect" + 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) +) + +// SecurityInsightTrait is the trait annotation for resources with TRAIT_SECURITY_INSIGHT. +// It contains the metadata for the security insight including type, value, observation time, +// and the target entity (user or resource) that this insight should be bound to. +type SecurityInsightTrait struct { + state protoimpl.MessageState `protogen:"hybrid.v1"` + // The type of insight (e.g., "crowdstrike_zta_score", "wiz_critical_vulnerability") + InsightType string `protobuf:"bytes,1,opt,name=insight_type,json=insightType,proto3" json:"insight_type,omitempty"` + // The value of the insight (e.g., "85", "High", "Critical") + Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` + // When this insight was observed/captured from the source system + ObservedAt *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=observed_at,json=observedAt,proto3" json:"observed_at,omitempty"` + // The target entity this insight should be bound to + // + // Types that are valid to be assigned to Target: + // + // *SecurityInsightTrait_User + // *SecurityInsightTrait_ResourceId + // *SecurityInsightTrait_ExternalResource + Target isSecurityInsightTrait_Target `protobuf_oneof:"target"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *SecurityInsightTrait) Reset() { + *x = SecurityInsightTrait{} + mi := &file_c1_connector_v2_annotation_security_insight_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *SecurityInsightTrait) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*SecurityInsightTrait) ProtoMessage() {} + +func (x *SecurityInsightTrait) ProtoReflect() protoreflect.Message { + mi := &file_c1_connector_v2_annotation_security_insight_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) +} + +func (x *SecurityInsightTrait) GetInsightType() string { + if x != nil { + return x.InsightType + } + return "" +} + +func (x *SecurityInsightTrait) GetValue() string { + if x != nil { + return x.Value + } + return "" +} + +func (x *SecurityInsightTrait) GetObservedAt() *timestamppb.Timestamp { + if x != nil { + return x.ObservedAt + } + return nil +} + +func (x *SecurityInsightTrait) GetTarget() isSecurityInsightTrait_Target { + if x != nil { + return x.Target + } + return nil +} + +func (x *SecurityInsightTrait) GetUser() *SecurityInsightTrait_UserTarget { + if x != nil { + if x, ok := x.Target.(*SecurityInsightTrait_User); ok { + return x.User + } + } + return nil +} + +func (x *SecurityInsightTrait) GetResourceId() *ResourceId { + if x != nil { + if x, ok := x.Target.(*SecurityInsightTrait_ResourceId); ok { + return x.ResourceId + } + } + return nil +} + +func (x *SecurityInsightTrait) GetExternalResource() *SecurityInsightTrait_ExternalResourceTarget { + if x != nil { + if x, ok := x.Target.(*SecurityInsightTrait_ExternalResource); ok { + return x.ExternalResource + } + } + return nil +} + +func (x *SecurityInsightTrait) SetInsightType(v string) { + x.InsightType = v +} + +func (x *SecurityInsightTrait) SetValue(v string) { + x.Value = v +} + +func (x *SecurityInsightTrait) SetObservedAt(v *timestamppb.Timestamp) { + x.ObservedAt = v +} + +func (x *SecurityInsightTrait) SetUser(v *SecurityInsightTrait_UserTarget) { + if v == nil { + x.Target = nil + return + } + x.Target = &SecurityInsightTrait_User{v} +} + +func (x *SecurityInsightTrait) SetResourceId(v *ResourceId) { + if v == nil { + x.Target = nil + return + } + x.Target = &SecurityInsightTrait_ResourceId{v} +} + +func (x *SecurityInsightTrait) SetExternalResource(v *SecurityInsightTrait_ExternalResourceTarget) { + if v == nil { + x.Target = nil + return + } + x.Target = &SecurityInsightTrait_ExternalResource{v} +} + +func (x *SecurityInsightTrait) HasObservedAt() bool { + if x == nil { + return false + } + return x.ObservedAt != nil +} + +func (x *SecurityInsightTrait) HasTarget() bool { + if x == nil { + return false + } + return x.Target != nil +} + +func (x *SecurityInsightTrait) HasUser() bool { + if x == nil { + return false + } + _, ok := x.Target.(*SecurityInsightTrait_User) + return ok +} + +func (x *SecurityInsightTrait) HasResourceId() bool { + if x == nil { + return false + } + _, ok := x.Target.(*SecurityInsightTrait_ResourceId) + return ok +} + +func (x *SecurityInsightTrait) HasExternalResource() bool { + if x == nil { + return false + } + _, ok := x.Target.(*SecurityInsightTrait_ExternalResource) + return ok +} + +func (x *SecurityInsightTrait) ClearObservedAt() { + x.ObservedAt = nil +} + +func (x *SecurityInsightTrait) ClearTarget() { + x.Target = nil +} + +func (x *SecurityInsightTrait) ClearUser() { + if _, ok := x.Target.(*SecurityInsightTrait_User); ok { + x.Target = nil + } +} + +func (x *SecurityInsightTrait) ClearResourceId() { + if _, ok := x.Target.(*SecurityInsightTrait_ResourceId); ok { + x.Target = nil + } +} + +func (x *SecurityInsightTrait) ClearExternalResource() { + if _, ok := x.Target.(*SecurityInsightTrait_ExternalResource); ok { + x.Target = nil + } +} + +const SecurityInsightTrait_Target_not_set_case case_SecurityInsightTrait_Target = 0 +const SecurityInsightTrait_User_case case_SecurityInsightTrait_Target = 4 +const SecurityInsightTrait_ResourceId_case case_SecurityInsightTrait_Target = 5 +const SecurityInsightTrait_ExternalResource_case case_SecurityInsightTrait_Target = 6 + +func (x *SecurityInsightTrait) WhichTarget() case_SecurityInsightTrait_Target { + if x == nil { + return SecurityInsightTrait_Target_not_set_case + } + switch x.Target.(type) { + case *SecurityInsightTrait_User: + return SecurityInsightTrait_User_case + case *SecurityInsightTrait_ResourceId: + return SecurityInsightTrait_ResourceId_case + case *SecurityInsightTrait_ExternalResource: + return SecurityInsightTrait_ExternalResource_case + default: + return SecurityInsightTrait_Target_not_set_case + } +} + +type SecurityInsightTrait_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // The type of insight (e.g., "crowdstrike_zta_score", "wiz_critical_vulnerability") + InsightType string + // The value of the insight (e.g., "85", "High", "Critical") + Value string + // When this insight was observed/captured from the source system + ObservedAt *timestamppb.Timestamp + // The target entity this insight should be bound to + + // Fields of oneof Target: + // For binding to a C1 User by email address + User *SecurityInsightTrait_UserTarget + // For direct reference to a resource the connector knows about + ResourceId *ResourceId + // For binding to an AppResource by external ID + ExternalResource *SecurityInsightTrait_ExternalResourceTarget + // -- end of Target +} + +func (b0 SecurityInsightTrait_builder) Build() *SecurityInsightTrait { + m0 := &SecurityInsightTrait{} + b, x := &b0, m0 + _, _ = b, x + x.InsightType = b.InsightType + x.Value = b.Value + x.ObservedAt = b.ObservedAt + if b.User != nil { + x.Target = &SecurityInsightTrait_User{b.User} + } + if b.ResourceId != nil { + x.Target = &SecurityInsightTrait_ResourceId{b.ResourceId} + } + if b.ExternalResource != nil { + x.Target = &SecurityInsightTrait_ExternalResource{b.ExternalResource} + } + return m0 +} + +type case_SecurityInsightTrait_Target protoreflect.FieldNumber + +func (x case_SecurityInsightTrait_Target) String() string { + md := file_c1_connector_v2_annotation_security_insight_proto_msgTypes[0].Descriptor() + if x == 0 { + return "not set" + } + return protoimpl.X.MessageFieldStringOf(md, protoreflect.FieldNumber(x)) +} + +type isSecurityInsightTrait_Target interface { + isSecurityInsightTrait_Target() +} + +type SecurityInsightTrait_User struct { + // For binding to a C1 User by email address + User *SecurityInsightTrait_UserTarget `protobuf:"bytes,4,opt,name=user,proto3,oneof"` +} + +type SecurityInsightTrait_ResourceId struct { + // For direct reference to a resource the connector knows about + ResourceId *ResourceId `protobuf:"bytes,5,opt,name=resource_id,json=resourceId,proto3,oneof"` +} + +type SecurityInsightTrait_ExternalResource struct { + // For binding to an AppResource by external ID + ExternalResource *SecurityInsightTrait_ExternalResourceTarget `protobuf:"bytes,6,opt,name=external_resource,json=externalResource,proto3,oneof"` +} + +func (*SecurityInsightTrait_User) isSecurityInsightTrait_Target() {} + +func (*SecurityInsightTrait_ResourceId) isSecurityInsightTrait_Target() {} + +func (*SecurityInsightTrait_ExternalResource) isSecurityInsightTrait_Target() {} + +// UserTarget identifies a user by email for resolution to a C1 User +type SecurityInsightTrait_UserTarget struct { + state protoimpl.MessageState `protogen:"hybrid.v1"` + Email string `protobuf:"bytes,1,opt,name=email,proto3" json:"email,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *SecurityInsightTrait_UserTarget) Reset() { + *x = SecurityInsightTrait_UserTarget{} + mi := &file_c1_connector_v2_annotation_security_insight_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *SecurityInsightTrait_UserTarget) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*SecurityInsightTrait_UserTarget) ProtoMessage() {} + +func (x *SecurityInsightTrait_UserTarget) ProtoReflect() protoreflect.Message { + mi := &file_c1_connector_v2_annotation_security_insight_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) +} + +func (x *SecurityInsightTrait_UserTarget) GetEmail() string { + if x != nil { + return x.Email + } + return "" +} + +func (x *SecurityInsightTrait_UserTarget) SetEmail(v string) { + x.Email = v +} + +type SecurityInsightTrait_UserTarget_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Email string +} + +func (b0 SecurityInsightTrait_UserTarget_builder) Build() *SecurityInsightTrait_UserTarget { + m0 := &SecurityInsightTrait_UserTarget{} + b, x := &b0, m0 + _, _ = b, x + x.Email = b.Email + return m0 +} + +// ExternalResourceTarget identifies a resource by external ID for resolution to an AppResource. +// Use this when the connector doesn't sync the target resource itself. +type SecurityInsightTrait_ExternalResourceTarget struct { + state protoimpl.MessageState `protogen:"hybrid.v1"` + // The external identifier of the resource (e.g., ARN, GUID, etc.) + ExternalId string `protobuf:"bytes,1,opt,name=external_id,json=externalId,proto3" json:"external_id,omitempty"` + // Optional hint to help find the owning app (e.g., "aws", "github") + AppHint string `protobuf:"bytes,2,opt,name=app_hint,json=appHint,proto3" json:"app_hint,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *SecurityInsightTrait_ExternalResourceTarget) Reset() { + *x = SecurityInsightTrait_ExternalResourceTarget{} + mi := &file_c1_connector_v2_annotation_security_insight_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *SecurityInsightTrait_ExternalResourceTarget) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*SecurityInsightTrait_ExternalResourceTarget) ProtoMessage() {} + +func (x *SecurityInsightTrait_ExternalResourceTarget) ProtoReflect() protoreflect.Message { + mi := &file_c1_connector_v2_annotation_security_insight_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) +} + +func (x *SecurityInsightTrait_ExternalResourceTarget) GetExternalId() string { + if x != nil { + return x.ExternalId + } + return "" +} + +func (x *SecurityInsightTrait_ExternalResourceTarget) GetAppHint() string { + if x != nil { + return x.AppHint + } + return "" +} + +func (x *SecurityInsightTrait_ExternalResourceTarget) SetExternalId(v string) { + x.ExternalId = v +} + +func (x *SecurityInsightTrait_ExternalResourceTarget) SetAppHint(v string) { + x.AppHint = v +} + +type SecurityInsightTrait_ExternalResourceTarget_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // The external identifier of the resource (e.g., ARN, GUID, etc.) + ExternalId string + // Optional hint to help find the owning app (e.g., "aws", "github") + AppHint string +} + +func (b0 SecurityInsightTrait_ExternalResourceTarget_builder) Build() *SecurityInsightTrait_ExternalResourceTarget { + m0 := &SecurityInsightTrait_ExternalResourceTarget{} + b, x := &b0, m0 + _, _ = b, x + x.ExternalId = b.ExternalId + x.AppHint = b.AppHint + return m0 +} + +var File_c1_connector_v2_annotation_security_insight_proto protoreflect.FileDescriptor + +const file_c1_connector_v2_annotation_security_insight_proto_rawDesc = "" + + "\n" + + "1c1/connector/v2/annotation_security_insight.proto\x12\x0fc1.connector.v2\x1a\x1ec1/connector/v2/resource.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x17validate/validate.proto\"\xc9\x04\n" + + "\x14SecurityInsightTrait\x12-\n" + + "\finsight_type\x18\x01 \x01(\tB\n" + + "\xfaB\ar\x05 \x01(\x80\bR\vinsightType\x12 \n" + + "\x05value\x18\x02 \x01(\tB\n" + + "\xfaB\ar\x05 \x01(\x80\bR\x05value\x12;\n" + + "\vobserved_at\x18\x03 \x01(\v2\x1a.google.protobuf.TimestampR\n" + + "observedAt\x12F\n" + + "\x04user\x18\x04 \x01(\v20.c1.connector.v2.SecurityInsightTrait.UserTargetH\x00R\x04user\x12>\n" + + "\vresource_id\x18\x05 \x01(\v2\x1b.c1.connector.v2.ResourceIdH\x00R\n" + + "resourceId\x12k\n" + + "\x11external_resource\x18\x06 \x01(\v2<.c1.connector.v2.SecurityInsightTrait.ExternalResourceTargetH\x00R\x10externalResource\x1a0\n" + + "\n" + + "UserTarget\x12\"\n" + + "\x05email\x18\x01 \x01(\tB\f\xfaB\tr\a \x01(\x80\b`\x01R\x05email\x1am\n" + + "\x16ExternalResourceTarget\x12+\n" + + "\vexternal_id\x18\x01 \x01(\tB\n" + + "\xfaB\ar\x05 \x01(\x80 R\n" + + "externalId\x12&\n" + + "\bapp_hint\x18\x02 \x01(\tB\v\xfaB\br\x06(\x80\b\xd0\x01\x01R\aappHintB\r\n" + + "\x06target\x12\x03\xf8B\x01B6Z4github.com/conductorone/baton-sdk/pb/c1/connector/v2b\x06proto3" + +var file_c1_connector_v2_annotation_security_insight_proto_msgTypes = make([]protoimpl.MessageInfo, 3) +var file_c1_connector_v2_annotation_security_insight_proto_goTypes = []any{ + (*SecurityInsightTrait)(nil), // 0: c1.connector.v2.SecurityInsightTrait + (*SecurityInsightTrait_UserTarget)(nil), // 1: c1.connector.v2.SecurityInsightTrait.UserTarget + (*SecurityInsightTrait_ExternalResourceTarget)(nil), // 2: c1.connector.v2.SecurityInsightTrait.ExternalResourceTarget + (*timestamppb.Timestamp)(nil), // 3: google.protobuf.Timestamp + (*ResourceId)(nil), // 4: c1.connector.v2.ResourceId +} +var file_c1_connector_v2_annotation_security_insight_proto_depIdxs = []int32{ + 3, // 0: c1.connector.v2.SecurityInsightTrait.observed_at:type_name -> google.protobuf.Timestamp + 1, // 1: c1.connector.v2.SecurityInsightTrait.user:type_name -> c1.connector.v2.SecurityInsightTrait.UserTarget + 4, // 2: c1.connector.v2.SecurityInsightTrait.resource_id:type_name -> c1.connector.v2.ResourceId + 2, // 3: c1.connector.v2.SecurityInsightTrait.external_resource:type_name -> c1.connector.v2.SecurityInsightTrait.ExternalResourceTarget + 4, // [4:4] is the sub-list for method output_type + 4, // [4:4] is the sub-list for method input_type + 4, // [4:4] is the sub-list for extension type_name + 4, // [4:4] is the sub-list for extension extendee + 0, // [0:4] is the sub-list for field type_name +} + +func init() { file_c1_connector_v2_annotation_security_insight_proto_init() } +func file_c1_connector_v2_annotation_security_insight_proto_init() { + if File_c1_connector_v2_annotation_security_insight_proto != nil { + return + } + file_c1_connector_v2_resource_proto_init() + file_c1_connector_v2_annotation_security_insight_proto_msgTypes[0].OneofWrappers = []any{ + (*SecurityInsightTrait_User)(nil), + (*SecurityInsightTrait_ResourceId)(nil), + (*SecurityInsightTrait_ExternalResource)(nil), + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: unsafe.Slice(unsafe.StringData(file_c1_connector_v2_annotation_security_insight_proto_rawDesc), len(file_c1_connector_v2_annotation_security_insight_proto_rawDesc)), + NumEnums: 0, + NumMessages: 3, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_c1_connector_v2_annotation_security_insight_proto_goTypes, + DependencyIndexes: file_c1_connector_v2_annotation_security_insight_proto_depIdxs, + MessageInfos: file_c1_connector_v2_annotation_security_insight_proto_msgTypes, + }.Build() + File_c1_connector_v2_annotation_security_insight_proto = out.File + file_c1_connector_v2_annotation_security_insight_proto_goTypes = nil + file_c1_connector_v2_annotation_security_insight_proto_depIdxs = nil +} diff --git a/vendor/github.com/conductorone/baton-sdk/pb/c1/connector/v2/annotation_security_insight.pb.validate.go b/vendor/github.com/conductorone/baton-sdk/pb/c1/connector/v2/annotation_security_insight.pb.validate.go new file mode 100644 index 00000000..b550d79e --- /dev/null +++ b/vendor/github.com/conductorone/baton-sdk/pb/c1/connector/v2/annotation_security_insight.pb.validate.go @@ -0,0 +1,639 @@ +// Code generated by protoc-gen-validate. DO NOT EDIT. +// source: c1/connector/v2/annotation_security_insight.proto + +package v2 + +import ( + "bytes" + "errors" + "fmt" + "net" + "net/mail" + "net/url" + "regexp" + "sort" + "strings" + "time" + "unicode/utf8" + + "google.golang.org/protobuf/types/known/anypb" +) + +// ensure the imports are used +var ( + _ = bytes.MinRead + _ = errors.New("") + _ = fmt.Print + _ = utf8.UTFMax + _ = (*regexp.Regexp)(nil) + _ = (*strings.Reader)(nil) + _ = net.IPv4len + _ = time.Duration(0) + _ = (*url.URL)(nil) + _ = (*mail.Address)(nil) + _ = anypb.Any{} + _ = sort.Sort +) + +// Validate checks the field values on SecurityInsightTrait with the rules +// defined in the proto definition for this message. If any rules are +// violated, the first error encountered is returned, or nil if there are no violations. +func (m *SecurityInsightTrait) Validate() error { + return m.validate(false) +} + +// ValidateAll checks the field values on SecurityInsightTrait with the rules +// defined in the proto definition for this message. If any rules are +// violated, the result is a list of violation errors wrapped in +// SecurityInsightTraitMultiError, or nil if none found. +func (m *SecurityInsightTrait) ValidateAll() error { + return m.validate(true) +} + +func (m *SecurityInsightTrait) validate(all bool) error { + if m == nil { + return nil + } + + var errors []error + + if l := len(m.GetInsightType()); l < 1 || l > 1024 { + err := SecurityInsightTraitValidationError{ + field: "InsightType", + reason: "value length must be between 1 and 1024 bytes, inclusive", + } + if !all { + return err + } + errors = append(errors, err) + } + + if l := len(m.GetValue()); l < 1 || l > 1024 { + err := SecurityInsightTraitValidationError{ + field: "Value", + reason: "value length must be between 1 and 1024 bytes, inclusive", + } + if !all { + return err + } + errors = append(errors, err) + } + + if all { + switch v := interface{}(m.GetObservedAt()).(type) { + case interface{ ValidateAll() error }: + if err := v.ValidateAll(); err != nil { + errors = append(errors, SecurityInsightTraitValidationError{ + field: "ObservedAt", + reason: "embedded message failed validation", + cause: err, + }) + } + case interface{ Validate() error }: + if err := v.Validate(); err != nil { + errors = append(errors, SecurityInsightTraitValidationError{ + field: "ObservedAt", + reason: "embedded message failed validation", + cause: err, + }) + } + } + } else if v, ok := interface{}(m.GetObservedAt()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return SecurityInsightTraitValidationError{ + field: "ObservedAt", + reason: "embedded message failed validation", + cause: err, + } + } + } + + oneofTargetPresent := false + switch v := m.Target.(type) { + case *SecurityInsightTrait_User: + if v == nil { + err := SecurityInsightTraitValidationError{ + field: "Target", + reason: "oneof value cannot be a typed-nil", + } + if !all { + return err + } + errors = append(errors, err) + } + oneofTargetPresent = true + + if all { + switch v := interface{}(m.GetUser()).(type) { + case interface{ ValidateAll() error }: + if err := v.ValidateAll(); err != nil { + errors = append(errors, SecurityInsightTraitValidationError{ + field: "User", + reason: "embedded message failed validation", + cause: err, + }) + } + case interface{ Validate() error }: + if err := v.Validate(); err != nil { + errors = append(errors, SecurityInsightTraitValidationError{ + field: "User", + reason: "embedded message failed validation", + cause: err, + }) + } + } + } else if v, ok := interface{}(m.GetUser()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return SecurityInsightTraitValidationError{ + field: "User", + reason: "embedded message failed validation", + cause: err, + } + } + } + + case *SecurityInsightTrait_ResourceId: + if v == nil { + err := SecurityInsightTraitValidationError{ + field: "Target", + reason: "oneof value cannot be a typed-nil", + } + if !all { + return err + } + errors = append(errors, err) + } + oneofTargetPresent = true + + if all { + switch v := interface{}(m.GetResourceId()).(type) { + case interface{ ValidateAll() error }: + if err := v.ValidateAll(); err != nil { + errors = append(errors, SecurityInsightTraitValidationError{ + field: "ResourceId", + reason: "embedded message failed validation", + cause: err, + }) + } + case interface{ Validate() error }: + if err := v.Validate(); err != nil { + errors = append(errors, SecurityInsightTraitValidationError{ + field: "ResourceId", + reason: "embedded message failed validation", + cause: err, + }) + } + } + } else if v, ok := interface{}(m.GetResourceId()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return SecurityInsightTraitValidationError{ + field: "ResourceId", + reason: "embedded message failed validation", + cause: err, + } + } + } + + case *SecurityInsightTrait_ExternalResource: + if v == nil { + err := SecurityInsightTraitValidationError{ + field: "Target", + reason: "oneof value cannot be a typed-nil", + } + if !all { + return err + } + errors = append(errors, err) + } + oneofTargetPresent = true + + if all { + switch v := interface{}(m.GetExternalResource()).(type) { + case interface{ ValidateAll() error }: + if err := v.ValidateAll(); err != nil { + errors = append(errors, SecurityInsightTraitValidationError{ + field: "ExternalResource", + reason: "embedded message failed validation", + cause: err, + }) + } + case interface{ Validate() error }: + if err := v.Validate(); err != nil { + errors = append(errors, SecurityInsightTraitValidationError{ + field: "ExternalResource", + reason: "embedded message failed validation", + cause: err, + }) + } + } + } else if v, ok := interface{}(m.GetExternalResource()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return SecurityInsightTraitValidationError{ + field: "ExternalResource", + reason: "embedded message failed validation", + cause: err, + } + } + } + + default: + _ = v // ensures v is used + } + if !oneofTargetPresent { + err := SecurityInsightTraitValidationError{ + field: "Target", + reason: "value is required", + } + if !all { + return err + } + errors = append(errors, err) + } + + if len(errors) > 0 { + return SecurityInsightTraitMultiError(errors) + } + + return nil +} + +// SecurityInsightTraitMultiError is an error wrapping multiple validation +// errors returned by SecurityInsightTrait.ValidateAll() if the designated +// constraints aren't met. +type SecurityInsightTraitMultiError []error + +// Error returns a concatenation of all the error messages it wraps. +func (m SecurityInsightTraitMultiError) Error() string { + msgs := make([]string, 0, len(m)) + for _, err := range m { + msgs = append(msgs, err.Error()) + } + return strings.Join(msgs, "; ") +} + +// AllErrors returns a list of validation violation errors. +func (m SecurityInsightTraitMultiError) AllErrors() []error { return m } + +// SecurityInsightTraitValidationError is the validation error returned by +// SecurityInsightTrait.Validate if the designated constraints aren't met. +type SecurityInsightTraitValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e SecurityInsightTraitValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e SecurityInsightTraitValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e SecurityInsightTraitValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e SecurityInsightTraitValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e SecurityInsightTraitValidationError) ErrorName() string { + return "SecurityInsightTraitValidationError" +} + +// Error satisfies the builtin error interface +func (e SecurityInsightTraitValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sSecurityInsightTrait.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = SecurityInsightTraitValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = SecurityInsightTraitValidationError{} + +// Validate checks the field values on SecurityInsightTrait_UserTarget with the +// rules defined in the proto definition for this message. If any rules are +// violated, the first error encountered is returned, or nil if there are no violations. +func (m *SecurityInsightTrait_UserTarget) Validate() error { + return m.validate(false) +} + +// ValidateAll checks the field values on SecurityInsightTrait_UserTarget with +// the rules defined in the proto definition for this message. If any rules +// are violated, the result is a list of violation errors wrapped in +// SecurityInsightTrait_UserTargetMultiError, or nil if none found. +func (m *SecurityInsightTrait_UserTarget) ValidateAll() error { + return m.validate(true) +} + +func (m *SecurityInsightTrait_UserTarget) validate(all bool) error { + if m == nil { + return nil + } + + var errors []error + + if l := len(m.GetEmail()); l < 1 || l > 1024 { + err := SecurityInsightTrait_UserTargetValidationError{ + field: "Email", + reason: "value length must be between 1 and 1024 bytes, inclusive", + } + if !all { + return err + } + errors = append(errors, err) + } + + if err := m._validateEmail(m.GetEmail()); err != nil { + err = SecurityInsightTrait_UserTargetValidationError{ + field: "Email", + reason: "value must be a valid email address", + cause: err, + } + if !all { + return err + } + errors = append(errors, err) + } + + if len(errors) > 0 { + return SecurityInsightTrait_UserTargetMultiError(errors) + } + + return nil +} + +func (m *SecurityInsightTrait_UserTarget) _validateHostname(host string) error { + s := strings.ToLower(strings.TrimSuffix(host, ".")) + + if len(host) > 253 { + return errors.New("hostname cannot exceed 253 characters") + } + + for _, part := range strings.Split(s, ".") { + if l := len(part); l == 0 || l > 63 { + return errors.New("hostname part must be non-empty and cannot exceed 63 characters") + } + + if part[0] == '-' { + return errors.New("hostname parts cannot begin with hyphens") + } + + if part[len(part)-1] == '-' { + return errors.New("hostname parts cannot end with hyphens") + } + + for _, r := range part { + if (r < 'a' || r > 'z') && (r < '0' || r > '9') && r != '-' { + return fmt.Errorf("hostname parts can only contain alphanumeric characters or hyphens, got %q", string(r)) + } + } + } + + return nil +} + +func (m *SecurityInsightTrait_UserTarget) _validateEmail(addr string) error { + a, err := mail.ParseAddress(addr) + if err != nil { + return err + } + addr = a.Address + + if len(addr) > 254 { + return errors.New("email addresses cannot exceed 254 characters") + } + + parts := strings.SplitN(addr, "@", 2) + + if len(parts[0]) > 64 { + return errors.New("email address local phrase cannot exceed 64 characters") + } + + return m._validateHostname(parts[1]) +} + +// SecurityInsightTrait_UserTargetMultiError is an error wrapping multiple +// validation errors returned by SecurityInsightTrait_UserTarget.ValidateAll() +// if the designated constraints aren't met. +type SecurityInsightTrait_UserTargetMultiError []error + +// Error returns a concatenation of all the error messages it wraps. +func (m SecurityInsightTrait_UserTargetMultiError) Error() string { + msgs := make([]string, 0, len(m)) + for _, err := range m { + msgs = append(msgs, err.Error()) + } + return strings.Join(msgs, "; ") +} + +// AllErrors returns a list of validation violation errors. +func (m SecurityInsightTrait_UserTargetMultiError) AllErrors() []error { return m } + +// SecurityInsightTrait_UserTargetValidationError is the validation error +// returned by SecurityInsightTrait_UserTarget.Validate if the designated +// constraints aren't met. +type SecurityInsightTrait_UserTargetValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e SecurityInsightTrait_UserTargetValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e SecurityInsightTrait_UserTargetValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e SecurityInsightTrait_UserTargetValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e SecurityInsightTrait_UserTargetValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e SecurityInsightTrait_UserTargetValidationError) ErrorName() string { + return "SecurityInsightTrait_UserTargetValidationError" +} + +// Error satisfies the builtin error interface +func (e SecurityInsightTrait_UserTargetValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sSecurityInsightTrait_UserTarget.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = SecurityInsightTrait_UserTargetValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = SecurityInsightTrait_UserTargetValidationError{} + +// Validate checks the field values on +// SecurityInsightTrait_ExternalResourceTarget with the rules defined in the +// proto definition for this message. If any rules are violated, the first +// error encountered is returned, or nil if there are no violations. +func (m *SecurityInsightTrait_ExternalResourceTarget) Validate() error { + return m.validate(false) +} + +// ValidateAll checks the field values on +// SecurityInsightTrait_ExternalResourceTarget with the rules defined in the +// proto definition for this message. If any rules are violated, the result is +// a list of violation errors wrapped in +// SecurityInsightTrait_ExternalResourceTargetMultiError, or nil if none found. +func (m *SecurityInsightTrait_ExternalResourceTarget) ValidateAll() error { + return m.validate(true) +} + +func (m *SecurityInsightTrait_ExternalResourceTarget) validate(all bool) error { + if m == nil { + return nil + } + + var errors []error + + if l := len(m.GetExternalId()); l < 1 || l > 4096 { + err := SecurityInsightTrait_ExternalResourceTargetValidationError{ + field: "ExternalId", + reason: "value length must be between 1 and 4096 bytes, inclusive", + } + if !all { + return err + } + errors = append(errors, err) + } + + if m.GetAppHint() != "" { + + if len(m.GetAppHint()) > 1024 { + err := SecurityInsightTrait_ExternalResourceTargetValidationError{ + field: "AppHint", + reason: "value length must be at most 1024 bytes", + } + if !all { + return err + } + errors = append(errors, err) + } + + } + + if len(errors) > 0 { + return SecurityInsightTrait_ExternalResourceTargetMultiError(errors) + } + + return nil +} + +// SecurityInsightTrait_ExternalResourceTargetMultiError is an error wrapping +// multiple validation errors returned by +// SecurityInsightTrait_ExternalResourceTarget.ValidateAll() if the designated +// constraints aren't met. +type SecurityInsightTrait_ExternalResourceTargetMultiError []error + +// Error returns a concatenation of all the error messages it wraps. +func (m SecurityInsightTrait_ExternalResourceTargetMultiError) Error() string { + msgs := make([]string, 0, len(m)) + for _, err := range m { + msgs = append(msgs, err.Error()) + } + return strings.Join(msgs, "; ") +} + +// AllErrors returns a list of validation violation errors. +func (m SecurityInsightTrait_ExternalResourceTargetMultiError) AllErrors() []error { return m } + +// SecurityInsightTrait_ExternalResourceTargetValidationError is the validation +// error returned by SecurityInsightTrait_ExternalResourceTarget.Validate if +// the designated constraints aren't met. +type SecurityInsightTrait_ExternalResourceTargetValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e SecurityInsightTrait_ExternalResourceTargetValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e SecurityInsightTrait_ExternalResourceTargetValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e SecurityInsightTrait_ExternalResourceTargetValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e SecurityInsightTrait_ExternalResourceTargetValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e SecurityInsightTrait_ExternalResourceTargetValidationError) ErrorName() string { + return "SecurityInsightTrait_ExternalResourceTargetValidationError" +} + +// Error satisfies the builtin error interface +func (e SecurityInsightTrait_ExternalResourceTargetValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sSecurityInsightTrait_ExternalResourceTarget.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = SecurityInsightTrait_ExternalResourceTargetValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = SecurityInsightTrait_ExternalResourceTargetValidationError{} diff --git a/vendor/github.com/conductorone/baton-sdk/pb/c1/connector/v2/annotation_security_insight_protoopaque.pb.go b/vendor/github.com/conductorone/baton-sdk/pb/c1/connector/v2/annotation_security_insight_protoopaque.pb.go new file mode 100644 index 00000000..184346c1 --- /dev/null +++ b/vendor/github.com/conductorone/baton-sdk/pb/c1/connector/v2/annotation_security_insight_protoopaque.pb.go @@ -0,0 +1,516 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.36.10 +// protoc (unknown) +// source: c1/connector/v2/annotation_security_insight.proto + +//go:build protoopaque + +package v2 + +import ( + _ "github.com/envoyproxy/protoc-gen-validate/validate" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + timestamppb "google.golang.org/protobuf/types/known/timestamppb" + reflect "reflect" + 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) +) + +// SecurityInsightTrait is the trait annotation for resources with TRAIT_SECURITY_INSIGHT. +// It contains the metadata for the security insight including type, value, observation time, +// and the target entity (user or resource) that this insight should be bound to. +type SecurityInsightTrait struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_InsightType string `protobuf:"bytes,1,opt,name=insight_type,json=insightType,proto3"` + xxx_hidden_Value string `protobuf:"bytes,2,opt,name=value,proto3"` + xxx_hidden_ObservedAt *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=observed_at,json=observedAt,proto3"` + xxx_hidden_Target isSecurityInsightTrait_Target `protobuf_oneof:"target"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *SecurityInsightTrait) Reset() { + *x = SecurityInsightTrait{} + mi := &file_c1_connector_v2_annotation_security_insight_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *SecurityInsightTrait) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*SecurityInsightTrait) ProtoMessage() {} + +func (x *SecurityInsightTrait) ProtoReflect() protoreflect.Message { + mi := &file_c1_connector_v2_annotation_security_insight_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) +} + +func (x *SecurityInsightTrait) GetInsightType() string { + if x != nil { + return x.xxx_hidden_InsightType + } + return "" +} + +func (x *SecurityInsightTrait) GetValue() string { + if x != nil { + return x.xxx_hidden_Value + } + return "" +} + +func (x *SecurityInsightTrait) GetObservedAt() *timestamppb.Timestamp { + if x != nil { + return x.xxx_hidden_ObservedAt + } + return nil +} + +func (x *SecurityInsightTrait) GetUser() *SecurityInsightTrait_UserTarget { + if x != nil { + if x, ok := x.xxx_hidden_Target.(*securityInsightTrait_User); ok { + return x.User + } + } + return nil +} + +func (x *SecurityInsightTrait) GetResourceId() *ResourceId { + if x != nil { + if x, ok := x.xxx_hidden_Target.(*securityInsightTrait_ResourceId); ok { + return x.ResourceId + } + } + return nil +} + +func (x *SecurityInsightTrait) GetExternalResource() *SecurityInsightTrait_ExternalResourceTarget { + if x != nil { + if x, ok := x.xxx_hidden_Target.(*securityInsightTrait_ExternalResource); ok { + return x.ExternalResource + } + } + return nil +} + +func (x *SecurityInsightTrait) SetInsightType(v string) { + x.xxx_hidden_InsightType = v +} + +func (x *SecurityInsightTrait) SetValue(v string) { + x.xxx_hidden_Value = v +} + +func (x *SecurityInsightTrait) SetObservedAt(v *timestamppb.Timestamp) { + x.xxx_hidden_ObservedAt = v +} + +func (x *SecurityInsightTrait) SetUser(v *SecurityInsightTrait_UserTarget) { + if v == nil { + x.xxx_hidden_Target = nil + return + } + x.xxx_hidden_Target = &securityInsightTrait_User{v} +} + +func (x *SecurityInsightTrait) SetResourceId(v *ResourceId) { + if v == nil { + x.xxx_hidden_Target = nil + return + } + x.xxx_hidden_Target = &securityInsightTrait_ResourceId{v} +} + +func (x *SecurityInsightTrait) SetExternalResource(v *SecurityInsightTrait_ExternalResourceTarget) { + if v == nil { + x.xxx_hidden_Target = nil + return + } + x.xxx_hidden_Target = &securityInsightTrait_ExternalResource{v} +} + +func (x *SecurityInsightTrait) HasObservedAt() bool { + if x == nil { + return false + } + return x.xxx_hidden_ObservedAt != nil +} + +func (x *SecurityInsightTrait) HasTarget() bool { + if x == nil { + return false + } + return x.xxx_hidden_Target != nil +} + +func (x *SecurityInsightTrait) HasUser() bool { + if x == nil { + return false + } + _, ok := x.xxx_hidden_Target.(*securityInsightTrait_User) + return ok +} + +func (x *SecurityInsightTrait) HasResourceId() bool { + if x == nil { + return false + } + _, ok := x.xxx_hidden_Target.(*securityInsightTrait_ResourceId) + return ok +} + +func (x *SecurityInsightTrait) HasExternalResource() bool { + if x == nil { + return false + } + _, ok := x.xxx_hidden_Target.(*securityInsightTrait_ExternalResource) + return ok +} + +func (x *SecurityInsightTrait) ClearObservedAt() { + x.xxx_hidden_ObservedAt = nil +} + +func (x *SecurityInsightTrait) ClearTarget() { + x.xxx_hidden_Target = nil +} + +func (x *SecurityInsightTrait) ClearUser() { + if _, ok := x.xxx_hidden_Target.(*securityInsightTrait_User); ok { + x.xxx_hidden_Target = nil + } +} + +func (x *SecurityInsightTrait) ClearResourceId() { + if _, ok := x.xxx_hidden_Target.(*securityInsightTrait_ResourceId); ok { + x.xxx_hidden_Target = nil + } +} + +func (x *SecurityInsightTrait) ClearExternalResource() { + if _, ok := x.xxx_hidden_Target.(*securityInsightTrait_ExternalResource); ok { + x.xxx_hidden_Target = nil + } +} + +const SecurityInsightTrait_Target_not_set_case case_SecurityInsightTrait_Target = 0 +const SecurityInsightTrait_User_case case_SecurityInsightTrait_Target = 4 +const SecurityInsightTrait_ResourceId_case case_SecurityInsightTrait_Target = 5 +const SecurityInsightTrait_ExternalResource_case case_SecurityInsightTrait_Target = 6 + +func (x *SecurityInsightTrait) WhichTarget() case_SecurityInsightTrait_Target { + if x == nil { + return SecurityInsightTrait_Target_not_set_case + } + switch x.xxx_hidden_Target.(type) { + case *securityInsightTrait_User: + return SecurityInsightTrait_User_case + case *securityInsightTrait_ResourceId: + return SecurityInsightTrait_ResourceId_case + case *securityInsightTrait_ExternalResource: + return SecurityInsightTrait_ExternalResource_case + default: + return SecurityInsightTrait_Target_not_set_case + } +} + +type SecurityInsightTrait_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // The type of insight (e.g., "crowdstrike_zta_score", "wiz_critical_vulnerability") + InsightType string + // The value of the insight (e.g., "85", "High", "Critical") + Value string + // When this insight was observed/captured from the source system + ObservedAt *timestamppb.Timestamp + // The target entity this insight should be bound to + + // Fields of oneof xxx_hidden_Target: + // For binding to a C1 User by email address + User *SecurityInsightTrait_UserTarget + // For direct reference to a resource the connector knows about + ResourceId *ResourceId + // For binding to an AppResource by external ID + ExternalResource *SecurityInsightTrait_ExternalResourceTarget + // -- end of xxx_hidden_Target +} + +func (b0 SecurityInsightTrait_builder) Build() *SecurityInsightTrait { + m0 := &SecurityInsightTrait{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_InsightType = b.InsightType + x.xxx_hidden_Value = b.Value + x.xxx_hidden_ObservedAt = b.ObservedAt + if b.User != nil { + x.xxx_hidden_Target = &securityInsightTrait_User{b.User} + } + if b.ResourceId != nil { + x.xxx_hidden_Target = &securityInsightTrait_ResourceId{b.ResourceId} + } + if b.ExternalResource != nil { + x.xxx_hidden_Target = &securityInsightTrait_ExternalResource{b.ExternalResource} + } + return m0 +} + +type case_SecurityInsightTrait_Target protoreflect.FieldNumber + +func (x case_SecurityInsightTrait_Target) String() string { + md := file_c1_connector_v2_annotation_security_insight_proto_msgTypes[0].Descriptor() + if x == 0 { + return "not set" + } + return protoimpl.X.MessageFieldStringOf(md, protoreflect.FieldNumber(x)) +} + +type isSecurityInsightTrait_Target interface { + isSecurityInsightTrait_Target() +} + +type securityInsightTrait_User struct { + // For binding to a C1 User by email address + User *SecurityInsightTrait_UserTarget `protobuf:"bytes,4,opt,name=user,proto3,oneof"` +} + +type securityInsightTrait_ResourceId struct { + // For direct reference to a resource the connector knows about + ResourceId *ResourceId `protobuf:"bytes,5,opt,name=resource_id,json=resourceId,proto3,oneof"` +} + +type securityInsightTrait_ExternalResource struct { + // For binding to an AppResource by external ID + ExternalResource *SecurityInsightTrait_ExternalResourceTarget `protobuf:"bytes,6,opt,name=external_resource,json=externalResource,proto3,oneof"` +} + +func (*securityInsightTrait_User) isSecurityInsightTrait_Target() {} + +func (*securityInsightTrait_ResourceId) isSecurityInsightTrait_Target() {} + +func (*securityInsightTrait_ExternalResource) isSecurityInsightTrait_Target() {} + +// UserTarget identifies a user by email for resolution to a C1 User +type SecurityInsightTrait_UserTarget struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Email string `protobuf:"bytes,1,opt,name=email,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *SecurityInsightTrait_UserTarget) Reset() { + *x = SecurityInsightTrait_UserTarget{} + mi := &file_c1_connector_v2_annotation_security_insight_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *SecurityInsightTrait_UserTarget) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*SecurityInsightTrait_UserTarget) ProtoMessage() {} + +func (x *SecurityInsightTrait_UserTarget) ProtoReflect() protoreflect.Message { + mi := &file_c1_connector_v2_annotation_security_insight_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) +} + +func (x *SecurityInsightTrait_UserTarget) GetEmail() string { + if x != nil { + return x.xxx_hidden_Email + } + return "" +} + +func (x *SecurityInsightTrait_UserTarget) SetEmail(v string) { + x.xxx_hidden_Email = v +} + +type SecurityInsightTrait_UserTarget_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Email string +} + +func (b0 SecurityInsightTrait_UserTarget_builder) Build() *SecurityInsightTrait_UserTarget { + m0 := &SecurityInsightTrait_UserTarget{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Email = b.Email + return m0 +} + +// ExternalResourceTarget identifies a resource by external ID for resolution to an AppResource. +// Use this when the connector doesn't sync the target resource itself. +type SecurityInsightTrait_ExternalResourceTarget struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_ExternalId string `protobuf:"bytes,1,opt,name=external_id,json=externalId,proto3"` + xxx_hidden_AppHint string `protobuf:"bytes,2,opt,name=app_hint,json=appHint,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *SecurityInsightTrait_ExternalResourceTarget) Reset() { + *x = SecurityInsightTrait_ExternalResourceTarget{} + mi := &file_c1_connector_v2_annotation_security_insight_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *SecurityInsightTrait_ExternalResourceTarget) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*SecurityInsightTrait_ExternalResourceTarget) ProtoMessage() {} + +func (x *SecurityInsightTrait_ExternalResourceTarget) ProtoReflect() protoreflect.Message { + mi := &file_c1_connector_v2_annotation_security_insight_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) +} + +func (x *SecurityInsightTrait_ExternalResourceTarget) GetExternalId() string { + if x != nil { + return x.xxx_hidden_ExternalId + } + return "" +} + +func (x *SecurityInsightTrait_ExternalResourceTarget) GetAppHint() string { + if x != nil { + return x.xxx_hidden_AppHint + } + return "" +} + +func (x *SecurityInsightTrait_ExternalResourceTarget) SetExternalId(v string) { + x.xxx_hidden_ExternalId = v +} + +func (x *SecurityInsightTrait_ExternalResourceTarget) SetAppHint(v string) { + x.xxx_hidden_AppHint = v +} + +type SecurityInsightTrait_ExternalResourceTarget_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // The external identifier of the resource (e.g., ARN, GUID, etc.) + ExternalId string + // Optional hint to help find the owning app (e.g., "aws", "github") + AppHint string +} + +func (b0 SecurityInsightTrait_ExternalResourceTarget_builder) Build() *SecurityInsightTrait_ExternalResourceTarget { + m0 := &SecurityInsightTrait_ExternalResourceTarget{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_ExternalId = b.ExternalId + x.xxx_hidden_AppHint = b.AppHint + return m0 +} + +var File_c1_connector_v2_annotation_security_insight_proto protoreflect.FileDescriptor + +const file_c1_connector_v2_annotation_security_insight_proto_rawDesc = "" + + "\n" + + "1c1/connector/v2/annotation_security_insight.proto\x12\x0fc1.connector.v2\x1a\x1ec1/connector/v2/resource.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x17validate/validate.proto\"\xc9\x04\n" + + "\x14SecurityInsightTrait\x12-\n" + + "\finsight_type\x18\x01 \x01(\tB\n" + + "\xfaB\ar\x05 \x01(\x80\bR\vinsightType\x12 \n" + + "\x05value\x18\x02 \x01(\tB\n" + + "\xfaB\ar\x05 \x01(\x80\bR\x05value\x12;\n" + + "\vobserved_at\x18\x03 \x01(\v2\x1a.google.protobuf.TimestampR\n" + + "observedAt\x12F\n" + + "\x04user\x18\x04 \x01(\v20.c1.connector.v2.SecurityInsightTrait.UserTargetH\x00R\x04user\x12>\n" + + "\vresource_id\x18\x05 \x01(\v2\x1b.c1.connector.v2.ResourceIdH\x00R\n" + + "resourceId\x12k\n" + + "\x11external_resource\x18\x06 \x01(\v2<.c1.connector.v2.SecurityInsightTrait.ExternalResourceTargetH\x00R\x10externalResource\x1a0\n" + + "\n" + + "UserTarget\x12\"\n" + + "\x05email\x18\x01 \x01(\tB\f\xfaB\tr\a \x01(\x80\b`\x01R\x05email\x1am\n" + + "\x16ExternalResourceTarget\x12+\n" + + "\vexternal_id\x18\x01 \x01(\tB\n" + + "\xfaB\ar\x05 \x01(\x80 R\n" + + "externalId\x12&\n" + + "\bapp_hint\x18\x02 \x01(\tB\v\xfaB\br\x06(\x80\b\xd0\x01\x01R\aappHintB\r\n" + + "\x06target\x12\x03\xf8B\x01B6Z4github.com/conductorone/baton-sdk/pb/c1/connector/v2b\x06proto3" + +var file_c1_connector_v2_annotation_security_insight_proto_msgTypes = make([]protoimpl.MessageInfo, 3) +var file_c1_connector_v2_annotation_security_insight_proto_goTypes = []any{ + (*SecurityInsightTrait)(nil), // 0: c1.connector.v2.SecurityInsightTrait + (*SecurityInsightTrait_UserTarget)(nil), // 1: c1.connector.v2.SecurityInsightTrait.UserTarget + (*SecurityInsightTrait_ExternalResourceTarget)(nil), // 2: c1.connector.v2.SecurityInsightTrait.ExternalResourceTarget + (*timestamppb.Timestamp)(nil), // 3: google.protobuf.Timestamp + (*ResourceId)(nil), // 4: c1.connector.v2.ResourceId +} +var file_c1_connector_v2_annotation_security_insight_proto_depIdxs = []int32{ + 3, // 0: c1.connector.v2.SecurityInsightTrait.observed_at:type_name -> google.protobuf.Timestamp + 1, // 1: c1.connector.v2.SecurityInsightTrait.user:type_name -> c1.connector.v2.SecurityInsightTrait.UserTarget + 4, // 2: c1.connector.v2.SecurityInsightTrait.resource_id:type_name -> c1.connector.v2.ResourceId + 2, // 3: c1.connector.v2.SecurityInsightTrait.external_resource:type_name -> c1.connector.v2.SecurityInsightTrait.ExternalResourceTarget + 4, // [4:4] is the sub-list for method output_type + 4, // [4:4] is the sub-list for method input_type + 4, // [4:4] is the sub-list for extension type_name + 4, // [4:4] is the sub-list for extension extendee + 0, // [0:4] is the sub-list for field type_name +} + +func init() { file_c1_connector_v2_annotation_security_insight_proto_init() } +func file_c1_connector_v2_annotation_security_insight_proto_init() { + if File_c1_connector_v2_annotation_security_insight_proto != nil { + return + } + file_c1_connector_v2_resource_proto_init() + file_c1_connector_v2_annotation_security_insight_proto_msgTypes[0].OneofWrappers = []any{ + (*securityInsightTrait_User)(nil), + (*securityInsightTrait_ResourceId)(nil), + (*securityInsightTrait_ExternalResource)(nil), + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: unsafe.Slice(unsafe.StringData(file_c1_connector_v2_annotation_security_insight_proto_rawDesc), len(file_c1_connector_v2_annotation_security_insight_proto_rawDesc)), + NumEnums: 0, + NumMessages: 3, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_c1_connector_v2_annotation_security_insight_proto_goTypes, + DependencyIndexes: file_c1_connector_v2_annotation_security_insight_proto_depIdxs, + MessageInfos: file_c1_connector_v2_annotation_security_insight_proto_msgTypes, + }.Build() + File_c1_connector_v2_annotation_security_insight_proto = out.File + file_c1_connector_v2_annotation_security_insight_proto_goTypes = nil + file_c1_connector_v2_annotation_security_insight_proto_depIdxs = nil +} diff --git a/vendor/github.com/conductorone/baton-sdk/pb/c1/connector/v2/annotation_sync_id.pb.go b/vendor/github.com/conductorone/baton-sdk/pb/c1/connector/v2/annotation_sync_id.pb.go deleted file mode 100644 index 05159caa..00000000 --- a/vendor/github.com/conductorone/baton-sdk/pb/c1/connector/v2/annotation_sync_id.pb.go +++ /dev/null @@ -1,130 +0,0 @@ -// Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.36.4 -// protoc (unknown) -// source: c1/connector/v2/annotation_sync_id.proto - -package v2 - -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) -) - -// ActiveSync is an annotation is used by the session cache. -type ActiveSync 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 *ActiveSync) Reset() { - *x = ActiveSync{} - mi := &file_c1_connector_v2_annotation_sync_id_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *ActiveSync) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ActiveSync) ProtoMessage() {} - -func (x *ActiveSync) ProtoReflect() protoreflect.Message { - mi := &file_c1_connector_v2_annotation_sync_id_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 ActiveSync.ProtoReflect.Descriptor instead. -func (*ActiveSync) Descriptor() ([]byte, []int) { - return file_c1_connector_v2_annotation_sync_id_proto_rawDescGZIP(), []int{0} -} - -func (x *ActiveSync) GetId() string { - if x != nil { - return x.Id - } - return "" -} - -var File_c1_connector_v2_annotation_sync_id_proto protoreflect.FileDescriptor - -var file_c1_connector_v2_annotation_sync_id_proto_rawDesc = string([]byte{ - 0x0a, 0x28, 0x63, 0x31, 0x2f, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x2f, 0x76, - 0x32, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x73, 0x79, 0x6e, - 0x63, 0x5f, 0x69, 0x64, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0f, 0x63, 0x31, 0x2e, 0x63, - 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x2e, 0x76, 0x32, 0x22, 0x1c, 0x0a, 0x0a, 0x41, - 0x63, 0x74, 0x69, 0x76, 0x65, 0x53, 0x79, 0x6e, 0x63, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x42, 0x36, 0x5a, 0x34, 0x67, 0x69, 0x74, - 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x63, 0x6f, 0x6e, 0x64, 0x75, 0x63, 0x74, 0x6f, - 0x72, 0x6f, 0x6e, 0x65, 0x2f, 0x62, 0x61, 0x74, 0x6f, 0x6e, 0x2d, 0x73, 0x64, 0x6b, 0x2f, 0x70, - 0x62, 0x2f, 0x63, 0x31, 0x2f, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x2f, 0x76, - 0x32, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, -}) - -var ( - file_c1_connector_v2_annotation_sync_id_proto_rawDescOnce sync.Once - file_c1_connector_v2_annotation_sync_id_proto_rawDescData []byte -) - -func file_c1_connector_v2_annotation_sync_id_proto_rawDescGZIP() []byte { - file_c1_connector_v2_annotation_sync_id_proto_rawDescOnce.Do(func() { - file_c1_connector_v2_annotation_sync_id_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_c1_connector_v2_annotation_sync_id_proto_rawDesc), len(file_c1_connector_v2_annotation_sync_id_proto_rawDesc))) - }) - return file_c1_connector_v2_annotation_sync_id_proto_rawDescData -} - -var file_c1_connector_v2_annotation_sync_id_proto_msgTypes = make([]protoimpl.MessageInfo, 1) -var file_c1_connector_v2_annotation_sync_id_proto_goTypes = []any{ - (*ActiveSync)(nil), // 0: c1.connector.v2.ActiveSync -} -var file_c1_connector_v2_annotation_sync_id_proto_depIdxs = []int32{ - 0, // [0:0] is the sub-list for method output_type - 0, // [0:0] 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_c1_connector_v2_annotation_sync_id_proto_init() } -func file_c1_connector_v2_annotation_sync_id_proto_init() { - if File_c1_connector_v2_annotation_sync_id_proto != nil { - return - } - type x struct{} - out := protoimpl.TypeBuilder{ - File: protoimpl.DescBuilder{ - GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: unsafe.Slice(unsafe.StringData(file_c1_connector_v2_annotation_sync_id_proto_rawDesc), len(file_c1_connector_v2_annotation_sync_id_proto_rawDesc)), - NumEnums: 0, - NumMessages: 1, - NumExtensions: 0, - NumServices: 0, - }, - GoTypes: file_c1_connector_v2_annotation_sync_id_proto_goTypes, - DependencyIndexes: file_c1_connector_v2_annotation_sync_id_proto_depIdxs, - MessageInfos: file_c1_connector_v2_annotation_sync_id_proto_msgTypes, - }.Build() - File_c1_connector_v2_annotation_sync_id_proto = out.File - file_c1_connector_v2_annotation_sync_id_proto_goTypes = nil - file_c1_connector_v2_annotation_sync_id_proto_depIdxs = nil -} diff --git a/vendor/github.com/conductorone/baton-sdk/pb/c1/connector/v2/annotation_sync_id.pb.validate.go b/vendor/github.com/conductorone/baton-sdk/pb/c1/connector/v2/annotation_sync_id.pb.validate.go deleted file mode 100644 index 66613f9e..00000000 --- a/vendor/github.com/conductorone/baton-sdk/pb/c1/connector/v2/annotation_sync_id.pb.validate.go +++ /dev/null @@ -1,137 +0,0 @@ -// Code generated by protoc-gen-validate. DO NOT EDIT. -// source: c1/connector/v2/annotation_sync_id.proto - -package v2 - -import ( - "bytes" - "errors" - "fmt" - "net" - "net/mail" - "net/url" - "regexp" - "sort" - "strings" - "time" - "unicode/utf8" - - "google.golang.org/protobuf/types/known/anypb" -) - -// ensure the imports are used -var ( - _ = bytes.MinRead - _ = errors.New("") - _ = fmt.Print - _ = utf8.UTFMax - _ = (*regexp.Regexp)(nil) - _ = (*strings.Reader)(nil) - _ = net.IPv4len - _ = time.Duration(0) - _ = (*url.URL)(nil) - _ = (*mail.Address)(nil) - _ = anypb.Any{} - _ = sort.Sort -) - -// Validate checks the field values on ActiveSync with the rules defined in the -// proto definition for this message. If any rules are violated, the first -// error encountered is returned, or nil if there are no violations. -func (m *ActiveSync) Validate() error { - return m.validate(false) -} - -// ValidateAll checks the field values on ActiveSync with the rules defined in -// the proto definition for this message. If any rules are violated, the -// result is a list of violation errors wrapped in ActiveSyncMultiError, or -// nil if none found. -func (m *ActiveSync) ValidateAll() error { - return m.validate(true) -} - -func (m *ActiveSync) validate(all bool) error { - if m == nil { - return nil - } - - var errors []error - - // no validation rules for Id - - if len(errors) > 0 { - return ActiveSyncMultiError(errors) - } - - return nil -} - -// ActiveSyncMultiError is an error wrapping multiple validation errors -// returned by ActiveSync.ValidateAll() if the designated constraints aren't met. -type ActiveSyncMultiError []error - -// Error returns a concatenation of all the error messages it wraps. -func (m ActiveSyncMultiError) Error() string { - msgs := make([]string, 0, len(m)) - for _, err := range m { - msgs = append(msgs, err.Error()) - } - return strings.Join(msgs, "; ") -} - -// AllErrors returns a list of validation violation errors. -func (m ActiveSyncMultiError) AllErrors() []error { return m } - -// ActiveSyncValidationError is the validation error returned by -// ActiveSync.Validate if the designated constraints aren't met. -type ActiveSyncValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e ActiveSyncValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e ActiveSyncValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e ActiveSyncValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e ActiveSyncValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e ActiveSyncValidationError) ErrorName() string { return "ActiveSyncValidationError" } - -// Error satisfies the builtin error interface -func (e ActiveSyncValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sActiveSync.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = ActiveSyncValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = ActiveSyncValidationError{} diff --git a/vendor/github.com/conductorone/baton-sdk/pb/c1/connector/v2/annotation_trait.pb.go b/vendor/github.com/conductorone/baton-sdk/pb/c1/connector/v2/annotation_trait.pb.go index 628193c9..7b79389a 100644 --- a/vendor/github.com/conductorone/baton-sdk/pb/c1/connector/v2/annotation_trait.pb.go +++ b/vendor/github.com/conductorone/baton-sdk/pb/c1/connector/v2/annotation_trait.pb.go @@ -1,9 +1,11 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.36.4 +// protoc-gen-go v1.36.10 // protoc (unknown) // source: c1/connector/v2/annotation_trait.proto +//go:build !protoopaque + package v2 import ( @@ -13,7 +15,6 @@ import ( structpb "google.golang.org/protobuf/types/known/structpb" timestamppb "google.golang.org/protobuf/types/known/timestamppb" reflect "reflect" - sync "sync" unsafe "unsafe" ) @@ -71,11 +72,6 @@ func (x UserTrait_AccountType) Number() protoreflect.EnumNumber { return protoreflect.EnumNumber(x) } -// Deprecated: Use UserTrait_AccountType.Descriptor instead. -func (UserTrait_AccountType) EnumDescriptor() ([]byte, []int) { - return file_c1_connector_v2_annotation_trait_proto_rawDescGZIP(), []int{0, 0} -} - type UserTrait_Status_Status int32 const ( @@ -123,11 +119,6 @@ func (x UserTrait_Status_Status) Number() protoreflect.EnumNumber { return protoreflect.EnumNumber(x) } -// Deprecated: Use UserTrait_Status_Status.Descriptor instead. -func (UserTrait_Status_Status) EnumDescriptor() ([]byte, []int) { - return file_c1_connector_v2_annotation_trait_proto_rawDescGZIP(), []int{0, 1, 0} -} - type AppTrait_AppFlag int32 const ( @@ -181,13 +172,8 @@ func (x AppTrait_AppFlag) Number() protoreflect.EnumNumber { return protoreflect.EnumNumber(x) } -// Deprecated: Use AppTrait_AppFlag.Descriptor instead. -func (AppTrait_AppFlag) EnumDescriptor() ([]byte, []int) { - return file_c1_connector_v2_annotation_trait_proto_rawDescGZIP(), []int{3, 0} -} - type UserTrait struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` Emails []*UserTrait_Email `protobuf:"bytes,1,rep,name=emails,proto3" json:"emails,omitempty"` Status *UserTrait_Status `protobuf:"bytes,2,opt,name=status,proto3" json:"status,omitempty"` Profile *structpb.Struct `protobuf:"bytes,3,opt,name=profile,proto3" json:"profile,omitempty"` @@ -232,11 +218,6 @@ func (x *UserTrait) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use UserTrait.ProtoReflect.Descriptor instead. -func (*UserTrait) Descriptor() ([]byte, []int) { - return file_c1_connector_v2_annotation_trait_proto_rawDescGZIP(), []int{0} -} - func (x *UserTrait) GetEmails() []*UserTrait_Email { if x != nil { return x.Emails @@ -328,8 +309,188 @@ func (x *UserTrait) GetStructuredName() *UserTrait_StructuredName { return nil } +func (x *UserTrait) SetEmails(v []*UserTrait_Email) { + x.Emails = v +} + +func (x *UserTrait) SetStatus(v *UserTrait_Status) { + x.Status = v +} + +func (x *UserTrait) SetProfile(v *structpb.Struct) { + x.Profile = v +} + +func (x *UserTrait) SetIcon(v *AssetRef) { + x.Icon = v +} + +func (x *UserTrait) SetAccountType(v UserTrait_AccountType) { + x.AccountType = v +} + +func (x *UserTrait) SetLogin(v string) { + x.Login = v +} + +func (x *UserTrait) SetLoginAliases(v []string) { + x.LoginAliases = v +} + +func (x *UserTrait) SetEmployeeIds(v []string) { + x.EmployeeIds = v +} + +func (x *UserTrait) SetCreatedAt(v *timestamppb.Timestamp) { + x.CreatedAt = v +} + +func (x *UserTrait) SetLastLogin(v *timestamppb.Timestamp) { + x.LastLogin = v +} + +func (x *UserTrait) SetMfaStatus(v *UserTrait_MFAStatus) { + x.MfaStatus = v +} + +func (x *UserTrait) SetSsoStatus(v *UserTrait_SSOStatus) { + x.SsoStatus = v +} + +func (x *UserTrait) SetStructuredName(v *UserTrait_StructuredName) { + x.StructuredName = v +} + +func (x *UserTrait) HasStatus() bool { + if x == nil { + return false + } + return x.Status != nil +} + +func (x *UserTrait) HasProfile() bool { + if x == nil { + return false + } + return x.Profile != nil +} + +func (x *UserTrait) HasIcon() bool { + if x == nil { + return false + } + return x.Icon != nil +} + +func (x *UserTrait) HasCreatedAt() bool { + if x == nil { + return false + } + return x.CreatedAt != nil +} + +func (x *UserTrait) HasLastLogin() bool { + if x == nil { + return false + } + return x.LastLogin != nil +} + +func (x *UserTrait) HasMfaStatus() bool { + if x == nil { + return false + } + return x.MfaStatus != nil +} + +func (x *UserTrait) HasSsoStatus() bool { + if x == nil { + return false + } + return x.SsoStatus != nil +} + +func (x *UserTrait) HasStructuredName() bool { + if x == nil { + return false + } + return x.StructuredName != nil +} + +func (x *UserTrait) ClearStatus() { + x.Status = nil +} + +func (x *UserTrait) ClearProfile() { + x.Profile = nil +} + +func (x *UserTrait) ClearIcon() { + x.Icon = nil +} + +func (x *UserTrait) ClearCreatedAt() { + x.CreatedAt = nil +} + +func (x *UserTrait) ClearLastLogin() { + x.LastLogin = nil +} + +func (x *UserTrait) ClearMfaStatus() { + x.MfaStatus = nil +} + +func (x *UserTrait) ClearSsoStatus() { + x.SsoStatus = nil +} + +func (x *UserTrait) ClearStructuredName() { + x.StructuredName = nil +} + +type UserTrait_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Emails []*UserTrait_Email + Status *UserTrait_Status + Profile *structpb.Struct + Icon *AssetRef + AccountType UserTrait_AccountType + // The user's login + Login string + // Any additional login aliases for the user + LoginAliases []string + EmployeeIds []string + CreatedAt *timestamppb.Timestamp + LastLogin *timestamppb.Timestamp + MfaStatus *UserTrait_MFAStatus + SsoStatus *UserTrait_SSOStatus + StructuredName *UserTrait_StructuredName +} + +func (b0 UserTrait_builder) Build() *UserTrait { + m0 := &UserTrait{} + b, x := &b0, m0 + _, _ = b, x + x.Emails = b.Emails + x.Status = b.Status + x.Profile = b.Profile + x.Icon = b.Icon + x.AccountType = b.AccountType + x.Login = b.Login + x.LoginAliases = b.LoginAliases + x.EmployeeIds = b.EmployeeIds + x.CreatedAt = b.CreatedAt + x.LastLogin = b.LastLogin + x.MfaStatus = b.MfaStatus + x.SsoStatus = b.SsoStatus + x.StructuredName = b.StructuredName + return m0 +} + type GroupTrait struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` Icon *AssetRef `protobuf:"bytes,1,opt,name=icon,proto3" json:"icon,omitempty"` Profile *structpb.Struct `protobuf:"bytes,2,opt,name=profile,proto3" json:"profile,omitempty"` unknownFields protoimpl.UnknownFields @@ -361,11 +522,6 @@ func (x *GroupTrait) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use GroupTrait.ProtoReflect.Descriptor instead. -func (*GroupTrait) Descriptor() ([]byte, []int) { - return file_c1_connector_v2_annotation_trait_proto_rawDescGZIP(), []int{1} -} - func (x *GroupTrait) GetIcon() *AssetRef { if x != nil { return x.Icon @@ -380,8 +536,54 @@ func (x *GroupTrait) GetProfile() *structpb.Struct { return nil } +func (x *GroupTrait) SetIcon(v *AssetRef) { + x.Icon = v +} + +func (x *GroupTrait) SetProfile(v *structpb.Struct) { + x.Profile = v +} + +func (x *GroupTrait) HasIcon() bool { + if x == nil { + return false + } + return x.Icon != nil +} + +func (x *GroupTrait) HasProfile() bool { + if x == nil { + return false + } + return x.Profile != nil +} + +func (x *GroupTrait) ClearIcon() { + x.Icon = nil +} + +func (x *GroupTrait) ClearProfile() { + x.Profile = nil +} + +type GroupTrait_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Icon *AssetRef + Profile *structpb.Struct +} + +func (b0 GroupTrait_builder) Build() *GroupTrait { + m0 := &GroupTrait{} + b, x := &b0, m0 + _, _ = b, x + x.Icon = b.Icon + x.Profile = b.Profile + return m0 +} + type RoleTrait struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` Profile *structpb.Struct `protobuf:"bytes,1,opt,name=profile,proto3" json:"profile,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache @@ -412,11 +614,6 @@ func (x *RoleTrait) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use RoleTrait.ProtoReflect.Descriptor instead. -func (*RoleTrait) Descriptor() ([]byte, []int) { - return file_c1_connector_v2_annotation_trait_proto_rawDescGZIP(), []int{2} -} - func (x *RoleTrait) GetProfile() *structpb.Struct { if x != nil { return x.Profile @@ -424,8 +621,37 @@ func (x *RoleTrait) GetProfile() *structpb.Struct { return nil } +func (x *RoleTrait) SetProfile(v *structpb.Struct) { + x.Profile = v +} + +func (x *RoleTrait) HasProfile() bool { + if x == nil { + return false + } + return x.Profile != nil +} + +func (x *RoleTrait) ClearProfile() { + x.Profile = nil +} + +type RoleTrait_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Profile *structpb.Struct +} + +func (b0 RoleTrait_builder) Build() *RoleTrait { + m0 := &RoleTrait{} + b, x := &b0, m0 + _, _ = b, x + x.Profile = b.Profile + return m0 +} + type AppTrait struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` HelpUrl string `protobuf:"bytes,1,opt,name=help_url,json=helpUrl,proto3" json:"help_url,omitempty"` Icon *AssetRef `protobuf:"bytes,2,opt,name=icon,proto3" json:"icon,omitempty"` Logo *AssetRef `protobuf:"bytes,3,opt,name=logo,proto3" json:"logo,omitempty"` @@ -460,11 +686,6 @@ func (x *AppTrait) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use AppTrait.ProtoReflect.Descriptor instead. -func (*AppTrait) Descriptor() ([]byte, []int) { - return file_c1_connector_v2_annotation_trait_proto_rawDescGZIP(), []int{3} -} - func (x *AppTrait) GetHelpUrl() string { if x != nil { return x.HelpUrl @@ -500,8 +721,83 @@ func (x *AppTrait) GetFlags() []AppTrait_AppFlag { return nil } +func (x *AppTrait) SetHelpUrl(v string) { + x.HelpUrl = v +} + +func (x *AppTrait) SetIcon(v *AssetRef) { + x.Icon = v +} + +func (x *AppTrait) SetLogo(v *AssetRef) { + x.Logo = v +} + +func (x *AppTrait) SetProfile(v *structpb.Struct) { + x.Profile = v +} + +func (x *AppTrait) SetFlags(v []AppTrait_AppFlag) { + x.Flags = v +} + +func (x *AppTrait) HasIcon() bool { + if x == nil { + return false + } + return x.Icon != nil +} + +func (x *AppTrait) HasLogo() bool { + if x == nil { + return false + } + return x.Logo != nil +} + +func (x *AppTrait) HasProfile() bool { + if x == nil { + return false + } + return x.Profile != nil +} + +func (x *AppTrait) ClearIcon() { + x.Icon = nil +} + +func (x *AppTrait) ClearLogo() { + x.Logo = nil +} + +func (x *AppTrait) ClearProfile() { + x.Profile = nil +} + +type AppTrait_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + HelpUrl string + Icon *AssetRef + Logo *AssetRef + Profile *structpb.Struct + Flags []AppTrait_AppFlag +} + +func (b0 AppTrait_builder) Build() *AppTrait { + m0 := &AppTrait{} + b, x := &b0, m0 + _, _ = b, x + x.HelpUrl = b.HelpUrl + x.Icon = b.Icon + x.Logo = b.Logo + x.Profile = b.Profile + x.Flags = b.Flags + return m0 +} + type SecretTrait struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` Profile *structpb.Struct `protobuf:"bytes,1,opt,name=profile,proto3" json:"profile,omitempty"` CreatedAt *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` ExpiresAt *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=expires_at,json=expiresAt,proto3" json:"expires_at,omitempty"` @@ -537,11 +833,6 @@ func (x *SecretTrait) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use SecretTrait.ProtoReflect.Descriptor instead. -func (*SecretTrait) Descriptor() ([]byte, []int) { - return file_c1_connector_v2_annotation_trait_proto_rawDescGZIP(), []int{4} -} - func (x *SecretTrait) GetProfile() *structpb.Struct { if x != nil { return x.Profile @@ -584,8 +875,122 @@ func (x *SecretTrait) GetIdentityId() *ResourceId { return nil } +func (x *SecretTrait) SetProfile(v *structpb.Struct) { + x.Profile = v +} + +func (x *SecretTrait) SetCreatedAt(v *timestamppb.Timestamp) { + x.CreatedAt = v +} + +func (x *SecretTrait) SetExpiresAt(v *timestamppb.Timestamp) { + x.ExpiresAt = v +} + +func (x *SecretTrait) SetLastUsedAt(v *timestamppb.Timestamp) { + x.LastUsedAt = v +} + +func (x *SecretTrait) SetCreatedById(v *ResourceId) { + x.CreatedById = v +} + +func (x *SecretTrait) SetIdentityId(v *ResourceId) { + x.IdentityId = v +} + +func (x *SecretTrait) HasProfile() bool { + if x == nil { + return false + } + return x.Profile != nil +} + +func (x *SecretTrait) HasCreatedAt() bool { + if x == nil { + return false + } + return x.CreatedAt != nil +} + +func (x *SecretTrait) HasExpiresAt() bool { + if x == nil { + return false + } + return x.ExpiresAt != nil +} + +func (x *SecretTrait) HasLastUsedAt() bool { + if x == nil { + return false + } + return x.LastUsedAt != nil +} + +func (x *SecretTrait) HasCreatedById() bool { + if x == nil { + return false + } + return x.CreatedById != nil +} + +func (x *SecretTrait) HasIdentityId() bool { + if x == nil { + return false + } + return x.IdentityId != nil +} + +func (x *SecretTrait) ClearProfile() { + x.Profile = nil +} + +func (x *SecretTrait) ClearCreatedAt() { + x.CreatedAt = nil +} + +func (x *SecretTrait) ClearExpiresAt() { + x.ExpiresAt = nil +} + +func (x *SecretTrait) ClearLastUsedAt() { + x.LastUsedAt = nil +} + +func (x *SecretTrait) ClearCreatedById() { + x.CreatedById = nil +} + +func (x *SecretTrait) ClearIdentityId() { + x.IdentityId = nil +} + +type SecretTrait_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Profile *structpb.Struct + CreatedAt *timestamppb.Timestamp + ExpiresAt *timestamppb.Timestamp + LastUsedAt *timestamppb.Timestamp + CreatedById *ResourceId + IdentityId *ResourceId +} + +func (b0 SecretTrait_builder) Build() *SecretTrait { + m0 := &SecretTrait{} + b, x := &b0, m0 + _, _ = b, x + x.Profile = b.Profile + x.CreatedAt = b.CreatedAt + x.ExpiresAt = b.ExpiresAt + x.LastUsedAt = b.LastUsedAt + x.CreatedById = b.CreatedById + x.IdentityId = b.IdentityId + return m0 +} + type UserTrait_Email struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` // Indicates if this is the user's primary email. Only one entry can be marked as primary. IsPrimary bool `protobuf:"varint,2,opt,name=is_primary,json=isPrimary,proto3" json:"is_primary,omitempty"` @@ -618,11 +1023,6 @@ func (x *UserTrait_Email) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use UserTrait_Email.ProtoReflect.Descriptor instead. -func (*UserTrait_Email) Descriptor() ([]byte, []int) { - return file_c1_connector_v2_annotation_trait_proto_rawDescGZIP(), []int{0, 0} -} - func (x *UserTrait_Email) GetAddress() string { if x != nil { return x.Address @@ -637,8 +1037,33 @@ func (x *UserTrait_Email) GetIsPrimary() bool { return false } +func (x *UserTrait_Email) SetAddress(v string) { + x.Address = v +} + +func (x *UserTrait_Email) SetIsPrimary(v bool) { + x.IsPrimary = v +} + +type UserTrait_Email_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Address string + // Indicates if this is the user's primary email. Only one entry can be marked as primary. + IsPrimary bool +} + +func (b0 UserTrait_Email_builder) Build() *UserTrait_Email { + m0 := &UserTrait_Email{} + b, x := &b0, m0 + _, _ = b, x + x.Address = b.Address + x.IsPrimary = b.IsPrimary + return m0 +} + type UserTrait_Status struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` Status UserTrait_Status_Status `protobuf:"varint,1,opt,name=status,proto3,enum=c1.connector.v2.UserTrait_Status_Status" json:"status,omitempty"` Details string `protobuf:"bytes,2,opt,name=details,proto3" json:"details,omitempty"` unknownFields protoimpl.UnknownFields @@ -670,11 +1095,6 @@ func (x *UserTrait_Status) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use UserTrait_Status.ProtoReflect.Descriptor instead. -func (*UserTrait_Status) Descriptor() ([]byte, []int) { - return file_c1_connector_v2_annotation_trait_proto_rawDescGZIP(), []int{0, 1} -} - func (x *UserTrait_Status) GetStatus() UserTrait_Status_Status { if x != nil { return x.Status @@ -689,8 +1109,32 @@ func (x *UserTrait_Status) GetDetails() string { return "" } +func (x *UserTrait_Status) SetStatus(v UserTrait_Status_Status) { + x.Status = v +} + +func (x *UserTrait_Status) SetDetails(v string) { + x.Details = v +} + +type UserTrait_Status_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Status UserTrait_Status_Status + Details string +} + +func (b0 UserTrait_Status_builder) Build() *UserTrait_Status { + m0 := &UserTrait_Status{} + b, x := &b0, m0 + _, _ = b, x + x.Status = b.Status + x.Details = b.Details + return m0 +} + type UserTrait_MFAStatus struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` MfaEnabled bool `protobuf:"varint,1,opt,name=mfa_enabled,json=mfaEnabled,proto3" json:"mfa_enabled,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache @@ -721,11 +1165,6 @@ func (x *UserTrait_MFAStatus) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use UserTrait_MFAStatus.ProtoReflect.Descriptor instead. -func (*UserTrait_MFAStatus) Descriptor() ([]byte, []int) { - return file_c1_connector_v2_annotation_trait_proto_rawDescGZIP(), []int{0, 2} -} - func (x *UserTrait_MFAStatus) GetMfaEnabled() bool { if x != nil { return x.MfaEnabled @@ -733,8 +1172,26 @@ func (x *UserTrait_MFAStatus) GetMfaEnabled() bool { return false } +func (x *UserTrait_MFAStatus) SetMfaEnabled(v bool) { + x.MfaEnabled = v +} + +type UserTrait_MFAStatus_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + MfaEnabled bool +} + +func (b0 UserTrait_MFAStatus_builder) Build() *UserTrait_MFAStatus { + m0 := &UserTrait_MFAStatus{} + b, x := &b0, m0 + _, _ = b, x + x.MfaEnabled = b.MfaEnabled + return m0 +} + type UserTrait_SSOStatus struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` SsoEnabled bool `protobuf:"varint,1,opt,name=sso_enabled,json=ssoEnabled,proto3" json:"sso_enabled,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache @@ -765,11 +1222,6 @@ func (x *UserTrait_SSOStatus) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use UserTrait_SSOStatus.ProtoReflect.Descriptor instead. -func (*UserTrait_SSOStatus) Descriptor() ([]byte, []int) { - return file_c1_connector_v2_annotation_trait_proto_rawDescGZIP(), []int{0, 3} -} - func (x *UserTrait_SSOStatus) GetSsoEnabled() bool { if x != nil { return x.SsoEnabled @@ -777,8 +1229,26 @@ func (x *UserTrait_SSOStatus) GetSsoEnabled() bool { return false } +func (x *UserTrait_SSOStatus) SetSsoEnabled(v bool) { + x.SsoEnabled = v +} + +type UserTrait_SSOStatus_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + SsoEnabled bool +} + +func (b0 UserTrait_SSOStatus_builder) Build() *UserTrait_SSOStatus { + m0 := &UserTrait_SSOStatus{} + b, x := &b0, m0 + _, _ = b, x + x.SsoEnabled = b.SsoEnabled + return m0 +} + type UserTrait_StructuredName struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` GivenName string `protobuf:"bytes,1,opt,name=given_name,json=givenName,proto3" json:"given_name,omitempty"` FamilyName string `protobuf:"bytes,2,opt,name=family_name,json=familyName,proto3" json:"family_name,omitempty"` MiddleNames []string `protobuf:"bytes,3,rep,name=middle_names,json=middleNames,proto3" json:"middle_names,omitempty"` @@ -813,11 +1283,6 @@ func (x *UserTrait_StructuredName) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use UserTrait_StructuredName.ProtoReflect.Descriptor instead. -func (*UserTrait_StructuredName) Descriptor() ([]byte, []int) { - return file_c1_connector_v2_annotation_trait_proto_rawDescGZIP(), []int{0, 4} -} - func (x *UserTrait_StructuredName) GetGivenName() string { if x != nil { return x.GivenName @@ -853,190 +1318,135 @@ func (x *UserTrait_StructuredName) GetSuffix() string { return "" } -var File_c1_connector_v2_annotation_trait_proto protoreflect.FileDescriptor +func (x *UserTrait_StructuredName) SetGivenName(v string) { + x.GivenName = v +} -var file_c1_connector_v2_annotation_trait_proto_rawDesc = string([]byte{ - 0x0a, 0x26, 0x63, 0x31, 0x2f, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x2f, 0x76, - 0x32, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x74, 0x72, 0x61, - 0x69, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0f, 0x63, 0x31, 0x2e, 0x63, 0x6f, 0x6e, - 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x2e, 0x76, 0x32, 0x1a, 0x1b, 0x63, 0x31, 0x2f, 0x63, 0x6f, - 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x2f, 0x76, 0x32, 0x2f, 0x61, 0x73, 0x73, 0x65, 0x74, - 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1e, 0x63, 0x31, 0x2f, 0x63, 0x6f, 0x6e, 0x6e, 0x65, - 0x63, 0x74, 0x6f, 0x72, 0x2f, 0x76, 0x32, 0x2f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, - 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1c, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, - 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x73, 0x74, 0x72, 0x75, 0x63, 0x74, 0x2e, 0x70, - 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, - 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x2e, - 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x17, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x2f, - 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x97, - 0x0b, 0x0a, 0x09, 0x55, 0x73, 0x65, 0x72, 0x54, 0x72, 0x61, 0x69, 0x74, 0x12, 0x38, 0x0a, 0x06, - 0x65, 0x6d, 0x61, 0x69, 0x6c, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x63, - 0x31, 0x2e, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x2e, 0x76, 0x32, 0x2e, 0x55, - 0x73, 0x65, 0x72, 0x54, 0x72, 0x61, 0x69, 0x74, 0x2e, 0x45, 0x6d, 0x61, 0x69, 0x6c, 0x52, 0x06, - 0x65, 0x6d, 0x61, 0x69, 0x6c, 0x73, 0x12, 0x43, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, - 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x63, 0x31, 0x2e, 0x63, 0x6f, 0x6e, 0x6e, - 0x65, 0x63, 0x74, 0x6f, 0x72, 0x2e, 0x76, 0x32, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x54, 0x72, 0x61, - 0x69, 0x74, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x42, 0x08, 0xfa, 0x42, 0x05, 0x8a, 0x01, - 0x02, 0x10, 0x01, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x31, 0x0a, 0x07, 0x70, - 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x67, - 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x53, - 0x74, 0x72, 0x75, 0x63, 0x74, 0x52, 0x07, 0x70, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x12, 0x2d, - 0x0a, 0x04, 0x69, 0x63, 0x6f, 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x63, - 0x31, 0x2e, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x2e, 0x76, 0x32, 0x2e, 0x41, - 0x73, 0x73, 0x65, 0x74, 0x52, 0x65, 0x66, 0x52, 0x04, 0x69, 0x63, 0x6f, 0x6e, 0x12, 0x53, 0x0a, - 0x0c, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x05, 0x20, - 0x01, 0x28, 0x0e, 0x32, 0x26, 0x2e, 0x63, 0x31, 0x2e, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, - 0x6f, 0x72, 0x2e, 0x76, 0x32, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x54, 0x72, 0x61, 0x69, 0x74, 0x2e, - 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x54, 0x79, 0x70, 0x65, 0x42, 0x08, 0xfa, 0x42, 0x05, - 0x82, 0x01, 0x02, 0x10, 0x01, 0x52, 0x0b, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x54, 0x79, - 0x70, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x6c, 0x6f, 0x67, 0x69, 0x6e, 0x18, 0x06, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x05, 0x6c, 0x6f, 0x67, 0x69, 0x6e, 0x12, 0x23, 0x0a, 0x0d, 0x6c, 0x6f, 0x67, 0x69, - 0x6e, 0x5f, 0x61, 0x6c, 0x69, 0x61, 0x73, 0x65, 0x73, 0x18, 0x07, 0x20, 0x03, 0x28, 0x09, 0x52, - 0x0c, 0x6c, 0x6f, 0x67, 0x69, 0x6e, 0x41, 0x6c, 0x69, 0x61, 0x73, 0x65, 0x73, 0x12, 0x21, 0x0a, - 0x0c, 0x65, 0x6d, 0x70, 0x6c, 0x6f, 0x79, 0x65, 0x65, 0x5f, 0x69, 0x64, 0x73, 0x18, 0x0d, 0x20, - 0x03, 0x28, 0x09, 0x52, 0x0b, 0x65, 0x6d, 0x70, 0x6c, 0x6f, 0x79, 0x65, 0x65, 0x49, 0x64, 0x73, - 0x12, 0x39, 0x0a, 0x0a, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x61, 0x74, 0x18, 0x08, - 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, - 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, - 0x52, 0x09, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x41, 0x74, 0x12, 0x39, 0x0a, 0x0a, 0x6c, - 0x61, 0x73, 0x74, 0x5f, 0x6c, 0x6f, 0x67, 0x69, 0x6e, 0x18, 0x09, 0x20, 0x01, 0x28, 0x0b, 0x32, - 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, - 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x09, 0x6c, 0x61, 0x73, - 0x74, 0x4c, 0x6f, 0x67, 0x69, 0x6e, 0x12, 0x43, 0x0a, 0x0a, 0x6d, 0x66, 0x61, 0x5f, 0x73, 0x74, - 0x61, 0x74, 0x75, 0x73, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x63, 0x31, 0x2e, - 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x2e, 0x76, 0x32, 0x2e, 0x55, 0x73, 0x65, - 0x72, 0x54, 0x72, 0x61, 0x69, 0x74, 0x2e, 0x4d, 0x46, 0x41, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, - 0x52, 0x09, 0x6d, 0x66, 0x61, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x43, 0x0a, 0x0a, 0x73, - 0x73, 0x6f, 0x5f, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x0b, 0x32, - 0x24, 0x2e, 0x63, 0x31, 0x2e, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x2e, 0x76, - 0x32, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x54, 0x72, 0x61, 0x69, 0x74, 0x2e, 0x53, 0x53, 0x4f, 0x53, - 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x09, 0x73, 0x73, 0x6f, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, - 0x12, 0x52, 0x0a, 0x0f, 0x73, 0x74, 0x72, 0x75, 0x63, 0x74, 0x75, 0x72, 0x65, 0x64, 0x5f, 0x6e, - 0x61, 0x6d, 0x65, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x29, 0x2e, 0x63, 0x31, 0x2e, 0x63, - 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x2e, 0x76, 0x32, 0x2e, 0x55, 0x73, 0x65, 0x72, - 0x54, 0x72, 0x61, 0x69, 0x74, 0x2e, 0x53, 0x74, 0x72, 0x75, 0x63, 0x74, 0x75, 0x72, 0x65, 0x64, - 0x4e, 0x61, 0x6d, 0x65, 0x52, 0x0e, 0x73, 0x74, 0x72, 0x75, 0x63, 0x74, 0x75, 0x72, 0x65, 0x64, - 0x4e, 0x61, 0x6d, 0x65, 0x1a, 0x49, 0x0a, 0x05, 0x45, 0x6d, 0x61, 0x69, 0x6c, 0x12, 0x21, 0x0a, - 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x07, - 0xfa, 0x42, 0x04, 0x72, 0x02, 0x60, 0x01, 0x52, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, - 0x12, 0x1d, 0x0a, 0x0a, 0x69, 0x73, 0x5f, 0x70, 0x72, 0x69, 0x6d, 0x61, 0x72, 0x79, 0x18, 0x02, - 0x20, 0x01, 0x28, 0x08, 0x52, 0x09, 0x69, 0x73, 0x50, 0x72, 0x69, 0x6d, 0x61, 0x72, 0x79, 0x1a, - 0xdc, 0x01, 0x0a, 0x06, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x4a, 0x0a, 0x06, 0x73, 0x74, - 0x61, 0x74, 0x75, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x28, 0x2e, 0x63, 0x31, 0x2e, - 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x2e, 0x76, 0x32, 0x2e, 0x55, 0x73, 0x65, - 0x72, 0x54, 0x72, 0x61, 0x69, 0x74, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x2e, 0x53, 0x74, - 0x61, 0x74, 0x75, 0x73, 0x42, 0x08, 0xfa, 0x42, 0x05, 0x82, 0x01, 0x02, 0x10, 0x01, 0x52, 0x06, - 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x27, 0x0a, 0x07, 0x64, 0x65, 0x74, 0x61, 0x69, 0x6c, - 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x0d, 0xfa, 0x42, 0x0a, 0x72, 0x08, 0x20, 0x01, - 0x28, 0x80, 0x08, 0xd0, 0x01, 0x01, 0x52, 0x07, 0x64, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0x22, - 0x5d, 0x0a, 0x06, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x16, 0x0a, 0x12, 0x53, 0x54, 0x41, - 0x54, 0x55, 0x53, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, - 0x00, 0x12, 0x12, 0x0a, 0x0e, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, 0x45, 0x4e, 0x41, 0x42, - 0x4c, 0x45, 0x44, 0x10, 0x01, 0x12, 0x13, 0x0a, 0x0f, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, - 0x44, 0x49, 0x53, 0x41, 0x42, 0x4c, 0x45, 0x44, 0x10, 0x02, 0x12, 0x12, 0x0a, 0x0e, 0x53, 0x54, - 0x41, 0x54, 0x55, 0x53, 0x5f, 0x44, 0x45, 0x4c, 0x45, 0x54, 0x45, 0x44, 0x10, 0x03, 0x1a, 0x2c, - 0x0a, 0x09, 0x4d, 0x46, 0x41, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x1f, 0x0a, 0x0b, 0x6d, - 0x66, 0x61, 0x5f, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, - 0x52, 0x0a, 0x6d, 0x66, 0x61, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x1a, 0x2c, 0x0a, 0x09, - 0x53, 0x53, 0x4f, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x1f, 0x0a, 0x0b, 0x73, 0x73, 0x6f, - 0x5f, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0a, - 0x73, 0x73, 0x6f, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x1a, 0xa3, 0x01, 0x0a, 0x0e, 0x53, - 0x74, 0x72, 0x75, 0x63, 0x74, 0x75, 0x72, 0x65, 0x64, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x1d, 0x0a, - 0x0a, 0x67, 0x69, 0x76, 0x65, 0x6e, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x09, 0x67, 0x69, 0x76, 0x65, 0x6e, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x1f, 0x0a, 0x0b, - 0x66, 0x61, 0x6d, 0x69, 0x6c, 0x79, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x0a, 0x66, 0x61, 0x6d, 0x69, 0x6c, 0x79, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x21, 0x0a, - 0x0c, 0x6d, 0x69, 0x64, 0x64, 0x6c, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x73, 0x18, 0x03, 0x20, - 0x03, 0x28, 0x09, 0x52, 0x0b, 0x6d, 0x69, 0x64, 0x64, 0x6c, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x73, - 0x12, 0x16, 0x0a, 0x06, 0x70, 0x72, 0x65, 0x66, 0x69, 0x78, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x06, 0x70, 0x72, 0x65, 0x66, 0x69, 0x78, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x75, 0x66, 0x66, - 0x69, 0x78, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x73, 0x75, 0x66, 0x66, 0x69, 0x78, - 0x22, 0x76, 0x0a, 0x0b, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x54, 0x79, 0x70, 0x65, 0x12, - 0x1c, 0x0a, 0x18, 0x41, 0x43, 0x43, 0x4f, 0x55, 0x4e, 0x54, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, - 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x16, 0x0a, - 0x12, 0x41, 0x43, 0x43, 0x4f, 0x55, 0x4e, 0x54, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x48, 0x55, - 0x4d, 0x41, 0x4e, 0x10, 0x01, 0x12, 0x18, 0x0a, 0x14, 0x41, 0x43, 0x43, 0x4f, 0x55, 0x4e, 0x54, - 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x53, 0x45, 0x52, 0x56, 0x49, 0x43, 0x45, 0x10, 0x02, 0x12, - 0x17, 0x0a, 0x13, 0x41, 0x43, 0x43, 0x4f, 0x55, 0x4e, 0x54, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, - 0x53, 0x59, 0x53, 0x54, 0x45, 0x4d, 0x10, 0x03, 0x22, 0x6e, 0x0a, 0x0a, 0x47, 0x72, 0x6f, 0x75, - 0x70, 0x54, 0x72, 0x61, 0x69, 0x74, 0x12, 0x2d, 0x0a, 0x04, 0x69, 0x63, 0x6f, 0x6e, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x63, 0x31, 0x2e, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, - 0x74, 0x6f, 0x72, 0x2e, 0x76, 0x32, 0x2e, 0x41, 0x73, 0x73, 0x65, 0x74, 0x52, 0x65, 0x66, 0x52, - 0x04, 0x69, 0x63, 0x6f, 0x6e, 0x12, 0x31, 0x0a, 0x07, 0x70, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, - 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, - 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x53, 0x74, 0x72, 0x75, 0x63, 0x74, 0x52, - 0x07, 0x70, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x22, 0x3e, 0x0a, 0x09, 0x52, 0x6f, 0x6c, 0x65, - 0x54, 0x72, 0x61, 0x69, 0x74, 0x12, 0x31, 0x0a, 0x07, 0x70, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, - 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, - 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x53, 0x74, 0x72, 0x75, 0x63, 0x74, 0x52, - 0x07, 0x70, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x22, 0x9a, 0x03, 0x0a, 0x08, 0x41, 0x70, 0x70, - 0x54, 0x72, 0x61, 0x69, 0x74, 0x12, 0x35, 0x0a, 0x08, 0x68, 0x65, 0x6c, 0x70, 0x5f, 0x75, 0x72, - 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x1a, 0xfa, 0x42, 0x17, 0x72, 0x15, 0x20, 0x01, - 0x28, 0x80, 0x08, 0x3a, 0x08, 0x68, 0x74, 0x74, 0x70, 0x73, 0x3a, 0x2f, 0x2f, 0xd0, 0x01, 0x01, - 0x88, 0x01, 0x01, 0x52, 0x07, 0x68, 0x65, 0x6c, 0x70, 0x55, 0x72, 0x6c, 0x12, 0x2d, 0x0a, 0x04, - 0x69, 0x63, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x63, 0x31, 0x2e, - 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x2e, 0x76, 0x32, 0x2e, 0x41, 0x73, 0x73, - 0x65, 0x74, 0x52, 0x65, 0x66, 0x52, 0x04, 0x69, 0x63, 0x6f, 0x6e, 0x12, 0x2d, 0x0a, 0x04, 0x6c, - 0x6f, 0x67, 0x6f, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x63, 0x31, 0x2e, 0x63, - 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x2e, 0x76, 0x32, 0x2e, 0x41, 0x73, 0x73, 0x65, - 0x74, 0x52, 0x65, 0x66, 0x52, 0x04, 0x6c, 0x6f, 0x67, 0x6f, 0x12, 0x31, 0x0a, 0x07, 0x70, 0x72, - 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x67, 0x6f, - 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x53, 0x74, - 0x72, 0x75, 0x63, 0x74, 0x52, 0x07, 0x70, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x12, 0x37, 0x0a, - 0x05, 0x66, 0x6c, 0x61, 0x67, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x0e, 0x32, 0x21, 0x2e, 0x63, - 0x31, 0x2e, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x2e, 0x76, 0x32, 0x2e, 0x41, - 0x70, 0x70, 0x54, 0x72, 0x61, 0x69, 0x74, 0x2e, 0x41, 0x70, 0x70, 0x46, 0x6c, 0x61, 0x67, 0x52, - 0x05, 0x66, 0x6c, 0x61, 0x67, 0x73, 0x22, 0x8c, 0x01, 0x0a, 0x07, 0x41, 0x70, 0x70, 0x46, 0x6c, - 0x61, 0x67, 0x12, 0x18, 0x0a, 0x14, 0x41, 0x50, 0x50, 0x5f, 0x46, 0x4c, 0x41, 0x47, 0x5f, 0x55, - 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x13, 0x0a, 0x0f, - 0x41, 0x50, 0x50, 0x5f, 0x46, 0x4c, 0x41, 0x47, 0x5f, 0x48, 0x49, 0x44, 0x44, 0x45, 0x4e, 0x10, - 0x01, 0x12, 0x15, 0x0a, 0x11, 0x41, 0x50, 0x50, 0x5f, 0x46, 0x4c, 0x41, 0x47, 0x5f, 0x49, 0x4e, - 0x41, 0x43, 0x54, 0x49, 0x56, 0x45, 0x10, 0x02, 0x12, 0x11, 0x0a, 0x0d, 0x41, 0x50, 0x50, 0x5f, - 0x46, 0x4c, 0x41, 0x47, 0x5f, 0x53, 0x41, 0x4d, 0x4c, 0x10, 0x03, 0x12, 0x11, 0x0a, 0x0d, 0x41, - 0x50, 0x50, 0x5f, 0x46, 0x4c, 0x41, 0x47, 0x5f, 0x4f, 0x49, 0x44, 0x43, 0x10, 0x04, 0x12, 0x15, - 0x0a, 0x11, 0x41, 0x50, 0x50, 0x5f, 0x46, 0x4c, 0x41, 0x47, 0x5f, 0x42, 0x4f, 0x4f, 0x4b, 0x4d, - 0x41, 0x52, 0x4b, 0x10, 0x05, 0x22, 0xf3, 0x02, 0x0a, 0x0b, 0x53, 0x65, 0x63, 0x72, 0x65, 0x74, - 0x54, 0x72, 0x61, 0x69, 0x74, 0x12, 0x31, 0x0a, 0x07, 0x70, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, - 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, - 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x53, 0x74, 0x72, 0x75, 0x63, 0x74, 0x52, - 0x07, 0x70, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x12, 0x39, 0x0a, 0x0a, 0x63, 0x72, 0x65, 0x61, - 0x74, 0x65, 0x64, 0x5f, 0x61, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, - 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, - 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x09, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, - 0x64, 0x41, 0x74, 0x12, 0x39, 0x0a, 0x0a, 0x65, 0x78, 0x70, 0x69, 0x72, 0x65, 0x73, 0x5f, 0x61, - 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, - 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, - 0x61, 0x6d, 0x70, 0x52, 0x09, 0x65, 0x78, 0x70, 0x69, 0x72, 0x65, 0x73, 0x41, 0x74, 0x12, 0x3c, - 0x0a, 0x0c, 0x6c, 0x61, 0x73, 0x74, 0x5f, 0x75, 0x73, 0x65, 0x64, 0x5f, 0x61, 0x74, 0x18, 0x04, - 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, - 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, - 0x52, 0x0a, 0x6c, 0x61, 0x73, 0x74, 0x55, 0x73, 0x65, 0x64, 0x41, 0x74, 0x12, 0x3f, 0x0a, 0x0d, - 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x62, 0x79, 0x5f, 0x69, 0x64, 0x18, 0x05, 0x20, - 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x63, 0x31, 0x2e, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, - 0x6f, 0x72, 0x2e, 0x76, 0x32, 0x2e, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x49, 0x64, - 0x52, 0x0b, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x42, 0x79, 0x49, 0x64, 0x12, 0x3c, 0x0a, - 0x0b, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x5f, 0x69, 0x64, 0x18, 0x06, 0x20, 0x01, - 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x63, 0x31, 0x2e, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, - 0x72, 0x2e, 0x76, 0x32, 0x2e, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x49, 0x64, 0x52, - 0x0a, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x49, 0x64, 0x42, 0x36, 0x5a, 0x34, 0x67, - 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x63, 0x6f, 0x6e, 0x64, 0x75, 0x63, - 0x74, 0x6f, 0x72, 0x6f, 0x6e, 0x65, 0x2f, 0x62, 0x61, 0x74, 0x6f, 0x6e, 0x2d, 0x73, 0x64, 0x6b, - 0x2f, 0x70, 0x62, 0x2f, 0x63, 0x31, 0x2f, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, - 0x2f, 0x76, 0x32, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, -}) +func (x *UserTrait_StructuredName) SetFamilyName(v string) { + x.FamilyName = v +} -var ( - file_c1_connector_v2_annotation_trait_proto_rawDescOnce sync.Once - file_c1_connector_v2_annotation_trait_proto_rawDescData []byte -) +func (x *UserTrait_StructuredName) SetMiddleNames(v []string) { + x.MiddleNames = v +} + +func (x *UserTrait_StructuredName) SetPrefix(v string) { + x.Prefix = v +} -func file_c1_connector_v2_annotation_trait_proto_rawDescGZIP() []byte { - file_c1_connector_v2_annotation_trait_proto_rawDescOnce.Do(func() { - file_c1_connector_v2_annotation_trait_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_c1_connector_v2_annotation_trait_proto_rawDesc), len(file_c1_connector_v2_annotation_trait_proto_rawDesc))) - }) - return file_c1_connector_v2_annotation_trait_proto_rawDescData +func (x *UserTrait_StructuredName) SetSuffix(v string) { + x.Suffix = v } +type UserTrait_StructuredName_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + GivenName string + FamilyName string + MiddleNames []string + Prefix string + Suffix string +} + +func (b0 UserTrait_StructuredName_builder) Build() *UserTrait_StructuredName { + m0 := &UserTrait_StructuredName{} + b, x := &b0, m0 + _, _ = b, x + x.GivenName = b.GivenName + x.FamilyName = b.FamilyName + x.MiddleNames = b.MiddleNames + x.Prefix = b.Prefix + x.Suffix = b.Suffix + return m0 +} + +var File_c1_connector_v2_annotation_trait_proto protoreflect.FileDescriptor + +const file_c1_connector_v2_annotation_trait_proto_rawDesc = "" + + "\n" + + "&c1/connector/v2/annotation_trait.proto\x12\x0fc1.connector.v2\x1a\x1bc1/connector/v2/asset.proto\x1a\x1ec1/connector/v2/resource.proto\x1a\x1cgoogle/protobuf/struct.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x17validate/validate.proto\"\x97\v\n" + + "\tUserTrait\x128\n" + + "\x06emails\x18\x01 \x03(\v2 .c1.connector.v2.UserTrait.EmailR\x06emails\x12C\n" + + "\x06status\x18\x02 \x01(\v2!.c1.connector.v2.UserTrait.StatusB\b\xfaB\x05\x8a\x01\x02\x10\x01R\x06status\x121\n" + + "\aprofile\x18\x03 \x01(\v2\x17.google.protobuf.StructR\aprofile\x12-\n" + + "\x04icon\x18\x04 \x01(\v2\x19.c1.connector.v2.AssetRefR\x04icon\x12S\n" + + "\faccount_type\x18\x05 \x01(\x0e2&.c1.connector.v2.UserTrait.AccountTypeB\b\xfaB\x05\x82\x01\x02\x10\x01R\vaccountType\x12\x14\n" + + "\x05login\x18\x06 \x01(\tR\x05login\x12#\n" + + "\rlogin_aliases\x18\a \x03(\tR\floginAliases\x12!\n" + + "\femployee_ids\x18\r \x03(\tR\vemployeeIds\x129\n" + + "\n" + + "created_at\x18\b \x01(\v2\x1a.google.protobuf.TimestampR\tcreatedAt\x129\n" + + "\n" + + "last_login\x18\t \x01(\v2\x1a.google.protobuf.TimestampR\tlastLogin\x12C\n" + + "\n" + + "mfa_status\x18\n" + + " \x01(\v2$.c1.connector.v2.UserTrait.MFAStatusR\tmfaStatus\x12C\n" + + "\n" + + "sso_status\x18\v \x01(\v2$.c1.connector.v2.UserTrait.SSOStatusR\tssoStatus\x12R\n" + + "\x0fstructured_name\x18\f \x01(\v2).c1.connector.v2.UserTrait.StructuredNameR\x0estructuredName\x1aI\n" + + "\x05Email\x12!\n" + + "\aaddress\x18\x01 \x01(\tB\a\xfaB\x04r\x02`\x01R\aaddress\x12\x1d\n" + + "\n" + + "is_primary\x18\x02 \x01(\bR\tisPrimary\x1a\xdc\x01\n" + + "\x06Status\x12J\n" + + "\x06status\x18\x01 \x01(\x0e2(.c1.connector.v2.UserTrait.Status.StatusB\b\xfaB\x05\x82\x01\x02\x10\x01R\x06status\x12'\n" + + "\adetails\x18\x02 \x01(\tB\r\xfaB\n" + + "r\b \x01(\x80\b\xd0\x01\x01R\adetails\"]\n" + + "\x06Status\x12\x16\n" + + "\x12STATUS_UNSPECIFIED\x10\x00\x12\x12\n" + + "\x0eSTATUS_ENABLED\x10\x01\x12\x13\n" + + "\x0fSTATUS_DISABLED\x10\x02\x12\x12\n" + + "\x0eSTATUS_DELETED\x10\x03\x1a,\n" + + "\tMFAStatus\x12\x1f\n" + + "\vmfa_enabled\x18\x01 \x01(\bR\n" + + "mfaEnabled\x1a,\n" + + "\tSSOStatus\x12\x1f\n" + + "\vsso_enabled\x18\x01 \x01(\bR\n" + + "ssoEnabled\x1a\xa3\x01\n" + + "\x0eStructuredName\x12\x1d\n" + + "\n" + + "given_name\x18\x01 \x01(\tR\tgivenName\x12\x1f\n" + + "\vfamily_name\x18\x02 \x01(\tR\n" + + "familyName\x12!\n" + + "\fmiddle_names\x18\x03 \x03(\tR\vmiddleNames\x12\x16\n" + + "\x06prefix\x18\x04 \x01(\tR\x06prefix\x12\x16\n" + + "\x06suffix\x18\x05 \x01(\tR\x06suffix\"v\n" + + "\vAccountType\x12\x1c\n" + + "\x18ACCOUNT_TYPE_UNSPECIFIED\x10\x00\x12\x16\n" + + "\x12ACCOUNT_TYPE_HUMAN\x10\x01\x12\x18\n" + + "\x14ACCOUNT_TYPE_SERVICE\x10\x02\x12\x17\n" + + "\x13ACCOUNT_TYPE_SYSTEM\x10\x03\"n\n" + + "\n" + + "GroupTrait\x12-\n" + + "\x04icon\x18\x01 \x01(\v2\x19.c1.connector.v2.AssetRefR\x04icon\x121\n" + + "\aprofile\x18\x02 \x01(\v2\x17.google.protobuf.StructR\aprofile\">\n" + + "\tRoleTrait\x121\n" + + "\aprofile\x18\x01 \x01(\v2\x17.google.protobuf.StructR\aprofile\"\x9a\x03\n" + + "\bAppTrait\x125\n" + + "\bhelp_url\x18\x01 \x01(\tB\x1a\xfaB\x17r\x15 \x01(\x80\b:\bhttps://\xd0\x01\x01\x88\x01\x01R\ahelpUrl\x12-\n" + + "\x04icon\x18\x02 \x01(\v2\x19.c1.connector.v2.AssetRefR\x04icon\x12-\n" + + "\x04logo\x18\x03 \x01(\v2\x19.c1.connector.v2.AssetRefR\x04logo\x121\n" + + "\aprofile\x18\x04 \x01(\v2\x17.google.protobuf.StructR\aprofile\x127\n" + + "\x05flags\x18\x05 \x03(\x0e2!.c1.connector.v2.AppTrait.AppFlagR\x05flags\"\x8c\x01\n" + + "\aAppFlag\x12\x18\n" + + "\x14APP_FLAG_UNSPECIFIED\x10\x00\x12\x13\n" + + "\x0fAPP_FLAG_HIDDEN\x10\x01\x12\x15\n" + + "\x11APP_FLAG_INACTIVE\x10\x02\x12\x11\n" + + "\rAPP_FLAG_SAML\x10\x03\x12\x11\n" + + "\rAPP_FLAG_OIDC\x10\x04\x12\x15\n" + + "\x11APP_FLAG_BOOKMARK\x10\x05\"\xf3\x02\n" + + "\vSecretTrait\x121\n" + + "\aprofile\x18\x01 \x01(\v2\x17.google.protobuf.StructR\aprofile\x129\n" + + "\n" + + "created_at\x18\x02 \x01(\v2\x1a.google.protobuf.TimestampR\tcreatedAt\x129\n" + + "\n" + + "expires_at\x18\x03 \x01(\v2\x1a.google.protobuf.TimestampR\texpiresAt\x12<\n" + + "\flast_used_at\x18\x04 \x01(\v2\x1a.google.protobuf.TimestampR\n" + + "lastUsedAt\x12?\n" + + "\rcreated_by_id\x18\x05 \x01(\v2\x1b.c1.connector.v2.ResourceIdR\vcreatedById\x12<\n" + + "\videntity_id\x18\x06 \x01(\v2\x1b.c1.connector.v2.ResourceIdR\n" + + "identityIdB6Z4github.com/conductorone/baton-sdk/pb/c1/connector/v2b\x06proto3" + var file_c1_connector_v2_annotation_trait_proto_enumTypes = make([]protoimpl.EnumInfo, 3) var file_c1_connector_v2_annotation_trait_proto_msgTypes = make([]protoimpl.MessageInfo, 10) var file_c1_connector_v2_annotation_trait_proto_goTypes = []any{ diff --git a/vendor/github.com/conductorone/baton-sdk/pb/c1/connector/v2/annotation_trait_protoopaque.pb.go b/vendor/github.com/conductorone/baton-sdk/pb/c1/connector/v2/annotation_trait_protoopaque.pb.go new file mode 100644 index 00000000..c7a4531b --- /dev/null +++ b/vendor/github.com/conductorone/baton-sdk/pb/c1/connector/v2/annotation_trait_protoopaque.pb.go @@ -0,0 +1,1527 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.36.10 +// protoc (unknown) +// source: c1/connector/v2/annotation_trait.proto + +//go:build protoopaque + +package v2 + +import ( + _ "github.com/envoyproxy/protoc-gen-validate/validate" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + structpb "google.golang.org/protobuf/types/known/structpb" + timestamppb "google.golang.org/protobuf/types/known/timestamppb" + reflect "reflect" + 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 UserTrait_AccountType int32 + +const ( + UserTrait_ACCOUNT_TYPE_UNSPECIFIED UserTrait_AccountType = 0 + UserTrait_ACCOUNT_TYPE_HUMAN UserTrait_AccountType = 1 + UserTrait_ACCOUNT_TYPE_SERVICE UserTrait_AccountType = 2 + UserTrait_ACCOUNT_TYPE_SYSTEM UserTrait_AccountType = 3 +) + +// Enum value maps for UserTrait_AccountType. +var ( + UserTrait_AccountType_name = map[int32]string{ + 0: "ACCOUNT_TYPE_UNSPECIFIED", + 1: "ACCOUNT_TYPE_HUMAN", + 2: "ACCOUNT_TYPE_SERVICE", + 3: "ACCOUNT_TYPE_SYSTEM", + } + UserTrait_AccountType_value = map[string]int32{ + "ACCOUNT_TYPE_UNSPECIFIED": 0, + "ACCOUNT_TYPE_HUMAN": 1, + "ACCOUNT_TYPE_SERVICE": 2, + "ACCOUNT_TYPE_SYSTEM": 3, + } +) + +func (x UserTrait_AccountType) Enum() *UserTrait_AccountType { + p := new(UserTrait_AccountType) + *p = x + return p +} + +func (x UserTrait_AccountType) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (UserTrait_AccountType) Descriptor() protoreflect.EnumDescriptor { + return file_c1_connector_v2_annotation_trait_proto_enumTypes[0].Descriptor() +} + +func (UserTrait_AccountType) Type() protoreflect.EnumType { + return &file_c1_connector_v2_annotation_trait_proto_enumTypes[0] +} + +func (x UserTrait_AccountType) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +type UserTrait_Status_Status int32 + +const ( + UserTrait_Status_STATUS_UNSPECIFIED UserTrait_Status_Status = 0 + UserTrait_Status_STATUS_ENABLED UserTrait_Status_Status = 1 + UserTrait_Status_STATUS_DISABLED UserTrait_Status_Status = 2 + UserTrait_Status_STATUS_DELETED UserTrait_Status_Status = 3 +) + +// Enum value maps for UserTrait_Status_Status. +var ( + UserTrait_Status_Status_name = map[int32]string{ + 0: "STATUS_UNSPECIFIED", + 1: "STATUS_ENABLED", + 2: "STATUS_DISABLED", + 3: "STATUS_DELETED", + } + UserTrait_Status_Status_value = map[string]int32{ + "STATUS_UNSPECIFIED": 0, + "STATUS_ENABLED": 1, + "STATUS_DISABLED": 2, + "STATUS_DELETED": 3, + } +) + +func (x UserTrait_Status_Status) Enum() *UserTrait_Status_Status { + p := new(UserTrait_Status_Status) + *p = x + return p +} + +func (x UserTrait_Status_Status) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (UserTrait_Status_Status) Descriptor() protoreflect.EnumDescriptor { + return file_c1_connector_v2_annotation_trait_proto_enumTypes[1].Descriptor() +} + +func (UserTrait_Status_Status) Type() protoreflect.EnumType { + return &file_c1_connector_v2_annotation_trait_proto_enumTypes[1] +} + +func (x UserTrait_Status_Status) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +type AppTrait_AppFlag int32 + +const ( + AppTrait_APP_FLAG_UNSPECIFIED AppTrait_AppFlag = 0 + AppTrait_APP_FLAG_HIDDEN AppTrait_AppFlag = 1 + AppTrait_APP_FLAG_INACTIVE AppTrait_AppFlag = 2 + AppTrait_APP_FLAG_SAML AppTrait_AppFlag = 3 + AppTrait_APP_FLAG_OIDC AppTrait_AppFlag = 4 + AppTrait_APP_FLAG_BOOKMARK AppTrait_AppFlag = 5 +) + +// Enum value maps for AppTrait_AppFlag. +var ( + AppTrait_AppFlag_name = map[int32]string{ + 0: "APP_FLAG_UNSPECIFIED", + 1: "APP_FLAG_HIDDEN", + 2: "APP_FLAG_INACTIVE", + 3: "APP_FLAG_SAML", + 4: "APP_FLAG_OIDC", + 5: "APP_FLAG_BOOKMARK", + } + AppTrait_AppFlag_value = map[string]int32{ + "APP_FLAG_UNSPECIFIED": 0, + "APP_FLAG_HIDDEN": 1, + "APP_FLAG_INACTIVE": 2, + "APP_FLAG_SAML": 3, + "APP_FLAG_OIDC": 4, + "APP_FLAG_BOOKMARK": 5, + } +) + +func (x AppTrait_AppFlag) Enum() *AppTrait_AppFlag { + p := new(AppTrait_AppFlag) + *p = x + return p +} + +func (x AppTrait_AppFlag) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (AppTrait_AppFlag) Descriptor() protoreflect.EnumDescriptor { + return file_c1_connector_v2_annotation_trait_proto_enumTypes[2].Descriptor() +} + +func (AppTrait_AppFlag) Type() protoreflect.EnumType { + return &file_c1_connector_v2_annotation_trait_proto_enumTypes[2] +} + +func (x AppTrait_AppFlag) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +type UserTrait struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Emails *[]*UserTrait_Email `protobuf:"bytes,1,rep,name=emails,proto3"` + xxx_hidden_Status *UserTrait_Status `protobuf:"bytes,2,opt,name=status,proto3"` + xxx_hidden_Profile *structpb.Struct `protobuf:"bytes,3,opt,name=profile,proto3"` + xxx_hidden_Icon *AssetRef `protobuf:"bytes,4,opt,name=icon,proto3"` + xxx_hidden_AccountType UserTrait_AccountType `protobuf:"varint,5,opt,name=account_type,json=accountType,proto3,enum=c1.connector.v2.UserTrait_AccountType"` + xxx_hidden_Login string `protobuf:"bytes,6,opt,name=login,proto3"` + xxx_hidden_LoginAliases []string `protobuf:"bytes,7,rep,name=login_aliases,json=loginAliases,proto3"` + xxx_hidden_EmployeeIds []string `protobuf:"bytes,13,rep,name=employee_ids,json=employeeIds,proto3"` + xxx_hidden_CreatedAt *timestamppb.Timestamp `protobuf:"bytes,8,opt,name=created_at,json=createdAt,proto3"` + xxx_hidden_LastLogin *timestamppb.Timestamp `protobuf:"bytes,9,opt,name=last_login,json=lastLogin,proto3"` + xxx_hidden_MfaStatus *UserTrait_MFAStatus `protobuf:"bytes,10,opt,name=mfa_status,json=mfaStatus,proto3"` + xxx_hidden_SsoStatus *UserTrait_SSOStatus `protobuf:"bytes,11,opt,name=sso_status,json=ssoStatus,proto3"` + xxx_hidden_StructuredName *UserTrait_StructuredName `protobuf:"bytes,12,opt,name=structured_name,json=structuredName,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *UserTrait) Reset() { + *x = UserTrait{} + mi := &file_c1_connector_v2_annotation_trait_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *UserTrait) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*UserTrait) ProtoMessage() {} + +func (x *UserTrait) ProtoReflect() protoreflect.Message { + mi := &file_c1_connector_v2_annotation_trait_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) +} + +func (x *UserTrait) GetEmails() []*UserTrait_Email { + if x != nil { + if x.xxx_hidden_Emails != nil { + return *x.xxx_hidden_Emails + } + } + return nil +} + +func (x *UserTrait) GetStatus() *UserTrait_Status { + if x != nil { + return x.xxx_hidden_Status + } + return nil +} + +func (x *UserTrait) GetProfile() *structpb.Struct { + if x != nil { + return x.xxx_hidden_Profile + } + return nil +} + +func (x *UserTrait) GetIcon() *AssetRef { + if x != nil { + return x.xxx_hidden_Icon + } + return nil +} + +func (x *UserTrait) GetAccountType() UserTrait_AccountType { + if x != nil { + return x.xxx_hidden_AccountType + } + return UserTrait_ACCOUNT_TYPE_UNSPECIFIED +} + +func (x *UserTrait) GetLogin() string { + if x != nil { + return x.xxx_hidden_Login + } + return "" +} + +func (x *UserTrait) GetLoginAliases() []string { + if x != nil { + return x.xxx_hidden_LoginAliases + } + return nil +} + +func (x *UserTrait) GetEmployeeIds() []string { + if x != nil { + return x.xxx_hidden_EmployeeIds + } + return nil +} + +func (x *UserTrait) GetCreatedAt() *timestamppb.Timestamp { + if x != nil { + return x.xxx_hidden_CreatedAt + } + return nil +} + +func (x *UserTrait) GetLastLogin() *timestamppb.Timestamp { + if x != nil { + return x.xxx_hidden_LastLogin + } + return nil +} + +func (x *UserTrait) GetMfaStatus() *UserTrait_MFAStatus { + if x != nil { + return x.xxx_hidden_MfaStatus + } + return nil +} + +func (x *UserTrait) GetSsoStatus() *UserTrait_SSOStatus { + if x != nil { + return x.xxx_hidden_SsoStatus + } + return nil +} + +func (x *UserTrait) GetStructuredName() *UserTrait_StructuredName { + if x != nil { + return x.xxx_hidden_StructuredName + } + return nil +} + +func (x *UserTrait) SetEmails(v []*UserTrait_Email) { + x.xxx_hidden_Emails = &v +} + +func (x *UserTrait) SetStatus(v *UserTrait_Status) { + x.xxx_hidden_Status = v +} + +func (x *UserTrait) SetProfile(v *structpb.Struct) { + x.xxx_hidden_Profile = v +} + +func (x *UserTrait) SetIcon(v *AssetRef) { + x.xxx_hidden_Icon = v +} + +func (x *UserTrait) SetAccountType(v UserTrait_AccountType) { + x.xxx_hidden_AccountType = v +} + +func (x *UserTrait) SetLogin(v string) { + x.xxx_hidden_Login = v +} + +func (x *UserTrait) SetLoginAliases(v []string) { + x.xxx_hidden_LoginAliases = v +} + +func (x *UserTrait) SetEmployeeIds(v []string) { + x.xxx_hidden_EmployeeIds = v +} + +func (x *UserTrait) SetCreatedAt(v *timestamppb.Timestamp) { + x.xxx_hidden_CreatedAt = v +} + +func (x *UserTrait) SetLastLogin(v *timestamppb.Timestamp) { + x.xxx_hidden_LastLogin = v +} + +func (x *UserTrait) SetMfaStatus(v *UserTrait_MFAStatus) { + x.xxx_hidden_MfaStatus = v +} + +func (x *UserTrait) SetSsoStatus(v *UserTrait_SSOStatus) { + x.xxx_hidden_SsoStatus = v +} + +func (x *UserTrait) SetStructuredName(v *UserTrait_StructuredName) { + x.xxx_hidden_StructuredName = v +} + +func (x *UserTrait) HasStatus() bool { + if x == nil { + return false + } + return x.xxx_hidden_Status != nil +} + +func (x *UserTrait) HasProfile() bool { + if x == nil { + return false + } + return x.xxx_hidden_Profile != nil +} + +func (x *UserTrait) HasIcon() bool { + if x == nil { + return false + } + return x.xxx_hidden_Icon != nil +} + +func (x *UserTrait) HasCreatedAt() bool { + if x == nil { + return false + } + return x.xxx_hidden_CreatedAt != nil +} + +func (x *UserTrait) HasLastLogin() bool { + if x == nil { + return false + } + return x.xxx_hidden_LastLogin != nil +} + +func (x *UserTrait) HasMfaStatus() bool { + if x == nil { + return false + } + return x.xxx_hidden_MfaStatus != nil +} + +func (x *UserTrait) HasSsoStatus() bool { + if x == nil { + return false + } + return x.xxx_hidden_SsoStatus != nil +} + +func (x *UserTrait) HasStructuredName() bool { + if x == nil { + return false + } + return x.xxx_hidden_StructuredName != nil +} + +func (x *UserTrait) ClearStatus() { + x.xxx_hidden_Status = nil +} + +func (x *UserTrait) ClearProfile() { + x.xxx_hidden_Profile = nil +} + +func (x *UserTrait) ClearIcon() { + x.xxx_hidden_Icon = nil +} + +func (x *UserTrait) ClearCreatedAt() { + x.xxx_hidden_CreatedAt = nil +} + +func (x *UserTrait) ClearLastLogin() { + x.xxx_hidden_LastLogin = nil +} + +func (x *UserTrait) ClearMfaStatus() { + x.xxx_hidden_MfaStatus = nil +} + +func (x *UserTrait) ClearSsoStatus() { + x.xxx_hidden_SsoStatus = nil +} + +func (x *UserTrait) ClearStructuredName() { + x.xxx_hidden_StructuredName = nil +} + +type UserTrait_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Emails []*UserTrait_Email + Status *UserTrait_Status + Profile *structpb.Struct + Icon *AssetRef + AccountType UserTrait_AccountType + // The user's login + Login string + // Any additional login aliases for the user + LoginAliases []string + EmployeeIds []string + CreatedAt *timestamppb.Timestamp + LastLogin *timestamppb.Timestamp + MfaStatus *UserTrait_MFAStatus + SsoStatus *UserTrait_SSOStatus + StructuredName *UserTrait_StructuredName +} + +func (b0 UserTrait_builder) Build() *UserTrait { + m0 := &UserTrait{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Emails = &b.Emails + x.xxx_hidden_Status = b.Status + x.xxx_hidden_Profile = b.Profile + x.xxx_hidden_Icon = b.Icon + x.xxx_hidden_AccountType = b.AccountType + x.xxx_hidden_Login = b.Login + x.xxx_hidden_LoginAliases = b.LoginAliases + x.xxx_hidden_EmployeeIds = b.EmployeeIds + x.xxx_hidden_CreatedAt = b.CreatedAt + x.xxx_hidden_LastLogin = b.LastLogin + x.xxx_hidden_MfaStatus = b.MfaStatus + x.xxx_hidden_SsoStatus = b.SsoStatus + x.xxx_hidden_StructuredName = b.StructuredName + return m0 +} + +type GroupTrait struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Icon *AssetRef `protobuf:"bytes,1,opt,name=icon,proto3"` + xxx_hidden_Profile *structpb.Struct `protobuf:"bytes,2,opt,name=profile,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *GroupTrait) Reset() { + *x = GroupTrait{} + mi := &file_c1_connector_v2_annotation_trait_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *GroupTrait) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GroupTrait) ProtoMessage() {} + +func (x *GroupTrait) ProtoReflect() protoreflect.Message { + mi := &file_c1_connector_v2_annotation_trait_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) +} + +func (x *GroupTrait) GetIcon() *AssetRef { + if x != nil { + return x.xxx_hidden_Icon + } + return nil +} + +func (x *GroupTrait) GetProfile() *structpb.Struct { + if x != nil { + return x.xxx_hidden_Profile + } + return nil +} + +func (x *GroupTrait) SetIcon(v *AssetRef) { + x.xxx_hidden_Icon = v +} + +func (x *GroupTrait) SetProfile(v *structpb.Struct) { + x.xxx_hidden_Profile = v +} + +func (x *GroupTrait) HasIcon() bool { + if x == nil { + return false + } + return x.xxx_hidden_Icon != nil +} + +func (x *GroupTrait) HasProfile() bool { + if x == nil { + return false + } + return x.xxx_hidden_Profile != nil +} + +func (x *GroupTrait) ClearIcon() { + x.xxx_hidden_Icon = nil +} + +func (x *GroupTrait) ClearProfile() { + x.xxx_hidden_Profile = nil +} + +type GroupTrait_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Icon *AssetRef + Profile *structpb.Struct +} + +func (b0 GroupTrait_builder) Build() *GroupTrait { + m0 := &GroupTrait{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Icon = b.Icon + x.xxx_hidden_Profile = b.Profile + return m0 +} + +type RoleTrait struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Profile *structpb.Struct `protobuf:"bytes,1,opt,name=profile,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *RoleTrait) Reset() { + *x = RoleTrait{} + mi := &file_c1_connector_v2_annotation_trait_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *RoleTrait) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*RoleTrait) ProtoMessage() {} + +func (x *RoleTrait) ProtoReflect() protoreflect.Message { + mi := &file_c1_connector_v2_annotation_trait_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) +} + +func (x *RoleTrait) GetProfile() *structpb.Struct { + if x != nil { + return x.xxx_hidden_Profile + } + return nil +} + +func (x *RoleTrait) SetProfile(v *structpb.Struct) { + x.xxx_hidden_Profile = v +} + +func (x *RoleTrait) HasProfile() bool { + if x == nil { + return false + } + return x.xxx_hidden_Profile != nil +} + +func (x *RoleTrait) ClearProfile() { + x.xxx_hidden_Profile = nil +} + +type RoleTrait_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Profile *structpb.Struct +} + +func (b0 RoleTrait_builder) Build() *RoleTrait { + m0 := &RoleTrait{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Profile = b.Profile + return m0 +} + +type AppTrait struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_HelpUrl string `protobuf:"bytes,1,opt,name=help_url,json=helpUrl,proto3"` + xxx_hidden_Icon *AssetRef `protobuf:"bytes,2,opt,name=icon,proto3"` + xxx_hidden_Logo *AssetRef `protobuf:"bytes,3,opt,name=logo,proto3"` + xxx_hidden_Profile *structpb.Struct `protobuf:"bytes,4,opt,name=profile,proto3"` + xxx_hidden_Flags []AppTrait_AppFlag `protobuf:"varint,5,rep,packed,name=flags,proto3,enum=c1.connector.v2.AppTrait_AppFlag"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *AppTrait) Reset() { + *x = AppTrait{} + mi := &file_c1_connector_v2_annotation_trait_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *AppTrait) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*AppTrait) ProtoMessage() {} + +func (x *AppTrait) ProtoReflect() protoreflect.Message { + mi := &file_c1_connector_v2_annotation_trait_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) +} + +func (x *AppTrait) GetHelpUrl() string { + if x != nil { + return x.xxx_hidden_HelpUrl + } + return "" +} + +func (x *AppTrait) GetIcon() *AssetRef { + if x != nil { + return x.xxx_hidden_Icon + } + return nil +} + +func (x *AppTrait) GetLogo() *AssetRef { + if x != nil { + return x.xxx_hidden_Logo + } + return nil +} + +func (x *AppTrait) GetProfile() *structpb.Struct { + if x != nil { + return x.xxx_hidden_Profile + } + return nil +} + +func (x *AppTrait) GetFlags() []AppTrait_AppFlag { + if x != nil { + return x.xxx_hidden_Flags + } + return nil +} + +func (x *AppTrait) SetHelpUrl(v string) { + x.xxx_hidden_HelpUrl = v +} + +func (x *AppTrait) SetIcon(v *AssetRef) { + x.xxx_hidden_Icon = v +} + +func (x *AppTrait) SetLogo(v *AssetRef) { + x.xxx_hidden_Logo = v +} + +func (x *AppTrait) SetProfile(v *structpb.Struct) { + x.xxx_hidden_Profile = v +} + +func (x *AppTrait) SetFlags(v []AppTrait_AppFlag) { + x.xxx_hidden_Flags = v +} + +func (x *AppTrait) HasIcon() bool { + if x == nil { + return false + } + return x.xxx_hidden_Icon != nil +} + +func (x *AppTrait) HasLogo() bool { + if x == nil { + return false + } + return x.xxx_hidden_Logo != nil +} + +func (x *AppTrait) HasProfile() bool { + if x == nil { + return false + } + return x.xxx_hidden_Profile != nil +} + +func (x *AppTrait) ClearIcon() { + x.xxx_hidden_Icon = nil +} + +func (x *AppTrait) ClearLogo() { + x.xxx_hidden_Logo = nil +} + +func (x *AppTrait) ClearProfile() { + x.xxx_hidden_Profile = nil +} + +type AppTrait_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + HelpUrl string + Icon *AssetRef + Logo *AssetRef + Profile *structpb.Struct + Flags []AppTrait_AppFlag +} + +func (b0 AppTrait_builder) Build() *AppTrait { + m0 := &AppTrait{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_HelpUrl = b.HelpUrl + x.xxx_hidden_Icon = b.Icon + x.xxx_hidden_Logo = b.Logo + x.xxx_hidden_Profile = b.Profile + x.xxx_hidden_Flags = b.Flags + return m0 +} + +type SecretTrait struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Profile *structpb.Struct `protobuf:"bytes,1,opt,name=profile,proto3"` + xxx_hidden_CreatedAt *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=created_at,json=createdAt,proto3"` + xxx_hidden_ExpiresAt *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=expires_at,json=expiresAt,proto3"` + xxx_hidden_LastUsedAt *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=last_used_at,json=lastUsedAt,proto3"` + xxx_hidden_CreatedById *ResourceId `protobuf:"bytes,5,opt,name=created_by_id,json=createdById,proto3"` + xxx_hidden_IdentityId *ResourceId `protobuf:"bytes,6,opt,name=identity_id,json=identityId,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *SecretTrait) Reset() { + *x = SecretTrait{} + mi := &file_c1_connector_v2_annotation_trait_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *SecretTrait) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*SecretTrait) ProtoMessage() {} + +func (x *SecretTrait) ProtoReflect() protoreflect.Message { + mi := &file_c1_connector_v2_annotation_trait_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) +} + +func (x *SecretTrait) GetProfile() *structpb.Struct { + if x != nil { + return x.xxx_hidden_Profile + } + return nil +} + +func (x *SecretTrait) GetCreatedAt() *timestamppb.Timestamp { + if x != nil { + return x.xxx_hidden_CreatedAt + } + return nil +} + +func (x *SecretTrait) GetExpiresAt() *timestamppb.Timestamp { + if x != nil { + return x.xxx_hidden_ExpiresAt + } + return nil +} + +func (x *SecretTrait) GetLastUsedAt() *timestamppb.Timestamp { + if x != nil { + return x.xxx_hidden_LastUsedAt + } + return nil +} + +func (x *SecretTrait) GetCreatedById() *ResourceId { + if x != nil { + return x.xxx_hidden_CreatedById + } + return nil +} + +func (x *SecretTrait) GetIdentityId() *ResourceId { + if x != nil { + return x.xxx_hidden_IdentityId + } + return nil +} + +func (x *SecretTrait) SetProfile(v *structpb.Struct) { + x.xxx_hidden_Profile = v +} + +func (x *SecretTrait) SetCreatedAt(v *timestamppb.Timestamp) { + x.xxx_hidden_CreatedAt = v +} + +func (x *SecretTrait) SetExpiresAt(v *timestamppb.Timestamp) { + x.xxx_hidden_ExpiresAt = v +} + +func (x *SecretTrait) SetLastUsedAt(v *timestamppb.Timestamp) { + x.xxx_hidden_LastUsedAt = v +} + +func (x *SecretTrait) SetCreatedById(v *ResourceId) { + x.xxx_hidden_CreatedById = v +} + +func (x *SecretTrait) SetIdentityId(v *ResourceId) { + x.xxx_hidden_IdentityId = v +} + +func (x *SecretTrait) HasProfile() bool { + if x == nil { + return false + } + return x.xxx_hidden_Profile != nil +} + +func (x *SecretTrait) HasCreatedAt() bool { + if x == nil { + return false + } + return x.xxx_hidden_CreatedAt != nil +} + +func (x *SecretTrait) HasExpiresAt() bool { + if x == nil { + return false + } + return x.xxx_hidden_ExpiresAt != nil +} + +func (x *SecretTrait) HasLastUsedAt() bool { + if x == nil { + return false + } + return x.xxx_hidden_LastUsedAt != nil +} + +func (x *SecretTrait) HasCreatedById() bool { + if x == nil { + return false + } + return x.xxx_hidden_CreatedById != nil +} + +func (x *SecretTrait) HasIdentityId() bool { + if x == nil { + return false + } + return x.xxx_hidden_IdentityId != nil +} + +func (x *SecretTrait) ClearProfile() { + x.xxx_hidden_Profile = nil +} + +func (x *SecretTrait) ClearCreatedAt() { + x.xxx_hidden_CreatedAt = nil +} + +func (x *SecretTrait) ClearExpiresAt() { + x.xxx_hidden_ExpiresAt = nil +} + +func (x *SecretTrait) ClearLastUsedAt() { + x.xxx_hidden_LastUsedAt = nil +} + +func (x *SecretTrait) ClearCreatedById() { + x.xxx_hidden_CreatedById = nil +} + +func (x *SecretTrait) ClearIdentityId() { + x.xxx_hidden_IdentityId = nil +} + +type SecretTrait_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Profile *structpb.Struct + CreatedAt *timestamppb.Timestamp + ExpiresAt *timestamppb.Timestamp + LastUsedAt *timestamppb.Timestamp + CreatedById *ResourceId + IdentityId *ResourceId +} + +func (b0 SecretTrait_builder) Build() *SecretTrait { + m0 := &SecretTrait{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Profile = b.Profile + x.xxx_hidden_CreatedAt = b.CreatedAt + x.xxx_hidden_ExpiresAt = b.ExpiresAt + x.xxx_hidden_LastUsedAt = b.LastUsedAt + x.xxx_hidden_CreatedById = b.CreatedById + x.xxx_hidden_IdentityId = b.IdentityId + return m0 +} + +type UserTrait_Email struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Address string `protobuf:"bytes,1,opt,name=address,proto3"` + xxx_hidden_IsPrimary bool `protobuf:"varint,2,opt,name=is_primary,json=isPrimary,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *UserTrait_Email) Reset() { + *x = UserTrait_Email{} + mi := &file_c1_connector_v2_annotation_trait_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *UserTrait_Email) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*UserTrait_Email) ProtoMessage() {} + +func (x *UserTrait_Email) ProtoReflect() protoreflect.Message { + mi := &file_c1_connector_v2_annotation_trait_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) +} + +func (x *UserTrait_Email) GetAddress() string { + if x != nil { + return x.xxx_hidden_Address + } + return "" +} + +func (x *UserTrait_Email) GetIsPrimary() bool { + if x != nil { + return x.xxx_hidden_IsPrimary + } + return false +} + +func (x *UserTrait_Email) SetAddress(v string) { + x.xxx_hidden_Address = v +} + +func (x *UserTrait_Email) SetIsPrimary(v bool) { + x.xxx_hidden_IsPrimary = v +} + +type UserTrait_Email_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Address string + // Indicates if this is the user's primary email. Only one entry can be marked as primary. + IsPrimary bool +} + +func (b0 UserTrait_Email_builder) Build() *UserTrait_Email { + m0 := &UserTrait_Email{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Address = b.Address + x.xxx_hidden_IsPrimary = b.IsPrimary + return m0 +} + +type UserTrait_Status struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Status UserTrait_Status_Status `protobuf:"varint,1,opt,name=status,proto3,enum=c1.connector.v2.UserTrait_Status_Status"` + xxx_hidden_Details string `protobuf:"bytes,2,opt,name=details,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *UserTrait_Status) Reset() { + *x = UserTrait_Status{} + mi := &file_c1_connector_v2_annotation_trait_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *UserTrait_Status) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*UserTrait_Status) ProtoMessage() {} + +func (x *UserTrait_Status) ProtoReflect() protoreflect.Message { + mi := &file_c1_connector_v2_annotation_trait_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) +} + +func (x *UserTrait_Status) GetStatus() UserTrait_Status_Status { + if x != nil { + return x.xxx_hidden_Status + } + return UserTrait_Status_STATUS_UNSPECIFIED +} + +func (x *UserTrait_Status) GetDetails() string { + if x != nil { + return x.xxx_hidden_Details + } + return "" +} + +func (x *UserTrait_Status) SetStatus(v UserTrait_Status_Status) { + x.xxx_hidden_Status = v +} + +func (x *UserTrait_Status) SetDetails(v string) { + x.xxx_hidden_Details = v +} + +type UserTrait_Status_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Status UserTrait_Status_Status + Details string +} + +func (b0 UserTrait_Status_builder) Build() *UserTrait_Status { + m0 := &UserTrait_Status{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Status = b.Status + x.xxx_hidden_Details = b.Details + return m0 +} + +type UserTrait_MFAStatus struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_MfaEnabled bool `protobuf:"varint,1,opt,name=mfa_enabled,json=mfaEnabled,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *UserTrait_MFAStatus) Reset() { + *x = UserTrait_MFAStatus{} + mi := &file_c1_connector_v2_annotation_trait_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *UserTrait_MFAStatus) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*UserTrait_MFAStatus) ProtoMessage() {} + +func (x *UserTrait_MFAStatus) ProtoReflect() protoreflect.Message { + mi := &file_c1_connector_v2_annotation_trait_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) +} + +func (x *UserTrait_MFAStatus) GetMfaEnabled() bool { + if x != nil { + return x.xxx_hidden_MfaEnabled + } + return false +} + +func (x *UserTrait_MFAStatus) SetMfaEnabled(v bool) { + x.xxx_hidden_MfaEnabled = v +} + +type UserTrait_MFAStatus_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + MfaEnabled bool +} + +func (b0 UserTrait_MFAStatus_builder) Build() *UserTrait_MFAStatus { + m0 := &UserTrait_MFAStatus{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_MfaEnabled = b.MfaEnabled + return m0 +} + +type UserTrait_SSOStatus struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_SsoEnabled bool `protobuf:"varint,1,opt,name=sso_enabled,json=ssoEnabled,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *UserTrait_SSOStatus) Reset() { + *x = UserTrait_SSOStatus{} + mi := &file_c1_connector_v2_annotation_trait_proto_msgTypes[8] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *UserTrait_SSOStatus) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*UserTrait_SSOStatus) ProtoMessage() {} + +func (x *UserTrait_SSOStatus) ProtoReflect() protoreflect.Message { + mi := &file_c1_connector_v2_annotation_trait_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) +} + +func (x *UserTrait_SSOStatus) GetSsoEnabled() bool { + if x != nil { + return x.xxx_hidden_SsoEnabled + } + return false +} + +func (x *UserTrait_SSOStatus) SetSsoEnabled(v bool) { + x.xxx_hidden_SsoEnabled = v +} + +type UserTrait_SSOStatus_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + SsoEnabled bool +} + +func (b0 UserTrait_SSOStatus_builder) Build() *UserTrait_SSOStatus { + m0 := &UserTrait_SSOStatus{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_SsoEnabled = b.SsoEnabled + return m0 +} + +type UserTrait_StructuredName struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_GivenName string `protobuf:"bytes,1,opt,name=given_name,json=givenName,proto3"` + xxx_hidden_FamilyName string `protobuf:"bytes,2,opt,name=family_name,json=familyName,proto3"` + xxx_hidden_MiddleNames []string `protobuf:"bytes,3,rep,name=middle_names,json=middleNames,proto3"` + xxx_hidden_Prefix string `protobuf:"bytes,4,opt,name=prefix,proto3"` + xxx_hidden_Suffix string `protobuf:"bytes,5,opt,name=suffix,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *UserTrait_StructuredName) Reset() { + *x = UserTrait_StructuredName{} + mi := &file_c1_connector_v2_annotation_trait_proto_msgTypes[9] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *UserTrait_StructuredName) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*UserTrait_StructuredName) ProtoMessage() {} + +func (x *UserTrait_StructuredName) ProtoReflect() protoreflect.Message { + mi := &file_c1_connector_v2_annotation_trait_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) +} + +func (x *UserTrait_StructuredName) GetGivenName() string { + if x != nil { + return x.xxx_hidden_GivenName + } + return "" +} + +func (x *UserTrait_StructuredName) GetFamilyName() string { + if x != nil { + return x.xxx_hidden_FamilyName + } + return "" +} + +func (x *UserTrait_StructuredName) GetMiddleNames() []string { + if x != nil { + return x.xxx_hidden_MiddleNames + } + return nil +} + +func (x *UserTrait_StructuredName) GetPrefix() string { + if x != nil { + return x.xxx_hidden_Prefix + } + return "" +} + +func (x *UserTrait_StructuredName) GetSuffix() string { + if x != nil { + return x.xxx_hidden_Suffix + } + return "" +} + +func (x *UserTrait_StructuredName) SetGivenName(v string) { + x.xxx_hidden_GivenName = v +} + +func (x *UserTrait_StructuredName) SetFamilyName(v string) { + x.xxx_hidden_FamilyName = v +} + +func (x *UserTrait_StructuredName) SetMiddleNames(v []string) { + x.xxx_hidden_MiddleNames = v +} + +func (x *UserTrait_StructuredName) SetPrefix(v string) { + x.xxx_hidden_Prefix = v +} + +func (x *UserTrait_StructuredName) SetSuffix(v string) { + x.xxx_hidden_Suffix = v +} + +type UserTrait_StructuredName_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + GivenName string + FamilyName string + MiddleNames []string + Prefix string + Suffix string +} + +func (b0 UserTrait_StructuredName_builder) Build() *UserTrait_StructuredName { + m0 := &UserTrait_StructuredName{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_GivenName = b.GivenName + x.xxx_hidden_FamilyName = b.FamilyName + x.xxx_hidden_MiddleNames = b.MiddleNames + x.xxx_hidden_Prefix = b.Prefix + x.xxx_hidden_Suffix = b.Suffix + return m0 +} + +var File_c1_connector_v2_annotation_trait_proto protoreflect.FileDescriptor + +const file_c1_connector_v2_annotation_trait_proto_rawDesc = "" + + "\n" + + "&c1/connector/v2/annotation_trait.proto\x12\x0fc1.connector.v2\x1a\x1bc1/connector/v2/asset.proto\x1a\x1ec1/connector/v2/resource.proto\x1a\x1cgoogle/protobuf/struct.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x17validate/validate.proto\"\x97\v\n" + + "\tUserTrait\x128\n" + + "\x06emails\x18\x01 \x03(\v2 .c1.connector.v2.UserTrait.EmailR\x06emails\x12C\n" + + "\x06status\x18\x02 \x01(\v2!.c1.connector.v2.UserTrait.StatusB\b\xfaB\x05\x8a\x01\x02\x10\x01R\x06status\x121\n" + + "\aprofile\x18\x03 \x01(\v2\x17.google.protobuf.StructR\aprofile\x12-\n" + + "\x04icon\x18\x04 \x01(\v2\x19.c1.connector.v2.AssetRefR\x04icon\x12S\n" + + "\faccount_type\x18\x05 \x01(\x0e2&.c1.connector.v2.UserTrait.AccountTypeB\b\xfaB\x05\x82\x01\x02\x10\x01R\vaccountType\x12\x14\n" + + "\x05login\x18\x06 \x01(\tR\x05login\x12#\n" + + "\rlogin_aliases\x18\a \x03(\tR\floginAliases\x12!\n" + + "\femployee_ids\x18\r \x03(\tR\vemployeeIds\x129\n" + + "\n" + + "created_at\x18\b \x01(\v2\x1a.google.protobuf.TimestampR\tcreatedAt\x129\n" + + "\n" + + "last_login\x18\t \x01(\v2\x1a.google.protobuf.TimestampR\tlastLogin\x12C\n" + + "\n" + + "mfa_status\x18\n" + + " \x01(\v2$.c1.connector.v2.UserTrait.MFAStatusR\tmfaStatus\x12C\n" + + "\n" + + "sso_status\x18\v \x01(\v2$.c1.connector.v2.UserTrait.SSOStatusR\tssoStatus\x12R\n" + + "\x0fstructured_name\x18\f \x01(\v2).c1.connector.v2.UserTrait.StructuredNameR\x0estructuredName\x1aI\n" + + "\x05Email\x12!\n" + + "\aaddress\x18\x01 \x01(\tB\a\xfaB\x04r\x02`\x01R\aaddress\x12\x1d\n" + + "\n" + + "is_primary\x18\x02 \x01(\bR\tisPrimary\x1a\xdc\x01\n" + + "\x06Status\x12J\n" + + "\x06status\x18\x01 \x01(\x0e2(.c1.connector.v2.UserTrait.Status.StatusB\b\xfaB\x05\x82\x01\x02\x10\x01R\x06status\x12'\n" + + "\adetails\x18\x02 \x01(\tB\r\xfaB\n" + + "r\b \x01(\x80\b\xd0\x01\x01R\adetails\"]\n" + + "\x06Status\x12\x16\n" + + "\x12STATUS_UNSPECIFIED\x10\x00\x12\x12\n" + + "\x0eSTATUS_ENABLED\x10\x01\x12\x13\n" + + "\x0fSTATUS_DISABLED\x10\x02\x12\x12\n" + + "\x0eSTATUS_DELETED\x10\x03\x1a,\n" + + "\tMFAStatus\x12\x1f\n" + + "\vmfa_enabled\x18\x01 \x01(\bR\n" + + "mfaEnabled\x1a,\n" + + "\tSSOStatus\x12\x1f\n" + + "\vsso_enabled\x18\x01 \x01(\bR\n" + + "ssoEnabled\x1a\xa3\x01\n" + + "\x0eStructuredName\x12\x1d\n" + + "\n" + + "given_name\x18\x01 \x01(\tR\tgivenName\x12\x1f\n" + + "\vfamily_name\x18\x02 \x01(\tR\n" + + "familyName\x12!\n" + + "\fmiddle_names\x18\x03 \x03(\tR\vmiddleNames\x12\x16\n" + + "\x06prefix\x18\x04 \x01(\tR\x06prefix\x12\x16\n" + + "\x06suffix\x18\x05 \x01(\tR\x06suffix\"v\n" + + "\vAccountType\x12\x1c\n" + + "\x18ACCOUNT_TYPE_UNSPECIFIED\x10\x00\x12\x16\n" + + "\x12ACCOUNT_TYPE_HUMAN\x10\x01\x12\x18\n" + + "\x14ACCOUNT_TYPE_SERVICE\x10\x02\x12\x17\n" + + "\x13ACCOUNT_TYPE_SYSTEM\x10\x03\"n\n" + + "\n" + + "GroupTrait\x12-\n" + + "\x04icon\x18\x01 \x01(\v2\x19.c1.connector.v2.AssetRefR\x04icon\x121\n" + + "\aprofile\x18\x02 \x01(\v2\x17.google.protobuf.StructR\aprofile\">\n" + + "\tRoleTrait\x121\n" + + "\aprofile\x18\x01 \x01(\v2\x17.google.protobuf.StructR\aprofile\"\x9a\x03\n" + + "\bAppTrait\x125\n" + + "\bhelp_url\x18\x01 \x01(\tB\x1a\xfaB\x17r\x15 \x01(\x80\b:\bhttps://\xd0\x01\x01\x88\x01\x01R\ahelpUrl\x12-\n" + + "\x04icon\x18\x02 \x01(\v2\x19.c1.connector.v2.AssetRefR\x04icon\x12-\n" + + "\x04logo\x18\x03 \x01(\v2\x19.c1.connector.v2.AssetRefR\x04logo\x121\n" + + "\aprofile\x18\x04 \x01(\v2\x17.google.protobuf.StructR\aprofile\x127\n" + + "\x05flags\x18\x05 \x03(\x0e2!.c1.connector.v2.AppTrait.AppFlagR\x05flags\"\x8c\x01\n" + + "\aAppFlag\x12\x18\n" + + "\x14APP_FLAG_UNSPECIFIED\x10\x00\x12\x13\n" + + "\x0fAPP_FLAG_HIDDEN\x10\x01\x12\x15\n" + + "\x11APP_FLAG_INACTIVE\x10\x02\x12\x11\n" + + "\rAPP_FLAG_SAML\x10\x03\x12\x11\n" + + "\rAPP_FLAG_OIDC\x10\x04\x12\x15\n" + + "\x11APP_FLAG_BOOKMARK\x10\x05\"\xf3\x02\n" + + "\vSecretTrait\x121\n" + + "\aprofile\x18\x01 \x01(\v2\x17.google.protobuf.StructR\aprofile\x129\n" + + "\n" + + "created_at\x18\x02 \x01(\v2\x1a.google.protobuf.TimestampR\tcreatedAt\x129\n" + + "\n" + + "expires_at\x18\x03 \x01(\v2\x1a.google.protobuf.TimestampR\texpiresAt\x12<\n" + + "\flast_used_at\x18\x04 \x01(\v2\x1a.google.protobuf.TimestampR\n" + + "lastUsedAt\x12?\n" + + "\rcreated_by_id\x18\x05 \x01(\v2\x1b.c1.connector.v2.ResourceIdR\vcreatedById\x12<\n" + + "\videntity_id\x18\x06 \x01(\v2\x1b.c1.connector.v2.ResourceIdR\n" + + "identityIdB6Z4github.com/conductorone/baton-sdk/pb/c1/connector/v2b\x06proto3" + +var file_c1_connector_v2_annotation_trait_proto_enumTypes = make([]protoimpl.EnumInfo, 3) +var file_c1_connector_v2_annotation_trait_proto_msgTypes = make([]protoimpl.MessageInfo, 10) +var file_c1_connector_v2_annotation_trait_proto_goTypes = []any{ + (UserTrait_AccountType)(0), // 0: c1.connector.v2.UserTrait.AccountType + (UserTrait_Status_Status)(0), // 1: c1.connector.v2.UserTrait.Status.Status + (AppTrait_AppFlag)(0), // 2: c1.connector.v2.AppTrait.AppFlag + (*UserTrait)(nil), // 3: c1.connector.v2.UserTrait + (*GroupTrait)(nil), // 4: c1.connector.v2.GroupTrait + (*RoleTrait)(nil), // 5: c1.connector.v2.RoleTrait + (*AppTrait)(nil), // 6: c1.connector.v2.AppTrait + (*SecretTrait)(nil), // 7: c1.connector.v2.SecretTrait + (*UserTrait_Email)(nil), // 8: c1.connector.v2.UserTrait.Email + (*UserTrait_Status)(nil), // 9: c1.connector.v2.UserTrait.Status + (*UserTrait_MFAStatus)(nil), // 10: c1.connector.v2.UserTrait.MFAStatus + (*UserTrait_SSOStatus)(nil), // 11: c1.connector.v2.UserTrait.SSOStatus + (*UserTrait_StructuredName)(nil), // 12: c1.connector.v2.UserTrait.StructuredName + (*structpb.Struct)(nil), // 13: google.protobuf.Struct + (*AssetRef)(nil), // 14: c1.connector.v2.AssetRef + (*timestamppb.Timestamp)(nil), // 15: google.protobuf.Timestamp + (*ResourceId)(nil), // 16: c1.connector.v2.ResourceId +} +var file_c1_connector_v2_annotation_trait_proto_depIdxs = []int32{ + 8, // 0: c1.connector.v2.UserTrait.emails:type_name -> c1.connector.v2.UserTrait.Email + 9, // 1: c1.connector.v2.UserTrait.status:type_name -> c1.connector.v2.UserTrait.Status + 13, // 2: c1.connector.v2.UserTrait.profile:type_name -> google.protobuf.Struct + 14, // 3: c1.connector.v2.UserTrait.icon:type_name -> c1.connector.v2.AssetRef + 0, // 4: c1.connector.v2.UserTrait.account_type:type_name -> c1.connector.v2.UserTrait.AccountType + 15, // 5: c1.connector.v2.UserTrait.created_at:type_name -> google.protobuf.Timestamp + 15, // 6: c1.connector.v2.UserTrait.last_login:type_name -> google.protobuf.Timestamp + 10, // 7: c1.connector.v2.UserTrait.mfa_status:type_name -> c1.connector.v2.UserTrait.MFAStatus + 11, // 8: c1.connector.v2.UserTrait.sso_status:type_name -> c1.connector.v2.UserTrait.SSOStatus + 12, // 9: c1.connector.v2.UserTrait.structured_name:type_name -> c1.connector.v2.UserTrait.StructuredName + 14, // 10: c1.connector.v2.GroupTrait.icon:type_name -> c1.connector.v2.AssetRef + 13, // 11: c1.connector.v2.GroupTrait.profile:type_name -> google.protobuf.Struct + 13, // 12: c1.connector.v2.RoleTrait.profile:type_name -> google.protobuf.Struct + 14, // 13: c1.connector.v2.AppTrait.icon:type_name -> c1.connector.v2.AssetRef + 14, // 14: c1.connector.v2.AppTrait.logo:type_name -> c1.connector.v2.AssetRef + 13, // 15: c1.connector.v2.AppTrait.profile:type_name -> google.protobuf.Struct + 2, // 16: c1.connector.v2.AppTrait.flags:type_name -> c1.connector.v2.AppTrait.AppFlag + 13, // 17: c1.connector.v2.SecretTrait.profile:type_name -> google.protobuf.Struct + 15, // 18: c1.connector.v2.SecretTrait.created_at:type_name -> google.protobuf.Timestamp + 15, // 19: c1.connector.v2.SecretTrait.expires_at:type_name -> google.protobuf.Timestamp + 15, // 20: c1.connector.v2.SecretTrait.last_used_at:type_name -> google.protobuf.Timestamp + 16, // 21: c1.connector.v2.SecretTrait.created_by_id:type_name -> c1.connector.v2.ResourceId + 16, // 22: c1.connector.v2.SecretTrait.identity_id:type_name -> c1.connector.v2.ResourceId + 1, // 23: c1.connector.v2.UserTrait.Status.status:type_name -> c1.connector.v2.UserTrait.Status.Status + 24, // [24:24] is the sub-list for method output_type + 24, // [24:24] is the sub-list for method input_type + 24, // [24:24] is the sub-list for extension type_name + 24, // [24:24] is the sub-list for extension extendee + 0, // [0:24] is the sub-list for field type_name +} + +func init() { file_c1_connector_v2_annotation_trait_proto_init() } +func file_c1_connector_v2_annotation_trait_proto_init() { + if File_c1_connector_v2_annotation_trait_proto != nil { + return + } + file_c1_connector_v2_asset_proto_init() + file_c1_connector_v2_resource_proto_init() + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: unsafe.Slice(unsafe.StringData(file_c1_connector_v2_annotation_trait_proto_rawDesc), len(file_c1_connector_v2_annotation_trait_proto_rawDesc)), + NumEnums: 3, + NumMessages: 10, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_c1_connector_v2_annotation_trait_proto_goTypes, + DependencyIndexes: file_c1_connector_v2_annotation_trait_proto_depIdxs, + EnumInfos: file_c1_connector_v2_annotation_trait_proto_enumTypes, + MessageInfos: file_c1_connector_v2_annotation_trait_proto_msgTypes, + }.Build() + File_c1_connector_v2_annotation_trait_proto = out.File + file_c1_connector_v2_annotation_trait_proto_goTypes = nil + file_c1_connector_v2_annotation_trait_proto_depIdxs = nil +} diff --git a/vendor/github.com/conductorone/baton-sdk/pb/c1/connector/v2/annotation_v1_identifier.pb.go b/vendor/github.com/conductorone/baton-sdk/pb/c1/connector/v2/annotation_v1_identifier.pb.go index 94049c61..bb38e446 100644 --- a/vendor/github.com/conductorone/baton-sdk/pb/c1/connector/v2/annotation_v1_identifier.pb.go +++ b/vendor/github.com/conductorone/baton-sdk/pb/c1/connector/v2/annotation_v1_identifier.pb.go @@ -1,16 +1,17 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.36.4 +// protoc-gen-go v1.36.10 // protoc (unknown) // source: c1/connector/v2/annotation_v1_identifier.proto +//go:build !protoopaque + package v2 import ( protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" reflect "reflect" - sync "sync" unsafe "unsafe" ) @@ -22,7 +23,7 @@ const ( ) type V1Identifier struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache @@ -53,11 +54,6 @@ func (x *V1Identifier) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use V1Identifier.ProtoReflect.Descriptor instead. -func (*V1Identifier) Descriptor() ([]byte, []int) { - return file_c1_connector_v2_annotation_v1_identifier_proto_rawDescGZIP(), []int{0} -} - func (x *V1Identifier) GetId() string { if x != nil { return x.Id @@ -65,34 +61,32 @@ func (x *V1Identifier) GetId() string { return "" } -var File_c1_connector_v2_annotation_v1_identifier_proto protoreflect.FileDescriptor +func (x *V1Identifier) SetId(v string) { + x.Id = v +} -var file_c1_connector_v2_annotation_v1_identifier_proto_rawDesc = string([]byte{ - 0x0a, 0x2e, 0x63, 0x31, 0x2f, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x2f, 0x76, - 0x32, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x76, 0x31, 0x5f, - 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, - 0x12, 0x0f, 0x63, 0x31, 0x2e, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x2e, 0x76, - 0x32, 0x22, 0x1e, 0x0a, 0x0c, 0x56, 0x31, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, - 0x72, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, - 0x64, 0x42, 0x36, 0x5a, 0x34, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, - 0x63, 0x6f, 0x6e, 0x64, 0x75, 0x63, 0x74, 0x6f, 0x72, 0x6f, 0x6e, 0x65, 0x2f, 0x62, 0x61, 0x74, - 0x6f, 0x6e, 0x2d, 0x73, 0x64, 0x6b, 0x2f, 0x70, 0x62, 0x2f, 0x63, 0x31, 0x2f, 0x63, 0x6f, 0x6e, - 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x2f, 0x76, 0x32, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, - 0x33, -}) - -var ( - file_c1_connector_v2_annotation_v1_identifier_proto_rawDescOnce sync.Once - file_c1_connector_v2_annotation_v1_identifier_proto_rawDescData []byte -) +type V1Identifier_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. -func file_c1_connector_v2_annotation_v1_identifier_proto_rawDescGZIP() []byte { - file_c1_connector_v2_annotation_v1_identifier_proto_rawDescOnce.Do(func() { - file_c1_connector_v2_annotation_v1_identifier_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_c1_connector_v2_annotation_v1_identifier_proto_rawDesc), len(file_c1_connector_v2_annotation_v1_identifier_proto_rawDesc))) - }) - return file_c1_connector_v2_annotation_v1_identifier_proto_rawDescData + Id string } +func (b0 V1Identifier_builder) Build() *V1Identifier { + m0 := &V1Identifier{} + b, x := &b0, m0 + _, _ = b, x + x.Id = b.Id + return m0 +} + +var File_c1_connector_v2_annotation_v1_identifier_proto protoreflect.FileDescriptor + +const file_c1_connector_v2_annotation_v1_identifier_proto_rawDesc = "" + + "\n" + + ".c1/connector/v2/annotation_v1_identifier.proto\x12\x0fc1.connector.v2\"\x1e\n" + + "\fV1Identifier\x12\x0e\n" + + "\x02id\x18\x01 \x01(\tR\x02idB6Z4github.com/conductorone/baton-sdk/pb/c1/connector/v2b\x06proto3" + var file_c1_connector_v2_annotation_v1_identifier_proto_msgTypes = make([]protoimpl.MessageInfo, 1) var file_c1_connector_v2_annotation_v1_identifier_proto_goTypes = []any{ (*V1Identifier)(nil), // 0: c1.connector.v2.V1Identifier diff --git a/vendor/github.com/conductorone/baton-sdk/pb/c1/connector/v2/annotation_v1_identifier_protoopaque.pb.go b/vendor/github.com/conductorone/baton-sdk/pb/c1/connector/v2/annotation_v1_identifier_protoopaque.pb.go new file mode 100644 index 00000000..8838f2db --- /dev/null +++ b/vendor/github.com/conductorone/baton-sdk/pb/c1/connector/v2/annotation_v1_identifier_protoopaque.pb.go @@ -0,0 +1,124 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.36.10 +// protoc (unknown) +// source: c1/connector/v2/annotation_v1_identifier.proto + +//go:build protoopaque + +package v2 + +import ( + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + reflect "reflect" + 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 V1Identifier struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Id string `protobuf:"bytes,1,opt,name=id,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *V1Identifier) Reset() { + *x = V1Identifier{} + mi := &file_c1_connector_v2_annotation_v1_identifier_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *V1Identifier) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*V1Identifier) ProtoMessage() {} + +func (x *V1Identifier) ProtoReflect() protoreflect.Message { + mi := &file_c1_connector_v2_annotation_v1_identifier_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) +} + +func (x *V1Identifier) GetId() string { + if x != nil { + return x.xxx_hidden_Id + } + return "" +} + +func (x *V1Identifier) SetId(v string) { + x.xxx_hidden_Id = v +} + +type V1Identifier_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Id string +} + +func (b0 V1Identifier_builder) Build() *V1Identifier { + m0 := &V1Identifier{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Id = b.Id + return m0 +} + +var File_c1_connector_v2_annotation_v1_identifier_proto protoreflect.FileDescriptor + +const file_c1_connector_v2_annotation_v1_identifier_proto_rawDesc = "" + + "\n" + + ".c1/connector/v2/annotation_v1_identifier.proto\x12\x0fc1.connector.v2\"\x1e\n" + + "\fV1Identifier\x12\x0e\n" + + "\x02id\x18\x01 \x01(\tR\x02idB6Z4github.com/conductorone/baton-sdk/pb/c1/connector/v2b\x06proto3" + +var file_c1_connector_v2_annotation_v1_identifier_proto_msgTypes = make([]protoimpl.MessageInfo, 1) +var file_c1_connector_v2_annotation_v1_identifier_proto_goTypes = []any{ + (*V1Identifier)(nil), // 0: c1.connector.v2.V1Identifier +} +var file_c1_connector_v2_annotation_v1_identifier_proto_depIdxs = []int32{ + 0, // [0:0] is the sub-list for method output_type + 0, // [0:0] 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_c1_connector_v2_annotation_v1_identifier_proto_init() } +func file_c1_connector_v2_annotation_v1_identifier_proto_init() { + if File_c1_connector_v2_annotation_v1_identifier_proto != nil { + return + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: unsafe.Slice(unsafe.StringData(file_c1_connector_v2_annotation_v1_identifier_proto_rawDesc), len(file_c1_connector_v2_annotation_v1_identifier_proto_rawDesc)), + NumEnums: 0, + NumMessages: 1, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_c1_connector_v2_annotation_v1_identifier_proto_goTypes, + DependencyIndexes: file_c1_connector_v2_annotation_v1_identifier_proto_depIdxs, + MessageInfos: file_c1_connector_v2_annotation_v1_identifier_proto_msgTypes, + }.Build() + File_c1_connector_v2_annotation_v1_identifier_proto = out.File + file_c1_connector_v2_annotation_v1_identifier_proto_goTypes = nil + file_c1_connector_v2_annotation_v1_identifier_proto_depIdxs = nil +} diff --git a/vendor/github.com/conductorone/baton-sdk/pb/c1/connector/v2/asset.pb.go b/vendor/github.com/conductorone/baton-sdk/pb/c1/connector/v2/asset.pb.go index f720a3b7..71a4df7a 100644 --- a/vendor/github.com/conductorone/baton-sdk/pb/c1/connector/v2/asset.pb.go +++ b/vendor/github.com/conductorone/baton-sdk/pb/c1/connector/v2/asset.pb.go @@ -1,9 +1,11 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.36.4 +// protoc-gen-go v1.36.10 // protoc (unknown) // source: c1/connector/v2/asset.proto +//go:build !protoopaque + package v2 import ( @@ -11,7 +13,6 @@ import ( protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" reflect "reflect" - sync "sync" unsafe "unsafe" ) @@ -23,7 +24,7 @@ const ( ) type AssetRef struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache @@ -54,11 +55,6 @@ func (x *AssetRef) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use AssetRef.ProtoReflect.Descriptor instead. -func (*AssetRef) Descriptor() ([]byte, []int) { - return file_c1_connector_v2_asset_proto_rawDescGZIP(), []int{0} -} - func (x *AssetRef) GetId() string { if x != nil { return x.Id @@ -66,8 +62,26 @@ func (x *AssetRef) GetId() string { return "" } +func (x *AssetRef) SetId(v string) { + x.Id = v +} + +type AssetRef_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Id string +} + +func (b0 AssetRef_builder) Build() *AssetRef { + m0 := &AssetRef{} + b, x := &b0, m0 + _, _ = b, x + x.Id = b.Id + return m0 +} + type AssetServiceGetAssetRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` Asset *AssetRef `protobuf:"bytes,1,opt,name=asset,proto3" json:"asset,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache @@ -98,11 +112,6 @@ func (x *AssetServiceGetAssetRequest) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use AssetServiceGetAssetRequest.ProtoReflect.Descriptor instead. -func (*AssetServiceGetAssetRequest) Descriptor() ([]byte, []int) { - return file_c1_connector_v2_asset_proto_rawDescGZIP(), []int{1} -} - func (x *AssetServiceGetAssetRequest) GetAsset() *AssetRef { if x != nil { return x.Asset @@ -110,8 +119,37 @@ func (x *AssetServiceGetAssetRequest) GetAsset() *AssetRef { return nil } +func (x *AssetServiceGetAssetRequest) SetAsset(v *AssetRef) { + x.Asset = v +} + +func (x *AssetServiceGetAssetRequest) HasAsset() bool { + if x == nil { + return false + } + return x.Asset != nil +} + +func (x *AssetServiceGetAssetRequest) ClearAsset() { + x.Asset = nil +} + +type AssetServiceGetAssetRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Asset *AssetRef +} + +func (b0 AssetServiceGetAssetRequest_builder) Build() *AssetServiceGetAssetRequest { + m0 := &AssetServiceGetAssetRequest{} + b, x := &b0, m0 + _, _ = b, x + x.Asset = b.Asset + return m0 +} + type AssetServiceGetAssetResponse struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // Types that are valid to be assigned to Msg: // // *AssetServiceGetAssetResponse_Metadata_ @@ -146,11 +184,6 @@ func (x *AssetServiceGetAssetResponse) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use AssetServiceGetAssetResponse.ProtoReflect.Descriptor instead. -func (*AssetServiceGetAssetResponse) Descriptor() ([]byte, []int) { - return file_c1_connector_v2_asset_proto_rawDescGZIP(), []int{2} -} - func (x *AssetServiceGetAssetResponse) GetMsg() isAssetServiceGetAssetResponse_Msg { if x != nil { return x.Msg @@ -176,6 +209,111 @@ func (x *AssetServiceGetAssetResponse) GetData() *AssetServiceGetAssetResponse_D return nil } +func (x *AssetServiceGetAssetResponse) SetMetadata(v *AssetServiceGetAssetResponse_Metadata) { + if v == nil { + x.Msg = nil + return + } + x.Msg = &AssetServiceGetAssetResponse_Metadata_{v} +} + +func (x *AssetServiceGetAssetResponse) SetData(v *AssetServiceGetAssetResponse_Data) { + if v == nil { + x.Msg = nil + return + } + x.Msg = &AssetServiceGetAssetResponse_Data_{v} +} + +func (x *AssetServiceGetAssetResponse) HasMsg() bool { + if x == nil { + return false + } + return x.Msg != nil +} + +func (x *AssetServiceGetAssetResponse) HasMetadata() bool { + if x == nil { + return false + } + _, ok := x.Msg.(*AssetServiceGetAssetResponse_Metadata_) + return ok +} + +func (x *AssetServiceGetAssetResponse) HasData() bool { + if x == nil { + return false + } + _, ok := x.Msg.(*AssetServiceGetAssetResponse_Data_) + return ok +} + +func (x *AssetServiceGetAssetResponse) ClearMsg() { + x.Msg = nil +} + +func (x *AssetServiceGetAssetResponse) ClearMetadata() { + if _, ok := x.Msg.(*AssetServiceGetAssetResponse_Metadata_); ok { + x.Msg = nil + } +} + +func (x *AssetServiceGetAssetResponse) ClearData() { + if _, ok := x.Msg.(*AssetServiceGetAssetResponse_Data_); ok { + x.Msg = nil + } +} + +const AssetServiceGetAssetResponse_Msg_not_set_case case_AssetServiceGetAssetResponse_Msg = 0 +const AssetServiceGetAssetResponse_Metadata_case case_AssetServiceGetAssetResponse_Msg = 1 +const AssetServiceGetAssetResponse_Data_case case_AssetServiceGetAssetResponse_Msg = 2 + +func (x *AssetServiceGetAssetResponse) WhichMsg() case_AssetServiceGetAssetResponse_Msg { + if x == nil { + return AssetServiceGetAssetResponse_Msg_not_set_case + } + switch x.Msg.(type) { + case *AssetServiceGetAssetResponse_Metadata_: + return AssetServiceGetAssetResponse_Metadata_case + case *AssetServiceGetAssetResponse_Data_: + return AssetServiceGetAssetResponse_Data_case + default: + return AssetServiceGetAssetResponse_Msg_not_set_case + } +} + +type AssetServiceGetAssetResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Fields of oneof Msg: + Metadata *AssetServiceGetAssetResponse_Metadata + Data *AssetServiceGetAssetResponse_Data + // -- end of Msg +} + +func (b0 AssetServiceGetAssetResponse_builder) Build() *AssetServiceGetAssetResponse { + m0 := &AssetServiceGetAssetResponse{} + b, x := &b0, m0 + _, _ = b, x + if b.Metadata != nil { + x.Msg = &AssetServiceGetAssetResponse_Metadata_{b.Metadata} + } + if b.Data != nil { + x.Msg = &AssetServiceGetAssetResponse_Data_{b.Data} + } + return m0 +} + +type case_AssetServiceGetAssetResponse_Msg protoreflect.FieldNumber + +func (x case_AssetServiceGetAssetResponse_Msg) String() string { + md := file_c1_connector_v2_asset_proto_msgTypes[2].Descriptor() + if x == 0 { + return "not set" + } + return protoimpl.X.MessageFieldStringOf(md, protoreflect.FieldNumber(x)) +} + type isAssetServiceGetAssetResponse_Msg interface { isAssetServiceGetAssetResponse_Msg() } @@ -193,7 +331,7 @@ func (*AssetServiceGetAssetResponse_Metadata_) isAssetServiceGetAssetResponse_Ms func (*AssetServiceGetAssetResponse_Data_) isAssetServiceGetAssetResponse_Msg() {} type AssetServiceGetAssetResponse_Metadata struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` ContentType string `protobuf:"bytes,1,opt,name=content_type,json=contentType,proto3" json:"content_type,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache @@ -224,11 +362,6 @@ func (x *AssetServiceGetAssetResponse_Metadata) ProtoReflect() protoreflect.Mess return mi.MessageOf(x) } -// Deprecated: Use AssetServiceGetAssetResponse_Metadata.ProtoReflect.Descriptor instead. -func (*AssetServiceGetAssetResponse_Metadata) Descriptor() ([]byte, []int) { - return file_c1_connector_v2_asset_proto_rawDescGZIP(), []int{2, 0} -} - func (x *AssetServiceGetAssetResponse_Metadata) GetContentType() string { if x != nil { return x.ContentType @@ -236,8 +369,26 @@ func (x *AssetServiceGetAssetResponse_Metadata) GetContentType() string { return "" } +func (x *AssetServiceGetAssetResponse_Metadata) SetContentType(v string) { + x.ContentType = v +} + +type AssetServiceGetAssetResponse_Metadata_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + ContentType string +} + +func (b0 AssetServiceGetAssetResponse_Metadata_builder) Build() *AssetServiceGetAssetResponse_Metadata { + m0 := &AssetServiceGetAssetResponse_Metadata{} + b, x := &b0, m0 + _, _ = b, x + x.ContentType = b.ContentType + return m0 +} + type AssetServiceGetAssetResponse_Data struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` Data []byte `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache @@ -268,11 +419,6 @@ func (x *AssetServiceGetAssetResponse_Data) ProtoReflect() protoreflect.Message return mi.MessageOf(x) } -// Deprecated: Use AssetServiceGetAssetResponse_Data.ProtoReflect.Descriptor instead. -func (*AssetServiceGetAssetResponse_Data) Descriptor() ([]byte, []int) { - return file_c1_connector_v2_asset_proto_rawDescGZIP(), []int{2, 1} -} - func (x *AssetServiceGetAssetResponse_Data) GetData() []byte { if x != nil { return x.Data @@ -280,67 +426,50 @@ func (x *AssetServiceGetAssetResponse_Data) GetData() []byte { return nil } -var File_c1_connector_v2_asset_proto protoreflect.FileDescriptor +func (x *AssetServiceGetAssetResponse_Data) SetData(v []byte) { + if v == nil { + v = []byte{} + } + x.Data = v +} -var file_c1_connector_v2_asset_proto_rawDesc = string([]byte{ - 0x0a, 0x1b, 0x63, 0x31, 0x2f, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x2f, 0x76, - 0x32, 0x2f, 0x61, 0x73, 0x73, 0x65, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0f, 0x63, - 0x31, 0x2e, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x2e, 0x76, 0x32, 0x1a, 0x17, - 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x2f, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, - 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x26, 0x0a, 0x08, 0x41, 0x73, 0x73, 0x65, 0x74, - 0x52, 0x65, 0x66, 0x12, 0x1a, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, - 0x0a, 0xfa, 0x42, 0x07, 0x72, 0x05, 0x20, 0x01, 0x28, 0x80, 0x08, 0x52, 0x02, 0x69, 0x64, 0x22, - 0x58, 0x0a, 0x1b, 0x41, 0x73, 0x73, 0x65, 0x74, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x47, - 0x65, 0x74, 0x41, 0x73, 0x73, 0x65, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x39, - 0x0a, 0x05, 0x61, 0x73, 0x73, 0x65, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, - 0x63, 0x31, 0x2e, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x2e, 0x76, 0x32, 0x2e, - 0x41, 0x73, 0x73, 0x65, 0x74, 0x52, 0x65, 0x66, 0x42, 0x08, 0xfa, 0x42, 0x05, 0x8a, 0x01, 0x02, - 0x10, 0x01, 0x52, 0x05, 0x61, 0x73, 0x73, 0x65, 0x74, 0x22, 0xae, 0x02, 0x0a, 0x1c, 0x41, 0x73, - 0x73, 0x65, 0x74, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x47, 0x65, 0x74, 0x41, 0x73, 0x73, - 0x65, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x54, 0x0a, 0x08, 0x6d, 0x65, - 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x36, 0x2e, 0x63, - 0x31, 0x2e, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x2e, 0x76, 0x32, 0x2e, 0x41, - 0x73, 0x73, 0x65, 0x74, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x47, 0x65, 0x74, 0x41, 0x73, - 0x73, 0x65, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x4d, 0x65, 0x74, 0x61, - 0x64, 0x61, 0x74, 0x61, 0x48, 0x00, 0x52, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, - 0x12, 0x48, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x32, - 0x2e, 0x63, 0x31, 0x2e, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x2e, 0x76, 0x32, - 0x2e, 0x41, 0x73, 0x73, 0x65, 0x74, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x47, 0x65, 0x74, - 0x41, 0x73, 0x73, 0x65, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x44, 0x61, - 0x74, 0x61, 0x48, 0x00, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x1a, 0x39, 0x0a, 0x08, 0x4d, 0x65, - 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0x2d, 0x0a, 0x0c, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, - 0x74, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x0a, 0xfa, 0x42, - 0x07, 0x72, 0x05, 0x20, 0x01, 0x28, 0x80, 0x02, 0x52, 0x0b, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, - 0x74, 0x54, 0x79, 0x70, 0x65, 0x1a, 0x27, 0x0a, 0x04, 0x44, 0x61, 0x74, 0x61, 0x12, 0x1f, 0x0a, - 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x42, 0x0b, 0xfa, 0x42, 0x08, - 0x7a, 0x06, 0x10, 0x00, 0x18, 0x80, 0x80, 0x40, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x42, 0x0a, - 0x0a, 0x03, 0x6d, 0x73, 0x67, 0x12, 0x03, 0xf8, 0x42, 0x01, 0x32, 0x79, 0x0a, 0x0c, 0x41, 0x73, - 0x73, 0x65, 0x74, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x69, 0x0a, 0x08, 0x47, 0x65, - 0x74, 0x41, 0x73, 0x73, 0x65, 0x74, 0x12, 0x2c, 0x2e, 0x63, 0x31, 0x2e, 0x63, 0x6f, 0x6e, 0x6e, - 0x65, 0x63, 0x74, 0x6f, 0x72, 0x2e, 0x76, 0x32, 0x2e, 0x41, 0x73, 0x73, 0x65, 0x74, 0x53, 0x65, - 0x72, 0x76, 0x69, 0x63, 0x65, 0x47, 0x65, 0x74, 0x41, 0x73, 0x73, 0x65, 0x74, 0x52, 0x65, 0x71, - 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2d, 0x2e, 0x63, 0x31, 0x2e, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, - 0x74, 0x6f, 0x72, 0x2e, 0x76, 0x32, 0x2e, 0x41, 0x73, 0x73, 0x65, 0x74, 0x53, 0x65, 0x72, 0x76, - 0x69, 0x63, 0x65, 0x47, 0x65, 0x74, 0x41, 0x73, 0x73, 0x65, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, - 0x6e, 0x73, 0x65, 0x30, 0x01, 0x42, 0x36, 0x5a, 0x34, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, - 0x63, 0x6f, 0x6d, 0x2f, 0x63, 0x6f, 0x6e, 0x64, 0x75, 0x63, 0x74, 0x6f, 0x72, 0x6f, 0x6e, 0x65, - 0x2f, 0x62, 0x61, 0x74, 0x6f, 0x6e, 0x2d, 0x73, 0x64, 0x6b, 0x2f, 0x70, 0x62, 0x2f, 0x63, 0x31, - 0x2f, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x2f, 0x76, 0x32, 0x62, 0x06, 0x70, - 0x72, 0x6f, 0x74, 0x6f, 0x33, -}) - -var ( - file_c1_connector_v2_asset_proto_rawDescOnce sync.Once - file_c1_connector_v2_asset_proto_rawDescData []byte -) +type AssetServiceGetAssetResponse_Data_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. -func file_c1_connector_v2_asset_proto_rawDescGZIP() []byte { - file_c1_connector_v2_asset_proto_rawDescOnce.Do(func() { - file_c1_connector_v2_asset_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_c1_connector_v2_asset_proto_rawDesc), len(file_c1_connector_v2_asset_proto_rawDesc))) - }) - return file_c1_connector_v2_asset_proto_rawDescData + Data []byte } +func (b0 AssetServiceGetAssetResponse_Data_builder) Build() *AssetServiceGetAssetResponse_Data { + m0 := &AssetServiceGetAssetResponse_Data{} + b, x := &b0, m0 + _, _ = b, x + x.Data = b.Data + return m0 +} + +var File_c1_connector_v2_asset_proto protoreflect.FileDescriptor + +const file_c1_connector_v2_asset_proto_rawDesc = "" + + "\n" + + "\x1bc1/connector/v2/asset.proto\x12\x0fc1.connector.v2\x1a\x17validate/validate.proto\"&\n" + + "\bAssetRef\x12\x1a\n" + + "\x02id\x18\x01 \x01(\tB\n" + + "\xfaB\ar\x05 \x01(\x80\bR\x02id\"X\n" + + "\x1bAssetServiceGetAssetRequest\x129\n" + + "\x05asset\x18\x01 \x01(\v2\x19.c1.connector.v2.AssetRefB\b\xfaB\x05\x8a\x01\x02\x10\x01R\x05asset\"\xae\x02\n" + + "\x1cAssetServiceGetAssetResponse\x12T\n" + + "\bmetadata\x18\x01 \x01(\v26.c1.connector.v2.AssetServiceGetAssetResponse.MetadataH\x00R\bmetadata\x12H\n" + + "\x04data\x18\x02 \x01(\v22.c1.connector.v2.AssetServiceGetAssetResponse.DataH\x00R\x04data\x1a9\n" + + "\bMetadata\x12-\n" + + "\fcontent_type\x18\x01 \x01(\tB\n" + + "\xfaB\ar\x05 \x01(\x80\x02R\vcontentType\x1a'\n" + + "\x04Data\x12\x1f\n" + + "\x04data\x18\x01 \x01(\fB\v\xfaB\bz\x06\x10\x00\x18\x80\x80@R\x04dataB\n" + + "\n" + + "\x03msg\x12\x03\xf8B\x012y\n" + + "\fAssetService\x12i\n" + + "\bGetAsset\x12,.c1.connector.v2.AssetServiceGetAssetRequest\x1a-.c1.connector.v2.AssetServiceGetAssetResponse0\x01B6Z4github.com/conductorone/baton-sdk/pb/c1/connector/v2b\x06proto3" + var file_c1_connector_v2_asset_proto_msgTypes = make([]protoimpl.MessageInfo, 5) var file_c1_connector_v2_asset_proto_goTypes = []any{ (*AssetRef)(nil), // 0: c1.connector.v2.AssetRef diff --git a/vendor/github.com/conductorone/baton-sdk/pb/c1/connector/v2/asset_protoopaque.pb.go b/vendor/github.com/conductorone/baton-sdk/pb/c1/connector/v2/asset_protoopaque.pb.go new file mode 100644 index 00000000..f795efba --- /dev/null +++ b/vendor/github.com/conductorone/baton-sdk/pb/c1/connector/v2/asset_protoopaque.pb.go @@ -0,0 +1,509 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.36.10 +// protoc (unknown) +// source: c1/connector/v2/asset.proto + +//go:build protoopaque + +package v2 + +import ( + _ "github.com/envoyproxy/protoc-gen-validate/validate" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + reflect "reflect" + 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 AssetRef struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Id string `protobuf:"bytes,1,opt,name=id,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *AssetRef) Reset() { + *x = AssetRef{} + mi := &file_c1_connector_v2_asset_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *AssetRef) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*AssetRef) ProtoMessage() {} + +func (x *AssetRef) ProtoReflect() protoreflect.Message { + mi := &file_c1_connector_v2_asset_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) +} + +func (x *AssetRef) GetId() string { + if x != nil { + return x.xxx_hidden_Id + } + return "" +} + +func (x *AssetRef) SetId(v string) { + x.xxx_hidden_Id = v +} + +type AssetRef_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Id string +} + +func (b0 AssetRef_builder) Build() *AssetRef { + m0 := &AssetRef{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Id = b.Id + return m0 +} + +type AssetServiceGetAssetRequest struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Asset *AssetRef `protobuf:"bytes,1,opt,name=asset,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *AssetServiceGetAssetRequest) Reset() { + *x = AssetServiceGetAssetRequest{} + mi := &file_c1_connector_v2_asset_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *AssetServiceGetAssetRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*AssetServiceGetAssetRequest) ProtoMessage() {} + +func (x *AssetServiceGetAssetRequest) ProtoReflect() protoreflect.Message { + mi := &file_c1_connector_v2_asset_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) +} + +func (x *AssetServiceGetAssetRequest) GetAsset() *AssetRef { + if x != nil { + return x.xxx_hidden_Asset + } + return nil +} + +func (x *AssetServiceGetAssetRequest) SetAsset(v *AssetRef) { + x.xxx_hidden_Asset = v +} + +func (x *AssetServiceGetAssetRequest) HasAsset() bool { + if x == nil { + return false + } + return x.xxx_hidden_Asset != nil +} + +func (x *AssetServiceGetAssetRequest) ClearAsset() { + x.xxx_hidden_Asset = nil +} + +type AssetServiceGetAssetRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Asset *AssetRef +} + +func (b0 AssetServiceGetAssetRequest_builder) Build() *AssetServiceGetAssetRequest { + m0 := &AssetServiceGetAssetRequest{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Asset = b.Asset + return m0 +} + +type AssetServiceGetAssetResponse struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Msg isAssetServiceGetAssetResponse_Msg `protobuf_oneof:"msg"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *AssetServiceGetAssetResponse) Reset() { + *x = AssetServiceGetAssetResponse{} + mi := &file_c1_connector_v2_asset_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *AssetServiceGetAssetResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*AssetServiceGetAssetResponse) ProtoMessage() {} + +func (x *AssetServiceGetAssetResponse) ProtoReflect() protoreflect.Message { + mi := &file_c1_connector_v2_asset_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) +} + +func (x *AssetServiceGetAssetResponse) GetMetadata() *AssetServiceGetAssetResponse_Metadata { + if x != nil { + if x, ok := x.xxx_hidden_Msg.(*assetServiceGetAssetResponse_Metadata_); ok { + return x.Metadata + } + } + return nil +} + +func (x *AssetServiceGetAssetResponse) GetData() *AssetServiceGetAssetResponse_Data { + if x != nil { + if x, ok := x.xxx_hidden_Msg.(*assetServiceGetAssetResponse_Data_); ok { + return x.Data + } + } + return nil +} + +func (x *AssetServiceGetAssetResponse) SetMetadata(v *AssetServiceGetAssetResponse_Metadata) { + if v == nil { + x.xxx_hidden_Msg = nil + return + } + x.xxx_hidden_Msg = &assetServiceGetAssetResponse_Metadata_{v} +} + +func (x *AssetServiceGetAssetResponse) SetData(v *AssetServiceGetAssetResponse_Data) { + if v == nil { + x.xxx_hidden_Msg = nil + return + } + x.xxx_hidden_Msg = &assetServiceGetAssetResponse_Data_{v} +} + +func (x *AssetServiceGetAssetResponse) HasMsg() bool { + if x == nil { + return false + } + return x.xxx_hidden_Msg != nil +} + +func (x *AssetServiceGetAssetResponse) HasMetadata() bool { + if x == nil { + return false + } + _, ok := x.xxx_hidden_Msg.(*assetServiceGetAssetResponse_Metadata_) + return ok +} + +func (x *AssetServiceGetAssetResponse) HasData() bool { + if x == nil { + return false + } + _, ok := x.xxx_hidden_Msg.(*assetServiceGetAssetResponse_Data_) + return ok +} + +func (x *AssetServiceGetAssetResponse) ClearMsg() { + x.xxx_hidden_Msg = nil +} + +func (x *AssetServiceGetAssetResponse) ClearMetadata() { + if _, ok := x.xxx_hidden_Msg.(*assetServiceGetAssetResponse_Metadata_); ok { + x.xxx_hidden_Msg = nil + } +} + +func (x *AssetServiceGetAssetResponse) ClearData() { + if _, ok := x.xxx_hidden_Msg.(*assetServiceGetAssetResponse_Data_); ok { + x.xxx_hidden_Msg = nil + } +} + +const AssetServiceGetAssetResponse_Msg_not_set_case case_AssetServiceGetAssetResponse_Msg = 0 +const AssetServiceGetAssetResponse_Metadata_case case_AssetServiceGetAssetResponse_Msg = 1 +const AssetServiceGetAssetResponse_Data_case case_AssetServiceGetAssetResponse_Msg = 2 + +func (x *AssetServiceGetAssetResponse) WhichMsg() case_AssetServiceGetAssetResponse_Msg { + if x == nil { + return AssetServiceGetAssetResponse_Msg_not_set_case + } + switch x.xxx_hidden_Msg.(type) { + case *assetServiceGetAssetResponse_Metadata_: + return AssetServiceGetAssetResponse_Metadata_case + case *assetServiceGetAssetResponse_Data_: + return AssetServiceGetAssetResponse_Data_case + default: + return AssetServiceGetAssetResponse_Msg_not_set_case + } +} + +type AssetServiceGetAssetResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Fields of oneof xxx_hidden_Msg: + Metadata *AssetServiceGetAssetResponse_Metadata + Data *AssetServiceGetAssetResponse_Data + // -- end of xxx_hidden_Msg +} + +func (b0 AssetServiceGetAssetResponse_builder) Build() *AssetServiceGetAssetResponse { + m0 := &AssetServiceGetAssetResponse{} + b, x := &b0, m0 + _, _ = b, x + if b.Metadata != nil { + x.xxx_hidden_Msg = &assetServiceGetAssetResponse_Metadata_{b.Metadata} + } + if b.Data != nil { + x.xxx_hidden_Msg = &assetServiceGetAssetResponse_Data_{b.Data} + } + return m0 +} + +type case_AssetServiceGetAssetResponse_Msg protoreflect.FieldNumber + +func (x case_AssetServiceGetAssetResponse_Msg) String() string { + md := file_c1_connector_v2_asset_proto_msgTypes[2].Descriptor() + if x == 0 { + return "not set" + } + return protoimpl.X.MessageFieldStringOf(md, protoreflect.FieldNumber(x)) +} + +type isAssetServiceGetAssetResponse_Msg interface { + isAssetServiceGetAssetResponse_Msg() +} + +type assetServiceGetAssetResponse_Metadata_ struct { + Metadata *AssetServiceGetAssetResponse_Metadata `protobuf:"bytes,1,opt,name=metadata,proto3,oneof"` +} + +type assetServiceGetAssetResponse_Data_ struct { + Data *AssetServiceGetAssetResponse_Data `protobuf:"bytes,2,opt,name=data,proto3,oneof"` +} + +func (*assetServiceGetAssetResponse_Metadata_) isAssetServiceGetAssetResponse_Msg() {} + +func (*assetServiceGetAssetResponse_Data_) isAssetServiceGetAssetResponse_Msg() {} + +type AssetServiceGetAssetResponse_Metadata struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_ContentType string `protobuf:"bytes,1,opt,name=content_type,json=contentType,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *AssetServiceGetAssetResponse_Metadata) Reset() { + *x = AssetServiceGetAssetResponse_Metadata{} + mi := &file_c1_connector_v2_asset_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *AssetServiceGetAssetResponse_Metadata) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*AssetServiceGetAssetResponse_Metadata) ProtoMessage() {} + +func (x *AssetServiceGetAssetResponse_Metadata) ProtoReflect() protoreflect.Message { + mi := &file_c1_connector_v2_asset_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) +} + +func (x *AssetServiceGetAssetResponse_Metadata) GetContentType() string { + if x != nil { + return x.xxx_hidden_ContentType + } + return "" +} + +func (x *AssetServiceGetAssetResponse_Metadata) SetContentType(v string) { + x.xxx_hidden_ContentType = v +} + +type AssetServiceGetAssetResponse_Metadata_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + ContentType string +} + +func (b0 AssetServiceGetAssetResponse_Metadata_builder) Build() *AssetServiceGetAssetResponse_Metadata { + m0 := &AssetServiceGetAssetResponse_Metadata{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_ContentType = b.ContentType + return m0 +} + +type AssetServiceGetAssetResponse_Data struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Data []byte `protobuf:"bytes,1,opt,name=data,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *AssetServiceGetAssetResponse_Data) Reset() { + *x = AssetServiceGetAssetResponse_Data{} + mi := &file_c1_connector_v2_asset_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *AssetServiceGetAssetResponse_Data) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*AssetServiceGetAssetResponse_Data) ProtoMessage() {} + +func (x *AssetServiceGetAssetResponse_Data) ProtoReflect() protoreflect.Message { + mi := &file_c1_connector_v2_asset_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) +} + +func (x *AssetServiceGetAssetResponse_Data) GetData() []byte { + if x != nil { + return x.xxx_hidden_Data + } + return nil +} + +func (x *AssetServiceGetAssetResponse_Data) SetData(v []byte) { + if v == nil { + v = []byte{} + } + x.xxx_hidden_Data = v +} + +type AssetServiceGetAssetResponse_Data_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Data []byte +} + +func (b0 AssetServiceGetAssetResponse_Data_builder) Build() *AssetServiceGetAssetResponse_Data { + m0 := &AssetServiceGetAssetResponse_Data{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Data = b.Data + return m0 +} + +var File_c1_connector_v2_asset_proto protoreflect.FileDescriptor + +const file_c1_connector_v2_asset_proto_rawDesc = "" + + "\n" + + "\x1bc1/connector/v2/asset.proto\x12\x0fc1.connector.v2\x1a\x17validate/validate.proto\"&\n" + + "\bAssetRef\x12\x1a\n" + + "\x02id\x18\x01 \x01(\tB\n" + + "\xfaB\ar\x05 \x01(\x80\bR\x02id\"X\n" + + "\x1bAssetServiceGetAssetRequest\x129\n" + + "\x05asset\x18\x01 \x01(\v2\x19.c1.connector.v2.AssetRefB\b\xfaB\x05\x8a\x01\x02\x10\x01R\x05asset\"\xae\x02\n" + + "\x1cAssetServiceGetAssetResponse\x12T\n" + + "\bmetadata\x18\x01 \x01(\v26.c1.connector.v2.AssetServiceGetAssetResponse.MetadataH\x00R\bmetadata\x12H\n" + + "\x04data\x18\x02 \x01(\v22.c1.connector.v2.AssetServiceGetAssetResponse.DataH\x00R\x04data\x1a9\n" + + "\bMetadata\x12-\n" + + "\fcontent_type\x18\x01 \x01(\tB\n" + + "\xfaB\ar\x05 \x01(\x80\x02R\vcontentType\x1a'\n" + + "\x04Data\x12\x1f\n" + + "\x04data\x18\x01 \x01(\fB\v\xfaB\bz\x06\x10\x00\x18\x80\x80@R\x04dataB\n" + + "\n" + + "\x03msg\x12\x03\xf8B\x012y\n" + + "\fAssetService\x12i\n" + + "\bGetAsset\x12,.c1.connector.v2.AssetServiceGetAssetRequest\x1a-.c1.connector.v2.AssetServiceGetAssetResponse0\x01B6Z4github.com/conductorone/baton-sdk/pb/c1/connector/v2b\x06proto3" + +var file_c1_connector_v2_asset_proto_msgTypes = make([]protoimpl.MessageInfo, 5) +var file_c1_connector_v2_asset_proto_goTypes = []any{ + (*AssetRef)(nil), // 0: c1.connector.v2.AssetRef + (*AssetServiceGetAssetRequest)(nil), // 1: c1.connector.v2.AssetServiceGetAssetRequest + (*AssetServiceGetAssetResponse)(nil), // 2: c1.connector.v2.AssetServiceGetAssetResponse + (*AssetServiceGetAssetResponse_Metadata)(nil), // 3: c1.connector.v2.AssetServiceGetAssetResponse.Metadata + (*AssetServiceGetAssetResponse_Data)(nil), // 4: c1.connector.v2.AssetServiceGetAssetResponse.Data +} +var file_c1_connector_v2_asset_proto_depIdxs = []int32{ + 0, // 0: c1.connector.v2.AssetServiceGetAssetRequest.asset:type_name -> c1.connector.v2.AssetRef + 3, // 1: c1.connector.v2.AssetServiceGetAssetResponse.metadata:type_name -> c1.connector.v2.AssetServiceGetAssetResponse.Metadata + 4, // 2: c1.connector.v2.AssetServiceGetAssetResponse.data:type_name -> c1.connector.v2.AssetServiceGetAssetResponse.Data + 1, // 3: c1.connector.v2.AssetService.GetAsset:input_type -> c1.connector.v2.AssetServiceGetAssetRequest + 2, // 4: c1.connector.v2.AssetService.GetAsset:output_type -> c1.connector.v2.AssetServiceGetAssetResponse + 4, // [4:5] is the sub-list for method output_type + 3, // [3:4] is the sub-list for method input_type + 3, // [3:3] is the sub-list for extension type_name + 3, // [3:3] is the sub-list for extension extendee + 0, // [0:3] is the sub-list for field type_name +} + +func init() { file_c1_connector_v2_asset_proto_init() } +func file_c1_connector_v2_asset_proto_init() { + if File_c1_connector_v2_asset_proto != nil { + return + } + file_c1_connector_v2_asset_proto_msgTypes[2].OneofWrappers = []any{ + (*assetServiceGetAssetResponse_Metadata_)(nil), + (*assetServiceGetAssetResponse_Data_)(nil), + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: unsafe.Slice(unsafe.StringData(file_c1_connector_v2_asset_proto_rawDesc), len(file_c1_connector_v2_asset_proto_rawDesc)), + NumEnums: 0, + NumMessages: 5, + NumExtensions: 0, + NumServices: 1, + }, + GoTypes: file_c1_connector_v2_asset_proto_goTypes, + DependencyIndexes: file_c1_connector_v2_asset_proto_depIdxs, + MessageInfos: file_c1_connector_v2_asset_proto_msgTypes, + }.Build() + File_c1_connector_v2_asset_proto = out.File + file_c1_connector_v2_asset_proto_goTypes = nil + file_c1_connector_v2_asset_proto_depIdxs = nil +} diff --git a/vendor/github.com/conductorone/baton-sdk/pb/c1/connector/v2/config.pb.go b/vendor/github.com/conductorone/baton-sdk/pb/c1/connector/v2/config.pb.go index f0e34d03..c316cda9 100644 --- a/vendor/github.com/conductorone/baton-sdk/pb/c1/connector/v2/config.pb.go +++ b/vendor/github.com/conductorone/baton-sdk/pb/c1/connector/v2/config.pb.go @@ -1,9 +1,11 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.36.4 +// protoc-gen-go v1.36.10 // protoc (unknown) // source: c1/connector/v2/config.proto +//go:build !protoopaque + package v2 import ( @@ -11,7 +13,6 @@ import ( protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" reflect "reflect" - sync "sync" unsafe "unsafe" ) @@ -23,7 +24,7 @@ const ( ) type SchemaServiceGetSchemaRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } @@ -53,13 +54,20 @@ func (x *SchemaServiceGetSchemaRequest) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use SchemaServiceGetSchemaRequest.ProtoReflect.Descriptor instead. -func (*SchemaServiceGetSchemaRequest) Descriptor() ([]byte, []int) { - return file_c1_connector_v2_config_proto_rawDescGZIP(), []int{0} +type SchemaServiceGetSchemaRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + +} + +func (b0 SchemaServiceGetSchemaRequest_builder) Build() *SchemaServiceGetSchemaRequest { + m0 := &SchemaServiceGetSchemaRequest{} + b, x := &b0, m0 + _, _ = b, x + return m0 } type SchemaServiceGetSchemaResponse struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` Version string `protobuf:"bytes,1,opt,name=version,proto3" json:"version,omitempty"` Schema *ConfigSchema `protobuf:"bytes,2,opt,name=schema,proto3" json:"schema,omitempty"` unknownFields protoimpl.UnknownFields @@ -91,11 +99,6 @@ func (x *SchemaServiceGetSchemaResponse) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use SchemaServiceGetSchemaResponse.ProtoReflect.Descriptor instead. -func (*SchemaServiceGetSchemaResponse) Descriptor() ([]byte, []int) { - return file_c1_connector_v2_config_proto_rawDescGZIP(), []int{1} -} - func (x *SchemaServiceGetSchemaResponse) GetVersion() string { if x != nil { return x.Version @@ -110,8 +113,43 @@ func (x *SchemaServiceGetSchemaResponse) GetSchema() *ConfigSchema { return nil } +func (x *SchemaServiceGetSchemaResponse) SetVersion(v string) { + x.Version = v +} + +func (x *SchemaServiceGetSchemaResponse) SetSchema(v *ConfigSchema) { + x.Schema = v +} + +func (x *SchemaServiceGetSchemaResponse) HasSchema() bool { + if x == nil { + return false + } + return x.Schema != nil +} + +func (x *SchemaServiceGetSchemaResponse) ClearSchema() { + x.Schema = nil +} + +type SchemaServiceGetSchemaResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Version string + Schema *ConfigSchema +} + +func (b0 SchemaServiceGetSchemaResponse_builder) Build() *SchemaServiceGetSchemaResponse { + m0 := &SchemaServiceGetSchemaResponse{} + b, x := &b0, m0 + _, _ = b, x + x.Version = b.Version + x.Schema = b.Schema + return m0 +} + type ConfigSchema struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` Fields []*Field `protobuf:"bytes,1,rep,name=fields,proto3" json:"fields,omitempty"` DisplayName string `protobuf:"bytes,2,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"` HelpUrl string `protobuf:"bytes,3,opt,name=help_url,json=helpUrl,proto3" json:"help_url,omitempty"` @@ -146,11 +184,6 @@ func (x *ConfigSchema) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use ConfigSchema.ProtoReflect.Descriptor instead. -func (*ConfigSchema) Descriptor() ([]byte, []int) { - return file_c1_connector_v2_config_proto_rawDescGZIP(), []int{2} -} - func (x *ConfigSchema) GetFields() []*Field { if x != nil { return x.Fields @@ -186,8 +219,72 @@ func (x *ConfigSchema) GetLogo() *AssetRef { return nil } +func (x *ConfigSchema) SetFields(v []*Field) { + x.Fields = v +} + +func (x *ConfigSchema) SetDisplayName(v string) { + x.DisplayName = v +} + +func (x *ConfigSchema) SetHelpUrl(v string) { + x.HelpUrl = v +} + +func (x *ConfigSchema) SetIcon(v *AssetRef) { + x.Icon = v +} + +func (x *ConfigSchema) SetLogo(v *AssetRef) { + x.Logo = v +} + +func (x *ConfigSchema) HasIcon() bool { + if x == nil { + return false + } + return x.Icon != nil +} + +func (x *ConfigSchema) HasLogo() bool { + if x == nil { + return false + } + return x.Logo != nil +} + +func (x *ConfigSchema) ClearIcon() { + x.Icon = nil +} + +func (x *ConfigSchema) ClearLogo() { + x.Logo = nil +} + +type ConfigSchema_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Fields []*Field + DisplayName string + HelpUrl string + Icon *AssetRef + Logo *AssetRef +} + +func (b0 ConfigSchema_builder) Build() *ConfigSchema { + m0 := &ConfigSchema{} + b, x := &b0, m0 + _, _ = b, x + x.Fields = b.Fields + x.DisplayName = b.DisplayName + x.HelpUrl = b.HelpUrl + x.Icon = b.Icon + x.Logo = b.Logo + return m0 +} + type Field struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // Must not start with `C1_` and match [a-zA-Z0-9_]{2,64}. Must be unique within a connector. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // empty or https URL @@ -231,11 +328,6 @@ func (x *Field) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use Field.ProtoReflect.Descriptor instead. -func (*Field) Descriptor() ([]byte, []int) { - return file_c1_connector_v2_config_proto_rawDescGZIP(), []int{3} -} - func (x *Field) GetName() string { if x != nil { return x.Name @@ -307,6 +399,196 @@ func (x *Field) GetFile() *FileField { return nil } +func (x *Field) SetName(v string) { + x.Name = v +} + +func (x *Field) SetHelpUrl(v string) { + x.HelpUrl = v +} + +func (x *Field) SetDisplayName(v string) { + x.DisplayName = v +} + +func (x *Field) SetPlaceholder(v string) { + x.Placeholder = v +} + +func (x *Field) SetStr(v *StringField) { + if v == nil { + x.Field = nil + return + } + x.Field = &Field_Str{v} +} + +func (x *Field) SetSelect(v *SelectField) { + if v == nil { + x.Field = nil + return + } + x.Field = &Field_Select{v} +} + +func (x *Field) SetRandom(v *RandomStringField) { + if v == nil { + x.Field = nil + return + } + x.Field = &Field_Random{v} +} + +func (x *Field) SetFile(v *FileField) { + if v == nil { + x.Field = nil + return + } + x.Field = &Field_File{v} +} + +func (x *Field) HasField() bool { + if x == nil { + return false + } + return x.Field != nil +} + +func (x *Field) HasStr() bool { + if x == nil { + return false + } + _, ok := x.Field.(*Field_Str) + return ok +} + +func (x *Field) HasSelect() bool { + if x == nil { + return false + } + _, ok := x.Field.(*Field_Select) + return ok +} + +func (x *Field) HasRandom() bool { + if x == nil { + return false + } + _, ok := x.Field.(*Field_Random) + return ok +} + +func (x *Field) HasFile() bool { + if x == nil { + return false + } + _, ok := x.Field.(*Field_File) + return ok +} + +func (x *Field) ClearField() { + x.Field = nil +} + +func (x *Field) ClearStr() { + if _, ok := x.Field.(*Field_Str); ok { + x.Field = nil + } +} + +func (x *Field) ClearSelect() { + if _, ok := x.Field.(*Field_Select); ok { + x.Field = nil + } +} + +func (x *Field) ClearRandom() { + if _, ok := x.Field.(*Field_Random); ok { + x.Field = nil + } +} + +func (x *Field) ClearFile() { + if _, ok := x.Field.(*Field_File); ok { + x.Field = nil + } +} + +const Field_Field_not_set_case case_Field_Field = 0 +const Field_Str_case case_Field_Field = 100 +const Field_Select_case case_Field_Field = 101 +const Field_Random_case case_Field_Field = 102 +const Field_File_case case_Field_Field = 103 + +func (x *Field) WhichField() case_Field_Field { + if x == nil { + return Field_Field_not_set_case + } + switch x.Field.(type) { + case *Field_Str: + return Field_Str_case + case *Field_Select: + return Field_Select_case + case *Field_Random: + return Field_Random_case + case *Field_File: + return Field_File_case + default: + return Field_Field_not_set_case + } +} + +type Field_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Must not start with `C1_` and match [a-zA-Z0-9_]{2,64}. Must be unique within a connector. + Name string + // empty or https URL + HelpUrl string + // Human readable label for this Field + DisplayName string + Placeholder string + // Fields of oneof Field: + Str *StringField + Select *SelectField + Random *RandomStringField + File *FileField + // -- end of Field +} + +func (b0 Field_builder) Build() *Field { + m0 := &Field{} + b, x := &b0, m0 + _, _ = b, x + x.Name = b.Name + x.HelpUrl = b.HelpUrl + x.DisplayName = b.DisplayName + x.Placeholder = b.Placeholder + if b.Str != nil { + x.Field = &Field_Str{b.Str} + } + if b.Select != nil { + x.Field = &Field_Select{b.Select} + } + if b.Random != nil { + x.Field = &Field_Random{b.Random} + } + if b.File != nil { + x.Field = &Field_File{b.File} + } + return m0 +} + +type case_Field_Field protoreflect.FieldNumber + +func (x case_Field_Field) String() string { + md := file_c1_connector_v2_config_proto_msgTypes[3].Descriptor() + if x == 0 { + return "not set" + } + return protoimpl.X.MessageFieldStringOf(md, protoreflect.FieldNumber(x)) +} + type isField_Field interface { isField_Field() } @@ -336,7 +618,7 @@ func (*Field_Random) isField_Field() {} func (*Field_File) isField_Field() {} type StringField struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // If secret, value is write-only in UI and a password-type form is used. Secret bool `protobuf:"varint,1,opt,name=secret,proto3" json:"secret,omitempty"` // validator rules for value. may be empty. @@ -370,11 +652,6 @@ func (x *StringField) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use StringField.ProtoReflect.Descriptor instead. -func (*StringField) Descriptor() ([]byte, []int) { - return file_c1_connector_v2_config_proto_rawDescGZIP(), []int{4} -} - func (x *StringField) GetSecret() bool { if x != nil { return x.Secret @@ -389,8 +666,45 @@ func (x *StringField) GetValueValidator() *validate.StringRules { return nil } +func (x *StringField) SetSecret(v bool) { + x.Secret = v +} + +func (x *StringField) SetValueValidator(v *validate.StringRules) { + x.ValueValidator = v +} + +func (x *StringField) HasValueValidator() bool { + if x == nil { + return false + } + return x.ValueValidator != nil +} + +func (x *StringField) ClearValueValidator() { + x.ValueValidator = nil +} + +type StringField_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // If secret, value is write-only in UI and a password-type form is used. + Secret bool + // validator rules for value. may be empty. + ValueValidator *validate.StringRules +} + +func (b0 StringField_builder) Build() *StringField { + m0 := &StringField{} + b, x := &b0, m0 + _, _ = b, x + x.Secret = b.Secret + x.ValueValidator = b.ValueValidator + return m0 +} + type SelectField struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // list of items that are selected from Items []*SelectField_Item `protobuf:"bytes,5,rep,name=items,proto3" json:"items,omitempty"` unknownFields protoimpl.UnknownFields @@ -422,11 +736,6 @@ func (x *SelectField) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use SelectField.ProtoReflect.Descriptor instead. -func (*SelectField) Descriptor() ([]byte, []int) { - return file_c1_connector_v2_config_proto_rawDescGZIP(), []int{5} -} - func (x *SelectField) GetItems() []*SelectField_Item { if x != nil { return x.Items @@ -434,8 +743,27 @@ func (x *SelectField) GetItems() []*SelectField_Item { return nil } +func (x *SelectField) SetItems(v []*SelectField_Item) { + x.Items = v +} + +type SelectField_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // list of items that are selected from + Items []*SelectField_Item +} + +func (b0 SelectField_builder) Build() *SelectField { + m0 := &SelectField{} + b, x := &b0, m0 + _, _ = b, x + x.Items = b.Items + return m0 +} + type RandomStringField struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` Length int32 `protobuf:"varint,1,opt,name=length,proto3" json:"length,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache @@ -466,11 +794,6 @@ func (x *RandomStringField) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use RandomStringField.ProtoReflect.Descriptor instead. -func (*RandomStringField) Descriptor() ([]byte, []int) { - return file_c1_connector_v2_config_proto_rawDescGZIP(), []int{6} -} - func (x *RandomStringField) GetLength() int32 { if x != nil { return x.Length @@ -478,8 +801,26 @@ func (x *RandomStringField) GetLength() int32 { return 0 } +func (x *RandomStringField) SetLength(v int32) { + x.Length = v +} + +type RandomStringField_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Length int32 +} + +func (b0 RandomStringField_builder) Build() *RandomStringField { + m0 := &RandomStringField{} + b, x := &b0, m0 + _, _ = b, x + x.Length = b.Length + return m0 +} + type FileField struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` Secret bool `protobuf:"varint,1,opt,name=secret,proto3" json:"secret,omitempty"` ValueValidator *validate.StringRules `protobuf:"bytes,2,opt,name=value_validator,json=valueValidator,proto3" json:"value_validator,omitempty"` AllowedExtensions []string `protobuf:"bytes,3,rep,name=allowed_extensions,json=allowedExtensions,proto3" json:"allowed_extensions,omitempty"` @@ -512,11 +853,6 @@ func (x *FileField) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use FileField.ProtoReflect.Descriptor instead. -func (*FileField) Descriptor() ([]byte, []int) { - return file_c1_connector_v2_config_proto_rawDescGZIP(), []int{7} -} - func (x *FileField) GetSecret() bool { if x != nil { return x.Secret @@ -538,8 +874,49 @@ func (x *FileField) GetAllowedExtensions() []string { return nil } +func (x *FileField) SetSecret(v bool) { + x.Secret = v +} + +func (x *FileField) SetValueValidator(v *validate.StringRules) { + x.ValueValidator = v +} + +func (x *FileField) SetAllowedExtensions(v []string) { + x.AllowedExtensions = v +} + +func (x *FileField) HasValueValidator() bool { + if x == nil { + return false + } + return x.ValueValidator != nil +} + +func (x *FileField) ClearValueValidator() { + x.ValueValidator = nil +} + +type FileField_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Secret bool + ValueValidator *validate.StringRules + AllowedExtensions []string +} + +func (b0 FileField_builder) Build() *FileField { + m0 := &FileField{} + b, x := &b0, m0 + _, _ = b, x + x.Secret = b.Secret + x.ValueValidator = b.ValueValidator + x.AllowedExtensions = b.AllowedExtensions + return m0 +} + type SelectField_Item struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` DisplayName string `protobuf:"bytes,1,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"` Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` unknownFields protoimpl.UnknownFields @@ -571,11 +948,6 @@ func (x *SelectField_Item) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use SelectField_Item.ProtoReflect.Descriptor instead. -func (*SelectField_Item) Descriptor() ([]byte, []int) { - return file_c1_connector_v2_config_proto_rawDescGZIP(), []int{5, 0} -} - func (x *SelectField_Item) GetDisplayName() string { if x != nil { return x.DisplayName @@ -590,114 +962,72 @@ func (x *SelectField_Item) GetValue() string { return "" } -var File_c1_connector_v2_config_proto protoreflect.FileDescriptor +func (x *SelectField_Item) SetDisplayName(v string) { + x.DisplayName = v +} -var file_c1_connector_v2_config_proto_rawDesc = string([]byte{ - 0x0a, 0x1c, 0x63, 0x31, 0x2f, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x2f, 0x76, - 0x32, 0x2f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0f, - 0x63, 0x31, 0x2e, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x2e, 0x76, 0x32, 0x1a, - 0x1b, 0x63, 0x31, 0x2f, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x2f, 0x76, 0x32, - 0x2f, 0x61, 0x73, 0x73, 0x65, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x17, 0x76, 0x61, - 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x2f, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x2e, - 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x1f, 0x0a, 0x1d, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x53, - 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x47, 0x65, 0x74, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x52, - 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0x71, 0x0a, 0x1e, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, - 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x47, 0x65, 0x74, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, - 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x76, 0x65, 0x72, 0x73, - 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, - 0x6f, 0x6e, 0x12, 0x35, 0x0a, 0x06, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x18, 0x02, 0x20, 0x01, - 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x63, 0x31, 0x2e, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, - 0x72, 0x2e, 0x76, 0x32, 0x2e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x53, 0x63, 0x68, 0x65, 0x6d, - 0x61, 0x52, 0x06, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x22, 0xda, 0x01, 0x0a, 0x0c, 0x43, 0x6f, - 0x6e, 0x66, 0x69, 0x67, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x12, 0x2e, 0x0a, 0x06, 0x66, 0x69, - 0x65, 0x6c, 0x64, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x63, 0x31, 0x2e, - 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x2e, 0x76, 0x32, 0x2e, 0x46, 0x69, 0x65, - 0x6c, 0x64, 0x52, 0x06, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x73, 0x12, 0x21, 0x0a, 0x0c, 0x64, 0x69, - 0x73, 0x70, 0x6c, 0x61, 0x79, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x0b, 0x64, 0x69, 0x73, 0x70, 0x6c, 0x61, 0x79, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x19, 0x0a, - 0x08, 0x68, 0x65, 0x6c, 0x70, 0x5f, 0x75, 0x72, 0x6c, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x07, 0x68, 0x65, 0x6c, 0x70, 0x55, 0x72, 0x6c, 0x12, 0x2d, 0x0a, 0x04, 0x69, 0x63, 0x6f, 0x6e, - 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x63, 0x31, 0x2e, 0x63, 0x6f, 0x6e, 0x6e, - 0x65, 0x63, 0x74, 0x6f, 0x72, 0x2e, 0x76, 0x32, 0x2e, 0x41, 0x73, 0x73, 0x65, 0x74, 0x52, 0x65, - 0x66, 0x52, 0x04, 0x69, 0x63, 0x6f, 0x6e, 0x12, 0x2d, 0x0a, 0x04, 0x6c, 0x6f, 0x67, 0x6f, 0x18, - 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x63, 0x31, 0x2e, 0x63, 0x6f, 0x6e, 0x6e, 0x65, - 0x63, 0x74, 0x6f, 0x72, 0x2e, 0x76, 0x32, 0x2e, 0x41, 0x73, 0x73, 0x65, 0x74, 0x52, 0x65, 0x66, - 0x52, 0x04, 0x6c, 0x6f, 0x67, 0x6f, 0x22, 0xde, 0x02, 0x0a, 0x05, 0x46, 0x69, 0x65, 0x6c, 0x64, - 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, - 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x19, 0x0a, 0x08, 0x68, 0x65, 0x6c, 0x70, 0x5f, 0x75, 0x72, 0x6c, - 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x68, 0x65, 0x6c, 0x70, 0x55, 0x72, 0x6c, 0x12, - 0x21, 0x0a, 0x0c, 0x64, 0x69, 0x73, 0x70, 0x6c, 0x61, 0x79, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, - 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x69, 0x73, 0x70, 0x6c, 0x61, 0x79, 0x4e, 0x61, - 0x6d, 0x65, 0x12, 0x20, 0x0a, 0x0b, 0x70, 0x6c, 0x61, 0x63, 0x65, 0x68, 0x6f, 0x6c, 0x64, 0x65, - 0x72, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x70, 0x6c, 0x61, 0x63, 0x65, 0x68, 0x6f, - 0x6c, 0x64, 0x65, 0x72, 0x12, 0x30, 0x0a, 0x03, 0x73, 0x74, 0x72, 0x18, 0x64, 0x20, 0x01, 0x28, - 0x0b, 0x32, 0x1c, 0x2e, 0x63, 0x31, 0x2e, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, - 0x2e, 0x76, 0x32, 0x2e, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x48, - 0x00, 0x52, 0x03, 0x73, 0x74, 0x72, 0x12, 0x36, 0x0a, 0x06, 0x73, 0x65, 0x6c, 0x65, 0x63, 0x74, - 0x18, 0x65, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x63, 0x31, 0x2e, 0x63, 0x6f, 0x6e, 0x6e, - 0x65, 0x63, 0x74, 0x6f, 0x72, 0x2e, 0x76, 0x32, 0x2e, 0x53, 0x65, 0x6c, 0x65, 0x63, 0x74, 0x46, - 0x69, 0x65, 0x6c, 0x64, 0x48, 0x00, 0x52, 0x06, 0x73, 0x65, 0x6c, 0x65, 0x63, 0x74, 0x12, 0x3c, - 0x0a, 0x06, 0x72, 0x61, 0x6e, 0x64, 0x6f, 0x6d, 0x18, 0x66, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x22, - 0x2e, 0x63, 0x31, 0x2e, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x2e, 0x76, 0x32, - 0x2e, 0x52, 0x61, 0x6e, 0x64, 0x6f, 0x6d, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x46, 0x69, 0x65, - 0x6c, 0x64, 0x48, 0x00, 0x52, 0x06, 0x72, 0x61, 0x6e, 0x64, 0x6f, 0x6d, 0x12, 0x30, 0x0a, 0x04, - 0x66, 0x69, 0x6c, 0x65, 0x18, 0x67, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x63, 0x31, 0x2e, - 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x2e, 0x76, 0x32, 0x2e, 0x46, 0x69, 0x6c, - 0x65, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x48, 0x00, 0x52, 0x04, 0x66, 0x69, 0x6c, 0x65, 0x42, 0x07, - 0x0a, 0x05, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x22, 0x65, 0x0a, 0x0b, 0x53, 0x74, 0x72, 0x69, 0x6e, - 0x67, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x65, 0x63, 0x72, 0x65, 0x74, - 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x06, 0x73, 0x65, 0x63, 0x72, 0x65, 0x74, 0x12, 0x3e, - 0x0a, 0x0f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x5f, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, - 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, - 0x74, 0x65, 0x2e, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x75, 0x6c, 0x65, 0x73, 0x52, 0x0e, - 0x76, 0x61, 0x6c, 0x75, 0x65, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x22, 0x87, - 0x01, 0x0a, 0x0b, 0x53, 0x65, 0x6c, 0x65, 0x63, 0x74, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x12, 0x37, - 0x0a, 0x05, 0x69, 0x74, 0x65, 0x6d, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x21, 0x2e, - 0x63, 0x31, 0x2e, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x2e, 0x76, 0x32, 0x2e, - 0x53, 0x65, 0x6c, 0x65, 0x63, 0x74, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x2e, 0x49, 0x74, 0x65, 0x6d, - 0x52, 0x05, 0x69, 0x74, 0x65, 0x6d, 0x73, 0x1a, 0x3f, 0x0a, 0x04, 0x49, 0x74, 0x65, 0x6d, 0x12, - 0x21, 0x0a, 0x0c, 0x64, 0x69, 0x73, 0x70, 0x6c, 0x61, 0x79, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x69, 0x73, 0x70, 0x6c, 0x61, 0x79, 0x4e, 0x61, - 0x6d, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x22, 0x2b, 0x0a, 0x11, 0x52, 0x61, 0x6e, 0x64, - 0x6f, 0x6d, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x12, 0x16, 0x0a, - 0x06, 0x6c, 0x65, 0x6e, 0x67, 0x74, 0x68, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x06, 0x6c, - 0x65, 0x6e, 0x67, 0x74, 0x68, 0x22, 0x92, 0x01, 0x0a, 0x09, 0x46, 0x69, 0x6c, 0x65, 0x46, 0x69, - 0x65, 0x6c, 0x64, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x65, 0x63, 0x72, 0x65, 0x74, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x08, 0x52, 0x06, 0x73, 0x65, 0x63, 0x72, 0x65, 0x74, 0x12, 0x3e, 0x0a, 0x0f, 0x76, - 0x61, 0x6c, 0x75, 0x65, 0x5f, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x18, 0x02, - 0x20, 0x01, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x2e, - 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x52, 0x75, 0x6c, 0x65, 0x73, 0x52, 0x0e, 0x76, 0x61, 0x6c, - 0x75, 0x65, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x12, 0x2d, 0x0a, 0x12, 0x61, - 0x6c, 0x6c, 0x6f, 0x77, 0x65, 0x64, 0x5f, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, - 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x09, 0x52, 0x11, 0x61, 0x6c, 0x6c, 0x6f, 0x77, 0x65, 0x64, - 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x32, 0x7d, 0x0a, 0x0d, 0x53, 0x63, - 0x68, 0x65, 0x6d, 0x61, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x6c, 0x0a, 0x09, 0x47, - 0x65, 0x74, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x12, 0x2e, 0x2e, 0x63, 0x31, 0x2e, 0x63, 0x6f, - 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x2e, 0x76, 0x32, 0x2e, 0x53, 0x63, 0x68, 0x65, 0x6d, - 0x61, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x47, 0x65, 0x74, 0x53, 0x63, 0x68, 0x65, 0x6d, - 0x61, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2f, 0x2e, 0x63, 0x31, 0x2e, 0x63, 0x6f, - 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x2e, 0x76, 0x32, 0x2e, 0x53, 0x63, 0x68, 0x65, 0x6d, - 0x61, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x47, 0x65, 0x74, 0x53, 0x63, 0x68, 0x65, 0x6d, - 0x61, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x42, 0x36, 0x5a, 0x34, 0x67, 0x69, 0x74, - 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x63, 0x6f, 0x6e, 0x64, 0x75, 0x63, 0x74, 0x6f, - 0x72, 0x6f, 0x6e, 0x65, 0x2f, 0x62, 0x61, 0x74, 0x6f, 0x6e, 0x2d, 0x73, 0x64, 0x6b, 0x2f, 0x70, - 0x62, 0x2f, 0x63, 0x31, 0x2f, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x2f, 0x76, - 0x32, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, -}) - -var ( - file_c1_connector_v2_config_proto_rawDescOnce sync.Once - file_c1_connector_v2_config_proto_rawDescData []byte -) +func (x *SelectField_Item) SetValue(v string) { + x.Value = v +} + +type SelectField_Item_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. -func file_c1_connector_v2_config_proto_rawDescGZIP() []byte { - file_c1_connector_v2_config_proto_rawDescOnce.Do(func() { - file_c1_connector_v2_config_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_c1_connector_v2_config_proto_rawDesc), len(file_c1_connector_v2_config_proto_rawDesc))) - }) - return file_c1_connector_v2_config_proto_rawDescData + DisplayName string + Value string } +func (b0 SelectField_Item_builder) Build() *SelectField_Item { + m0 := &SelectField_Item{} + b, x := &b0, m0 + _, _ = b, x + x.DisplayName = b.DisplayName + x.Value = b.Value + return m0 +} + +var File_c1_connector_v2_config_proto protoreflect.FileDescriptor + +const file_c1_connector_v2_config_proto_rawDesc = "" + + "\n" + + "\x1cc1/connector/v2/config.proto\x12\x0fc1.connector.v2\x1a\x1bc1/connector/v2/asset.proto\x1a\x17validate/validate.proto\"\x1f\n" + + "\x1dSchemaServiceGetSchemaRequest\"q\n" + + "\x1eSchemaServiceGetSchemaResponse\x12\x18\n" + + "\aversion\x18\x01 \x01(\tR\aversion\x125\n" + + "\x06schema\x18\x02 \x01(\v2\x1d.c1.connector.v2.ConfigSchemaR\x06schema\"\xda\x01\n" + + "\fConfigSchema\x12.\n" + + "\x06fields\x18\x01 \x03(\v2\x16.c1.connector.v2.FieldR\x06fields\x12!\n" + + "\fdisplay_name\x18\x02 \x01(\tR\vdisplayName\x12\x19\n" + + "\bhelp_url\x18\x03 \x01(\tR\ahelpUrl\x12-\n" + + "\x04icon\x18\x04 \x01(\v2\x19.c1.connector.v2.AssetRefR\x04icon\x12-\n" + + "\x04logo\x18\x05 \x01(\v2\x19.c1.connector.v2.AssetRefR\x04logo\"\xde\x02\n" + + "\x05Field\x12\x12\n" + + "\x04name\x18\x01 \x01(\tR\x04name\x12\x19\n" + + "\bhelp_url\x18\x02 \x01(\tR\ahelpUrl\x12!\n" + + "\fdisplay_name\x18\x03 \x01(\tR\vdisplayName\x12 \n" + + "\vplaceholder\x18\x04 \x01(\tR\vplaceholder\x120\n" + + "\x03str\x18d \x01(\v2\x1c.c1.connector.v2.StringFieldH\x00R\x03str\x126\n" + + "\x06select\x18e \x01(\v2\x1c.c1.connector.v2.SelectFieldH\x00R\x06select\x12<\n" + + "\x06random\x18f \x01(\v2\".c1.connector.v2.RandomStringFieldH\x00R\x06random\x120\n" + + "\x04file\x18g \x01(\v2\x1a.c1.connector.v2.FileFieldH\x00R\x04fileB\a\n" + + "\x05field\"e\n" + + "\vStringField\x12\x16\n" + + "\x06secret\x18\x01 \x01(\bR\x06secret\x12>\n" + + "\x0fvalue_validator\x18\x02 \x01(\v2\x15.validate.StringRulesR\x0evalueValidator\"\x87\x01\n" + + "\vSelectField\x127\n" + + "\x05items\x18\x05 \x03(\v2!.c1.connector.v2.SelectField.ItemR\x05items\x1a?\n" + + "\x04Item\x12!\n" + + "\fdisplay_name\x18\x01 \x01(\tR\vdisplayName\x12\x14\n" + + "\x05value\x18\x02 \x01(\tR\x05value\"+\n" + + "\x11RandomStringField\x12\x16\n" + + "\x06length\x18\x01 \x01(\x05R\x06length\"\x92\x01\n" + + "\tFileField\x12\x16\n" + + "\x06secret\x18\x01 \x01(\bR\x06secret\x12>\n" + + "\x0fvalue_validator\x18\x02 \x01(\v2\x15.validate.StringRulesR\x0evalueValidator\x12-\n" + + "\x12allowed_extensions\x18\x03 \x03(\tR\x11allowedExtensions2}\n" + + "\rSchemaService\x12l\n" + + "\tGetSchema\x12..c1.connector.v2.SchemaServiceGetSchemaRequest\x1a/.c1.connector.v2.SchemaServiceGetSchemaResponseB6Z4github.com/conductorone/baton-sdk/pb/c1/connector/v2b\x06proto3" + var file_c1_connector_v2_config_proto_msgTypes = make([]protoimpl.MessageInfo, 9) var file_c1_connector_v2_config_proto_goTypes = []any{ (*SchemaServiceGetSchemaRequest)(nil), // 0: c1.connector.v2.SchemaServiceGetSchemaRequest diff --git a/vendor/github.com/conductorone/baton-sdk/pb/c1/connector/v2/config_protoopaque.pb.go b/vendor/github.com/conductorone/baton-sdk/pb/c1/connector/v2/config_protoopaque.pb.go new file mode 100644 index 00000000..00fb412c --- /dev/null +++ b/vendor/github.com/conductorone/baton-sdk/pb/c1/connector/v2/config_protoopaque.pb.go @@ -0,0 +1,1080 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.36.10 +// protoc (unknown) +// source: c1/connector/v2/config.proto + +//go:build protoopaque + +package v2 + +import ( + validate "github.com/envoyproxy/protoc-gen-validate/validate" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + reflect "reflect" + 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 SchemaServiceGetSchemaRequest struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *SchemaServiceGetSchemaRequest) Reset() { + *x = SchemaServiceGetSchemaRequest{} + mi := &file_c1_connector_v2_config_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *SchemaServiceGetSchemaRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*SchemaServiceGetSchemaRequest) ProtoMessage() {} + +func (x *SchemaServiceGetSchemaRequest) ProtoReflect() protoreflect.Message { + mi := &file_c1_connector_v2_config_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) +} + +type SchemaServiceGetSchemaRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + +} + +func (b0 SchemaServiceGetSchemaRequest_builder) Build() *SchemaServiceGetSchemaRequest { + m0 := &SchemaServiceGetSchemaRequest{} + b, x := &b0, m0 + _, _ = b, x + return m0 +} + +type SchemaServiceGetSchemaResponse struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Version string `protobuf:"bytes,1,opt,name=version,proto3"` + xxx_hidden_Schema *ConfigSchema `protobuf:"bytes,2,opt,name=schema,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *SchemaServiceGetSchemaResponse) Reset() { + *x = SchemaServiceGetSchemaResponse{} + mi := &file_c1_connector_v2_config_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *SchemaServiceGetSchemaResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*SchemaServiceGetSchemaResponse) ProtoMessage() {} + +func (x *SchemaServiceGetSchemaResponse) ProtoReflect() protoreflect.Message { + mi := &file_c1_connector_v2_config_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) +} + +func (x *SchemaServiceGetSchemaResponse) GetVersion() string { + if x != nil { + return x.xxx_hidden_Version + } + return "" +} + +func (x *SchemaServiceGetSchemaResponse) GetSchema() *ConfigSchema { + if x != nil { + return x.xxx_hidden_Schema + } + return nil +} + +func (x *SchemaServiceGetSchemaResponse) SetVersion(v string) { + x.xxx_hidden_Version = v +} + +func (x *SchemaServiceGetSchemaResponse) SetSchema(v *ConfigSchema) { + x.xxx_hidden_Schema = v +} + +func (x *SchemaServiceGetSchemaResponse) HasSchema() bool { + if x == nil { + return false + } + return x.xxx_hidden_Schema != nil +} + +func (x *SchemaServiceGetSchemaResponse) ClearSchema() { + x.xxx_hidden_Schema = nil +} + +type SchemaServiceGetSchemaResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Version string + Schema *ConfigSchema +} + +func (b0 SchemaServiceGetSchemaResponse_builder) Build() *SchemaServiceGetSchemaResponse { + m0 := &SchemaServiceGetSchemaResponse{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Version = b.Version + x.xxx_hidden_Schema = b.Schema + return m0 +} + +type ConfigSchema struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Fields *[]*Field `protobuf:"bytes,1,rep,name=fields,proto3"` + xxx_hidden_DisplayName string `protobuf:"bytes,2,opt,name=display_name,json=displayName,proto3"` + xxx_hidden_HelpUrl string `protobuf:"bytes,3,opt,name=help_url,json=helpUrl,proto3"` + xxx_hidden_Icon *AssetRef `protobuf:"bytes,4,opt,name=icon,proto3"` + xxx_hidden_Logo *AssetRef `protobuf:"bytes,5,opt,name=logo,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *ConfigSchema) Reset() { + *x = ConfigSchema{} + mi := &file_c1_connector_v2_config_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *ConfigSchema) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ConfigSchema) ProtoMessage() {} + +func (x *ConfigSchema) ProtoReflect() protoreflect.Message { + mi := &file_c1_connector_v2_config_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) +} + +func (x *ConfigSchema) GetFields() []*Field { + if x != nil { + if x.xxx_hidden_Fields != nil { + return *x.xxx_hidden_Fields + } + } + return nil +} + +func (x *ConfigSchema) GetDisplayName() string { + if x != nil { + return x.xxx_hidden_DisplayName + } + return "" +} + +func (x *ConfigSchema) GetHelpUrl() string { + if x != nil { + return x.xxx_hidden_HelpUrl + } + return "" +} + +func (x *ConfigSchema) GetIcon() *AssetRef { + if x != nil { + return x.xxx_hidden_Icon + } + return nil +} + +func (x *ConfigSchema) GetLogo() *AssetRef { + if x != nil { + return x.xxx_hidden_Logo + } + return nil +} + +func (x *ConfigSchema) SetFields(v []*Field) { + x.xxx_hidden_Fields = &v +} + +func (x *ConfigSchema) SetDisplayName(v string) { + x.xxx_hidden_DisplayName = v +} + +func (x *ConfigSchema) SetHelpUrl(v string) { + x.xxx_hidden_HelpUrl = v +} + +func (x *ConfigSchema) SetIcon(v *AssetRef) { + x.xxx_hidden_Icon = v +} + +func (x *ConfigSchema) SetLogo(v *AssetRef) { + x.xxx_hidden_Logo = v +} + +func (x *ConfigSchema) HasIcon() bool { + if x == nil { + return false + } + return x.xxx_hidden_Icon != nil +} + +func (x *ConfigSchema) HasLogo() bool { + if x == nil { + return false + } + return x.xxx_hidden_Logo != nil +} + +func (x *ConfigSchema) ClearIcon() { + x.xxx_hidden_Icon = nil +} + +func (x *ConfigSchema) ClearLogo() { + x.xxx_hidden_Logo = nil +} + +type ConfigSchema_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Fields []*Field + DisplayName string + HelpUrl string + Icon *AssetRef + Logo *AssetRef +} + +func (b0 ConfigSchema_builder) Build() *ConfigSchema { + m0 := &ConfigSchema{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Fields = &b.Fields + x.xxx_hidden_DisplayName = b.DisplayName + x.xxx_hidden_HelpUrl = b.HelpUrl + x.xxx_hidden_Icon = b.Icon + x.xxx_hidden_Logo = b.Logo + return m0 +} + +type Field struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Name string `protobuf:"bytes,1,opt,name=name,proto3"` + xxx_hidden_HelpUrl string `protobuf:"bytes,2,opt,name=help_url,json=helpUrl,proto3"` + xxx_hidden_DisplayName string `protobuf:"bytes,3,opt,name=display_name,json=displayName,proto3"` + xxx_hidden_Placeholder string `protobuf:"bytes,4,opt,name=placeholder,proto3"` + xxx_hidden_Field isField_Field `protobuf_oneof:"field"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *Field) Reset() { + *x = Field{} + mi := &file_c1_connector_v2_config_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *Field) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Field) ProtoMessage() {} + +func (x *Field) ProtoReflect() protoreflect.Message { + mi := &file_c1_connector_v2_config_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) +} + +func (x *Field) GetName() string { + if x != nil { + return x.xxx_hidden_Name + } + return "" +} + +func (x *Field) GetHelpUrl() string { + if x != nil { + return x.xxx_hidden_HelpUrl + } + return "" +} + +func (x *Field) GetDisplayName() string { + if x != nil { + return x.xxx_hidden_DisplayName + } + return "" +} + +func (x *Field) GetPlaceholder() string { + if x != nil { + return x.xxx_hidden_Placeholder + } + return "" +} + +func (x *Field) GetStr() *StringField { + if x != nil { + if x, ok := x.xxx_hidden_Field.(*field_Str); ok { + return x.Str + } + } + return nil +} + +func (x *Field) GetSelect() *SelectField { + if x != nil { + if x, ok := x.xxx_hidden_Field.(*field_Select); ok { + return x.Select + } + } + return nil +} + +func (x *Field) GetRandom() *RandomStringField { + if x != nil { + if x, ok := x.xxx_hidden_Field.(*field_Random); ok { + return x.Random + } + } + return nil +} + +func (x *Field) GetFile() *FileField { + if x != nil { + if x, ok := x.xxx_hidden_Field.(*field_File); ok { + return x.File + } + } + return nil +} + +func (x *Field) SetName(v string) { + x.xxx_hidden_Name = v +} + +func (x *Field) SetHelpUrl(v string) { + x.xxx_hidden_HelpUrl = v +} + +func (x *Field) SetDisplayName(v string) { + x.xxx_hidden_DisplayName = v +} + +func (x *Field) SetPlaceholder(v string) { + x.xxx_hidden_Placeholder = v +} + +func (x *Field) SetStr(v *StringField) { + if v == nil { + x.xxx_hidden_Field = nil + return + } + x.xxx_hidden_Field = &field_Str{v} +} + +func (x *Field) SetSelect(v *SelectField) { + if v == nil { + x.xxx_hidden_Field = nil + return + } + x.xxx_hidden_Field = &field_Select{v} +} + +func (x *Field) SetRandom(v *RandomStringField) { + if v == nil { + x.xxx_hidden_Field = nil + return + } + x.xxx_hidden_Field = &field_Random{v} +} + +func (x *Field) SetFile(v *FileField) { + if v == nil { + x.xxx_hidden_Field = nil + return + } + x.xxx_hidden_Field = &field_File{v} +} + +func (x *Field) HasField() bool { + if x == nil { + return false + } + return x.xxx_hidden_Field != nil +} + +func (x *Field) HasStr() bool { + if x == nil { + return false + } + _, ok := x.xxx_hidden_Field.(*field_Str) + return ok +} + +func (x *Field) HasSelect() bool { + if x == nil { + return false + } + _, ok := x.xxx_hidden_Field.(*field_Select) + return ok +} + +func (x *Field) HasRandom() bool { + if x == nil { + return false + } + _, ok := x.xxx_hidden_Field.(*field_Random) + return ok +} + +func (x *Field) HasFile() bool { + if x == nil { + return false + } + _, ok := x.xxx_hidden_Field.(*field_File) + return ok +} + +func (x *Field) ClearField() { + x.xxx_hidden_Field = nil +} + +func (x *Field) ClearStr() { + if _, ok := x.xxx_hidden_Field.(*field_Str); ok { + x.xxx_hidden_Field = nil + } +} + +func (x *Field) ClearSelect() { + if _, ok := x.xxx_hidden_Field.(*field_Select); ok { + x.xxx_hidden_Field = nil + } +} + +func (x *Field) ClearRandom() { + if _, ok := x.xxx_hidden_Field.(*field_Random); ok { + x.xxx_hidden_Field = nil + } +} + +func (x *Field) ClearFile() { + if _, ok := x.xxx_hidden_Field.(*field_File); ok { + x.xxx_hidden_Field = nil + } +} + +const Field_Field_not_set_case case_Field_Field = 0 +const Field_Str_case case_Field_Field = 100 +const Field_Select_case case_Field_Field = 101 +const Field_Random_case case_Field_Field = 102 +const Field_File_case case_Field_Field = 103 + +func (x *Field) WhichField() case_Field_Field { + if x == nil { + return Field_Field_not_set_case + } + switch x.xxx_hidden_Field.(type) { + case *field_Str: + return Field_Str_case + case *field_Select: + return Field_Select_case + case *field_Random: + return Field_Random_case + case *field_File: + return Field_File_case + default: + return Field_Field_not_set_case + } +} + +type Field_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Must not start with `C1_` and match [a-zA-Z0-9_]{2,64}. Must be unique within a connector. + Name string + // empty or https URL + HelpUrl string + // Human readable label for this Field + DisplayName string + Placeholder string + // Fields of oneof xxx_hidden_Field: + Str *StringField + Select *SelectField + Random *RandomStringField + File *FileField + // -- end of xxx_hidden_Field +} + +func (b0 Field_builder) Build() *Field { + m0 := &Field{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Name = b.Name + x.xxx_hidden_HelpUrl = b.HelpUrl + x.xxx_hidden_DisplayName = b.DisplayName + x.xxx_hidden_Placeholder = b.Placeholder + if b.Str != nil { + x.xxx_hidden_Field = &field_Str{b.Str} + } + if b.Select != nil { + x.xxx_hidden_Field = &field_Select{b.Select} + } + if b.Random != nil { + x.xxx_hidden_Field = &field_Random{b.Random} + } + if b.File != nil { + x.xxx_hidden_Field = &field_File{b.File} + } + return m0 +} + +type case_Field_Field protoreflect.FieldNumber + +func (x case_Field_Field) String() string { + md := file_c1_connector_v2_config_proto_msgTypes[3].Descriptor() + if x == 0 { + return "not set" + } + return protoimpl.X.MessageFieldStringOf(md, protoreflect.FieldNumber(x)) +} + +type isField_Field interface { + isField_Field() +} + +type field_Str struct { + Str *StringField `protobuf:"bytes,100,opt,name=str,proto3,oneof"` +} + +type field_Select struct { + Select *SelectField `protobuf:"bytes,101,opt,name=select,proto3,oneof"` +} + +type field_Random struct { + Random *RandomStringField `protobuf:"bytes,102,opt,name=random,proto3,oneof"` +} + +type field_File struct { + File *FileField `protobuf:"bytes,103,opt,name=file,proto3,oneof"` +} + +func (*field_Str) isField_Field() {} + +func (*field_Select) isField_Field() {} + +func (*field_Random) isField_Field() {} + +func (*field_File) isField_Field() {} + +type StringField struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Secret bool `protobuf:"varint,1,opt,name=secret,proto3"` + xxx_hidden_ValueValidator *validate.StringRules `protobuf:"bytes,2,opt,name=value_validator,json=valueValidator,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *StringField) Reset() { + *x = StringField{} + mi := &file_c1_connector_v2_config_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *StringField) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*StringField) ProtoMessage() {} + +func (x *StringField) ProtoReflect() protoreflect.Message { + mi := &file_c1_connector_v2_config_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) +} + +func (x *StringField) GetSecret() bool { + if x != nil { + return x.xxx_hidden_Secret + } + return false +} + +func (x *StringField) GetValueValidator() *validate.StringRules { + if x != nil { + return x.xxx_hidden_ValueValidator + } + return nil +} + +func (x *StringField) SetSecret(v bool) { + x.xxx_hidden_Secret = v +} + +func (x *StringField) SetValueValidator(v *validate.StringRules) { + x.xxx_hidden_ValueValidator = v +} + +func (x *StringField) HasValueValidator() bool { + if x == nil { + return false + } + return x.xxx_hidden_ValueValidator != nil +} + +func (x *StringField) ClearValueValidator() { + x.xxx_hidden_ValueValidator = nil +} + +type StringField_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // If secret, value is write-only in UI and a password-type form is used. + Secret bool + // validator rules for value. may be empty. + ValueValidator *validate.StringRules +} + +func (b0 StringField_builder) Build() *StringField { + m0 := &StringField{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Secret = b.Secret + x.xxx_hidden_ValueValidator = b.ValueValidator + return m0 +} + +type SelectField struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Items *[]*SelectField_Item `protobuf:"bytes,5,rep,name=items,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *SelectField) Reset() { + *x = SelectField{} + mi := &file_c1_connector_v2_config_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *SelectField) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*SelectField) ProtoMessage() {} + +func (x *SelectField) ProtoReflect() protoreflect.Message { + mi := &file_c1_connector_v2_config_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) +} + +func (x *SelectField) GetItems() []*SelectField_Item { + if x != nil { + if x.xxx_hidden_Items != nil { + return *x.xxx_hidden_Items + } + } + return nil +} + +func (x *SelectField) SetItems(v []*SelectField_Item) { + x.xxx_hidden_Items = &v +} + +type SelectField_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // list of items that are selected from + Items []*SelectField_Item +} + +func (b0 SelectField_builder) Build() *SelectField { + m0 := &SelectField{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Items = &b.Items + return m0 +} + +type RandomStringField struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Length int32 `protobuf:"varint,1,opt,name=length,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *RandomStringField) Reset() { + *x = RandomStringField{} + mi := &file_c1_connector_v2_config_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *RandomStringField) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*RandomStringField) ProtoMessage() {} + +func (x *RandomStringField) ProtoReflect() protoreflect.Message { + mi := &file_c1_connector_v2_config_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) +} + +func (x *RandomStringField) GetLength() int32 { + if x != nil { + return x.xxx_hidden_Length + } + return 0 +} + +func (x *RandomStringField) SetLength(v int32) { + x.xxx_hidden_Length = v +} + +type RandomStringField_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Length int32 +} + +func (b0 RandomStringField_builder) Build() *RandomStringField { + m0 := &RandomStringField{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Length = b.Length + return m0 +} + +type FileField struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Secret bool `protobuf:"varint,1,opt,name=secret,proto3"` + xxx_hidden_ValueValidator *validate.StringRules `protobuf:"bytes,2,opt,name=value_validator,json=valueValidator,proto3"` + xxx_hidden_AllowedExtensions []string `protobuf:"bytes,3,rep,name=allowed_extensions,json=allowedExtensions,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *FileField) Reset() { + *x = FileField{} + mi := &file_c1_connector_v2_config_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *FileField) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*FileField) ProtoMessage() {} + +func (x *FileField) ProtoReflect() protoreflect.Message { + mi := &file_c1_connector_v2_config_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) +} + +func (x *FileField) GetSecret() bool { + if x != nil { + return x.xxx_hidden_Secret + } + return false +} + +func (x *FileField) GetValueValidator() *validate.StringRules { + if x != nil { + return x.xxx_hidden_ValueValidator + } + return nil +} + +func (x *FileField) GetAllowedExtensions() []string { + if x != nil { + return x.xxx_hidden_AllowedExtensions + } + return nil +} + +func (x *FileField) SetSecret(v bool) { + x.xxx_hidden_Secret = v +} + +func (x *FileField) SetValueValidator(v *validate.StringRules) { + x.xxx_hidden_ValueValidator = v +} + +func (x *FileField) SetAllowedExtensions(v []string) { + x.xxx_hidden_AllowedExtensions = v +} + +func (x *FileField) HasValueValidator() bool { + if x == nil { + return false + } + return x.xxx_hidden_ValueValidator != nil +} + +func (x *FileField) ClearValueValidator() { + x.xxx_hidden_ValueValidator = nil +} + +type FileField_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Secret bool + ValueValidator *validate.StringRules + AllowedExtensions []string +} + +func (b0 FileField_builder) Build() *FileField { + m0 := &FileField{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Secret = b.Secret + x.xxx_hidden_ValueValidator = b.ValueValidator + x.xxx_hidden_AllowedExtensions = b.AllowedExtensions + return m0 +} + +type SelectField_Item struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_DisplayName string `protobuf:"bytes,1,opt,name=display_name,json=displayName,proto3"` + xxx_hidden_Value string `protobuf:"bytes,2,opt,name=value,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *SelectField_Item) Reset() { + *x = SelectField_Item{} + mi := &file_c1_connector_v2_config_proto_msgTypes[8] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *SelectField_Item) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*SelectField_Item) ProtoMessage() {} + +func (x *SelectField_Item) ProtoReflect() protoreflect.Message { + mi := &file_c1_connector_v2_config_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) +} + +func (x *SelectField_Item) GetDisplayName() string { + if x != nil { + return x.xxx_hidden_DisplayName + } + return "" +} + +func (x *SelectField_Item) GetValue() string { + if x != nil { + return x.xxx_hidden_Value + } + return "" +} + +func (x *SelectField_Item) SetDisplayName(v string) { + x.xxx_hidden_DisplayName = v +} + +func (x *SelectField_Item) SetValue(v string) { + x.xxx_hidden_Value = v +} + +type SelectField_Item_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + DisplayName string + Value string +} + +func (b0 SelectField_Item_builder) Build() *SelectField_Item { + m0 := &SelectField_Item{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_DisplayName = b.DisplayName + x.xxx_hidden_Value = b.Value + return m0 +} + +var File_c1_connector_v2_config_proto protoreflect.FileDescriptor + +const file_c1_connector_v2_config_proto_rawDesc = "" + + "\n" + + "\x1cc1/connector/v2/config.proto\x12\x0fc1.connector.v2\x1a\x1bc1/connector/v2/asset.proto\x1a\x17validate/validate.proto\"\x1f\n" + + "\x1dSchemaServiceGetSchemaRequest\"q\n" + + "\x1eSchemaServiceGetSchemaResponse\x12\x18\n" + + "\aversion\x18\x01 \x01(\tR\aversion\x125\n" + + "\x06schema\x18\x02 \x01(\v2\x1d.c1.connector.v2.ConfigSchemaR\x06schema\"\xda\x01\n" + + "\fConfigSchema\x12.\n" + + "\x06fields\x18\x01 \x03(\v2\x16.c1.connector.v2.FieldR\x06fields\x12!\n" + + "\fdisplay_name\x18\x02 \x01(\tR\vdisplayName\x12\x19\n" + + "\bhelp_url\x18\x03 \x01(\tR\ahelpUrl\x12-\n" + + "\x04icon\x18\x04 \x01(\v2\x19.c1.connector.v2.AssetRefR\x04icon\x12-\n" + + "\x04logo\x18\x05 \x01(\v2\x19.c1.connector.v2.AssetRefR\x04logo\"\xde\x02\n" + + "\x05Field\x12\x12\n" + + "\x04name\x18\x01 \x01(\tR\x04name\x12\x19\n" + + "\bhelp_url\x18\x02 \x01(\tR\ahelpUrl\x12!\n" + + "\fdisplay_name\x18\x03 \x01(\tR\vdisplayName\x12 \n" + + "\vplaceholder\x18\x04 \x01(\tR\vplaceholder\x120\n" + + "\x03str\x18d \x01(\v2\x1c.c1.connector.v2.StringFieldH\x00R\x03str\x126\n" + + "\x06select\x18e \x01(\v2\x1c.c1.connector.v2.SelectFieldH\x00R\x06select\x12<\n" + + "\x06random\x18f \x01(\v2\".c1.connector.v2.RandomStringFieldH\x00R\x06random\x120\n" + + "\x04file\x18g \x01(\v2\x1a.c1.connector.v2.FileFieldH\x00R\x04fileB\a\n" + + "\x05field\"e\n" + + "\vStringField\x12\x16\n" + + "\x06secret\x18\x01 \x01(\bR\x06secret\x12>\n" + + "\x0fvalue_validator\x18\x02 \x01(\v2\x15.validate.StringRulesR\x0evalueValidator\"\x87\x01\n" + + "\vSelectField\x127\n" + + "\x05items\x18\x05 \x03(\v2!.c1.connector.v2.SelectField.ItemR\x05items\x1a?\n" + + "\x04Item\x12!\n" + + "\fdisplay_name\x18\x01 \x01(\tR\vdisplayName\x12\x14\n" + + "\x05value\x18\x02 \x01(\tR\x05value\"+\n" + + "\x11RandomStringField\x12\x16\n" + + "\x06length\x18\x01 \x01(\x05R\x06length\"\x92\x01\n" + + "\tFileField\x12\x16\n" + + "\x06secret\x18\x01 \x01(\bR\x06secret\x12>\n" + + "\x0fvalue_validator\x18\x02 \x01(\v2\x15.validate.StringRulesR\x0evalueValidator\x12-\n" + + "\x12allowed_extensions\x18\x03 \x03(\tR\x11allowedExtensions2}\n" + + "\rSchemaService\x12l\n" + + "\tGetSchema\x12..c1.connector.v2.SchemaServiceGetSchemaRequest\x1a/.c1.connector.v2.SchemaServiceGetSchemaResponseB6Z4github.com/conductorone/baton-sdk/pb/c1/connector/v2b\x06proto3" + +var file_c1_connector_v2_config_proto_msgTypes = make([]protoimpl.MessageInfo, 9) +var file_c1_connector_v2_config_proto_goTypes = []any{ + (*SchemaServiceGetSchemaRequest)(nil), // 0: c1.connector.v2.SchemaServiceGetSchemaRequest + (*SchemaServiceGetSchemaResponse)(nil), // 1: c1.connector.v2.SchemaServiceGetSchemaResponse + (*ConfigSchema)(nil), // 2: c1.connector.v2.ConfigSchema + (*Field)(nil), // 3: c1.connector.v2.Field + (*StringField)(nil), // 4: c1.connector.v2.StringField + (*SelectField)(nil), // 5: c1.connector.v2.SelectField + (*RandomStringField)(nil), // 6: c1.connector.v2.RandomStringField + (*FileField)(nil), // 7: c1.connector.v2.FileField + (*SelectField_Item)(nil), // 8: c1.connector.v2.SelectField.Item + (*AssetRef)(nil), // 9: c1.connector.v2.AssetRef + (*validate.StringRules)(nil), // 10: validate.StringRules +} +var file_c1_connector_v2_config_proto_depIdxs = []int32{ + 2, // 0: c1.connector.v2.SchemaServiceGetSchemaResponse.schema:type_name -> c1.connector.v2.ConfigSchema + 3, // 1: c1.connector.v2.ConfigSchema.fields:type_name -> c1.connector.v2.Field + 9, // 2: c1.connector.v2.ConfigSchema.icon:type_name -> c1.connector.v2.AssetRef + 9, // 3: c1.connector.v2.ConfigSchema.logo:type_name -> c1.connector.v2.AssetRef + 4, // 4: c1.connector.v2.Field.str:type_name -> c1.connector.v2.StringField + 5, // 5: c1.connector.v2.Field.select:type_name -> c1.connector.v2.SelectField + 6, // 6: c1.connector.v2.Field.random:type_name -> c1.connector.v2.RandomStringField + 7, // 7: c1.connector.v2.Field.file:type_name -> c1.connector.v2.FileField + 10, // 8: c1.connector.v2.StringField.value_validator:type_name -> validate.StringRules + 8, // 9: c1.connector.v2.SelectField.items:type_name -> c1.connector.v2.SelectField.Item + 10, // 10: c1.connector.v2.FileField.value_validator:type_name -> validate.StringRules + 0, // 11: c1.connector.v2.SchemaService.GetSchema:input_type -> c1.connector.v2.SchemaServiceGetSchemaRequest + 1, // 12: c1.connector.v2.SchemaService.GetSchema:output_type -> c1.connector.v2.SchemaServiceGetSchemaResponse + 12, // [12:13] is the sub-list for method output_type + 11, // [11:12] is the sub-list for method input_type + 11, // [11:11] is the sub-list for extension type_name + 11, // [11:11] is the sub-list for extension extendee + 0, // [0:11] is the sub-list for field type_name +} + +func init() { file_c1_connector_v2_config_proto_init() } +func file_c1_connector_v2_config_proto_init() { + if File_c1_connector_v2_config_proto != nil { + return + } + file_c1_connector_v2_asset_proto_init() + file_c1_connector_v2_config_proto_msgTypes[3].OneofWrappers = []any{ + (*field_Str)(nil), + (*field_Select)(nil), + (*field_Random)(nil), + (*field_File)(nil), + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: unsafe.Slice(unsafe.StringData(file_c1_connector_v2_config_proto_rawDesc), len(file_c1_connector_v2_config_proto_rawDesc)), + NumEnums: 0, + NumMessages: 9, + NumExtensions: 0, + NumServices: 1, + }, + GoTypes: file_c1_connector_v2_config_proto_goTypes, + DependencyIndexes: file_c1_connector_v2_config_proto_depIdxs, + MessageInfos: file_c1_connector_v2_config_proto_msgTypes, + }.Build() + File_c1_connector_v2_config_proto = out.File + file_c1_connector_v2_config_proto_goTypes = nil + file_c1_connector_v2_config_proto_depIdxs = nil +} diff --git a/vendor/github.com/conductorone/baton-sdk/pb/c1/connector/v2/connector.pb.go b/vendor/github.com/conductorone/baton-sdk/pb/c1/connector/v2/connector.pb.go index da231740..21ac6d98 100644 --- a/vendor/github.com/conductorone/baton-sdk/pb/c1/connector/v2/connector.pb.go +++ b/vendor/github.com/conductorone/baton-sdk/pb/c1/connector/v2/connector.pb.go @@ -1,9 +1,11 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.36.4 +// protoc-gen-go v1.36.10 // protoc (unknown) // source: c1/connector/v2/connector.proto +//go:build !protoopaque + package v2 import ( @@ -13,7 +15,6 @@ import ( anypb "google.golang.org/protobuf/types/known/anypb" structpb "google.golang.org/protobuf/types/known/structpb" reflect "reflect" - sync "sync" unsafe "unsafe" ) @@ -98,11 +99,6 @@ func (x Capability) Number() protoreflect.EnumNumber { return protoreflect.EnumNumber(x) } -// Deprecated: Use Capability.Descriptor instead. -func (Capability) EnumDescriptor() ([]byte, []int) { - return file_c1_connector_v2_connector_proto_rawDescGZIP(), []int{0} -} - type CapabilityDetailCredentialOption int32 const ( @@ -153,14 +149,10 @@ func (x CapabilityDetailCredentialOption) Number() protoreflect.EnumNumber { return protoreflect.EnumNumber(x) } -// Deprecated: Use CapabilityDetailCredentialOption.Descriptor instead. -func (CapabilityDetailCredentialOption) EnumDescriptor() ([]byte, []int) { - return file_c1_connector_v2_connector_proto_rawDescGZIP(), []int{1} -} - type ConnectorServiceCleanupRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` Annotations []*anypb.Any `protobuf:"bytes,1,rep,name=annotations,proto3" json:"annotations,omitempty"` + ActiveSyncId string `protobuf:"bytes,2,opt,name=active_sync_id,json=activeSyncId,proto3" json:"active_sync_id,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } @@ -190,11 +182,6 @@ func (x *ConnectorServiceCleanupRequest) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use ConnectorServiceCleanupRequest.ProtoReflect.Descriptor instead. -func (*ConnectorServiceCleanupRequest) Descriptor() ([]byte, []int) { - return file_c1_connector_v2_connector_proto_rawDescGZIP(), []int{0} -} - func (x *ConnectorServiceCleanupRequest) GetAnnotations() []*anypb.Any { if x != nil { return x.Annotations @@ -202,8 +189,39 @@ func (x *ConnectorServiceCleanupRequest) GetAnnotations() []*anypb.Any { return nil } +func (x *ConnectorServiceCleanupRequest) GetActiveSyncId() string { + if x != nil { + return x.ActiveSyncId + } + return "" +} + +func (x *ConnectorServiceCleanupRequest) SetAnnotations(v []*anypb.Any) { + x.Annotations = v +} + +func (x *ConnectorServiceCleanupRequest) SetActiveSyncId(v string) { + x.ActiveSyncId = v +} + +type ConnectorServiceCleanupRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Annotations []*anypb.Any + ActiveSyncId string +} + +func (b0 ConnectorServiceCleanupRequest_builder) Build() *ConnectorServiceCleanupRequest { + m0 := &ConnectorServiceCleanupRequest{} + b, x := &b0, m0 + _, _ = b, x + x.Annotations = b.Annotations + x.ActiveSyncId = b.ActiveSyncId + return m0 +} + type ConnectorServiceCleanupResponse struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` Annotations []*anypb.Any `protobuf:"bytes,1,rep,name=annotations,proto3" json:"annotations,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache @@ -234,11 +252,6 @@ func (x *ConnectorServiceCleanupResponse) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use ConnectorServiceCleanupResponse.ProtoReflect.Descriptor instead. -func (*ConnectorServiceCleanupResponse) Descriptor() ([]byte, []int) { - return file_c1_connector_v2_connector_proto_rawDescGZIP(), []int{1} -} - func (x *ConnectorServiceCleanupResponse) GetAnnotations() []*anypb.Any { if x != nil { return x.Annotations @@ -246,8 +259,26 @@ func (x *ConnectorServiceCleanupResponse) GetAnnotations() []*anypb.Any { return nil } +func (x *ConnectorServiceCleanupResponse) SetAnnotations(v []*anypb.Any) { + x.Annotations = v +} + +type ConnectorServiceCleanupResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Annotations []*anypb.Any +} + +func (b0 ConnectorServiceCleanupResponse_builder) Build() *ConnectorServiceCleanupResponse { + m0 := &ConnectorServiceCleanupResponse{} + b, x := &b0, m0 + _, _ = b, x + x.Annotations = b.Annotations + return m0 +} + type ConnectorMetadata struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` DisplayName string `protobuf:"bytes,1,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"` HelpUrl string `protobuf:"bytes,2,opt,name=help_url,json=helpUrl,proto3" json:"help_url,omitempty"` Icon *AssetRef `protobuf:"bytes,3,opt,name=icon,proto3" json:"icon,omitempty"` @@ -286,11 +317,6 @@ func (x *ConnectorMetadata) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use ConnectorMetadata.ProtoReflect.Descriptor instead. -func (*ConnectorMetadata) Descriptor() ([]byte, []int) { - return file_c1_connector_v2_connector_proto_rawDescGZIP(), []int{2} -} - func (x *ConnectorMetadata) GetDisplayName() string { if x != nil { return x.DisplayName @@ -354,8 +380,129 @@ func (x *ConnectorMetadata) GetAccountCreationSchema() *ConnectorAccountCreation return nil } +func (x *ConnectorMetadata) SetDisplayName(v string) { + x.DisplayName = v +} + +func (x *ConnectorMetadata) SetHelpUrl(v string) { + x.HelpUrl = v +} + +func (x *ConnectorMetadata) SetIcon(v *AssetRef) { + x.Icon = v +} + +func (x *ConnectorMetadata) SetLogo(v *AssetRef) { + x.Logo = v +} + +func (x *ConnectorMetadata) SetProfile(v *structpb.Struct) { + x.Profile = v +} + +func (x *ConnectorMetadata) SetAnnotations(v []*anypb.Any) { + x.Annotations = v +} + +func (x *ConnectorMetadata) SetDescription(v string) { + x.Description = v +} + +func (x *ConnectorMetadata) SetCapabilities(v *ConnectorCapabilities) { + x.Capabilities = v +} + +func (x *ConnectorMetadata) SetAccountCreationSchema(v *ConnectorAccountCreationSchema) { + x.AccountCreationSchema = v +} + +func (x *ConnectorMetadata) HasIcon() bool { + if x == nil { + return false + } + return x.Icon != nil +} + +func (x *ConnectorMetadata) HasLogo() bool { + if x == nil { + return false + } + return x.Logo != nil +} + +func (x *ConnectorMetadata) HasProfile() bool { + if x == nil { + return false + } + return x.Profile != nil +} + +func (x *ConnectorMetadata) HasCapabilities() bool { + if x == nil { + return false + } + return x.Capabilities != nil +} + +func (x *ConnectorMetadata) HasAccountCreationSchema() bool { + if x == nil { + return false + } + return x.AccountCreationSchema != nil +} + +func (x *ConnectorMetadata) ClearIcon() { + x.Icon = nil +} + +func (x *ConnectorMetadata) ClearLogo() { + x.Logo = nil +} + +func (x *ConnectorMetadata) ClearProfile() { + x.Profile = nil +} + +func (x *ConnectorMetadata) ClearCapabilities() { + x.Capabilities = nil +} + +func (x *ConnectorMetadata) ClearAccountCreationSchema() { + x.AccountCreationSchema = nil +} + +type ConnectorMetadata_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + DisplayName string + HelpUrl string + Icon *AssetRef + Logo *AssetRef + Profile *structpb.Struct + Annotations []*anypb.Any + Description string + Capabilities *ConnectorCapabilities + AccountCreationSchema *ConnectorAccountCreationSchema +} + +func (b0 ConnectorMetadata_builder) Build() *ConnectorMetadata { + m0 := &ConnectorMetadata{} + b, x := &b0, m0 + _, _ = b, x + x.DisplayName = b.DisplayName + x.HelpUrl = b.HelpUrl + x.Icon = b.Icon + x.Logo = b.Logo + x.Profile = b.Profile + x.Annotations = b.Annotations + x.Description = b.Description + x.Capabilities = b.Capabilities + x.AccountCreationSchema = b.AccountCreationSchema + return m0 +} + type CredentialDetails struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` CapabilityAccountProvisioning *CredentialDetailsAccountProvisioning `protobuf:"bytes,1,opt,name=capability_account_provisioning,json=capabilityAccountProvisioning,proto3" json:"capability_account_provisioning,omitempty"` CapabilityCredentialRotation *CredentialDetailsCredentialRotation `protobuf:"bytes,2,opt,name=capability_credential_rotation,json=capabilityCredentialRotation,proto3" json:"capability_credential_rotation,omitempty"` unknownFields protoimpl.UnknownFields @@ -387,11 +534,6 @@ func (x *CredentialDetails) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use CredentialDetails.ProtoReflect.Descriptor instead. -func (*CredentialDetails) Descriptor() ([]byte, []int) { - return file_c1_connector_v2_connector_proto_rawDescGZIP(), []int{3} -} - func (x *CredentialDetails) GetCapabilityAccountProvisioning() *CredentialDetailsAccountProvisioning { if x != nil { return x.CapabilityAccountProvisioning @@ -406,8 +548,54 @@ func (x *CredentialDetails) GetCapabilityCredentialRotation() *CredentialDetails return nil } +func (x *CredentialDetails) SetCapabilityAccountProvisioning(v *CredentialDetailsAccountProvisioning) { + x.CapabilityAccountProvisioning = v +} + +func (x *CredentialDetails) SetCapabilityCredentialRotation(v *CredentialDetailsCredentialRotation) { + x.CapabilityCredentialRotation = v +} + +func (x *CredentialDetails) HasCapabilityAccountProvisioning() bool { + if x == nil { + return false + } + return x.CapabilityAccountProvisioning != nil +} + +func (x *CredentialDetails) HasCapabilityCredentialRotation() bool { + if x == nil { + return false + } + return x.CapabilityCredentialRotation != nil +} + +func (x *CredentialDetails) ClearCapabilityAccountProvisioning() { + x.CapabilityAccountProvisioning = nil +} + +func (x *CredentialDetails) ClearCapabilityCredentialRotation() { + x.CapabilityCredentialRotation = nil +} + +type CredentialDetails_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + CapabilityAccountProvisioning *CredentialDetailsAccountProvisioning + CapabilityCredentialRotation *CredentialDetailsCredentialRotation +} + +func (b0 CredentialDetails_builder) Build() *CredentialDetails { + m0 := &CredentialDetails{} + b, x := &b0, m0 + _, _ = b, x + x.CapabilityAccountProvisioning = b.CapabilityAccountProvisioning + x.CapabilityCredentialRotation = b.CapabilityCredentialRotation + return m0 +} + type CredentialDetailsAccountProvisioning struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` SupportedCredentialOptions []CapabilityDetailCredentialOption `protobuf:"varint,1,rep,packed,name=supported_credential_options,json=supportedCredentialOptions,proto3,enum=c1.connector.v2.CapabilityDetailCredentialOption" json:"supported_credential_options,omitempty"` PreferredCredentialOption CapabilityDetailCredentialOption `protobuf:"varint,2,opt,name=preferred_credential_option,json=preferredCredentialOption,proto3,enum=c1.connector.v2.CapabilityDetailCredentialOption" json:"preferred_credential_option,omitempty"` unknownFields protoimpl.UnknownFields @@ -439,11 +627,6 @@ func (x *CredentialDetailsAccountProvisioning) ProtoReflect() protoreflect.Messa return mi.MessageOf(x) } -// Deprecated: Use CredentialDetailsAccountProvisioning.ProtoReflect.Descriptor instead. -func (*CredentialDetailsAccountProvisioning) Descriptor() ([]byte, []int) { - return file_c1_connector_v2_connector_proto_rawDescGZIP(), []int{4} -} - func (x *CredentialDetailsAccountProvisioning) GetSupportedCredentialOptions() []CapabilityDetailCredentialOption { if x != nil { return x.SupportedCredentialOptions @@ -458,8 +641,32 @@ func (x *CredentialDetailsAccountProvisioning) GetPreferredCredentialOption() Ca return CapabilityDetailCredentialOption_CAPABILITY_DETAIL_CREDENTIAL_OPTION_UNSPECIFIED } +func (x *CredentialDetailsAccountProvisioning) SetSupportedCredentialOptions(v []CapabilityDetailCredentialOption) { + x.SupportedCredentialOptions = v +} + +func (x *CredentialDetailsAccountProvisioning) SetPreferredCredentialOption(v CapabilityDetailCredentialOption) { + x.PreferredCredentialOption = v +} + +type CredentialDetailsAccountProvisioning_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + SupportedCredentialOptions []CapabilityDetailCredentialOption + PreferredCredentialOption CapabilityDetailCredentialOption +} + +func (b0 CredentialDetailsAccountProvisioning_builder) Build() *CredentialDetailsAccountProvisioning { + m0 := &CredentialDetailsAccountProvisioning{} + b, x := &b0, m0 + _, _ = b, x + x.SupportedCredentialOptions = b.SupportedCredentialOptions + x.PreferredCredentialOption = b.PreferredCredentialOption + return m0 +} + type CredentialDetailsCredentialRotation struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` SupportedCredentialOptions []CapabilityDetailCredentialOption `protobuf:"varint,1,rep,packed,name=supported_credential_options,json=supportedCredentialOptions,proto3,enum=c1.connector.v2.CapabilityDetailCredentialOption" json:"supported_credential_options,omitempty"` PreferredCredentialOption CapabilityDetailCredentialOption `protobuf:"varint,2,opt,name=preferred_credential_option,json=preferredCredentialOption,proto3,enum=c1.connector.v2.CapabilityDetailCredentialOption" json:"preferred_credential_option,omitempty"` unknownFields protoimpl.UnknownFields @@ -491,11 +698,6 @@ func (x *CredentialDetailsCredentialRotation) ProtoReflect() protoreflect.Messag return mi.MessageOf(x) } -// Deprecated: Use CredentialDetailsCredentialRotation.ProtoReflect.Descriptor instead. -func (*CredentialDetailsCredentialRotation) Descriptor() ([]byte, []int) { - return file_c1_connector_v2_connector_proto_rawDescGZIP(), []int{5} -} - func (x *CredentialDetailsCredentialRotation) GetSupportedCredentialOptions() []CapabilityDetailCredentialOption { if x != nil { return x.SupportedCredentialOptions @@ -510,8 +712,32 @@ func (x *CredentialDetailsCredentialRotation) GetPreferredCredentialOption() Cap return CapabilityDetailCredentialOption_CAPABILITY_DETAIL_CREDENTIAL_OPTION_UNSPECIFIED } +func (x *CredentialDetailsCredentialRotation) SetSupportedCredentialOptions(v []CapabilityDetailCredentialOption) { + x.SupportedCredentialOptions = v +} + +func (x *CredentialDetailsCredentialRotation) SetPreferredCredentialOption(v CapabilityDetailCredentialOption) { + x.PreferredCredentialOption = v +} + +type CredentialDetailsCredentialRotation_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + SupportedCredentialOptions []CapabilityDetailCredentialOption + PreferredCredentialOption CapabilityDetailCredentialOption +} + +func (b0 CredentialDetailsCredentialRotation_builder) Build() *CredentialDetailsCredentialRotation { + m0 := &CredentialDetailsCredentialRotation{} + b, x := &b0, m0 + _, _ = b, x + x.SupportedCredentialOptions = b.SupportedCredentialOptions + x.PreferredCredentialOption = b.PreferredCredentialOption + return m0 +} + type ConnectorCapabilities struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` ResourceTypeCapabilities []*ResourceTypeCapability `protobuf:"bytes,1,rep,name=resource_type_capabilities,json=resourceTypeCapabilities,proto3" json:"resource_type_capabilities,omitempty"` ConnectorCapabilities []Capability `protobuf:"varint,2,rep,packed,name=connector_capabilities,json=connectorCapabilities,proto3,enum=c1.connector.v2.Capability" json:"connector_capabilities,omitempty"` CredentialDetails *CredentialDetails `protobuf:"bytes,3,opt,name=credential_details,json=credentialDetails,proto3" json:"credential_details,omitempty"` @@ -544,11 +770,6 @@ func (x *ConnectorCapabilities) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use ConnectorCapabilities.ProtoReflect.Descriptor instead. -func (*ConnectorCapabilities) Descriptor() ([]byte, []int) { - return file_c1_connector_v2_connector_proto_rawDescGZIP(), []int{6} -} - func (x *ConnectorCapabilities) GetResourceTypeCapabilities() []*ResourceTypeCapability { if x != nil { return x.ResourceTypeCapabilities @@ -570,17 +791,173 @@ func (x *ConnectorCapabilities) GetCredentialDetails() *CredentialDetails { return nil } +func (x *ConnectorCapabilities) SetResourceTypeCapabilities(v []*ResourceTypeCapability) { + x.ResourceTypeCapabilities = v +} + +func (x *ConnectorCapabilities) SetConnectorCapabilities(v []Capability) { + x.ConnectorCapabilities = v +} + +func (x *ConnectorCapabilities) SetCredentialDetails(v *CredentialDetails) { + x.CredentialDetails = v +} + +func (x *ConnectorCapabilities) HasCredentialDetails() bool { + if x == nil { + return false + } + return x.CredentialDetails != nil +} + +func (x *ConnectorCapabilities) ClearCredentialDetails() { + x.CredentialDetails = nil +} + +type ConnectorCapabilities_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + ResourceTypeCapabilities []*ResourceTypeCapability + ConnectorCapabilities []Capability + CredentialDetails *CredentialDetails +} + +func (b0 ConnectorCapabilities_builder) Build() *ConnectorCapabilities { + m0 := &ConnectorCapabilities{} + b, x := &b0, m0 + _, _ = b, x + x.ResourceTypeCapabilities = b.ResourceTypeCapabilities + x.ConnectorCapabilities = b.ConnectorCapabilities + x.CredentialDetails = b.CredentialDetails + return m0 +} + +type CapabilityPermission struct { + state protoimpl.MessageState `protogen:"hybrid.v1"` + Permission string `protobuf:"bytes,1,opt,name=permission,proto3" json:"permission,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *CapabilityPermission) Reset() { + *x = CapabilityPermission{} + mi := &file_c1_connector_v2_connector_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *CapabilityPermission) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*CapabilityPermission) ProtoMessage() {} + +func (x *CapabilityPermission) ProtoReflect() protoreflect.Message { + mi := &file_c1_connector_v2_connector_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) +} + +func (x *CapabilityPermission) GetPermission() string { + if x != nil { + return x.Permission + } + return "" +} + +func (x *CapabilityPermission) SetPermission(v string) { + x.Permission = v +} + +type CapabilityPermission_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Permission string +} + +func (b0 CapabilityPermission_builder) Build() *CapabilityPermission { + m0 := &CapabilityPermission{} + b, x := &b0, m0 + _, _ = b, x + x.Permission = b.Permission + return m0 +} + +type CapabilityPermissions struct { + state protoimpl.MessageState `protogen:"hybrid.v1"` + Permissions []*CapabilityPermission `protobuf:"bytes,1,rep,name=permissions,proto3" json:"permissions,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *CapabilityPermissions) Reset() { + *x = CapabilityPermissions{} + mi := &file_c1_connector_v2_connector_proto_msgTypes[8] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *CapabilityPermissions) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*CapabilityPermissions) ProtoMessage() {} + +func (x *CapabilityPermissions) ProtoReflect() protoreflect.Message { + mi := &file_c1_connector_v2_connector_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) +} + +func (x *CapabilityPermissions) GetPermissions() []*CapabilityPermission { + if x != nil { + return x.Permissions + } + return nil +} + +func (x *CapabilityPermissions) SetPermissions(v []*CapabilityPermission) { + x.Permissions = v +} + +type CapabilityPermissions_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Permissions []*CapabilityPermission +} + +func (b0 CapabilityPermissions_builder) Build() *CapabilityPermissions { + m0 := &CapabilityPermissions{} + b, x := &b0, m0 + _, _ = b, x + x.Permissions = b.Permissions + return m0 +} + type ResourceTypeCapability struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` ResourceType *ResourceType `protobuf:"bytes,1,opt,name=resource_type,json=resourceType,proto3" json:"resource_type,omitempty"` Capabilities []Capability `protobuf:"varint,2,rep,packed,name=capabilities,proto3,enum=c1.connector.v2.Capability" json:"capabilities,omitempty"` + Permissions *CapabilityPermissions `protobuf:"bytes,3,opt,name=permissions,proto3" json:"permissions,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *ResourceTypeCapability) Reset() { *x = ResourceTypeCapability{} - mi := &file_c1_connector_v2_connector_proto_msgTypes[7] + mi := &file_c1_connector_v2_connector_proto_msgTypes[9] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -592,7 +969,7 @@ func (x *ResourceTypeCapability) String() string { func (*ResourceTypeCapability) ProtoMessage() {} func (x *ResourceTypeCapability) ProtoReflect() protoreflect.Message { - mi := &file_c1_connector_v2_connector_proto_msgTypes[7] + mi := &file_c1_connector_v2_connector_proto_msgTypes[9] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -603,11 +980,6 @@ func (x *ResourceTypeCapability) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use ResourceTypeCapability.ProtoReflect.Descriptor instead. -func (*ResourceTypeCapability) Descriptor() ([]byte, []int) { - return file_c1_connector_v2_connector_proto_rawDescGZIP(), []int{7} -} - func (x *ResourceTypeCapability) GetResourceType() *ResourceType { if x != nil { return x.ResourceType @@ -622,15 +994,74 @@ func (x *ResourceTypeCapability) GetCapabilities() []Capability { return nil } +func (x *ResourceTypeCapability) GetPermissions() *CapabilityPermissions { + if x != nil { + return x.Permissions + } + return nil +} + +func (x *ResourceTypeCapability) SetResourceType(v *ResourceType) { + x.ResourceType = v +} + +func (x *ResourceTypeCapability) SetCapabilities(v []Capability) { + x.Capabilities = v +} + +func (x *ResourceTypeCapability) SetPermissions(v *CapabilityPermissions) { + x.Permissions = v +} + +func (x *ResourceTypeCapability) HasResourceType() bool { + if x == nil { + return false + } + return x.ResourceType != nil +} + +func (x *ResourceTypeCapability) HasPermissions() bool { + if x == nil { + return false + } + return x.Permissions != nil +} + +func (x *ResourceTypeCapability) ClearResourceType() { + x.ResourceType = nil +} + +func (x *ResourceTypeCapability) ClearPermissions() { + x.Permissions = nil +} + +type ResourceTypeCapability_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + ResourceType *ResourceType + Capabilities []Capability + Permissions *CapabilityPermissions +} + +func (b0 ResourceTypeCapability_builder) Build() *ResourceTypeCapability { + m0 := &ResourceTypeCapability{} + b, x := &b0, m0 + _, _ = b, x + x.ResourceType = b.ResourceType + x.Capabilities = b.Capabilities + x.Permissions = b.Permissions + return m0 +} + type ConnectorServiceGetMetadataRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *ConnectorServiceGetMetadataRequest) Reset() { *x = ConnectorServiceGetMetadataRequest{} - mi := &file_c1_connector_v2_connector_proto_msgTypes[8] + mi := &file_c1_connector_v2_connector_proto_msgTypes[10] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -642,7 +1073,7 @@ func (x *ConnectorServiceGetMetadataRequest) String() string { func (*ConnectorServiceGetMetadataRequest) ProtoMessage() {} func (x *ConnectorServiceGetMetadataRequest) ProtoReflect() protoreflect.Message { - mi := &file_c1_connector_v2_connector_proto_msgTypes[8] + mi := &file_c1_connector_v2_connector_proto_msgTypes[10] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -653,13 +1084,20 @@ func (x *ConnectorServiceGetMetadataRequest) ProtoReflect() protoreflect.Message return mi.MessageOf(x) } -// Deprecated: Use ConnectorServiceGetMetadataRequest.ProtoReflect.Descriptor instead. -func (*ConnectorServiceGetMetadataRequest) Descriptor() ([]byte, []int) { - return file_c1_connector_v2_connector_proto_rawDescGZIP(), []int{8} +type ConnectorServiceGetMetadataRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + +} + +func (b0 ConnectorServiceGetMetadataRequest_builder) Build() *ConnectorServiceGetMetadataRequest { + m0 := &ConnectorServiceGetMetadataRequest{} + b, x := &b0, m0 + _, _ = b, x + return m0 } type ConnectorServiceGetMetadataResponse struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` Metadata *ConnectorMetadata `protobuf:"bytes,1,opt,name=metadata,proto3" json:"metadata,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache @@ -667,7 +1105,7 @@ type ConnectorServiceGetMetadataResponse struct { func (x *ConnectorServiceGetMetadataResponse) Reset() { *x = ConnectorServiceGetMetadataResponse{} - mi := &file_c1_connector_v2_connector_proto_msgTypes[9] + mi := &file_c1_connector_v2_connector_proto_msgTypes[11] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -679,7 +1117,7 @@ func (x *ConnectorServiceGetMetadataResponse) String() string { func (*ConnectorServiceGetMetadataResponse) ProtoMessage() {} func (x *ConnectorServiceGetMetadataResponse) ProtoReflect() protoreflect.Message { - mi := &file_c1_connector_v2_connector_proto_msgTypes[9] + mi := &file_c1_connector_v2_connector_proto_msgTypes[11] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -690,11 +1128,6 @@ func (x *ConnectorServiceGetMetadataResponse) ProtoReflect() protoreflect.Messag return mi.MessageOf(x) } -// Deprecated: Use ConnectorServiceGetMetadataResponse.ProtoReflect.Descriptor instead. -func (*ConnectorServiceGetMetadataResponse) Descriptor() ([]byte, []int) { - return file_c1_connector_v2_connector_proto_rawDescGZIP(), []int{9} -} - func (x *ConnectorServiceGetMetadataResponse) GetMetadata() *ConnectorMetadata { if x != nil { return x.Metadata @@ -702,15 +1135,44 @@ func (x *ConnectorServiceGetMetadataResponse) GetMetadata() *ConnectorMetadata { return nil } +func (x *ConnectorServiceGetMetadataResponse) SetMetadata(v *ConnectorMetadata) { + x.Metadata = v +} + +func (x *ConnectorServiceGetMetadataResponse) HasMetadata() bool { + if x == nil { + return false + } + return x.Metadata != nil +} + +func (x *ConnectorServiceGetMetadataResponse) ClearMetadata() { + x.Metadata = nil +} + +type ConnectorServiceGetMetadataResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Metadata *ConnectorMetadata +} + +func (b0 ConnectorServiceGetMetadataResponse_builder) Build() *ConnectorServiceGetMetadataResponse { + m0 := &ConnectorServiceGetMetadataResponse{} + b, x := &b0, m0 + _, _ = b, x + x.Metadata = b.Metadata + return m0 +} + type ConnectorServiceValidateRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *ConnectorServiceValidateRequest) Reset() { *x = ConnectorServiceValidateRequest{} - mi := &file_c1_connector_v2_connector_proto_msgTypes[10] + mi := &file_c1_connector_v2_connector_proto_msgTypes[12] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -722,7 +1184,7 @@ func (x *ConnectorServiceValidateRequest) String() string { func (*ConnectorServiceValidateRequest) ProtoMessage() {} func (x *ConnectorServiceValidateRequest) ProtoReflect() protoreflect.Message { - mi := &file_c1_connector_v2_connector_proto_msgTypes[10] + mi := &file_c1_connector_v2_connector_proto_msgTypes[12] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -733,23 +1195,31 @@ func (x *ConnectorServiceValidateRequest) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use ConnectorServiceValidateRequest.ProtoReflect.Descriptor instead. -func (*ConnectorServiceValidateRequest) Descriptor() ([]byte, []int) { - return file_c1_connector_v2_connector_proto_rawDescGZIP(), []int{10} +type ConnectorServiceValidateRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + +} + +func (b0 ConnectorServiceValidateRequest_builder) Build() *ConnectorServiceValidateRequest { + m0 := &ConnectorServiceValidateRequest{} + b, x := &b0, m0 + _, _ = b, x + return m0 } // NOTE(morgabra) We're expecting correct grpc.Status responses // for things like 401/403/500, etc type ConnectorServiceValidateResponse struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` Annotations []*anypb.Any `protobuf:"bytes,1,rep,name=annotations,proto3" json:"annotations,omitempty"` + SdkVersion string `protobuf:"bytes,2,opt,name=sdk_version,json=sdkVersion,proto3" json:"sdk_version,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *ConnectorServiceValidateResponse) Reset() { *x = ConnectorServiceValidateResponse{} - mi := &file_c1_connector_v2_connector_proto_msgTypes[11] + mi := &file_c1_connector_v2_connector_proto_msgTypes[13] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -761,7 +1231,7 @@ func (x *ConnectorServiceValidateResponse) String() string { func (*ConnectorServiceValidateResponse) ProtoMessage() {} func (x *ConnectorServiceValidateResponse) ProtoReflect() protoreflect.Message { - mi := &file_c1_connector_v2_connector_proto_msgTypes[11] + mi := &file_c1_connector_v2_connector_proto_msgTypes[13] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -772,11 +1242,6 @@ func (x *ConnectorServiceValidateResponse) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use ConnectorServiceValidateResponse.ProtoReflect.Descriptor instead. -func (*ConnectorServiceValidateResponse) Descriptor() ([]byte, []int) { - return file_c1_connector_v2_connector_proto_rawDescGZIP(), []int{11} -} - func (x *ConnectorServiceValidateResponse) GetAnnotations() []*anypb.Any { if x != nil { return x.Annotations @@ -784,8 +1249,39 @@ func (x *ConnectorServiceValidateResponse) GetAnnotations() []*anypb.Any { return nil } +func (x *ConnectorServiceValidateResponse) GetSdkVersion() string { + if x != nil { + return x.SdkVersion + } + return "" +} + +func (x *ConnectorServiceValidateResponse) SetAnnotations(v []*anypb.Any) { + x.Annotations = v +} + +func (x *ConnectorServiceValidateResponse) SetSdkVersion(v string) { + x.SdkVersion = v +} + +type ConnectorServiceValidateResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Annotations []*anypb.Any + SdkVersion string +} + +func (b0 ConnectorServiceValidateResponse_builder) Build() *ConnectorServiceValidateResponse { + m0 := &ConnectorServiceValidateResponse{} + b, x := &b0, m0 + _, _ = b, x + x.Annotations = b.Annotations + x.SdkVersion = b.SdkVersion + return m0 +} + type ConnectorAccountCreationSchema struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` FieldMap map[string]*ConnectorAccountCreationSchema_Field `protobuf:"bytes,1,rep,name=field_map,json=fieldMap,proto3" json:"field_map,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache @@ -793,7 +1289,7 @@ type ConnectorAccountCreationSchema struct { func (x *ConnectorAccountCreationSchema) Reset() { *x = ConnectorAccountCreationSchema{} - mi := &file_c1_connector_v2_connector_proto_msgTypes[12] + mi := &file_c1_connector_v2_connector_proto_msgTypes[14] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -805,7 +1301,7 @@ func (x *ConnectorAccountCreationSchema) String() string { func (*ConnectorAccountCreationSchema) ProtoMessage() {} func (x *ConnectorAccountCreationSchema) ProtoReflect() protoreflect.Message { - mi := &file_c1_connector_v2_connector_proto_msgTypes[12] + mi := &file_c1_connector_v2_connector_proto_msgTypes[14] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -816,11 +1312,6 @@ func (x *ConnectorAccountCreationSchema) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use ConnectorAccountCreationSchema.ProtoReflect.Descriptor instead. -func (*ConnectorAccountCreationSchema) Descriptor() ([]byte, []int) { - return file_c1_connector_v2_connector_proto_rawDescGZIP(), []int{12} -} - func (x *ConnectorAccountCreationSchema) GetFieldMap() map[string]*ConnectorAccountCreationSchema_Field { if x != nil { return x.FieldMap @@ -828,8 +1319,26 @@ func (x *ConnectorAccountCreationSchema) GetFieldMap() map[string]*ConnectorAcco return nil } +func (x *ConnectorAccountCreationSchema) SetFieldMap(v map[string]*ConnectorAccountCreationSchema_Field) { + x.FieldMap = v +} + +type ConnectorAccountCreationSchema_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + FieldMap map[string]*ConnectorAccountCreationSchema_Field +} + +func (b0 ConnectorAccountCreationSchema_builder) Build() *ConnectorAccountCreationSchema { + m0 := &ConnectorAccountCreationSchema{} + b, x := &b0, m0 + _, _ = b, x + x.FieldMap = b.FieldMap + return m0 +} + type ConnectorAccountCreationSchema_Field struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` DisplayName string `protobuf:"bytes,1,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"` Required bool `protobuf:"varint,2,opt,name=required,proto3" json:"required,omitempty"` Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"` @@ -850,7 +1359,7 @@ type ConnectorAccountCreationSchema_Field struct { func (x *ConnectorAccountCreationSchema_Field) Reset() { *x = ConnectorAccountCreationSchema_Field{} - mi := &file_c1_connector_v2_connector_proto_msgTypes[14] + mi := &file_c1_connector_v2_connector_proto_msgTypes[16] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -862,7 +1371,7 @@ func (x *ConnectorAccountCreationSchema_Field) String() string { func (*ConnectorAccountCreationSchema_Field) ProtoMessage() {} func (x *ConnectorAccountCreationSchema_Field) ProtoReflect() protoreflect.Message { - mi := &file_c1_connector_v2_connector_proto_msgTypes[14] + mi := &file_c1_connector_v2_connector_proto_msgTypes[16] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -873,11 +1382,6 @@ func (x *ConnectorAccountCreationSchema_Field) ProtoReflect() protoreflect.Messa return mi.MessageOf(x) } -// Deprecated: Use ConnectorAccountCreationSchema_Field.ProtoReflect.Descriptor instead. -func (*ConnectorAccountCreationSchema_Field) Descriptor() ([]byte, []int) { - return file_c1_connector_v2_connector_proto_rawDescGZIP(), []int{12, 1} -} - func (x *ConnectorAccountCreationSchema_Field) GetDisplayName() string { if x != nil { return x.DisplayName @@ -972,6 +1476,234 @@ func (x *ConnectorAccountCreationSchema_Field) GetMapField() *ConnectorAccountCr return nil } +func (x *ConnectorAccountCreationSchema_Field) SetDisplayName(v string) { + x.DisplayName = v +} + +func (x *ConnectorAccountCreationSchema_Field) SetRequired(v bool) { + x.Required = v +} + +func (x *ConnectorAccountCreationSchema_Field) SetDescription(v string) { + x.Description = v +} + +func (x *ConnectorAccountCreationSchema_Field) SetPlaceholder(v string) { + x.Placeholder = v +} + +func (x *ConnectorAccountCreationSchema_Field) SetOrder(v int32) { + x.Order = v +} + +func (x *ConnectorAccountCreationSchema_Field) SetDeprecated(v bool) { + x.Deprecated = v +} + +func (x *ConnectorAccountCreationSchema_Field) SetStringField(v *ConnectorAccountCreationSchema_StringField) { + if v == nil { + x.Field = nil + return + } + x.Field = &ConnectorAccountCreationSchema_Field_StringField{v} +} + +func (x *ConnectorAccountCreationSchema_Field) SetBoolField(v *ConnectorAccountCreationSchema_BoolField) { + if v == nil { + x.Field = nil + return + } + x.Field = &ConnectorAccountCreationSchema_Field_BoolField{v} +} + +func (x *ConnectorAccountCreationSchema_Field) SetStringListField(v *ConnectorAccountCreationSchema_StringListField) { + if v == nil { + x.Field = nil + return + } + x.Field = &ConnectorAccountCreationSchema_Field_StringListField{v} +} + +func (x *ConnectorAccountCreationSchema_Field) SetIntField(v *ConnectorAccountCreationSchema_IntField) { + if v == nil { + x.Field = nil + return + } + x.Field = &ConnectorAccountCreationSchema_Field_IntField{v} +} + +func (x *ConnectorAccountCreationSchema_Field) SetMapField(v *ConnectorAccountCreationSchema_MapField) { + if v == nil { + x.Field = nil + return + } + x.Field = &ConnectorAccountCreationSchema_Field_MapField{v} +} + +func (x *ConnectorAccountCreationSchema_Field) HasField() bool { + if x == nil { + return false + } + return x.Field != nil +} + +func (x *ConnectorAccountCreationSchema_Field) HasStringField() bool { + if x == nil { + return false + } + _, ok := x.Field.(*ConnectorAccountCreationSchema_Field_StringField) + return ok +} + +func (x *ConnectorAccountCreationSchema_Field) HasBoolField() bool { + if x == nil { + return false + } + _, ok := x.Field.(*ConnectorAccountCreationSchema_Field_BoolField) + return ok +} + +func (x *ConnectorAccountCreationSchema_Field) HasStringListField() bool { + if x == nil { + return false + } + _, ok := x.Field.(*ConnectorAccountCreationSchema_Field_StringListField) + return ok +} + +func (x *ConnectorAccountCreationSchema_Field) HasIntField() bool { + if x == nil { + return false + } + _, ok := x.Field.(*ConnectorAccountCreationSchema_Field_IntField) + return ok +} + +func (x *ConnectorAccountCreationSchema_Field) HasMapField() bool { + if x == nil { + return false + } + _, ok := x.Field.(*ConnectorAccountCreationSchema_Field_MapField) + return ok +} + +func (x *ConnectorAccountCreationSchema_Field) ClearField() { + x.Field = nil +} + +func (x *ConnectorAccountCreationSchema_Field) ClearStringField() { + if _, ok := x.Field.(*ConnectorAccountCreationSchema_Field_StringField); ok { + x.Field = nil + } +} + +func (x *ConnectorAccountCreationSchema_Field) ClearBoolField() { + if _, ok := x.Field.(*ConnectorAccountCreationSchema_Field_BoolField); ok { + x.Field = nil + } +} + +func (x *ConnectorAccountCreationSchema_Field) ClearStringListField() { + if _, ok := x.Field.(*ConnectorAccountCreationSchema_Field_StringListField); ok { + x.Field = nil + } +} + +func (x *ConnectorAccountCreationSchema_Field) ClearIntField() { + if _, ok := x.Field.(*ConnectorAccountCreationSchema_Field_IntField); ok { + x.Field = nil + } +} + +func (x *ConnectorAccountCreationSchema_Field) ClearMapField() { + if _, ok := x.Field.(*ConnectorAccountCreationSchema_Field_MapField); ok { + x.Field = nil + } +} + +const ConnectorAccountCreationSchema_Field_Field_not_set_case case_ConnectorAccountCreationSchema_Field_Field = 0 +const ConnectorAccountCreationSchema_Field_StringField_case case_ConnectorAccountCreationSchema_Field_Field = 100 +const ConnectorAccountCreationSchema_Field_BoolField_case case_ConnectorAccountCreationSchema_Field_Field = 101 +const ConnectorAccountCreationSchema_Field_StringListField_case case_ConnectorAccountCreationSchema_Field_Field = 102 +const ConnectorAccountCreationSchema_Field_IntField_case case_ConnectorAccountCreationSchema_Field_Field = 103 +const ConnectorAccountCreationSchema_Field_MapField_case case_ConnectorAccountCreationSchema_Field_Field = 104 + +func (x *ConnectorAccountCreationSchema_Field) WhichField() case_ConnectorAccountCreationSchema_Field_Field { + if x == nil { + return ConnectorAccountCreationSchema_Field_Field_not_set_case + } + switch x.Field.(type) { + case *ConnectorAccountCreationSchema_Field_StringField: + return ConnectorAccountCreationSchema_Field_StringField_case + case *ConnectorAccountCreationSchema_Field_BoolField: + return ConnectorAccountCreationSchema_Field_BoolField_case + case *ConnectorAccountCreationSchema_Field_StringListField: + return ConnectorAccountCreationSchema_Field_StringListField_case + case *ConnectorAccountCreationSchema_Field_IntField: + return ConnectorAccountCreationSchema_Field_IntField_case + case *ConnectorAccountCreationSchema_Field_MapField: + return ConnectorAccountCreationSchema_Field_MapField_case + default: + return ConnectorAccountCreationSchema_Field_Field_not_set_case + } +} + +type ConnectorAccountCreationSchema_Field_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + DisplayName string + Required bool + Description string + Placeholder string + Order int32 + Deprecated bool + // Fields of oneof Field: + StringField *ConnectorAccountCreationSchema_StringField + BoolField *ConnectorAccountCreationSchema_BoolField + StringListField *ConnectorAccountCreationSchema_StringListField + IntField *ConnectorAccountCreationSchema_IntField + MapField *ConnectorAccountCreationSchema_MapField + // -- end of Field +} + +func (b0 ConnectorAccountCreationSchema_Field_builder) Build() *ConnectorAccountCreationSchema_Field { + m0 := &ConnectorAccountCreationSchema_Field{} + b, x := &b0, m0 + _, _ = b, x + x.DisplayName = b.DisplayName + x.Required = b.Required + x.Description = b.Description + x.Placeholder = b.Placeholder + x.Order = b.Order + x.Deprecated = b.Deprecated + if b.StringField != nil { + x.Field = &ConnectorAccountCreationSchema_Field_StringField{b.StringField} + } + if b.BoolField != nil { + x.Field = &ConnectorAccountCreationSchema_Field_BoolField{b.BoolField} + } + if b.StringListField != nil { + x.Field = &ConnectorAccountCreationSchema_Field_StringListField{b.StringListField} + } + if b.IntField != nil { + x.Field = &ConnectorAccountCreationSchema_Field_IntField{b.IntField} + } + if b.MapField != nil { + x.Field = &ConnectorAccountCreationSchema_Field_MapField{b.MapField} + } + return m0 +} + +type case_ConnectorAccountCreationSchema_Field_Field protoreflect.FieldNumber + +func (x case_ConnectorAccountCreationSchema_Field_Field) String() string { + md := file_c1_connector_v2_connector_proto_msgTypes[16].Descriptor() + if x == 0 { + return "not set" + } + return protoimpl.X.MessageFieldStringOf(md, protoreflect.FieldNumber(x)) +} + type isConnectorAccountCreationSchema_Field_Field interface { isConnectorAccountCreationSchema_Field_Field() } @@ -1012,7 +1744,7 @@ func (*ConnectorAccountCreationSchema_Field_MapField) isConnectorAccountCreation } type ConnectorAccountCreationSchema_StringField struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` DefaultValue *string `protobuf:"bytes,1,opt,name=default_value,json=defaultValue,proto3,oneof" json:"default_value,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache @@ -1020,7 +1752,7 @@ type ConnectorAccountCreationSchema_StringField struct { func (x *ConnectorAccountCreationSchema_StringField) Reset() { *x = ConnectorAccountCreationSchema_StringField{} - mi := &file_c1_connector_v2_connector_proto_msgTypes[15] + mi := &file_c1_connector_v2_connector_proto_msgTypes[17] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1032,7 +1764,7 @@ func (x *ConnectorAccountCreationSchema_StringField) String() string { func (*ConnectorAccountCreationSchema_StringField) ProtoMessage() {} func (x *ConnectorAccountCreationSchema_StringField) ProtoReflect() protoreflect.Message { - mi := &file_c1_connector_v2_connector_proto_msgTypes[15] + mi := &file_c1_connector_v2_connector_proto_msgTypes[17] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1043,11 +1775,6 @@ func (x *ConnectorAccountCreationSchema_StringField) ProtoReflect() protoreflect return mi.MessageOf(x) } -// Deprecated: Use ConnectorAccountCreationSchema_StringField.ProtoReflect.Descriptor instead. -func (*ConnectorAccountCreationSchema_StringField) Descriptor() ([]byte, []int) { - return file_c1_connector_v2_connector_proto_rawDescGZIP(), []int{12, 2} -} - func (x *ConnectorAccountCreationSchema_StringField) GetDefaultValue() string { if x != nil && x.DefaultValue != nil { return *x.DefaultValue @@ -1055,8 +1782,37 @@ func (x *ConnectorAccountCreationSchema_StringField) GetDefaultValue() string { return "" } +func (x *ConnectorAccountCreationSchema_StringField) SetDefaultValue(v string) { + x.DefaultValue = &v +} + +func (x *ConnectorAccountCreationSchema_StringField) HasDefaultValue() bool { + if x == nil { + return false + } + return x.DefaultValue != nil +} + +func (x *ConnectorAccountCreationSchema_StringField) ClearDefaultValue() { + x.DefaultValue = nil +} + +type ConnectorAccountCreationSchema_StringField_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + DefaultValue *string +} + +func (b0 ConnectorAccountCreationSchema_StringField_builder) Build() *ConnectorAccountCreationSchema_StringField { + m0 := &ConnectorAccountCreationSchema_StringField{} + b, x := &b0, m0 + _, _ = b, x + x.DefaultValue = b.DefaultValue + return m0 +} + type ConnectorAccountCreationSchema_BoolField struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` DefaultValue *bool `protobuf:"varint,1,opt,name=default_value,json=defaultValue,proto3,oneof" json:"default_value,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache @@ -1064,7 +1820,7 @@ type ConnectorAccountCreationSchema_BoolField struct { func (x *ConnectorAccountCreationSchema_BoolField) Reset() { *x = ConnectorAccountCreationSchema_BoolField{} - mi := &file_c1_connector_v2_connector_proto_msgTypes[16] + mi := &file_c1_connector_v2_connector_proto_msgTypes[18] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1076,7 +1832,7 @@ func (x *ConnectorAccountCreationSchema_BoolField) String() string { func (*ConnectorAccountCreationSchema_BoolField) ProtoMessage() {} func (x *ConnectorAccountCreationSchema_BoolField) ProtoReflect() protoreflect.Message { - mi := &file_c1_connector_v2_connector_proto_msgTypes[16] + mi := &file_c1_connector_v2_connector_proto_msgTypes[18] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1087,11 +1843,6 @@ func (x *ConnectorAccountCreationSchema_BoolField) ProtoReflect() protoreflect.M return mi.MessageOf(x) } -// Deprecated: Use ConnectorAccountCreationSchema_BoolField.ProtoReflect.Descriptor instead. -func (*ConnectorAccountCreationSchema_BoolField) Descriptor() ([]byte, []int) { - return file_c1_connector_v2_connector_proto_rawDescGZIP(), []int{12, 3} -} - func (x *ConnectorAccountCreationSchema_BoolField) GetDefaultValue() bool { if x != nil && x.DefaultValue != nil { return *x.DefaultValue @@ -1099,8 +1850,37 @@ func (x *ConnectorAccountCreationSchema_BoolField) GetDefaultValue() bool { return false } +func (x *ConnectorAccountCreationSchema_BoolField) SetDefaultValue(v bool) { + x.DefaultValue = &v +} + +func (x *ConnectorAccountCreationSchema_BoolField) HasDefaultValue() bool { + if x == nil { + return false + } + return x.DefaultValue != nil +} + +func (x *ConnectorAccountCreationSchema_BoolField) ClearDefaultValue() { + x.DefaultValue = nil +} + +type ConnectorAccountCreationSchema_BoolField_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + DefaultValue *bool +} + +func (b0 ConnectorAccountCreationSchema_BoolField_builder) Build() *ConnectorAccountCreationSchema_BoolField { + m0 := &ConnectorAccountCreationSchema_BoolField{} + b, x := &b0, m0 + _, _ = b, x + x.DefaultValue = b.DefaultValue + return m0 +} + type ConnectorAccountCreationSchema_StringListField struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` DefaultValue []string `protobuf:"bytes,1,rep,name=default_value,json=defaultValue,proto3" json:"default_value,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache @@ -1108,7 +1888,7 @@ type ConnectorAccountCreationSchema_StringListField struct { func (x *ConnectorAccountCreationSchema_StringListField) Reset() { *x = ConnectorAccountCreationSchema_StringListField{} - mi := &file_c1_connector_v2_connector_proto_msgTypes[17] + mi := &file_c1_connector_v2_connector_proto_msgTypes[19] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1120,7 +1900,7 @@ func (x *ConnectorAccountCreationSchema_StringListField) String() string { func (*ConnectorAccountCreationSchema_StringListField) ProtoMessage() {} func (x *ConnectorAccountCreationSchema_StringListField) ProtoReflect() protoreflect.Message { - mi := &file_c1_connector_v2_connector_proto_msgTypes[17] + mi := &file_c1_connector_v2_connector_proto_msgTypes[19] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1131,11 +1911,6 @@ func (x *ConnectorAccountCreationSchema_StringListField) ProtoReflect() protoref return mi.MessageOf(x) } -// Deprecated: Use ConnectorAccountCreationSchema_StringListField.ProtoReflect.Descriptor instead. -func (*ConnectorAccountCreationSchema_StringListField) Descriptor() ([]byte, []int) { - return file_c1_connector_v2_connector_proto_rawDescGZIP(), []int{12, 4} -} - func (x *ConnectorAccountCreationSchema_StringListField) GetDefaultValue() []string { if x != nil { return x.DefaultValue @@ -1143,8 +1918,26 @@ func (x *ConnectorAccountCreationSchema_StringListField) GetDefaultValue() []str return nil } +func (x *ConnectorAccountCreationSchema_StringListField) SetDefaultValue(v []string) { + x.DefaultValue = v +} + +type ConnectorAccountCreationSchema_StringListField_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + DefaultValue []string +} + +func (b0 ConnectorAccountCreationSchema_StringListField_builder) Build() *ConnectorAccountCreationSchema_StringListField { + m0 := &ConnectorAccountCreationSchema_StringListField{} + b, x := &b0, m0 + _, _ = b, x + x.DefaultValue = b.DefaultValue + return m0 +} + type ConnectorAccountCreationSchema_IntField struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` DefaultValue *int32 `protobuf:"varint,1,opt,name=default_value,json=defaultValue,proto3,oneof" json:"default_value,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache @@ -1152,7 +1945,7 @@ type ConnectorAccountCreationSchema_IntField struct { func (x *ConnectorAccountCreationSchema_IntField) Reset() { *x = ConnectorAccountCreationSchema_IntField{} - mi := &file_c1_connector_v2_connector_proto_msgTypes[18] + mi := &file_c1_connector_v2_connector_proto_msgTypes[20] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1164,7 +1957,7 @@ func (x *ConnectorAccountCreationSchema_IntField) String() string { func (*ConnectorAccountCreationSchema_IntField) ProtoMessage() {} func (x *ConnectorAccountCreationSchema_IntField) ProtoReflect() protoreflect.Message { - mi := &file_c1_connector_v2_connector_proto_msgTypes[18] + mi := &file_c1_connector_v2_connector_proto_msgTypes[20] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1175,11 +1968,6 @@ func (x *ConnectorAccountCreationSchema_IntField) ProtoReflect() protoreflect.Me return mi.MessageOf(x) } -// Deprecated: Use ConnectorAccountCreationSchema_IntField.ProtoReflect.Descriptor instead. -func (*ConnectorAccountCreationSchema_IntField) Descriptor() ([]byte, []int) { - return file_c1_connector_v2_connector_proto_rawDescGZIP(), []int{12, 5} -} - func (x *ConnectorAccountCreationSchema_IntField) GetDefaultValue() int32 { if x != nil && x.DefaultValue != nil { return *x.DefaultValue @@ -1187,8 +1975,37 @@ func (x *ConnectorAccountCreationSchema_IntField) GetDefaultValue() int32 { return 0 } +func (x *ConnectorAccountCreationSchema_IntField) SetDefaultValue(v int32) { + x.DefaultValue = &v +} + +func (x *ConnectorAccountCreationSchema_IntField) HasDefaultValue() bool { + if x == nil { + return false + } + return x.DefaultValue != nil +} + +func (x *ConnectorAccountCreationSchema_IntField) ClearDefaultValue() { + x.DefaultValue = nil +} + +type ConnectorAccountCreationSchema_IntField_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + DefaultValue *int32 +} + +func (b0 ConnectorAccountCreationSchema_IntField_builder) Build() *ConnectorAccountCreationSchema_IntField { + m0 := &ConnectorAccountCreationSchema_IntField{} + b, x := &b0, m0 + _, _ = b, x + x.DefaultValue = b.DefaultValue + return m0 +} + type ConnectorAccountCreationSchema_MapField struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` DefaultValue map[string]*ConnectorAccountCreationSchema_Field `protobuf:"bytes,1,rep,name=default_value,json=defaultValue,proto3" json:"default_value,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache @@ -1196,7 +2013,7 @@ type ConnectorAccountCreationSchema_MapField struct { func (x *ConnectorAccountCreationSchema_MapField) Reset() { *x = ConnectorAccountCreationSchema_MapField{} - mi := &file_c1_connector_v2_connector_proto_msgTypes[19] + mi := &file_c1_connector_v2_connector_proto_msgTypes[21] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1208,7 +2025,7 @@ func (x *ConnectorAccountCreationSchema_MapField) String() string { func (*ConnectorAccountCreationSchema_MapField) ProtoMessage() {} func (x *ConnectorAccountCreationSchema_MapField) ProtoReflect() protoreflect.Message { - mi := &file_c1_connector_v2_connector_proto_msgTypes[19] + mi := &file_c1_connector_v2_connector_proto_msgTypes[21] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1219,11 +2036,6 @@ func (x *ConnectorAccountCreationSchema_MapField) ProtoReflect() protoreflect.Me return mi.MessageOf(x) } -// Deprecated: Use ConnectorAccountCreationSchema_MapField.ProtoReflect.Descriptor instead. -func (*ConnectorAccountCreationSchema_MapField) Descriptor() ([]byte, []int) { - return file_c1_connector_v2_connector_proto_rawDescGZIP(), []int{12, 6} -} - func (x *ConnectorAccountCreationSchema_MapField) GetDefaultValue() map[string]*ConnectorAccountCreationSchema_Field { if x != nil { return x.DefaultValue @@ -1231,341 +2043,144 @@ func (x *ConnectorAccountCreationSchema_MapField) GetDefaultValue() map[string]* return nil } -var File_c1_connector_v2_connector_proto protoreflect.FileDescriptor +func (x *ConnectorAccountCreationSchema_MapField) SetDefaultValue(v map[string]*ConnectorAccountCreationSchema_Field) { + x.DefaultValue = v +} -var file_c1_connector_v2_connector_proto_rawDesc = string([]byte{ - 0x0a, 0x1f, 0x63, 0x31, 0x2f, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x2f, 0x76, - 0x32, 0x2f, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x12, 0x0f, 0x63, 0x31, 0x2e, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x2e, - 0x76, 0x32, 0x1a, 0x1b, 0x63, 0x31, 0x2f, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, - 0x2f, 0x76, 0x32, 0x2f, 0x61, 0x73, 0x73, 0x65, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, - 0x1e, 0x63, 0x31, 0x2f, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x2f, 0x76, 0x32, - 0x2f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, - 0x19, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, - 0x2f, 0x61, 0x6e, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1c, 0x67, 0x6f, 0x6f, 0x67, - 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x73, 0x74, 0x72, 0x75, - 0x63, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x17, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, - 0x74, 0x65, 0x2f, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x22, 0x58, 0x0a, 0x1e, 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x53, 0x65, - 0x72, 0x76, 0x69, 0x63, 0x65, 0x43, 0x6c, 0x65, 0x61, 0x6e, 0x75, 0x70, 0x52, 0x65, 0x71, 0x75, - 0x65, 0x73, 0x74, 0x12, 0x36, 0x0a, 0x0b, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, - 0x6e, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, - 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x41, 0x6e, 0x79, 0x52, 0x0b, - 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x22, 0x59, 0x0a, 0x1f, 0x43, - 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x43, - 0x6c, 0x65, 0x61, 0x6e, 0x75, 0x70, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x36, - 0x0a, 0x0b, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x01, 0x20, - 0x03, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, - 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x41, 0x6e, 0x79, 0x52, 0x0b, 0x61, 0x6e, 0x6e, 0x6f, 0x74, - 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x22, 0xa8, 0x04, 0x0a, 0x11, 0x43, 0x6f, 0x6e, 0x6e, 0x65, - 0x63, 0x74, 0x6f, 0x72, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0x2d, 0x0a, 0x0c, - 0x64, 0x69, 0x73, 0x70, 0x6c, 0x61, 0x79, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x09, 0x42, 0x0a, 0xfa, 0x42, 0x07, 0x72, 0x05, 0x20, 0x01, 0x28, 0x80, 0x08, 0x52, 0x0b, - 0x64, 0x69, 0x73, 0x70, 0x6c, 0x61, 0x79, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x35, 0x0a, 0x08, 0x68, - 0x65, 0x6c, 0x70, 0x5f, 0x75, 0x72, 0x6c, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x1a, 0xfa, - 0x42, 0x17, 0x72, 0x15, 0x20, 0x01, 0x28, 0x80, 0x08, 0x3a, 0x08, 0x68, 0x74, 0x74, 0x70, 0x73, - 0x3a, 0x2f, 0x2f, 0xd0, 0x01, 0x01, 0x88, 0x01, 0x01, 0x52, 0x07, 0x68, 0x65, 0x6c, 0x70, 0x55, - 0x72, 0x6c, 0x12, 0x2d, 0x0a, 0x04, 0x69, 0x63, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, - 0x32, 0x19, 0x2e, 0x63, 0x31, 0x2e, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x2e, - 0x76, 0x32, 0x2e, 0x41, 0x73, 0x73, 0x65, 0x74, 0x52, 0x65, 0x66, 0x52, 0x04, 0x69, 0x63, 0x6f, - 0x6e, 0x12, 0x2d, 0x0a, 0x04, 0x6c, 0x6f, 0x67, 0x6f, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, - 0x19, 0x2e, 0x63, 0x31, 0x2e, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x2e, 0x76, - 0x32, 0x2e, 0x41, 0x73, 0x73, 0x65, 0x74, 0x52, 0x65, 0x66, 0x52, 0x04, 0x6c, 0x6f, 0x67, 0x6f, - 0x12, 0x31, 0x0a, 0x07, 0x70, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, - 0x0b, 0x32, 0x17, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, - 0x62, 0x75, 0x66, 0x2e, 0x53, 0x74, 0x72, 0x75, 0x63, 0x74, 0x52, 0x07, 0x70, 0x72, 0x6f, 0x66, - 0x69, 0x6c, 0x65, 0x12, 0x36, 0x0a, 0x0b, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, - 0x6e, 0x73, 0x18, 0x06, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, - 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x41, 0x6e, 0x79, 0x52, 0x0b, - 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x2f, 0x0a, 0x0b, 0x64, - 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, - 0x42, 0x0d, 0xfa, 0x42, 0x0a, 0x72, 0x08, 0x20, 0x01, 0x28, 0x80, 0x20, 0xd0, 0x01, 0x01, 0x52, - 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x4a, 0x0a, 0x0c, - 0x63, 0x61, 0x70, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x69, 0x65, 0x73, 0x18, 0x08, 0x20, 0x01, - 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x63, 0x31, 0x2e, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, - 0x72, 0x2e, 0x76, 0x32, 0x2e, 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x43, 0x61, - 0x70, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x69, 0x65, 0x73, 0x52, 0x0c, 0x63, 0x61, 0x70, 0x61, - 0x62, 0x69, 0x6c, 0x69, 0x74, 0x69, 0x65, 0x73, 0x12, 0x67, 0x0a, 0x17, 0x61, 0x63, 0x63, 0x6f, - 0x75, 0x6e, 0x74, 0x5f, 0x63, 0x72, 0x65, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x73, 0x63, 0x68, - 0x65, 0x6d, 0x61, 0x18, 0x09, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2f, 0x2e, 0x63, 0x31, 0x2e, 0x63, - 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x2e, 0x76, 0x32, 0x2e, 0x43, 0x6f, 0x6e, 0x6e, - 0x65, 0x63, 0x74, 0x6f, 0x72, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x43, 0x72, 0x65, 0x61, - 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x52, 0x15, 0x61, 0x63, 0x63, 0x6f, - 0x75, 0x6e, 0x74, 0x43, 0x72, 0x65, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x63, 0x68, 0x65, 0x6d, - 0x61, 0x22, 0x8e, 0x02, 0x0a, 0x11, 0x43, 0x72, 0x65, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, - 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0x12, 0x7d, 0x0a, 0x1f, 0x63, 0x61, 0x70, 0x61, 0x62, - 0x69, 0x6c, 0x69, 0x74, 0x79, 0x5f, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x5f, 0x70, 0x72, - 0x6f, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x69, 0x6e, 0x67, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, - 0x32, 0x35, 0x2e, 0x63, 0x31, 0x2e, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x2e, - 0x76, 0x32, 0x2e, 0x43, 0x72, 0x65, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x44, 0x65, 0x74, - 0x61, 0x69, 0x6c, 0x73, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x50, 0x72, 0x6f, 0x76, 0x69, - 0x73, 0x69, 0x6f, 0x6e, 0x69, 0x6e, 0x67, 0x52, 0x1d, 0x63, 0x61, 0x70, 0x61, 0x62, 0x69, 0x6c, - 0x69, 0x74, 0x79, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x73, - 0x69, 0x6f, 0x6e, 0x69, 0x6e, 0x67, 0x12, 0x7a, 0x0a, 0x1e, 0x63, 0x61, 0x70, 0x61, 0x62, 0x69, - 0x6c, 0x69, 0x74, 0x79, 0x5f, 0x63, 0x72, 0x65, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x5f, - 0x72, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x34, - 0x2e, 0x63, 0x31, 0x2e, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x2e, 0x76, 0x32, - 0x2e, 0x43, 0x72, 0x65, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x44, 0x65, 0x74, 0x61, 0x69, - 0x6c, 0x73, 0x43, 0x72, 0x65, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x52, 0x6f, 0x74, 0x61, - 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x1c, 0x63, 0x61, 0x70, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, - 0x43, 0x72, 0x65, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x52, 0x6f, 0x74, 0x61, 0x74, 0x69, - 0x6f, 0x6e, 0x22, 0x8e, 0x02, 0x0a, 0x24, 0x43, 0x72, 0x65, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x61, - 0x6c, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x50, - 0x72, 0x6f, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x69, 0x6e, 0x67, 0x12, 0x73, 0x0a, 0x1c, 0x73, - 0x75, 0x70, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x64, 0x5f, 0x63, 0x72, 0x65, 0x64, 0x65, 0x6e, 0x74, - 0x69, 0x61, 0x6c, 0x5f, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, - 0x0e, 0x32, 0x31, 0x2e, 0x63, 0x31, 0x2e, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, - 0x2e, 0x76, 0x32, 0x2e, 0x43, 0x61, 0x70, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x44, 0x65, - 0x74, 0x61, 0x69, 0x6c, 0x43, 0x72, 0x65, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x4f, 0x70, - 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x1a, 0x73, 0x75, 0x70, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x64, 0x43, - 0x72, 0x65, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, - 0x12, 0x71, 0x0a, 0x1b, 0x70, 0x72, 0x65, 0x66, 0x65, 0x72, 0x72, 0x65, 0x64, 0x5f, 0x63, 0x72, - 0x65, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x5f, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, - 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x31, 0x2e, 0x63, 0x31, 0x2e, 0x63, 0x6f, 0x6e, 0x6e, 0x65, - 0x63, 0x74, 0x6f, 0x72, 0x2e, 0x76, 0x32, 0x2e, 0x43, 0x61, 0x70, 0x61, 0x62, 0x69, 0x6c, 0x69, - 0x74, 0x79, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x43, 0x72, 0x65, 0x64, 0x65, 0x6e, 0x74, 0x69, - 0x61, 0x6c, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x19, 0x70, 0x72, 0x65, 0x66, 0x65, 0x72, - 0x72, 0x65, 0x64, 0x43, 0x72, 0x65, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x4f, 0x70, 0x74, - 0x69, 0x6f, 0x6e, 0x22, 0x8d, 0x02, 0x0a, 0x23, 0x43, 0x72, 0x65, 0x64, 0x65, 0x6e, 0x74, 0x69, - 0x61, 0x6c, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0x43, 0x72, 0x65, 0x64, 0x65, 0x6e, 0x74, - 0x69, 0x61, 0x6c, 0x52, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x73, 0x0a, 0x1c, 0x73, - 0x75, 0x70, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x64, 0x5f, 0x63, 0x72, 0x65, 0x64, 0x65, 0x6e, 0x74, - 0x69, 0x61, 0x6c, 0x5f, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, - 0x0e, 0x32, 0x31, 0x2e, 0x63, 0x31, 0x2e, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, - 0x2e, 0x76, 0x32, 0x2e, 0x43, 0x61, 0x70, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x44, 0x65, - 0x74, 0x61, 0x69, 0x6c, 0x43, 0x72, 0x65, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x4f, 0x70, - 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x1a, 0x73, 0x75, 0x70, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x64, 0x43, - 0x72, 0x65, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, - 0x12, 0x71, 0x0a, 0x1b, 0x70, 0x72, 0x65, 0x66, 0x65, 0x72, 0x72, 0x65, 0x64, 0x5f, 0x63, 0x72, - 0x65, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x5f, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, - 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x31, 0x2e, 0x63, 0x31, 0x2e, 0x63, 0x6f, 0x6e, 0x6e, 0x65, - 0x63, 0x74, 0x6f, 0x72, 0x2e, 0x76, 0x32, 0x2e, 0x43, 0x61, 0x70, 0x61, 0x62, 0x69, 0x6c, 0x69, - 0x74, 0x79, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x43, 0x72, 0x65, 0x64, 0x65, 0x6e, 0x74, 0x69, - 0x61, 0x6c, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x19, 0x70, 0x72, 0x65, 0x66, 0x65, 0x72, - 0x72, 0x65, 0x64, 0x43, 0x72, 0x65, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x4f, 0x70, 0x74, - 0x69, 0x6f, 0x6e, 0x22, 0xa5, 0x02, 0x0a, 0x15, 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, - 0x72, 0x43, 0x61, 0x70, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x69, 0x65, 0x73, 0x12, 0x65, 0x0a, - 0x1a, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x5f, 0x63, - 0x61, 0x70, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x69, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, - 0x0b, 0x32, 0x27, 0x2e, 0x63, 0x31, 0x2e, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, - 0x2e, 0x76, 0x32, 0x2e, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x54, 0x79, 0x70, 0x65, - 0x43, 0x61, 0x70, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x52, 0x18, 0x72, 0x65, 0x73, 0x6f, - 0x75, 0x72, 0x63, 0x65, 0x54, 0x79, 0x70, 0x65, 0x43, 0x61, 0x70, 0x61, 0x62, 0x69, 0x6c, 0x69, - 0x74, 0x69, 0x65, 0x73, 0x12, 0x52, 0x0a, 0x16, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, - 0x72, 0x5f, 0x63, 0x61, 0x70, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x69, 0x65, 0x73, 0x18, 0x02, - 0x20, 0x03, 0x28, 0x0e, 0x32, 0x1b, 0x2e, 0x63, 0x31, 0x2e, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, - 0x74, 0x6f, 0x72, 0x2e, 0x76, 0x32, 0x2e, 0x43, 0x61, 0x70, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, - 0x79, 0x52, 0x15, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x43, 0x61, 0x70, 0x61, - 0x62, 0x69, 0x6c, 0x69, 0x74, 0x69, 0x65, 0x73, 0x12, 0x51, 0x0a, 0x12, 0x63, 0x72, 0x65, 0x64, - 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x5f, 0x64, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0x18, 0x03, - 0x20, 0x01, 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x63, 0x31, 0x2e, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, - 0x74, 0x6f, 0x72, 0x2e, 0x76, 0x32, 0x2e, 0x43, 0x72, 0x65, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x61, - 0x6c, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0x52, 0x11, 0x63, 0x72, 0x65, 0x64, 0x65, 0x6e, - 0x74, 0x69, 0x61, 0x6c, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0x22, 0x9d, 0x01, 0x0a, 0x16, - 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x54, 0x79, 0x70, 0x65, 0x43, 0x61, 0x70, 0x61, - 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x12, 0x42, 0x0a, 0x0d, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, - 0x63, 0x65, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1d, 0x2e, - 0x63, 0x31, 0x2e, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x2e, 0x76, 0x32, 0x2e, - 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x54, 0x79, 0x70, 0x65, 0x52, 0x0c, 0x72, 0x65, - 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x54, 0x79, 0x70, 0x65, 0x12, 0x3f, 0x0a, 0x0c, 0x63, 0x61, - 0x70, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x69, 0x65, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0e, - 0x32, 0x1b, 0x2e, 0x63, 0x31, 0x2e, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x2e, - 0x76, 0x32, 0x2e, 0x43, 0x61, 0x70, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x52, 0x0c, 0x63, - 0x61, 0x70, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x69, 0x65, 0x73, 0x22, 0x24, 0x0a, 0x22, 0x43, - 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x47, - 0x65, 0x74, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x22, 0x65, 0x0a, 0x23, 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x53, 0x65, - 0x72, 0x76, 0x69, 0x63, 0x65, 0x47, 0x65, 0x74, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, - 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x3e, 0x0a, 0x08, 0x6d, 0x65, 0x74, 0x61, - 0x64, 0x61, 0x74, 0x61, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x63, 0x31, 0x2e, - 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x2e, 0x76, 0x32, 0x2e, 0x43, 0x6f, 0x6e, - 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x52, 0x08, - 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x22, 0x21, 0x0a, 0x1f, 0x43, 0x6f, 0x6e, 0x6e, - 0x65, 0x63, 0x74, 0x6f, 0x72, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x56, 0x61, 0x6c, 0x69, - 0x64, 0x61, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0x5a, 0x0a, 0x20, 0x43, - 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x56, - 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, - 0x36, 0x0a, 0x0b, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x01, - 0x20, 0x03, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, - 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x41, 0x6e, 0x79, 0x52, 0x0b, 0x61, 0x6e, 0x6e, 0x6f, - 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x22, 0xa5, 0x0b, 0x0a, 0x1e, 0x43, 0x6f, 0x6e, 0x6e, - 0x65, 0x63, 0x74, 0x6f, 0x72, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x43, 0x72, 0x65, 0x61, - 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x12, 0x5a, 0x0a, 0x09, 0x66, 0x69, - 0x65, 0x6c, 0x64, 0x5f, 0x6d, 0x61, 0x70, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x3d, 0x2e, - 0x63, 0x31, 0x2e, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x2e, 0x76, 0x32, 0x2e, - 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, - 0x43, 0x72, 0x65, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x2e, 0x46, - 0x69, 0x65, 0x6c, 0x64, 0x4d, 0x61, 0x70, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x08, 0x66, 0x69, - 0x65, 0x6c, 0x64, 0x4d, 0x61, 0x70, 0x1a, 0x72, 0x0a, 0x0d, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x4d, - 0x61, 0x70, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x4b, 0x0a, 0x05, 0x76, 0x61, 0x6c, - 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x35, 0x2e, 0x63, 0x31, 0x2e, 0x63, 0x6f, - 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x2e, 0x76, 0x32, 0x2e, 0x43, 0x6f, 0x6e, 0x6e, 0x65, - 0x63, 0x74, 0x6f, 0x72, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x43, 0x72, 0x65, 0x61, 0x74, - 0x69, 0x6f, 0x6e, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x2e, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x52, - 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x1a, 0xa8, 0x05, 0x0a, 0x05, 0x46, - 0x69, 0x65, 0x6c, 0x64, 0x12, 0x21, 0x0a, 0x0c, 0x64, 0x69, 0x73, 0x70, 0x6c, 0x61, 0x79, 0x5f, - 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x69, 0x73, 0x70, - 0x6c, 0x61, 0x79, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x72, 0x65, 0x71, 0x75, 0x69, - 0x72, 0x65, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x08, 0x72, 0x65, 0x71, 0x75, 0x69, - 0x72, 0x65, 0x64, 0x12, 0x20, 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, - 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, - 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x20, 0x0a, 0x0b, 0x70, 0x6c, 0x61, 0x63, 0x65, 0x68, 0x6f, - 0x6c, 0x64, 0x65, 0x72, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x70, 0x6c, 0x61, 0x63, - 0x65, 0x68, 0x6f, 0x6c, 0x64, 0x65, 0x72, 0x12, 0x14, 0x0a, 0x05, 0x6f, 0x72, 0x64, 0x65, 0x72, - 0x18, 0x05, 0x20, 0x01, 0x28, 0x05, 0x52, 0x05, 0x6f, 0x72, 0x64, 0x65, 0x72, 0x12, 0x1e, 0x0a, - 0x0a, 0x64, 0x65, 0x70, 0x72, 0x65, 0x63, 0x61, 0x74, 0x65, 0x64, 0x18, 0x06, 0x20, 0x01, 0x28, - 0x08, 0x52, 0x0a, 0x64, 0x65, 0x70, 0x72, 0x65, 0x63, 0x61, 0x74, 0x65, 0x64, 0x12, 0x60, 0x0a, - 0x0c, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x5f, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x18, 0x64, 0x20, - 0x01, 0x28, 0x0b, 0x32, 0x3b, 0x2e, 0x63, 0x31, 0x2e, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, - 0x6f, 0x72, 0x2e, 0x76, 0x32, 0x2e, 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x41, - 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x43, 0x72, 0x65, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x63, - 0x68, 0x65, 0x6d, 0x61, 0x2e, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x46, 0x69, 0x65, 0x6c, 0x64, - 0x48, 0x00, 0x52, 0x0b, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x12, - 0x5a, 0x0a, 0x0a, 0x62, 0x6f, 0x6f, 0x6c, 0x5f, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x18, 0x65, 0x20, - 0x01, 0x28, 0x0b, 0x32, 0x39, 0x2e, 0x63, 0x31, 0x2e, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, - 0x6f, 0x72, 0x2e, 0x76, 0x32, 0x2e, 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x41, - 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x43, 0x72, 0x65, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x63, - 0x68, 0x65, 0x6d, 0x61, 0x2e, 0x42, 0x6f, 0x6f, 0x6c, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x48, 0x00, - 0x52, 0x09, 0x62, 0x6f, 0x6f, 0x6c, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x12, 0x6d, 0x0a, 0x11, 0x73, - 0x74, 0x72, 0x69, 0x6e, 0x67, 0x5f, 0x6c, 0x69, 0x73, 0x74, 0x5f, 0x66, 0x69, 0x65, 0x6c, 0x64, - 0x18, 0x66, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x3f, 0x2e, 0x63, 0x31, 0x2e, 0x63, 0x6f, 0x6e, 0x6e, - 0x65, 0x63, 0x74, 0x6f, 0x72, 0x2e, 0x76, 0x32, 0x2e, 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, - 0x6f, 0x72, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x43, 0x72, 0x65, 0x61, 0x74, 0x69, 0x6f, - 0x6e, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x2e, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x4c, 0x69, - 0x73, 0x74, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x48, 0x00, 0x52, 0x0f, 0x73, 0x74, 0x72, 0x69, 0x6e, - 0x67, 0x4c, 0x69, 0x73, 0x74, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x12, 0x57, 0x0a, 0x09, 0x69, 0x6e, - 0x74, 0x5f, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x18, 0x67, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x38, 0x2e, - 0x63, 0x31, 0x2e, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x2e, 0x76, 0x32, 0x2e, - 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, - 0x43, 0x72, 0x65, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x2e, 0x49, - 0x6e, 0x74, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x48, 0x00, 0x52, 0x08, 0x69, 0x6e, 0x74, 0x46, 0x69, - 0x65, 0x6c, 0x64, 0x12, 0x57, 0x0a, 0x09, 0x6d, 0x61, 0x70, 0x5f, 0x66, 0x69, 0x65, 0x6c, 0x64, - 0x18, 0x68, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x38, 0x2e, 0x63, 0x31, 0x2e, 0x63, 0x6f, 0x6e, 0x6e, - 0x65, 0x63, 0x74, 0x6f, 0x72, 0x2e, 0x76, 0x32, 0x2e, 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, - 0x6f, 0x72, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x43, 0x72, 0x65, 0x61, 0x74, 0x69, 0x6f, - 0x6e, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x2e, 0x4d, 0x61, 0x70, 0x46, 0x69, 0x65, 0x6c, 0x64, - 0x48, 0x00, 0x52, 0x08, 0x6d, 0x61, 0x70, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x42, 0x07, 0x0a, 0x05, - 0x66, 0x69, 0x65, 0x6c, 0x64, 0x1a, 0x49, 0x0a, 0x0b, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x46, - 0x69, 0x65, 0x6c, 0x64, 0x12, 0x28, 0x0a, 0x0d, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x5f, - 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x0c, 0x64, - 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x88, 0x01, 0x01, 0x42, 0x10, - 0x0a, 0x0e, 0x5f, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, - 0x1a, 0x47, 0x0a, 0x09, 0x42, 0x6f, 0x6f, 0x6c, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x12, 0x28, 0x0a, - 0x0d, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x08, 0x48, 0x00, 0x52, 0x0c, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x56, - 0x61, 0x6c, 0x75, 0x65, 0x88, 0x01, 0x01, 0x42, 0x10, 0x0a, 0x0e, 0x5f, 0x64, 0x65, 0x66, 0x61, - 0x75, 0x6c, 0x74, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x1a, 0x36, 0x0a, 0x0f, 0x53, 0x74, 0x72, - 0x69, 0x6e, 0x67, 0x4c, 0x69, 0x73, 0x74, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x12, 0x23, 0x0a, 0x0d, - 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x01, 0x20, - 0x03, 0x28, 0x09, 0x52, 0x0c, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x56, 0x61, 0x6c, 0x75, - 0x65, 0x1a, 0x46, 0x0a, 0x08, 0x49, 0x6e, 0x74, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x12, 0x28, 0x0a, - 0x0d, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x05, 0x48, 0x00, 0x52, 0x0c, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x56, - 0x61, 0x6c, 0x75, 0x65, 0x88, 0x01, 0x01, 0x42, 0x10, 0x0a, 0x0e, 0x5f, 0x64, 0x65, 0x66, 0x61, - 0x75, 0x6c, 0x74, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x1a, 0xf3, 0x01, 0x0a, 0x08, 0x4d, 0x61, - 0x70, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x12, 0x6f, 0x0a, 0x0d, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, - 0x74, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x4a, 0x2e, - 0x63, 0x31, 0x2e, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x2e, 0x76, 0x32, 0x2e, - 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, - 0x43, 0x72, 0x65, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x2e, 0x4d, - 0x61, 0x70, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x2e, 0x44, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x56, - 0x61, 0x6c, 0x75, 0x65, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x0c, 0x64, 0x65, 0x66, 0x61, 0x75, - 0x6c, 0x74, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x1a, 0x76, 0x0a, 0x11, 0x44, 0x65, 0x66, 0x61, 0x75, - 0x6c, 0x74, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, - 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x4b, - 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x35, 0x2e, - 0x63, 0x31, 0x2e, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x2e, 0x76, 0x32, 0x2e, - 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, - 0x43, 0x72, 0x65, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x2e, 0x46, - 0x69, 0x65, 0x6c, 0x64, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x2a, - 0x86, 0x03, 0x0a, 0x0a, 0x43, 0x61, 0x70, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x12, 0x1a, - 0x0a, 0x16, 0x43, 0x41, 0x50, 0x41, 0x42, 0x49, 0x4c, 0x49, 0x54, 0x59, 0x5f, 0x55, 0x4e, 0x53, - 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x18, 0x0a, 0x14, 0x43, 0x41, - 0x50, 0x41, 0x42, 0x49, 0x4c, 0x49, 0x54, 0x59, 0x5f, 0x50, 0x52, 0x4f, 0x56, 0x49, 0x53, 0x49, - 0x4f, 0x4e, 0x10, 0x01, 0x12, 0x13, 0x0a, 0x0f, 0x43, 0x41, 0x50, 0x41, 0x42, 0x49, 0x4c, 0x49, - 0x54, 0x59, 0x5f, 0x53, 0x59, 0x4e, 0x43, 0x10, 0x02, 0x12, 0x19, 0x0a, 0x15, 0x43, 0x41, 0x50, - 0x41, 0x42, 0x49, 0x4c, 0x49, 0x54, 0x59, 0x5f, 0x45, 0x56, 0x45, 0x4e, 0x54, 0x5f, 0x46, 0x45, - 0x45, 0x44, 0x10, 0x03, 0x12, 0x18, 0x0a, 0x14, 0x43, 0x41, 0x50, 0x41, 0x42, 0x49, 0x4c, 0x49, - 0x54, 0x59, 0x5f, 0x54, 0x49, 0x43, 0x4b, 0x45, 0x54, 0x49, 0x4e, 0x47, 0x10, 0x04, 0x12, 0x23, - 0x0a, 0x1f, 0x43, 0x41, 0x50, 0x41, 0x42, 0x49, 0x4c, 0x49, 0x54, 0x59, 0x5f, 0x41, 0x43, 0x43, - 0x4f, 0x55, 0x4e, 0x54, 0x5f, 0x50, 0x52, 0x4f, 0x56, 0x49, 0x53, 0x49, 0x4f, 0x4e, 0x49, 0x4e, - 0x47, 0x10, 0x05, 0x12, 0x22, 0x0a, 0x1e, 0x43, 0x41, 0x50, 0x41, 0x42, 0x49, 0x4c, 0x49, 0x54, - 0x59, 0x5f, 0x43, 0x52, 0x45, 0x44, 0x45, 0x4e, 0x54, 0x49, 0x41, 0x4c, 0x5f, 0x52, 0x4f, 0x54, - 0x41, 0x54, 0x49, 0x4f, 0x4e, 0x10, 0x06, 0x12, 0x1e, 0x0a, 0x1a, 0x43, 0x41, 0x50, 0x41, 0x42, - 0x49, 0x4c, 0x49, 0x54, 0x59, 0x5f, 0x52, 0x45, 0x53, 0x4f, 0x55, 0x52, 0x43, 0x45, 0x5f, 0x43, - 0x52, 0x45, 0x41, 0x54, 0x45, 0x10, 0x07, 0x12, 0x1e, 0x0a, 0x1a, 0x43, 0x41, 0x50, 0x41, 0x42, - 0x49, 0x4c, 0x49, 0x54, 0x59, 0x5f, 0x52, 0x45, 0x53, 0x4f, 0x55, 0x52, 0x43, 0x45, 0x5f, 0x44, - 0x45, 0x4c, 0x45, 0x54, 0x45, 0x10, 0x08, 0x12, 0x1b, 0x0a, 0x17, 0x43, 0x41, 0x50, 0x41, 0x42, - 0x49, 0x4c, 0x49, 0x54, 0x59, 0x5f, 0x53, 0x59, 0x4e, 0x43, 0x5f, 0x53, 0x45, 0x43, 0x52, 0x45, - 0x54, 0x53, 0x10, 0x09, 0x12, 0x16, 0x0a, 0x12, 0x43, 0x41, 0x50, 0x41, 0x42, 0x49, 0x4c, 0x49, - 0x54, 0x59, 0x5f, 0x41, 0x43, 0x54, 0x49, 0x4f, 0x4e, 0x53, 0x10, 0x0a, 0x12, 0x1c, 0x0a, 0x18, - 0x43, 0x41, 0x50, 0x41, 0x42, 0x49, 0x4c, 0x49, 0x54, 0x59, 0x5f, 0x54, 0x41, 0x52, 0x47, 0x45, - 0x54, 0x45, 0x44, 0x5f, 0x53, 0x59, 0x4e, 0x43, 0x10, 0x0b, 0x12, 0x1c, 0x0a, 0x18, 0x43, 0x41, - 0x50, 0x41, 0x42, 0x49, 0x4c, 0x49, 0x54, 0x59, 0x5f, 0x45, 0x56, 0x45, 0x4e, 0x54, 0x5f, 0x46, - 0x45, 0x45, 0x44, 0x5f, 0x56, 0x32, 0x10, 0x0c, 0x2a, 0xae, 0x02, 0x0a, 0x20, 0x43, 0x61, 0x70, - 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x43, 0x72, 0x65, - 0x64, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x33, 0x0a, - 0x2f, 0x43, 0x41, 0x50, 0x41, 0x42, 0x49, 0x4c, 0x49, 0x54, 0x59, 0x5f, 0x44, 0x45, 0x54, 0x41, - 0x49, 0x4c, 0x5f, 0x43, 0x52, 0x45, 0x44, 0x45, 0x4e, 0x54, 0x49, 0x41, 0x4c, 0x5f, 0x4f, 0x50, - 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, - 0x10, 0x00, 0x12, 0x33, 0x0a, 0x2f, 0x43, 0x41, 0x50, 0x41, 0x42, 0x49, 0x4c, 0x49, 0x54, 0x59, - 0x5f, 0x44, 0x45, 0x54, 0x41, 0x49, 0x4c, 0x5f, 0x43, 0x52, 0x45, 0x44, 0x45, 0x4e, 0x54, 0x49, - 0x41, 0x4c, 0x5f, 0x4f, 0x50, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x4e, 0x4f, 0x5f, 0x50, 0x41, 0x53, - 0x53, 0x57, 0x4f, 0x52, 0x44, 0x10, 0x01, 0x12, 0x37, 0x0a, 0x33, 0x43, 0x41, 0x50, 0x41, 0x42, - 0x49, 0x4c, 0x49, 0x54, 0x59, 0x5f, 0x44, 0x45, 0x54, 0x41, 0x49, 0x4c, 0x5f, 0x43, 0x52, 0x45, - 0x44, 0x45, 0x4e, 0x54, 0x49, 0x41, 0x4c, 0x5f, 0x4f, 0x50, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x52, - 0x41, 0x4e, 0x44, 0x4f, 0x4d, 0x5f, 0x50, 0x41, 0x53, 0x53, 0x57, 0x4f, 0x52, 0x44, 0x10, 0x02, - 0x12, 0x2b, 0x0a, 0x27, 0x43, 0x41, 0x50, 0x41, 0x42, 0x49, 0x4c, 0x49, 0x54, 0x59, 0x5f, 0x44, - 0x45, 0x54, 0x41, 0x49, 0x4c, 0x5f, 0x43, 0x52, 0x45, 0x44, 0x45, 0x4e, 0x54, 0x49, 0x41, 0x4c, - 0x5f, 0x4f, 0x50, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x53, 0x53, 0x4f, 0x10, 0x03, 0x12, 0x3a, 0x0a, - 0x36, 0x43, 0x41, 0x50, 0x41, 0x42, 0x49, 0x4c, 0x49, 0x54, 0x59, 0x5f, 0x44, 0x45, 0x54, 0x41, - 0x49, 0x4c, 0x5f, 0x43, 0x52, 0x45, 0x44, 0x45, 0x4e, 0x54, 0x49, 0x41, 0x4c, 0x5f, 0x4f, 0x50, - 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x45, 0x4e, 0x43, 0x52, 0x59, 0x50, 0x54, 0x45, 0x44, 0x5f, 0x50, - 0x41, 0x53, 0x53, 0x57, 0x4f, 0x52, 0x44, 0x10, 0x04, 0x32, 0xeb, 0x02, 0x0a, 0x10, 0x43, 0x6f, - 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x78, - 0x0a, 0x0b, 0x47, 0x65, 0x74, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0x33, 0x2e, - 0x63, 0x31, 0x2e, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x2e, 0x76, 0x32, 0x2e, - 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, - 0x47, 0x65, 0x74, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x52, 0x65, 0x71, 0x75, 0x65, - 0x73, 0x74, 0x1a, 0x34, 0x2e, 0x63, 0x31, 0x2e, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, - 0x72, 0x2e, 0x76, 0x32, 0x2e, 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x53, 0x65, - 0x72, 0x76, 0x69, 0x63, 0x65, 0x47, 0x65, 0x74, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, - 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x6f, 0x0a, 0x08, 0x56, 0x61, 0x6c, 0x69, - 0x64, 0x61, 0x74, 0x65, 0x12, 0x30, 0x2e, 0x63, 0x31, 0x2e, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, - 0x74, 0x6f, 0x72, 0x2e, 0x76, 0x32, 0x2e, 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, - 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x52, - 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x31, 0x2e, 0x63, 0x31, 0x2e, 0x63, 0x6f, 0x6e, 0x6e, - 0x65, 0x63, 0x74, 0x6f, 0x72, 0x2e, 0x76, 0x32, 0x2e, 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, - 0x6f, 0x72, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, - 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x6c, 0x0a, 0x07, 0x43, 0x6c, 0x65, - 0x61, 0x6e, 0x75, 0x70, 0x12, 0x2f, 0x2e, 0x63, 0x31, 0x2e, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, - 0x74, 0x6f, 0x72, 0x2e, 0x76, 0x32, 0x2e, 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, - 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x43, 0x6c, 0x65, 0x61, 0x6e, 0x75, 0x70, 0x52, 0x65, - 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x30, 0x2e, 0x63, 0x31, 0x2e, 0x63, 0x6f, 0x6e, 0x6e, 0x65, - 0x63, 0x74, 0x6f, 0x72, 0x2e, 0x76, 0x32, 0x2e, 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, - 0x72, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x43, 0x6c, 0x65, 0x61, 0x6e, 0x75, 0x70, 0x52, - 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x42, 0x36, 0x5a, 0x34, 0x67, 0x69, 0x74, 0x68, 0x75, - 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x63, 0x6f, 0x6e, 0x64, 0x75, 0x63, 0x74, 0x6f, 0x72, 0x6f, - 0x6e, 0x65, 0x2f, 0x62, 0x61, 0x74, 0x6f, 0x6e, 0x2d, 0x73, 0x64, 0x6b, 0x2f, 0x70, 0x62, 0x2f, - 0x63, 0x31, 0x2f, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x2f, 0x76, 0x32, 0x62, - 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, -}) +type ConnectorAccountCreationSchema_MapField_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. -var ( - file_c1_connector_v2_connector_proto_rawDescOnce sync.Once - file_c1_connector_v2_connector_proto_rawDescData []byte -) + DefaultValue map[string]*ConnectorAccountCreationSchema_Field +} -func file_c1_connector_v2_connector_proto_rawDescGZIP() []byte { - file_c1_connector_v2_connector_proto_rawDescOnce.Do(func() { - file_c1_connector_v2_connector_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_c1_connector_v2_connector_proto_rawDesc), len(file_c1_connector_v2_connector_proto_rawDesc))) - }) - return file_c1_connector_v2_connector_proto_rawDescData +func (b0 ConnectorAccountCreationSchema_MapField_builder) Build() *ConnectorAccountCreationSchema_MapField { + m0 := &ConnectorAccountCreationSchema_MapField{} + b, x := &b0, m0 + _, _ = b, x + x.DefaultValue = b.DefaultValue + return m0 } +var File_c1_connector_v2_connector_proto protoreflect.FileDescriptor + +const file_c1_connector_v2_connector_proto_rawDesc = "" + + "\n" + + "\x1fc1/connector/v2/connector.proto\x12\x0fc1.connector.v2\x1a\x1bc1/connector/v2/asset.proto\x1a\x1ec1/connector/v2/resource.proto\x1a\x19google/protobuf/any.proto\x1a\x1cgoogle/protobuf/struct.proto\x1a\x17validate/validate.proto\"\x8d\x01\n" + + "\x1eConnectorServiceCleanupRequest\x126\n" + + "\vannotations\x18\x01 \x03(\v2\x14.google.protobuf.AnyR\vannotations\x123\n" + + "\x0eactive_sync_id\x18\x02 \x01(\tB\r\xfaB\n" + + "r\b \x01(\x80\b\xd0\x01\x01R\factiveSyncId\"Y\n" + + "\x1fConnectorServiceCleanupResponse\x126\n" + + "\vannotations\x18\x01 \x03(\v2\x14.google.protobuf.AnyR\vannotations\"\xa8\x04\n" + + "\x11ConnectorMetadata\x12-\n" + + "\fdisplay_name\x18\x01 \x01(\tB\n" + + "\xfaB\ar\x05 \x01(\x80\bR\vdisplayName\x125\n" + + "\bhelp_url\x18\x02 \x01(\tB\x1a\xfaB\x17r\x15 \x01(\x80\b:\bhttps://\xd0\x01\x01\x88\x01\x01R\ahelpUrl\x12-\n" + + "\x04icon\x18\x03 \x01(\v2\x19.c1.connector.v2.AssetRefR\x04icon\x12-\n" + + "\x04logo\x18\x04 \x01(\v2\x19.c1.connector.v2.AssetRefR\x04logo\x121\n" + + "\aprofile\x18\x05 \x01(\v2\x17.google.protobuf.StructR\aprofile\x126\n" + + "\vannotations\x18\x06 \x03(\v2\x14.google.protobuf.AnyR\vannotations\x12/\n" + + "\vdescription\x18\a \x01(\tB\r\xfaB\n" + + "r\b \x01(\x80 \xd0\x01\x01R\vdescription\x12J\n" + + "\fcapabilities\x18\b \x01(\v2&.c1.connector.v2.ConnectorCapabilitiesR\fcapabilities\x12g\n" + + "\x17account_creation_schema\x18\t \x01(\v2/.c1.connector.v2.ConnectorAccountCreationSchemaR\x15accountCreationSchema\"\x8e\x02\n" + + "\x11CredentialDetails\x12}\n" + + "\x1fcapability_account_provisioning\x18\x01 \x01(\v25.c1.connector.v2.CredentialDetailsAccountProvisioningR\x1dcapabilityAccountProvisioning\x12z\n" + + "\x1ecapability_credential_rotation\x18\x02 \x01(\v24.c1.connector.v2.CredentialDetailsCredentialRotationR\x1ccapabilityCredentialRotation\"\x8e\x02\n" + + "$CredentialDetailsAccountProvisioning\x12s\n" + + "\x1csupported_credential_options\x18\x01 \x03(\x0e21.c1.connector.v2.CapabilityDetailCredentialOptionR\x1asupportedCredentialOptions\x12q\n" + + "\x1bpreferred_credential_option\x18\x02 \x01(\x0e21.c1.connector.v2.CapabilityDetailCredentialOptionR\x19preferredCredentialOption\"\x8d\x02\n" + + "#CredentialDetailsCredentialRotation\x12s\n" + + "\x1csupported_credential_options\x18\x01 \x03(\x0e21.c1.connector.v2.CapabilityDetailCredentialOptionR\x1asupportedCredentialOptions\x12q\n" + + "\x1bpreferred_credential_option\x18\x02 \x01(\x0e21.c1.connector.v2.CapabilityDetailCredentialOptionR\x19preferredCredentialOption\"\xa5\x02\n" + + "\x15ConnectorCapabilities\x12e\n" + + "\x1aresource_type_capabilities\x18\x01 \x03(\v2'.c1.connector.v2.ResourceTypeCapabilityR\x18resourceTypeCapabilities\x12R\n" + + "\x16connector_capabilities\x18\x02 \x03(\x0e2\x1b.c1.connector.v2.CapabilityR\x15connectorCapabilities\x12Q\n" + + "\x12credential_details\x18\x03 \x01(\v2\".c1.connector.v2.CredentialDetailsR\x11credentialDetails\"6\n" + + "\x14CapabilityPermission\x12\x1e\n" + + "\n" + + "permission\x18\x01 \x01(\tR\n" + + "permission\"`\n" + + "\x15CapabilityPermissions\x12G\n" + + "\vpermissions\x18\x01 \x03(\v2%.c1.connector.v2.CapabilityPermissionR\vpermissions\"\xe7\x01\n" + + "\x16ResourceTypeCapability\x12B\n" + + "\rresource_type\x18\x01 \x01(\v2\x1d.c1.connector.v2.ResourceTypeR\fresourceType\x12?\n" + + "\fcapabilities\x18\x02 \x03(\x0e2\x1b.c1.connector.v2.CapabilityR\fcapabilities\x12H\n" + + "\vpermissions\x18\x03 \x01(\v2&.c1.connector.v2.CapabilityPermissionsR\vpermissions\"$\n" + + "\"ConnectorServiceGetMetadataRequest\"e\n" + + "#ConnectorServiceGetMetadataResponse\x12>\n" + + "\bmetadata\x18\x01 \x01(\v2\".c1.connector.v2.ConnectorMetadataR\bmetadata\"!\n" + + "\x1fConnectorServiceValidateRequest\"{\n" + + " ConnectorServiceValidateResponse\x126\n" + + "\vannotations\x18\x01 \x03(\v2\x14.google.protobuf.AnyR\vannotations\x12\x1f\n" + + "\vsdk_version\x18\x02 \x01(\tR\n" + + "sdkVersion\"\xa5\v\n" + + "\x1eConnectorAccountCreationSchema\x12Z\n" + + "\tfield_map\x18\x01 \x03(\v2=.c1.connector.v2.ConnectorAccountCreationSchema.FieldMapEntryR\bfieldMap\x1ar\n" + + "\rFieldMapEntry\x12\x10\n" + + "\x03key\x18\x01 \x01(\tR\x03key\x12K\n" + + "\x05value\x18\x02 \x01(\v25.c1.connector.v2.ConnectorAccountCreationSchema.FieldR\x05value:\x028\x01\x1a\xa8\x05\n" + + "\x05Field\x12!\n" + + "\fdisplay_name\x18\x01 \x01(\tR\vdisplayName\x12\x1a\n" + + "\brequired\x18\x02 \x01(\bR\brequired\x12 \n" + + "\vdescription\x18\x03 \x01(\tR\vdescription\x12 \n" + + "\vplaceholder\x18\x04 \x01(\tR\vplaceholder\x12\x14\n" + + "\x05order\x18\x05 \x01(\x05R\x05order\x12\x1e\n" + + "\n" + + "deprecated\x18\x06 \x01(\bR\n" + + "deprecated\x12`\n" + + "\fstring_field\x18d \x01(\v2;.c1.connector.v2.ConnectorAccountCreationSchema.StringFieldH\x00R\vstringField\x12Z\n" + + "\n" + + "bool_field\x18e \x01(\v29.c1.connector.v2.ConnectorAccountCreationSchema.BoolFieldH\x00R\tboolField\x12m\n" + + "\x11string_list_field\x18f \x01(\v2?.c1.connector.v2.ConnectorAccountCreationSchema.StringListFieldH\x00R\x0fstringListField\x12W\n" + + "\tint_field\x18g \x01(\v28.c1.connector.v2.ConnectorAccountCreationSchema.IntFieldH\x00R\bintField\x12W\n" + + "\tmap_field\x18h \x01(\v28.c1.connector.v2.ConnectorAccountCreationSchema.MapFieldH\x00R\bmapFieldB\a\n" + + "\x05field\x1aI\n" + + "\vStringField\x12(\n" + + "\rdefault_value\x18\x01 \x01(\tH\x00R\fdefaultValue\x88\x01\x01B\x10\n" + + "\x0e_default_value\x1aG\n" + + "\tBoolField\x12(\n" + + "\rdefault_value\x18\x01 \x01(\bH\x00R\fdefaultValue\x88\x01\x01B\x10\n" + + "\x0e_default_value\x1a6\n" + + "\x0fStringListField\x12#\n" + + "\rdefault_value\x18\x01 \x03(\tR\fdefaultValue\x1aF\n" + + "\bIntField\x12(\n" + + "\rdefault_value\x18\x01 \x01(\x05H\x00R\fdefaultValue\x88\x01\x01B\x10\n" + + "\x0e_default_value\x1a\xf3\x01\n" + + "\bMapField\x12o\n" + + "\rdefault_value\x18\x01 \x03(\v2J.c1.connector.v2.ConnectorAccountCreationSchema.MapField.DefaultValueEntryR\fdefaultValue\x1av\n" + + "\x11DefaultValueEntry\x12\x10\n" + + "\x03key\x18\x01 \x01(\tR\x03key\x12K\n" + + "\x05value\x18\x02 \x01(\v25.c1.connector.v2.ConnectorAccountCreationSchema.FieldR\x05value:\x028\x01*\x86\x03\n" + + "\n" + + "Capability\x12\x1a\n" + + "\x16CAPABILITY_UNSPECIFIED\x10\x00\x12\x18\n" + + "\x14CAPABILITY_PROVISION\x10\x01\x12\x13\n" + + "\x0fCAPABILITY_SYNC\x10\x02\x12\x19\n" + + "\x15CAPABILITY_EVENT_FEED\x10\x03\x12\x18\n" + + "\x14CAPABILITY_TICKETING\x10\x04\x12#\n" + + "\x1fCAPABILITY_ACCOUNT_PROVISIONING\x10\x05\x12\"\n" + + "\x1eCAPABILITY_CREDENTIAL_ROTATION\x10\x06\x12\x1e\n" + + "\x1aCAPABILITY_RESOURCE_CREATE\x10\a\x12\x1e\n" + + "\x1aCAPABILITY_RESOURCE_DELETE\x10\b\x12\x1b\n" + + "\x17CAPABILITY_SYNC_SECRETS\x10\t\x12\x16\n" + + "\x12CAPABILITY_ACTIONS\x10\n" + + "\x12\x1c\n" + + "\x18CAPABILITY_TARGETED_SYNC\x10\v\x12\x1c\n" + + "\x18CAPABILITY_EVENT_FEED_V2\x10\f*\xae\x02\n" + + " CapabilityDetailCredentialOption\x123\n" + + "/CAPABILITY_DETAIL_CREDENTIAL_OPTION_UNSPECIFIED\x10\x00\x123\n" + + "/CAPABILITY_DETAIL_CREDENTIAL_OPTION_NO_PASSWORD\x10\x01\x127\n" + + "3CAPABILITY_DETAIL_CREDENTIAL_OPTION_RANDOM_PASSWORD\x10\x02\x12+\n" + + "'CAPABILITY_DETAIL_CREDENTIAL_OPTION_SSO\x10\x03\x12:\n" + + "6CAPABILITY_DETAIL_CREDENTIAL_OPTION_ENCRYPTED_PASSWORD\x10\x042\xeb\x02\n" + + "\x10ConnectorService\x12x\n" + + "\vGetMetadata\x123.c1.connector.v2.ConnectorServiceGetMetadataRequest\x1a4.c1.connector.v2.ConnectorServiceGetMetadataResponse\x12o\n" + + "\bValidate\x120.c1.connector.v2.ConnectorServiceValidateRequest\x1a1.c1.connector.v2.ConnectorServiceValidateResponse\x12l\n" + + "\aCleanup\x12/.c1.connector.v2.ConnectorServiceCleanupRequest\x1a0.c1.connector.v2.ConnectorServiceCleanupResponseB6Z4github.com/conductorone/baton-sdk/pb/c1/connector/v2b\x06proto3" + var file_c1_connector_v2_connector_proto_enumTypes = make([]protoimpl.EnumInfo, 2) -var file_c1_connector_v2_connector_proto_msgTypes = make([]protoimpl.MessageInfo, 21) +var file_c1_connector_v2_connector_proto_msgTypes = make([]protoimpl.MessageInfo, 23) var file_c1_connector_v2_connector_proto_goTypes = []any{ (Capability)(0), // 0: c1.connector.v2.Capability (CapabilityDetailCredentialOption)(0), // 1: c1.connector.v2.CapabilityDetailCredentialOption @@ -1576,67 +2191,71 @@ var file_c1_connector_v2_connector_proto_goTypes = []any{ (*CredentialDetailsAccountProvisioning)(nil), // 6: c1.connector.v2.CredentialDetailsAccountProvisioning (*CredentialDetailsCredentialRotation)(nil), // 7: c1.connector.v2.CredentialDetailsCredentialRotation (*ConnectorCapabilities)(nil), // 8: c1.connector.v2.ConnectorCapabilities - (*ResourceTypeCapability)(nil), // 9: c1.connector.v2.ResourceTypeCapability - (*ConnectorServiceGetMetadataRequest)(nil), // 10: c1.connector.v2.ConnectorServiceGetMetadataRequest - (*ConnectorServiceGetMetadataResponse)(nil), // 11: c1.connector.v2.ConnectorServiceGetMetadataResponse - (*ConnectorServiceValidateRequest)(nil), // 12: c1.connector.v2.ConnectorServiceValidateRequest - (*ConnectorServiceValidateResponse)(nil), // 13: c1.connector.v2.ConnectorServiceValidateResponse - (*ConnectorAccountCreationSchema)(nil), // 14: c1.connector.v2.ConnectorAccountCreationSchema - nil, // 15: c1.connector.v2.ConnectorAccountCreationSchema.FieldMapEntry - (*ConnectorAccountCreationSchema_Field)(nil), // 16: c1.connector.v2.ConnectorAccountCreationSchema.Field - (*ConnectorAccountCreationSchema_StringField)(nil), // 17: c1.connector.v2.ConnectorAccountCreationSchema.StringField - (*ConnectorAccountCreationSchema_BoolField)(nil), // 18: c1.connector.v2.ConnectorAccountCreationSchema.BoolField - (*ConnectorAccountCreationSchema_StringListField)(nil), // 19: c1.connector.v2.ConnectorAccountCreationSchema.StringListField - (*ConnectorAccountCreationSchema_IntField)(nil), // 20: c1.connector.v2.ConnectorAccountCreationSchema.IntField - (*ConnectorAccountCreationSchema_MapField)(nil), // 21: c1.connector.v2.ConnectorAccountCreationSchema.MapField - nil, // 22: c1.connector.v2.ConnectorAccountCreationSchema.MapField.DefaultValueEntry - (*anypb.Any)(nil), // 23: google.protobuf.Any - (*AssetRef)(nil), // 24: c1.connector.v2.AssetRef - (*structpb.Struct)(nil), // 25: google.protobuf.Struct - (*ResourceType)(nil), // 26: c1.connector.v2.ResourceType + (*CapabilityPermission)(nil), // 9: c1.connector.v2.CapabilityPermission + (*CapabilityPermissions)(nil), // 10: c1.connector.v2.CapabilityPermissions + (*ResourceTypeCapability)(nil), // 11: c1.connector.v2.ResourceTypeCapability + (*ConnectorServiceGetMetadataRequest)(nil), // 12: c1.connector.v2.ConnectorServiceGetMetadataRequest + (*ConnectorServiceGetMetadataResponse)(nil), // 13: c1.connector.v2.ConnectorServiceGetMetadataResponse + (*ConnectorServiceValidateRequest)(nil), // 14: c1.connector.v2.ConnectorServiceValidateRequest + (*ConnectorServiceValidateResponse)(nil), // 15: c1.connector.v2.ConnectorServiceValidateResponse + (*ConnectorAccountCreationSchema)(nil), // 16: c1.connector.v2.ConnectorAccountCreationSchema + nil, // 17: c1.connector.v2.ConnectorAccountCreationSchema.FieldMapEntry + (*ConnectorAccountCreationSchema_Field)(nil), // 18: c1.connector.v2.ConnectorAccountCreationSchema.Field + (*ConnectorAccountCreationSchema_StringField)(nil), // 19: c1.connector.v2.ConnectorAccountCreationSchema.StringField + (*ConnectorAccountCreationSchema_BoolField)(nil), // 20: c1.connector.v2.ConnectorAccountCreationSchema.BoolField + (*ConnectorAccountCreationSchema_StringListField)(nil), // 21: c1.connector.v2.ConnectorAccountCreationSchema.StringListField + (*ConnectorAccountCreationSchema_IntField)(nil), // 22: c1.connector.v2.ConnectorAccountCreationSchema.IntField + (*ConnectorAccountCreationSchema_MapField)(nil), // 23: c1.connector.v2.ConnectorAccountCreationSchema.MapField + nil, // 24: c1.connector.v2.ConnectorAccountCreationSchema.MapField.DefaultValueEntry + (*anypb.Any)(nil), // 25: google.protobuf.Any + (*AssetRef)(nil), // 26: c1.connector.v2.AssetRef + (*structpb.Struct)(nil), // 27: google.protobuf.Struct + (*ResourceType)(nil), // 28: c1.connector.v2.ResourceType } var file_c1_connector_v2_connector_proto_depIdxs = []int32{ - 23, // 0: c1.connector.v2.ConnectorServiceCleanupRequest.annotations:type_name -> google.protobuf.Any - 23, // 1: c1.connector.v2.ConnectorServiceCleanupResponse.annotations:type_name -> google.protobuf.Any - 24, // 2: c1.connector.v2.ConnectorMetadata.icon:type_name -> c1.connector.v2.AssetRef - 24, // 3: c1.connector.v2.ConnectorMetadata.logo:type_name -> c1.connector.v2.AssetRef - 25, // 4: c1.connector.v2.ConnectorMetadata.profile:type_name -> google.protobuf.Struct - 23, // 5: c1.connector.v2.ConnectorMetadata.annotations:type_name -> google.protobuf.Any + 25, // 0: c1.connector.v2.ConnectorServiceCleanupRequest.annotations:type_name -> google.protobuf.Any + 25, // 1: c1.connector.v2.ConnectorServiceCleanupResponse.annotations:type_name -> google.protobuf.Any + 26, // 2: c1.connector.v2.ConnectorMetadata.icon:type_name -> c1.connector.v2.AssetRef + 26, // 3: c1.connector.v2.ConnectorMetadata.logo:type_name -> c1.connector.v2.AssetRef + 27, // 4: c1.connector.v2.ConnectorMetadata.profile:type_name -> google.protobuf.Struct + 25, // 5: c1.connector.v2.ConnectorMetadata.annotations:type_name -> google.protobuf.Any 8, // 6: c1.connector.v2.ConnectorMetadata.capabilities:type_name -> c1.connector.v2.ConnectorCapabilities - 14, // 7: c1.connector.v2.ConnectorMetadata.account_creation_schema:type_name -> c1.connector.v2.ConnectorAccountCreationSchema + 16, // 7: c1.connector.v2.ConnectorMetadata.account_creation_schema:type_name -> c1.connector.v2.ConnectorAccountCreationSchema 6, // 8: c1.connector.v2.CredentialDetails.capability_account_provisioning:type_name -> c1.connector.v2.CredentialDetailsAccountProvisioning 7, // 9: c1.connector.v2.CredentialDetails.capability_credential_rotation:type_name -> c1.connector.v2.CredentialDetailsCredentialRotation 1, // 10: c1.connector.v2.CredentialDetailsAccountProvisioning.supported_credential_options:type_name -> c1.connector.v2.CapabilityDetailCredentialOption 1, // 11: c1.connector.v2.CredentialDetailsAccountProvisioning.preferred_credential_option:type_name -> c1.connector.v2.CapabilityDetailCredentialOption 1, // 12: c1.connector.v2.CredentialDetailsCredentialRotation.supported_credential_options:type_name -> c1.connector.v2.CapabilityDetailCredentialOption 1, // 13: c1.connector.v2.CredentialDetailsCredentialRotation.preferred_credential_option:type_name -> c1.connector.v2.CapabilityDetailCredentialOption - 9, // 14: c1.connector.v2.ConnectorCapabilities.resource_type_capabilities:type_name -> c1.connector.v2.ResourceTypeCapability + 11, // 14: c1.connector.v2.ConnectorCapabilities.resource_type_capabilities:type_name -> c1.connector.v2.ResourceTypeCapability 0, // 15: c1.connector.v2.ConnectorCapabilities.connector_capabilities:type_name -> c1.connector.v2.Capability 5, // 16: c1.connector.v2.ConnectorCapabilities.credential_details:type_name -> c1.connector.v2.CredentialDetails - 26, // 17: c1.connector.v2.ResourceTypeCapability.resource_type:type_name -> c1.connector.v2.ResourceType - 0, // 18: c1.connector.v2.ResourceTypeCapability.capabilities:type_name -> c1.connector.v2.Capability - 4, // 19: c1.connector.v2.ConnectorServiceGetMetadataResponse.metadata:type_name -> c1.connector.v2.ConnectorMetadata - 23, // 20: c1.connector.v2.ConnectorServiceValidateResponse.annotations:type_name -> google.protobuf.Any - 15, // 21: c1.connector.v2.ConnectorAccountCreationSchema.field_map:type_name -> c1.connector.v2.ConnectorAccountCreationSchema.FieldMapEntry - 16, // 22: c1.connector.v2.ConnectorAccountCreationSchema.FieldMapEntry.value:type_name -> c1.connector.v2.ConnectorAccountCreationSchema.Field - 17, // 23: c1.connector.v2.ConnectorAccountCreationSchema.Field.string_field:type_name -> c1.connector.v2.ConnectorAccountCreationSchema.StringField - 18, // 24: c1.connector.v2.ConnectorAccountCreationSchema.Field.bool_field:type_name -> c1.connector.v2.ConnectorAccountCreationSchema.BoolField - 19, // 25: c1.connector.v2.ConnectorAccountCreationSchema.Field.string_list_field:type_name -> c1.connector.v2.ConnectorAccountCreationSchema.StringListField - 20, // 26: c1.connector.v2.ConnectorAccountCreationSchema.Field.int_field:type_name -> c1.connector.v2.ConnectorAccountCreationSchema.IntField - 21, // 27: c1.connector.v2.ConnectorAccountCreationSchema.Field.map_field:type_name -> c1.connector.v2.ConnectorAccountCreationSchema.MapField - 22, // 28: c1.connector.v2.ConnectorAccountCreationSchema.MapField.default_value:type_name -> c1.connector.v2.ConnectorAccountCreationSchema.MapField.DefaultValueEntry - 16, // 29: c1.connector.v2.ConnectorAccountCreationSchema.MapField.DefaultValueEntry.value:type_name -> c1.connector.v2.ConnectorAccountCreationSchema.Field - 10, // 30: c1.connector.v2.ConnectorService.GetMetadata:input_type -> c1.connector.v2.ConnectorServiceGetMetadataRequest - 12, // 31: c1.connector.v2.ConnectorService.Validate:input_type -> c1.connector.v2.ConnectorServiceValidateRequest - 2, // 32: c1.connector.v2.ConnectorService.Cleanup:input_type -> c1.connector.v2.ConnectorServiceCleanupRequest - 11, // 33: c1.connector.v2.ConnectorService.GetMetadata:output_type -> c1.connector.v2.ConnectorServiceGetMetadataResponse - 13, // 34: c1.connector.v2.ConnectorService.Validate:output_type -> c1.connector.v2.ConnectorServiceValidateResponse - 3, // 35: c1.connector.v2.ConnectorService.Cleanup:output_type -> c1.connector.v2.ConnectorServiceCleanupResponse - 33, // [33:36] is the sub-list for method output_type - 30, // [30:33] is the sub-list for method input_type - 30, // [30:30] is the sub-list for extension type_name - 30, // [30:30] is the sub-list for extension extendee - 0, // [0:30] is the sub-list for field type_name + 9, // 17: c1.connector.v2.CapabilityPermissions.permissions:type_name -> c1.connector.v2.CapabilityPermission + 28, // 18: c1.connector.v2.ResourceTypeCapability.resource_type:type_name -> c1.connector.v2.ResourceType + 0, // 19: c1.connector.v2.ResourceTypeCapability.capabilities:type_name -> c1.connector.v2.Capability + 10, // 20: c1.connector.v2.ResourceTypeCapability.permissions:type_name -> c1.connector.v2.CapabilityPermissions + 4, // 21: c1.connector.v2.ConnectorServiceGetMetadataResponse.metadata:type_name -> c1.connector.v2.ConnectorMetadata + 25, // 22: c1.connector.v2.ConnectorServiceValidateResponse.annotations:type_name -> google.protobuf.Any + 17, // 23: c1.connector.v2.ConnectorAccountCreationSchema.field_map:type_name -> c1.connector.v2.ConnectorAccountCreationSchema.FieldMapEntry + 18, // 24: c1.connector.v2.ConnectorAccountCreationSchema.FieldMapEntry.value:type_name -> c1.connector.v2.ConnectorAccountCreationSchema.Field + 19, // 25: c1.connector.v2.ConnectorAccountCreationSchema.Field.string_field:type_name -> c1.connector.v2.ConnectorAccountCreationSchema.StringField + 20, // 26: c1.connector.v2.ConnectorAccountCreationSchema.Field.bool_field:type_name -> c1.connector.v2.ConnectorAccountCreationSchema.BoolField + 21, // 27: c1.connector.v2.ConnectorAccountCreationSchema.Field.string_list_field:type_name -> c1.connector.v2.ConnectorAccountCreationSchema.StringListField + 22, // 28: c1.connector.v2.ConnectorAccountCreationSchema.Field.int_field:type_name -> c1.connector.v2.ConnectorAccountCreationSchema.IntField + 23, // 29: c1.connector.v2.ConnectorAccountCreationSchema.Field.map_field:type_name -> c1.connector.v2.ConnectorAccountCreationSchema.MapField + 24, // 30: c1.connector.v2.ConnectorAccountCreationSchema.MapField.default_value:type_name -> c1.connector.v2.ConnectorAccountCreationSchema.MapField.DefaultValueEntry + 18, // 31: c1.connector.v2.ConnectorAccountCreationSchema.MapField.DefaultValueEntry.value:type_name -> c1.connector.v2.ConnectorAccountCreationSchema.Field + 12, // 32: c1.connector.v2.ConnectorService.GetMetadata:input_type -> c1.connector.v2.ConnectorServiceGetMetadataRequest + 14, // 33: c1.connector.v2.ConnectorService.Validate:input_type -> c1.connector.v2.ConnectorServiceValidateRequest + 2, // 34: c1.connector.v2.ConnectorService.Cleanup:input_type -> c1.connector.v2.ConnectorServiceCleanupRequest + 13, // 35: c1.connector.v2.ConnectorService.GetMetadata:output_type -> c1.connector.v2.ConnectorServiceGetMetadataResponse + 15, // 36: c1.connector.v2.ConnectorService.Validate:output_type -> c1.connector.v2.ConnectorServiceValidateResponse + 3, // 37: c1.connector.v2.ConnectorService.Cleanup:output_type -> c1.connector.v2.ConnectorServiceCleanupResponse + 35, // [35:38] is the sub-list for method output_type + 32, // [32:35] is the sub-list for method input_type + 32, // [32:32] is the sub-list for extension type_name + 32, // [32:32] is the sub-list for extension extendee + 0, // [0:32] is the sub-list for field type_name } func init() { file_c1_connector_v2_connector_proto_init() } @@ -1646,23 +2265,23 @@ func file_c1_connector_v2_connector_proto_init() { } file_c1_connector_v2_asset_proto_init() file_c1_connector_v2_resource_proto_init() - file_c1_connector_v2_connector_proto_msgTypes[14].OneofWrappers = []any{ + file_c1_connector_v2_connector_proto_msgTypes[16].OneofWrappers = []any{ (*ConnectorAccountCreationSchema_Field_StringField)(nil), (*ConnectorAccountCreationSchema_Field_BoolField)(nil), (*ConnectorAccountCreationSchema_Field_StringListField)(nil), (*ConnectorAccountCreationSchema_Field_IntField)(nil), (*ConnectorAccountCreationSchema_Field_MapField)(nil), } - file_c1_connector_v2_connector_proto_msgTypes[15].OneofWrappers = []any{} - file_c1_connector_v2_connector_proto_msgTypes[16].OneofWrappers = []any{} + file_c1_connector_v2_connector_proto_msgTypes[17].OneofWrappers = []any{} file_c1_connector_v2_connector_proto_msgTypes[18].OneofWrappers = []any{} + file_c1_connector_v2_connector_proto_msgTypes[20].OneofWrappers = []any{} type x struct{} out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), RawDescriptor: unsafe.Slice(unsafe.StringData(file_c1_connector_v2_connector_proto_rawDesc), len(file_c1_connector_v2_connector_proto_rawDesc)), NumEnums: 2, - NumMessages: 21, + NumMessages: 23, NumExtensions: 0, NumServices: 1, }, diff --git a/vendor/github.com/conductorone/baton-sdk/pb/c1/connector/v2/connector.pb.validate.go b/vendor/github.com/conductorone/baton-sdk/pb/c1/connector/v2/connector.pb.validate.go index f84beed1..b6f86d8f 100644 --- a/vendor/github.com/conductorone/baton-sdk/pb/c1/connector/v2/connector.pb.validate.go +++ b/vendor/github.com/conductorone/baton-sdk/pb/c1/connector/v2/connector.pb.validate.go @@ -91,6 +91,21 @@ func (m *ConnectorServiceCleanupRequest) validate(all bool) error { } + if m.GetActiveSyncId() != "" { + + if l := len(m.GetActiveSyncId()); l < 1 || l > 1024 { + err := ConnectorServiceCleanupRequestValidationError{ + field: "ActiveSyncId", + reason: "value length must be between 1 and 1024 bytes, inclusive", + } + if !all { + return err + } + errors = append(errors, err) + } + + } + if len(errors) > 0 { return ConnectorServiceCleanupRequestMultiError(errors) } @@ -1202,6 +1217,246 @@ var _ interface { ErrorName() string } = ConnectorCapabilitiesValidationError{} +// Validate checks the field values on CapabilityPermission with the rules +// defined in the proto definition for this message. If any rules are +// violated, the first error encountered is returned, or nil if there are no violations. +func (m *CapabilityPermission) Validate() error { + return m.validate(false) +} + +// ValidateAll checks the field values on CapabilityPermission with the rules +// defined in the proto definition for this message. If any rules are +// violated, the result is a list of violation errors wrapped in +// CapabilityPermissionMultiError, or nil if none found. +func (m *CapabilityPermission) ValidateAll() error { + return m.validate(true) +} + +func (m *CapabilityPermission) validate(all bool) error { + if m == nil { + return nil + } + + var errors []error + + // no validation rules for Permission + + if len(errors) > 0 { + return CapabilityPermissionMultiError(errors) + } + + return nil +} + +// CapabilityPermissionMultiError is an error wrapping multiple validation +// errors returned by CapabilityPermission.ValidateAll() if the designated +// constraints aren't met. +type CapabilityPermissionMultiError []error + +// Error returns a concatenation of all the error messages it wraps. +func (m CapabilityPermissionMultiError) Error() string { + msgs := make([]string, 0, len(m)) + for _, err := range m { + msgs = append(msgs, err.Error()) + } + return strings.Join(msgs, "; ") +} + +// AllErrors returns a list of validation violation errors. +func (m CapabilityPermissionMultiError) AllErrors() []error { return m } + +// CapabilityPermissionValidationError is the validation error returned by +// CapabilityPermission.Validate if the designated constraints aren't met. +type CapabilityPermissionValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e CapabilityPermissionValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e CapabilityPermissionValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e CapabilityPermissionValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e CapabilityPermissionValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e CapabilityPermissionValidationError) ErrorName() string { + return "CapabilityPermissionValidationError" +} + +// Error satisfies the builtin error interface +func (e CapabilityPermissionValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sCapabilityPermission.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = CapabilityPermissionValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = CapabilityPermissionValidationError{} + +// Validate checks the field values on CapabilityPermissions with the rules +// defined in the proto definition for this message. If any rules are +// violated, the first error encountered is returned, or nil if there are no violations. +func (m *CapabilityPermissions) Validate() error { + return m.validate(false) +} + +// ValidateAll checks the field values on CapabilityPermissions with the rules +// defined in the proto definition for this message. If any rules are +// violated, the result is a list of violation errors wrapped in +// CapabilityPermissionsMultiError, or nil if none found. +func (m *CapabilityPermissions) ValidateAll() error { + return m.validate(true) +} + +func (m *CapabilityPermissions) validate(all bool) error { + if m == nil { + return nil + } + + var errors []error + + for idx, item := range m.GetPermissions() { + _, _ = idx, item + + if all { + switch v := interface{}(item).(type) { + case interface{ ValidateAll() error }: + if err := v.ValidateAll(); err != nil { + errors = append(errors, CapabilityPermissionsValidationError{ + field: fmt.Sprintf("Permissions[%v]", idx), + reason: "embedded message failed validation", + cause: err, + }) + } + case interface{ Validate() error }: + if err := v.Validate(); err != nil { + errors = append(errors, CapabilityPermissionsValidationError{ + field: fmt.Sprintf("Permissions[%v]", idx), + reason: "embedded message failed validation", + cause: err, + }) + } + } + } else if v, ok := interface{}(item).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return CapabilityPermissionsValidationError{ + field: fmt.Sprintf("Permissions[%v]", idx), + reason: "embedded message failed validation", + cause: err, + } + } + } + + } + + if len(errors) > 0 { + return CapabilityPermissionsMultiError(errors) + } + + return nil +} + +// CapabilityPermissionsMultiError is an error wrapping multiple validation +// errors returned by CapabilityPermissions.ValidateAll() if the designated +// constraints aren't met. +type CapabilityPermissionsMultiError []error + +// Error returns a concatenation of all the error messages it wraps. +func (m CapabilityPermissionsMultiError) Error() string { + msgs := make([]string, 0, len(m)) + for _, err := range m { + msgs = append(msgs, err.Error()) + } + return strings.Join(msgs, "; ") +} + +// AllErrors returns a list of validation violation errors. +func (m CapabilityPermissionsMultiError) AllErrors() []error { return m } + +// CapabilityPermissionsValidationError is the validation error returned by +// CapabilityPermissions.Validate if the designated constraints aren't met. +type CapabilityPermissionsValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e CapabilityPermissionsValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e CapabilityPermissionsValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e CapabilityPermissionsValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e CapabilityPermissionsValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e CapabilityPermissionsValidationError) ErrorName() string { + return "CapabilityPermissionsValidationError" +} + +// Error satisfies the builtin error interface +func (e CapabilityPermissionsValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sCapabilityPermissions.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = CapabilityPermissionsValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = CapabilityPermissionsValidationError{} + // Validate checks the field values on ResourceTypeCapability with the rules // defined in the proto definition for this message. If any rules are // violated, the first error encountered is returned, or nil if there are no violations. @@ -1253,6 +1508,35 @@ func (m *ResourceTypeCapability) validate(all bool) error { } } + if all { + switch v := interface{}(m.GetPermissions()).(type) { + case interface{ ValidateAll() error }: + if err := v.ValidateAll(); err != nil { + errors = append(errors, ResourceTypeCapabilityValidationError{ + field: "Permissions", + reason: "embedded message failed validation", + cause: err, + }) + } + case interface{ Validate() error }: + if err := v.Validate(); err != nil { + errors = append(errors, ResourceTypeCapabilityValidationError{ + field: "Permissions", + reason: "embedded message failed validation", + cause: err, + }) + } + } + } else if v, ok := interface{}(m.GetPermissions()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return ResourceTypeCapabilityValidationError{ + field: "Permissions", + reason: "embedded message failed validation", + cause: err, + } + } + } + if len(errors) > 0 { return ResourceTypeCapabilityMultiError(errors) } @@ -1732,6 +2016,8 @@ func (m *ConnectorServiceValidateResponse) validate(all bool) error { } + // no validation rules for SdkVersion + if len(errors) > 0 { return ConnectorServiceValidateResponseMultiError(errors) } diff --git a/vendor/github.com/conductorone/baton-sdk/pb/c1/connector/v2/connector_protoopaque.pb.go b/vendor/github.com/conductorone/baton-sdk/pb/c1/connector/v2/connector_protoopaque.pb.go new file mode 100644 index 00000000..e8ec7de5 --- /dev/null +++ b/vendor/github.com/conductorone/baton-sdk/pb/c1/connector/v2/connector_protoopaque.pb.go @@ -0,0 +1,2318 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.36.10 +// protoc (unknown) +// source: c1/connector/v2/connector.proto + +//go:build protoopaque + +package v2 + +import ( + _ "github.com/envoyproxy/protoc-gen-validate/validate" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + anypb "google.golang.org/protobuf/types/known/anypb" + structpb "google.golang.org/protobuf/types/known/structpb" + reflect "reflect" + 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 Capability int32 + +const ( + Capability_CAPABILITY_UNSPECIFIED Capability = 0 + Capability_CAPABILITY_PROVISION Capability = 1 + Capability_CAPABILITY_SYNC Capability = 2 + Capability_CAPABILITY_EVENT_FEED Capability = 3 + Capability_CAPABILITY_TICKETING Capability = 4 + Capability_CAPABILITY_ACCOUNT_PROVISIONING Capability = 5 + Capability_CAPABILITY_CREDENTIAL_ROTATION Capability = 6 + Capability_CAPABILITY_RESOURCE_CREATE Capability = 7 + Capability_CAPABILITY_RESOURCE_DELETE Capability = 8 + Capability_CAPABILITY_SYNC_SECRETS Capability = 9 + Capability_CAPABILITY_ACTIONS Capability = 10 + Capability_CAPABILITY_TARGETED_SYNC Capability = 11 + Capability_CAPABILITY_EVENT_FEED_V2 Capability = 12 +) + +// Enum value maps for Capability. +var ( + Capability_name = map[int32]string{ + 0: "CAPABILITY_UNSPECIFIED", + 1: "CAPABILITY_PROVISION", + 2: "CAPABILITY_SYNC", + 3: "CAPABILITY_EVENT_FEED", + 4: "CAPABILITY_TICKETING", + 5: "CAPABILITY_ACCOUNT_PROVISIONING", + 6: "CAPABILITY_CREDENTIAL_ROTATION", + 7: "CAPABILITY_RESOURCE_CREATE", + 8: "CAPABILITY_RESOURCE_DELETE", + 9: "CAPABILITY_SYNC_SECRETS", + 10: "CAPABILITY_ACTIONS", + 11: "CAPABILITY_TARGETED_SYNC", + 12: "CAPABILITY_EVENT_FEED_V2", + } + Capability_value = map[string]int32{ + "CAPABILITY_UNSPECIFIED": 0, + "CAPABILITY_PROVISION": 1, + "CAPABILITY_SYNC": 2, + "CAPABILITY_EVENT_FEED": 3, + "CAPABILITY_TICKETING": 4, + "CAPABILITY_ACCOUNT_PROVISIONING": 5, + "CAPABILITY_CREDENTIAL_ROTATION": 6, + "CAPABILITY_RESOURCE_CREATE": 7, + "CAPABILITY_RESOURCE_DELETE": 8, + "CAPABILITY_SYNC_SECRETS": 9, + "CAPABILITY_ACTIONS": 10, + "CAPABILITY_TARGETED_SYNC": 11, + "CAPABILITY_EVENT_FEED_V2": 12, + } +) + +func (x Capability) Enum() *Capability { + p := new(Capability) + *p = x + return p +} + +func (x Capability) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (Capability) Descriptor() protoreflect.EnumDescriptor { + return file_c1_connector_v2_connector_proto_enumTypes[0].Descriptor() +} + +func (Capability) Type() protoreflect.EnumType { + return &file_c1_connector_v2_connector_proto_enumTypes[0] +} + +func (x Capability) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +type CapabilityDetailCredentialOption int32 + +const ( + CapabilityDetailCredentialOption_CAPABILITY_DETAIL_CREDENTIAL_OPTION_UNSPECIFIED CapabilityDetailCredentialOption = 0 + CapabilityDetailCredentialOption_CAPABILITY_DETAIL_CREDENTIAL_OPTION_NO_PASSWORD CapabilityDetailCredentialOption = 1 + CapabilityDetailCredentialOption_CAPABILITY_DETAIL_CREDENTIAL_OPTION_RANDOM_PASSWORD CapabilityDetailCredentialOption = 2 + CapabilityDetailCredentialOption_CAPABILITY_DETAIL_CREDENTIAL_OPTION_SSO CapabilityDetailCredentialOption = 3 + CapabilityDetailCredentialOption_CAPABILITY_DETAIL_CREDENTIAL_OPTION_ENCRYPTED_PASSWORD CapabilityDetailCredentialOption = 4 +) + +// Enum value maps for CapabilityDetailCredentialOption. +var ( + CapabilityDetailCredentialOption_name = map[int32]string{ + 0: "CAPABILITY_DETAIL_CREDENTIAL_OPTION_UNSPECIFIED", + 1: "CAPABILITY_DETAIL_CREDENTIAL_OPTION_NO_PASSWORD", + 2: "CAPABILITY_DETAIL_CREDENTIAL_OPTION_RANDOM_PASSWORD", + 3: "CAPABILITY_DETAIL_CREDENTIAL_OPTION_SSO", + 4: "CAPABILITY_DETAIL_CREDENTIAL_OPTION_ENCRYPTED_PASSWORD", + } + CapabilityDetailCredentialOption_value = map[string]int32{ + "CAPABILITY_DETAIL_CREDENTIAL_OPTION_UNSPECIFIED": 0, + "CAPABILITY_DETAIL_CREDENTIAL_OPTION_NO_PASSWORD": 1, + "CAPABILITY_DETAIL_CREDENTIAL_OPTION_RANDOM_PASSWORD": 2, + "CAPABILITY_DETAIL_CREDENTIAL_OPTION_SSO": 3, + "CAPABILITY_DETAIL_CREDENTIAL_OPTION_ENCRYPTED_PASSWORD": 4, + } +) + +func (x CapabilityDetailCredentialOption) Enum() *CapabilityDetailCredentialOption { + p := new(CapabilityDetailCredentialOption) + *p = x + return p +} + +func (x CapabilityDetailCredentialOption) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (CapabilityDetailCredentialOption) Descriptor() protoreflect.EnumDescriptor { + return file_c1_connector_v2_connector_proto_enumTypes[1].Descriptor() +} + +func (CapabilityDetailCredentialOption) Type() protoreflect.EnumType { + return &file_c1_connector_v2_connector_proto_enumTypes[1] +} + +func (x CapabilityDetailCredentialOption) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +type ConnectorServiceCleanupRequest struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Annotations *[]*anypb.Any `protobuf:"bytes,1,rep,name=annotations,proto3"` + xxx_hidden_ActiveSyncId string `protobuf:"bytes,2,opt,name=active_sync_id,json=activeSyncId,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *ConnectorServiceCleanupRequest) Reset() { + *x = ConnectorServiceCleanupRequest{} + mi := &file_c1_connector_v2_connector_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *ConnectorServiceCleanupRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ConnectorServiceCleanupRequest) ProtoMessage() {} + +func (x *ConnectorServiceCleanupRequest) ProtoReflect() protoreflect.Message { + mi := &file_c1_connector_v2_connector_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) +} + +func (x *ConnectorServiceCleanupRequest) GetAnnotations() []*anypb.Any { + if x != nil { + if x.xxx_hidden_Annotations != nil { + return *x.xxx_hidden_Annotations + } + } + return nil +} + +func (x *ConnectorServiceCleanupRequest) GetActiveSyncId() string { + if x != nil { + return x.xxx_hidden_ActiveSyncId + } + return "" +} + +func (x *ConnectorServiceCleanupRequest) SetAnnotations(v []*anypb.Any) { + x.xxx_hidden_Annotations = &v +} + +func (x *ConnectorServiceCleanupRequest) SetActiveSyncId(v string) { + x.xxx_hidden_ActiveSyncId = v +} + +type ConnectorServiceCleanupRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Annotations []*anypb.Any + ActiveSyncId string +} + +func (b0 ConnectorServiceCleanupRequest_builder) Build() *ConnectorServiceCleanupRequest { + m0 := &ConnectorServiceCleanupRequest{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Annotations = &b.Annotations + x.xxx_hidden_ActiveSyncId = b.ActiveSyncId + return m0 +} + +type ConnectorServiceCleanupResponse struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Annotations *[]*anypb.Any `protobuf:"bytes,1,rep,name=annotations,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *ConnectorServiceCleanupResponse) Reset() { + *x = ConnectorServiceCleanupResponse{} + mi := &file_c1_connector_v2_connector_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *ConnectorServiceCleanupResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ConnectorServiceCleanupResponse) ProtoMessage() {} + +func (x *ConnectorServiceCleanupResponse) ProtoReflect() protoreflect.Message { + mi := &file_c1_connector_v2_connector_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) +} + +func (x *ConnectorServiceCleanupResponse) GetAnnotations() []*anypb.Any { + if x != nil { + if x.xxx_hidden_Annotations != nil { + return *x.xxx_hidden_Annotations + } + } + return nil +} + +func (x *ConnectorServiceCleanupResponse) SetAnnotations(v []*anypb.Any) { + x.xxx_hidden_Annotations = &v +} + +type ConnectorServiceCleanupResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Annotations []*anypb.Any +} + +func (b0 ConnectorServiceCleanupResponse_builder) Build() *ConnectorServiceCleanupResponse { + m0 := &ConnectorServiceCleanupResponse{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Annotations = &b.Annotations + return m0 +} + +type ConnectorMetadata struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_DisplayName string `protobuf:"bytes,1,opt,name=display_name,json=displayName,proto3"` + xxx_hidden_HelpUrl string `protobuf:"bytes,2,opt,name=help_url,json=helpUrl,proto3"` + xxx_hidden_Icon *AssetRef `protobuf:"bytes,3,opt,name=icon,proto3"` + xxx_hidden_Logo *AssetRef `protobuf:"bytes,4,opt,name=logo,proto3"` + xxx_hidden_Profile *structpb.Struct `protobuf:"bytes,5,opt,name=profile,proto3"` + xxx_hidden_Annotations *[]*anypb.Any `protobuf:"bytes,6,rep,name=annotations,proto3"` + xxx_hidden_Description string `protobuf:"bytes,7,opt,name=description,proto3"` + xxx_hidden_Capabilities *ConnectorCapabilities `protobuf:"bytes,8,opt,name=capabilities,proto3"` + xxx_hidden_AccountCreationSchema *ConnectorAccountCreationSchema `protobuf:"bytes,9,opt,name=account_creation_schema,json=accountCreationSchema,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *ConnectorMetadata) Reset() { + *x = ConnectorMetadata{} + mi := &file_c1_connector_v2_connector_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *ConnectorMetadata) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ConnectorMetadata) ProtoMessage() {} + +func (x *ConnectorMetadata) ProtoReflect() protoreflect.Message { + mi := &file_c1_connector_v2_connector_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) +} + +func (x *ConnectorMetadata) GetDisplayName() string { + if x != nil { + return x.xxx_hidden_DisplayName + } + return "" +} + +func (x *ConnectorMetadata) GetHelpUrl() string { + if x != nil { + return x.xxx_hidden_HelpUrl + } + return "" +} + +func (x *ConnectorMetadata) GetIcon() *AssetRef { + if x != nil { + return x.xxx_hidden_Icon + } + return nil +} + +func (x *ConnectorMetadata) GetLogo() *AssetRef { + if x != nil { + return x.xxx_hidden_Logo + } + return nil +} + +func (x *ConnectorMetadata) GetProfile() *structpb.Struct { + if x != nil { + return x.xxx_hidden_Profile + } + return nil +} + +func (x *ConnectorMetadata) GetAnnotations() []*anypb.Any { + if x != nil { + if x.xxx_hidden_Annotations != nil { + return *x.xxx_hidden_Annotations + } + } + return nil +} + +func (x *ConnectorMetadata) GetDescription() string { + if x != nil { + return x.xxx_hidden_Description + } + return "" +} + +func (x *ConnectorMetadata) GetCapabilities() *ConnectorCapabilities { + if x != nil { + return x.xxx_hidden_Capabilities + } + return nil +} + +func (x *ConnectorMetadata) GetAccountCreationSchema() *ConnectorAccountCreationSchema { + if x != nil { + return x.xxx_hidden_AccountCreationSchema + } + return nil +} + +func (x *ConnectorMetadata) SetDisplayName(v string) { + x.xxx_hidden_DisplayName = v +} + +func (x *ConnectorMetadata) SetHelpUrl(v string) { + x.xxx_hidden_HelpUrl = v +} + +func (x *ConnectorMetadata) SetIcon(v *AssetRef) { + x.xxx_hidden_Icon = v +} + +func (x *ConnectorMetadata) SetLogo(v *AssetRef) { + x.xxx_hidden_Logo = v +} + +func (x *ConnectorMetadata) SetProfile(v *structpb.Struct) { + x.xxx_hidden_Profile = v +} + +func (x *ConnectorMetadata) SetAnnotations(v []*anypb.Any) { + x.xxx_hidden_Annotations = &v +} + +func (x *ConnectorMetadata) SetDescription(v string) { + x.xxx_hidden_Description = v +} + +func (x *ConnectorMetadata) SetCapabilities(v *ConnectorCapabilities) { + x.xxx_hidden_Capabilities = v +} + +func (x *ConnectorMetadata) SetAccountCreationSchema(v *ConnectorAccountCreationSchema) { + x.xxx_hidden_AccountCreationSchema = v +} + +func (x *ConnectorMetadata) HasIcon() bool { + if x == nil { + return false + } + return x.xxx_hidden_Icon != nil +} + +func (x *ConnectorMetadata) HasLogo() bool { + if x == nil { + return false + } + return x.xxx_hidden_Logo != nil +} + +func (x *ConnectorMetadata) HasProfile() bool { + if x == nil { + return false + } + return x.xxx_hidden_Profile != nil +} + +func (x *ConnectorMetadata) HasCapabilities() bool { + if x == nil { + return false + } + return x.xxx_hidden_Capabilities != nil +} + +func (x *ConnectorMetadata) HasAccountCreationSchema() bool { + if x == nil { + return false + } + return x.xxx_hidden_AccountCreationSchema != nil +} + +func (x *ConnectorMetadata) ClearIcon() { + x.xxx_hidden_Icon = nil +} + +func (x *ConnectorMetadata) ClearLogo() { + x.xxx_hidden_Logo = nil +} + +func (x *ConnectorMetadata) ClearProfile() { + x.xxx_hidden_Profile = nil +} + +func (x *ConnectorMetadata) ClearCapabilities() { + x.xxx_hidden_Capabilities = nil +} + +func (x *ConnectorMetadata) ClearAccountCreationSchema() { + x.xxx_hidden_AccountCreationSchema = nil +} + +type ConnectorMetadata_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + DisplayName string + HelpUrl string + Icon *AssetRef + Logo *AssetRef + Profile *structpb.Struct + Annotations []*anypb.Any + Description string + Capabilities *ConnectorCapabilities + AccountCreationSchema *ConnectorAccountCreationSchema +} + +func (b0 ConnectorMetadata_builder) Build() *ConnectorMetadata { + m0 := &ConnectorMetadata{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_DisplayName = b.DisplayName + x.xxx_hidden_HelpUrl = b.HelpUrl + x.xxx_hidden_Icon = b.Icon + x.xxx_hidden_Logo = b.Logo + x.xxx_hidden_Profile = b.Profile + x.xxx_hidden_Annotations = &b.Annotations + x.xxx_hidden_Description = b.Description + x.xxx_hidden_Capabilities = b.Capabilities + x.xxx_hidden_AccountCreationSchema = b.AccountCreationSchema + return m0 +} + +type CredentialDetails struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_CapabilityAccountProvisioning *CredentialDetailsAccountProvisioning `protobuf:"bytes,1,opt,name=capability_account_provisioning,json=capabilityAccountProvisioning,proto3"` + xxx_hidden_CapabilityCredentialRotation *CredentialDetailsCredentialRotation `protobuf:"bytes,2,opt,name=capability_credential_rotation,json=capabilityCredentialRotation,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *CredentialDetails) Reset() { + *x = CredentialDetails{} + mi := &file_c1_connector_v2_connector_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *CredentialDetails) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*CredentialDetails) ProtoMessage() {} + +func (x *CredentialDetails) ProtoReflect() protoreflect.Message { + mi := &file_c1_connector_v2_connector_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) +} + +func (x *CredentialDetails) GetCapabilityAccountProvisioning() *CredentialDetailsAccountProvisioning { + if x != nil { + return x.xxx_hidden_CapabilityAccountProvisioning + } + return nil +} + +func (x *CredentialDetails) GetCapabilityCredentialRotation() *CredentialDetailsCredentialRotation { + if x != nil { + return x.xxx_hidden_CapabilityCredentialRotation + } + return nil +} + +func (x *CredentialDetails) SetCapabilityAccountProvisioning(v *CredentialDetailsAccountProvisioning) { + x.xxx_hidden_CapabilityAccountProvisioning = v +} + +func (x *CredentialDetails) SetCapabilityCredentialRotation(v *CredentialDetailsCredentialRotation) { + x.xxx_hidden_CapabilityCredentialRotation = v +} + +func (x *CredentialDetails) HasCapabilityAccountProvisioning() bool { + if x == nil { + return false + } + return x.xxx_hidden_CapabilityAccountProvisioning != nil +} + +func (x *CredentialDetails) HasCapabilityCredentialRotation() bool { + if x == nil { + return false + } + return x.xxx_hidden_CapabilityCredentialRotation != nil +} + +func (x *CredentialDetails) ClearCapabilityAccountProvisioning() { + x.xxx_hidden_CapabilityAccountProvisioning = nil +} + +func (x *CredentialDetails) ClearCapabilityCredentialRotation() { + x.xxx_hidden_CapabilityCredentialRotation = nil +} + +type CredentialDetails_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + CapabilityAccountProvisioning *CredentialDetailsAccountProvisioning + CapabilityCredentialRotation *CredentialDetailsCredentialRotation +} + +func (b0 CredentialDetails_builder) Build() *CredentialDetails { + m0 := &CredentialDetails{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_CapabilityAccountProvisioning = b.CapabilityAccountProvisioning + x.xxx_hidden_CapabilityCredentialRotation = b.CapabilityCredentialRotation + return m0 +} + +type CredentialDetailsAccountProvisioning struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_SupportedCredentialOptions []CapabilityDetailCredentialOption `protobuf:"varint,1,rep,packed,name=supported_credential_options,json=supportedCredentialOptions,proto3,enum=c1.connector.v2.CapabilityDetailCredentialOption"` + xxx_hidden_PreferredCredentialOption CapabilityDetailCredentialOption `protobuf:"varint,2,opt,name=preferred_credential_option,json=preferredCredentialOption,proto3,enum=c1.connector.v2.CapabilityDetailCredentialOption"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *CredentialDetailsAccountProvisioning) Reset() { + *x = CredentialDetailsAccountProvisioning{} + mi := &file_c1_connector_v2_connector_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *CredentialDetailsAccountProvisioning) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*CredentialDetailsAccountProvisioning) ProtoMessage() {} + +func (x *CredentialDetailsAccountProvisioning) ProtoReflect() protoreflect.Message { + mi := &file_c1_connector_v2_connector_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) +} + +func (x *CredentialDetailsAccountProvisioning) GetSupportedCredentialOptions() []CapabilityDetailCredentialOption { + if x != nil { + return x.xxx_hidden_SupportedCredentialOptions + } + return nil +} + +func (x *CredentialDetailsAccountProvisioning) GetPreferredCredentialOption() CapabilityDetailCredentialOption { + if x != nil { + return x.xxx_hidden_PreferredCredentialOption + } + return CapabilityDetailCredentialOption_CAPABILITY_DETAIL_CREDENTIAL_OPTION_UNSPECIFIED +} + +func (x *CredentialDetailsAccountProvisioning) SetSupportedCredentialOptions(v []CapabilityDetailCredentialOption) { + x.xxx_hidden_SupportedCredentialOptions = v +} + +func (x *CredentialDetailsAccountProvisioning) SetPreferredCredentialOption(v CapabilityDetailCredentialOption) { + x.xxx_hidden_PreferredCredentialOption = v +} + +type CredentialDetailsAccountProvisioning_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + SupportedCredentialOptions []CapabilityDetailCredentialOption + PreferredCredentialOption CapabilityDetailCredentialOption +} + +func (b0 CredentialDetailsAccountProvisioning_builder) Build() *CredentialDetailsAccountProvisioning { + m0 := &CredentialDetailsAccountProvisioning{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_SupportedCredentialOptions = b.SupportedCredentialOptions + x.xxx_hidden_PreferredCredentialOption = b.PreferredCredentialOption + return m0 +} + +type CredentialDetailsCredentialRotation struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_SupportedCredentialOptions []CapabilityDetailCredentialOption `protobuf:"varint,1,rep,packed,name=supported_credential_options,json=supportedCredentialOptions,proto3,enum=c1.connector.v2.CapabilityDetailCredentialOption"` + xxx_hidden_PreferredCredentialOption CapabilityDetailCredentialOption `protobuf:"varint,2,opt,name=preferred_credential_option,json=preferredCredentialOption,proto3,enum=c1.connector.v2.CapabilityDetailCredentialOption"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *CredentialDetailsCredentialRotation) Reset() { + *x = CredentialDetailsCredentialRotation{} + mi := &file_c1_connector_v2_connector_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *CredentialDetailsCredentialRotation) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*CredentialDetailsCredentialRotation) ProtoMessage() {} + +func (x *CredentialDetailsCredentialRotation) ProtoReflect() protoreflect.Message { + mi := &file_c1_connector_v2_connector_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) +} + +func (x *CredentialDetailsCredentialRotation) GetSupportedCredentialOptions() []CapabilityDetailCredentialOption { + if x != nil { + return x.xxx_hidden_SupportedCredentialOptions + } + return nil +} + +func (x *CredentialDetailsCredentialRotation) GetPreferredCredentialOption() CapabilityDetailCredentialOption { + if x != nil { + return x.xxx_hidden_PreferredCredentialOption + } + return CapabilityDetailCredentialOption_CAPABILITY_DETAIL_CREDENTIAL_OPTION_UNSPECIFIED +} + +func (x *CredentialDetailsCredentialRotation) SetSupportedCredentialOptions(v []CapabilityDetailCredentialOption) { + x.xxx_hidden_SupportedCredentialOptions = v +} + +func (x *CredentialDetailsCredentialRotation) SetPreferredCredentialOption(v CapabilityDetailCredentialOption) { + x.xxx_hidden_PreferredCredentialOption = v +} + +type CredentialDetailsCredentialRotation_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + SupportedCredentialOptions []CapabilityDetailCredentialOption + PreferredCredentialOption CapabilityDetailCredentialOption +} + +func (b0 CredentialDetailsCredentialRotation_builder) Build() *CredentialDetailsCredentialRotation { + m0 := &CredentialDetailsCredentialRotation{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_SupportedCredentialOptions = b.SupportedCredentialOptions + x.xxx_hidden_PreferredCredentialOption = b.PreferredCredentialOption + return m0 +} + +type ConnectorCapabilities struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_ResourceTypeCapabilities *[]*ResourceTypeCapability `protobuf:"bytes,1,rep,name=resource_type_capabilities,json=resourceTypeCapabilities,proto3"` + xxx_hidden_ConnectorCapabilities []Capability `protobuf:"varint,2,rep,packed,name=connector_capabilities,json=connectorCapabilities,proto3,enum=c1.connector.v2.Capability"` + xxx_hidden_CredentialDetails *CredentialDetails `protobuf:"bytes,3,opt,name=credential_details,json=credentialDetails,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *ConnectorCapabilities) Reset() { + *x = ConnectorCapabilities{} + mi := &file_c1_connector_v2_connector_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *ConnectorCapabilities) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ConnectorCapabilities) ProtoMessage() {} + +func (x *ConnectorCapabilities) ProtoReflect() protoreflect.Message { + mi := &file_c1_connector_v2_connector_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) +} + +func (x *ConnectorCapabilities) GetResourceTypeCapabilities() []*ResourceTypeCapability { + if x != nil { + if x.xxx_hidden_ResourceTypeCapabilities != nil { + return *x.xxx_hidden_ResourceTypeCapabilities + } + } + return nil +} + +func (x *ConnectorCapabilities) GetConnectorCapabilities() []Capability { + if x != nil { + return x.xxx_hidden_ConnectorCapabilities + } + return nil +} + +func (x *ConnectorCapabilities) GetCredentialDetails() *CredentialDetails { + if x != nil { + return x.xxx_hidden_CredentialDetails + } + return nil +} + +func (x *ConnectorCapabilities) SetResourceTypeCapabilities(v []*ResourceTypeCapability) { + x.xxx_hidden_ResourceTypeCapabilities = &v +} + +func (x *ConnectorCapabilities) SetConnectorCapabilities(v []Capability) { + x.xxx_hidden_ConnectorCapabilities = v +} + +func (x *ConnectorCapabilities) SetCredentialDetails(v *CredentialDetails) { + x.xxx_hidden_CredentialDetails = v +} + +func (x *ConnectorCapabilities) HasCredentialDetails() bool { + if x == nil { + return false + } + return x.xxx_hidden_CredentialDetails != nil +} + +func (x *ConnectorCapabilities) ClearCredentialDetails() { + x.xxx_hidden_CredentialDetails = nil +} + +type ConnectorCapabilities_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + ResourceTypeCapabilities []*ResourceTypeCapability + ConnectorCapabilities []Capability + CredentialDetails *CredentialDetails +} + +func (b0 ConnectorCapabilities_builder) Build() *ConnectorCapabilities { + m0 := &ConnectorCapabilities{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_ResourceTypeCapabilities = &b.ResourceTypeCapabilities + x.xxx_hidden_ConnectorCapabilities = b.ConnectorCapabilities + x.xxx_hidden_CredentialDetails = b.CredentialDetails + return m0 +} + +type CapabilityPermission struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Permission string `protobuf:"bytes,1,opt,name=permission,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *CapabilityPermission) Reset() { + *x = CapabilityPermission{} + mi := &file_c1_connector_v2_connector_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *CapabilityPermission) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*CapabilityPermission) ProtoMessage() {} + +func (x *CapabilityPermission) ProtoReflect() protoreflect.Message { + mi := &file_c1_connector_v2_connector_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) +} + +func (x *CapabilityPermission) GetPermission() string { + if x != nil { + return x.xxx_hidden_Permission + } + return "" +} + +func (x *CapabilityPermission) SetPermission(v string) { + x.xxx_hidden_Permission = v +} + +type CapabilityPermission_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Permission string +} + +func (b0 CapabilityPermission_builder) Build() *CapabilityPermission { + m0 := &CapabilityPermission{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Permission = b.Permission + return m0 +} + +type CapabilityPermissions struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Permissions *[]*CapabilityPermission `protobuf:"bytes,1,rep,name=permissions,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *CapabilityPermissions) Reset() { + *x = CapabilityPermissions{} + mi := &file_c1_connector_v2_connector_proto_msgTypes[8] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *CapabilityPermissions) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*CapabilityPermissions) ProtoMessage() {} + +func (x *CapabilityPermissions) ProtoReflect() protoreflect.Message { + mi := &file_c1_connector_v2_connector_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) +} + +func (x *CapabilityPermissions) GetPermissions() []*CapabilityPermission { + if x != nil { + if x.xxx_hidden_Permissions != nil { + return *x.xxx_hidden_Permissions + } + } + return nil +} + +func (x *CapabilityPermissions) SetPermissions(v []*CapabilityPermission) { + x.xxx_hidden_Permissions = &v +} + +type CapabilityPermissions_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Permissions []*CapabilityPermission +} + +func (b0 CapabilityPermissions_builder) Build() *CapabilityPermissions { + m0 := &CapabilityPermissions{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Permissions = &b.Permissions + return m0 +} + +type ResourceTypeCapability struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_ResourceType *ResourceType `protobuf:"bytes,1,opt,name=resource_type,json=resourceType,proto3"` + xxx_hidden_Capabilities []Capability `protobuf:"varint,2,rep,packed,name=capabilities,proto3,enum=c1.connector.v2.Capability"` + xxx_hidden_Permissions *CapabilityPermissions `protobuf:"bytes,3,opt,name=permissions,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *ResourceTypeCapability) Reset() { + *x = ResourceTypeCapability{} + mi := &file_c1_connector_v2_connector_proto_msgTypes[9] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *ResourceTypeCapability) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ResourceTypeCapability) ProtoMessage() {} + +func (x *ResourceTypeCapability) ProtoReflect() protoreflect.Message { + mi := &file_c1_connector_v2_connector_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) +} + +func (x *ResourceTypeCapability) GetResourceType() *ResourceType { + if x != nil { + return x.xxx_hidden_ResourceType + } + return nil +} + +func (x *ResourceTypeCapability) GetCapabilities() []Capability { + if x != nil { + return x.xxx_hidden_Capabilities + } + return nil +} + +func (x *ResourceTypeCapability) GetPermissions() *CapabilityPermissions { + if x != nil { + return x.xxx_hidden_Permissions + } + return nil +} + +func (x *ResourceTypeCapability) SetResourceType(v *ResourceType) { + x.xxx_hidden_ResourceType = v +} + +func (x *ResourceTypeCapability) SetCapabilities(v []Capability) { + x.xxx_hidden_Capabilities = v +} + +func (x *ResourceTypeCapability) SetPermissions(v *CapabilityPermissions) { + x.xxx_hidden_Permissions = v +} + +func (x *ResourceTypeCapability) HasResourceType() bool { + if x == nil { + return false + } + return x.xxx_hidden_ResourceType != nil +} + +func (x *ResourceTypeCapability) HasPermissions() bool { + if x == nil { + return false + } + return x.xxx_hidden_Permissions != nil +} + +func (x *ResourceTypeCapability) ClearResourceType() { + x.xxx_hidden_ResourceType = nil +} + +func (x *ResourceTypeCapability) ClearPermissions() { + x.xxx_hidden_Permissions = nil +} + +type ResourceTypeCapability_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + ResourceType *ResourceType + Capabilities []Capability + Permissions *CapabilityPermissions +} + +func (b0 ResourceTypeCapability_builder) Build() *ResourceTypeCapability { + m0 := &ResourceTypeCapability{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_ResourceType = b.ResourceType + x.xxx_hidden_Capabilities = b.Capabilities + x.xxx_hidden_Permissions = b.Permissions + return m0 +} + +type ConnectorServiceGetMetadataRequest struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *ConnectorServiceGetMetadataRequest) Reset() { + *x = ConnectorServiceGetMetadataRequest{} + mi := &file_c1_connector_v2_connector_proto_msgTypes[10] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *ConnectorServiceGetMetadataRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ConnectorServiceGetMetadataRequest) ProtoMessage() {} + +func (x *ConnectorServiceGetMetadataRequest) ProtoReflect() protoreflect.Message { + mi := &file_c1_connector_v2_connector_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) +} + +type ConnectorServiceGetMetadataRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + +} + +func (b0 ConnectorServiceGetMetadataRequest_builder) Build() *ConnectorServiceGetMetadataRequest { + m0 := &ConnectorServiceGetMetadataRequest{} + b, x := &b0, m0 + _, _ = b, x + return m0 +} + +type ConnectorServiceGetMetadataResponse struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Metadata *ConnectorMetadata `protobuf:"bytes,1,opt,name=metadata,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *ConnectorServiceGetMetadataResponse) Reset() { + *x = ConnectorServiceGetMetadataResponse{} + mi := &file_c1_connector_v2_connector_proto_msgTypes[11] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *ConnectorServiceGetMetadataResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ConnectorServiceGetMetadataResponse) ProtoMessage() {} + +func (x *ConnectorServiceGetMetadataResponse) ProtoReflect() protoreflect.Message { + mi := &file_c1_connector_v2_connector_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) +} + +func (x *ConnectorServiceGetMetadataResponse) GetMetadata() *ConnectorMetadata { + if x != nil { + return x.xxx_hidden_Metadata + } + return nil +} + +func (x *ConnectorServiceGetMetadataResponse) SetMetadata(v *ConnectorMetadata) { + x.xxx_hidden_Metadata = v +} + +func (x *ConnectorServiceGetMetadataResponse) HasMetadata() bool { + if x == nil { + return false + } + return x.xxx_hidden_Metadata != nil +} + +func (x *ConnectorServiceGetMetadataResponse) ClearMetadata() { + x.xxx_hidden_Metadata = nil +} + +type ConnectorServiceGetMetadataResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Metadata *ConnectorMetadata +} + +func (b0 ConnectorServiceGetMetadataResponse_builder) Build() *ConnectorServiceGetMetadataResponse { + m0 := &ConnectorServiceGetMetadataResponse{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Metadata = b.Metadata + return m0 +} + +type ConnectorServiceValidateRequest struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *ConnectorServiceValidateRequest) Reset() { + *x = ConnectorServiceValidateRequest{} + mi := &file_c1_connector_v2_connector_proto_msgTypes[12] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *ConnectorServiceValidateRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ConnectorServiceValidateRequest) ProtoMessage() {} + +func (x *ConnectorServiceValidateRequest) ProtoReflect() protoreflect.Message { + mi := &file_c1_connector_v2_connector_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) +} + +type ConnectorServiceValidateRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + +} + +func (b0 ConnectorServiceValidateRequest_builder) Build() *ConnectorServiceValidateRequest { + m0 := &ConnectorServiceValidateRequest{} + b, x := &b0, m0 + _, _ = b, x + return m0 +} + +// NOTE(morgabra) We're expecting correct grpc.Status responses +// for things like 401/403/500, etc +type ConnectorServiceValidateResponse struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Annotations *[]*anypb.Any `protobuf:"bytes,1,rep,name=annotations,proto3"` + xxx_hidden_SdkVersion string `protobuf:"bytes,2,opt,name=sdk_version,json=sdkVersion,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *ConnectorServiceValidateResponse) Reset() { + *x = ConnectorServiceValidateResponse{} + mi := &file_c1_connector_v2_connector_proto_msgTypes[13] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *ConnectorServiceValidateResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ConnectorServiceValidateResponse) ProtoMessage() {} + +func (x *ConnectorServiceValidateResponse) ProtoReflect() protoreflect.Message { + mi := &file_c1_connector_v2_connector_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) +} + +func (x *ConnectorServiceValidateResponse) GetAnnotations() []*anypb.Any { + if x != nil { + if x.xxx_hidden_Annotations != nil { + return *x.xxx_hidden_Annotations + } + } + return nil +} + +func (x *ConnectorServiceValidateResponse) GetSdkVersion() string { + if x != nil { + return x.xxx_hidden_SdkVersion + } + return "" +} + +func (x *ConnectorServiceValidateResponse) SetAnnotations(v []*anypb.Any) { + x.xxx_hidden_Annotations = &v +} + +func (x *ConnectorServiceValidateResponse) SetSdkVersion(v string) { + x.xxx_hidden_SdkVersion = v +} + +type ConnectorServiceValidateResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Annotations []*anypb.Any + SdkVersion string +} + +func (b0 ConnectorServiceValidateResponse_builder) Build() *ConnectorServiceValidateResponse { + m0 := &ConnectorServiceValidateResponse{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Annotations = &b.Annotations + x.xxx_hidden_SdkVersion = b.SdkVersion + return m0 +} + +type ConnectorAccountCreationSchema struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_FieldMap map[string]*ConnectorAccountCreationSchema_Field `protobuf:"bytes,1,rep,name=field_map,json=fieldMap,proto3" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *ConnectorAccountCreationSchema) Reset() { + *x = ConnectorAccountCreationSchema{} + mi := &file_c1_connector_v2_connector_proto_msgTypes[14] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *ConnectorAccountCreationSchema) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ConnectorAccountCreationSchema) ProtoMessage() {} + +func (x *ConnectorAccountCreationSchema) ProtoReflect() protoreflect.Message { + mi := &file_c1_connector_v2_connector_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) +} + +func (x *ConnectorAccountCreationSchema) GetFieldMap() map[string]*ConnectorAccountCreationSchema_Field { + if x != nil { + return x.xxx_hidden_FieldMap + } + return nil +} + +func (x *ConnectorAccountCreationSchema) SetFieldMap(v map[string]*ConnectorAccountCreationSchema_Field) { + x.xxx_hidden_FieldMap = v +} + +type ConnectorAccountCreationSchema_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + FieldMap map[string]*ConnectorAccountCreationSchema_Field +} + +func (b0 ConnectorAccountCreationSchema_builder) Build() *ConnectorAccountCreationSchema { + m0 := &ConnectorAccountCreationSchema{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_FieldMap = b.FieldMap + return m0 +} + +type ConnectorAccountCreationSchema_Field struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_DisplayName string `protobuf:"bytes,1,opt,name=display_name,json=displayName,proto3"` + xxx_hidden_Required bool `protobuf:"varint,2,opt,name=required,proto3"` + xxx_hidden_Description string `protobuf:"bytes,3,opt,name=description,proto3"` + xxx_hidden_Placeholder string `protobuf:"bytes,4,opt,name=placeholder,proto3"` + xxx_hidden_Order int32 `protobuf:"varint,5,opt,name=order,proto3"` + xxx_hidden_Deprecated bool `protobuf:"varint,6,opt,name=deprecated,proto3"` + xxx_hidden_Field isConnectorAccountCreationSchema_Field_Field `protobuf_oneof:"field"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *ConnectorAccountCreationSchema_Field) Reset() { + *x = ConnectorAccountCreationSchema_Field{} + mi := &file_c1_connector_v2_connector_proto_msgTypes[16] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *ConnectorAccountCreationSchema_Field) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ConnectorAccountCreationSchema_Field) ProtoMessage() {} + +func (x *ConnectorAccountCreationSchema_Field) ProtoReflect() protoreflect.Message { + mi := &file_c1_connector_v2_connector_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) +} + +func (x *ConnectorAccountCreationSchema_Field) GetDisplayName() string { + if x != nil { + return x.xxx_hidden_DisplayName + } + return "" +} + +func (x *ConnectorAccountCreationSchema_Field) GetRequired() bool { + if x != nil { + return x.xxx_hidden_Required + } + return false +} + +func (x *ConnectorAccountCreationSchema_Field) GetDescription() string { + if x != nil { + return x.xxx_hidden_Description + } + return "" +} + +func (x *ConnectorAccountCreationSchema_Field) GetPlaceholder() string { + if x != nil { + return x.xxx_hidden_Placeholder + } + return "" +} + +func (x *ConnectorAccountCreationSchema_Field) GetOrder() int32 { + if x != nil { + return x.xxx_hidden_Order + } + return 0 +} + +func (x *ConnectorAccountCreationSchema_Field) GetDeprecated() bool { + if x != nil { + return x.xxx_hidden_Deprecated + } + return false +} + +func (x *ConnectorAccountCreationSchema_Field) GetStringField() *ConnectorAccountCreationSchema_StringField { + if x != nil { + if x, ok := x.xxx_hidden_Field.(*connectorAccountCreationSchema_Field_StringField); ok { + return x.StringField + } + } + return nil +} + +func (x *ConnectorAccountCreationSchema_Field) GetBoolField() *ConnectorAccountCreationSchema_BoolField { + if x != nil { + if x, ok := x.xxx_hidden_Field.(*connectorAccountCreationSchema_Field_BoolField); ok { + return x.BoolField + } + } + return nil +} + +func (x *ConnectorAccountCreationSchema_Field) GetStringListField() *ConnectorAccountCreationSchema_StringListField { + if x != nil { + if x, ok := x.xxx_hidden_Field.(*connectorAccountCreationSchema_Field_StringListField); ok { + return x.StringListField + } + } + return nil +} + +func (x *ConnectorAccountCreationSchema_Field) GetIntField() *ConnectorAccountCreationSchema_IntField { + if x != nil { + if x, ok := x.xxx_hidden_Field.(*connectorAccountCreationSchema_Field_IntField); ok { + return x.IntField + } + } + return nil +} + +func (x *ConnectorAccountCreationSchema_Field) GetMapField() *ConnectorAccountCreationSchema_MapField { + if x != nil { + if x, ok := x.xxx_hidden_Field.(*connectorAccountCreationSchema_Field_MapField); ok { + return x.MapField + } + } + return nil +} + +func (x *ConnectorAccountCreationSchema_Field) SetDisplayName(v string) { + x.xxx_hidden_DisplayName = v +} + +func (x *ConnectorAccountCreationSchema_Field) SetRequired(v bool) { + x.xxx_hidden_Required = v +} + +func (x *ConnectorAccountCreationSchema_Field) SetDescription(v string) { + x.xxx_hidden_Description = v +} + +func (x *ConnectorAccountCreationSchema_Field) SetPlaceholder(v string) { + x.xxx_hidden_Placeholder = v +} + +func (x *ConnectorAccountCreationSchema_Field) SetOrder(v int32) { + x.xxx_hidden_Order = v +} + +func (x *ConnectorAccountCreationSchema_Field) SetDeprecated(v bool) { + x.xxx_hidden_Deprecated = v +} + +func (x *ConnectorAccountCreationSchema_Field) SetStringField(v *ConnectorAccountCreationSchema_StringField) { + if v == nil { + x.xxx_hidden_Field = nil + return + } + x.xxx_hidden_Field = &connectorAccountCreationSchema_Field_StringField{v} +} + +func (x *ConnectorAccountCreationSchema_Field) SetBoolField(v *ConnectorAccountCreationSchema_BoolField) { + if v == nil { + x.xxx_hidden_Field = nil + return + } + x.xxx_hidden_Field = &connectorAccountCreationSchema_Field_BoolField{v} +} + +func (x *ConnectorAccountCreationSchema_Field) SetStringListField(v *ConnectorAccountCreationSchema_StringListField) { + if v == nil { + x.xxx_hidden_Field = nil + return + } + x.xxx_hidden_Field = &connectorAccountCreationSchema_Field_StringListField{v} +} + +func (x *ConnectorAccountCreationSchema_Field) SetIntField(v *ConnectorAccountCreationSchema_IntField) { + if v == nil { + x.xxx_hidden_Field = nil + return + } + x.xxx_hidden_Field = &connectorAccountCreationSchema_Field_IntField{v} +} + +func (x *ConnectorAccountCreationSchema_Field) SetMapField(v *ConnectorAccountCreationSchema_MapField) { + if v == nil { + x.xxx_hidden_Field = nil + return + } + x.xxx_hidden_Field = &connectorAccountCreationSchema_Field_MapField{v} +} + +func (x *ConnectorAccountCreationSchema_Field) HasField() bool { + if x == nil { + return false + } + return x.xxx_hidden_Field != nil +} + +func (x *ConnectorAccountCreationSchema_Field) HasStringField() bool { + if x == nil { + return false + } + _, ok := x.xxx_hidden_Field.(*connectorAccountCreationSchema_Field_StringField) + return ok +} + +func (x *ConnectorAccountCreationSchema_Field) HasBoolField() bool { + if x == nil { + return false + } + _, ok := x.xxx_hidden_Field.(*connectorAccountCreationSchema_Field_BoolField) + return ok +} + +func (x *ConnectorAccountCreationSchema_Field) HasStringListField() bool { + if x == nil { + return false + } + _, ok := x.xxx_hidden_Field.(*connectorAccountCreationSchema_Field_StringListField) + return ok +} + +func (x *ConnectorAccountCreationSchema_Field) HasIntField() bool { + if x == nil { + return false + } + _, ok := x.xxx_hidden_Field.(*connectorAccountCreationSchema_Field_IntField) + return ok +} + +func (x *ConnectorAccountCreationSchema_Field) HasMapField() bool { + if x == nil { + return false + } + _, ok := x.xxx_hidden_Field.(*connectorAccountCreationSchema_Field_MapField) + return ok +} + +func (x *ConnectorAccountCreationSchema_Field) ClearField() { + x.xxx_hidden_Field = nil +} + +func (x *ConnectorAccountCreationSchema_Field) ClearStringField() { + if _, ok := x.xxx_hidden_Field.(*connectorAccountCreationSchema_Field_StringField); ok { + x.xxx_hidden_Field = nil + } +} + +func (x *ConnectorAccountCreationSchema_Field) ClearBoolField() { + if _, ok := x.xxx_hidden_Field.(*connectorAccountCreationSchema_Field_BoolField); ok { + x.xxx_hidden_Field = nil + } +} + +func (x *ConnectorAccountCreationSchema_Field) ClearStringListField() { + if _, ok := x.xxx_hidden_Field.(*connectorAccountCreationSchema_Field_StringListField); ok { + x.xxx_hidden_Field = nil + } +} + +func (x *ConnectorAccountCreationSchema_Field) ClearIntField() { + if _, ok := x.xxx_hidden_Field.(*connectorAccountCreationSchema_Field_IntField); ok { + x.xxx_hidden_Field = nil + } +} + +func (x *ConnectorAccountCreationSchema_Field) ClearMapField() { + if _, ok := x.xxx_hidden_Field.(*connectorAccountCreationSchema_Field_MapField); ok { + x.xxx_hidden_Field = nil + } +} + +const ConnectorAccountCreationSchema_Field_Field_not_set_case case_ConnectorAccountCreationSchema_Field_Field = 0 +const ConnectorAccountCreationSchema_Field_StringField_case case_ConnectorAccountCreationSchema_Field_Field = 100 +const ConnectorAccountCreationSchema_Field_BoolField_case case_ConnectorAccountCreationSchema_Field_Field = 101 +const ConnectorAccountCreationSchema_Field_StringListField_case case_ConnectorAccountCreationSchema_Field_Field = 102 +const ConnectorAccountCreationSchema_Field_IntField_case case_ConnectorAccountCreationSchema_Field_Field = 103 +const ConnectorAccountCreationSchema_Field_MapField_case case_ConnectorAccountCreationSchema_Field_Field = 104 + +func (x *ConnectorAccountCreationSchema_Field) WhichField() case_ConnectorAccountCreationSchema_Field_Field { + if x == nil { + return ConnectorAccountCreationSchema_Field_Field_not_set_case + } + switch x.xxx_hidden_Field.(type) { + case *connectorAccountCreationSchema_Field_StringField: + return ConnectorAccountCreationSchema_Field_StringField_case + case *connectorAccountCreationSchema_Field_BoolField: + return ConnectorAccountCreationSchema_Field_BoolField_case + case *connectorAccountCreationSchema_Field_StringListField: + return ConnectorAccountCreationSchema_Field_StringListField_case + case *connectorAccountCreationSchema_Field_IntField: + return ConnectorAccountCreationSchema_Field_IntField_case + case *connectorAccountCreationSchema_Field_MapField: + return ConnectorAccountCreationSchema_Field_MapField_case + default: + return ConnectorAccountCreationSchema_Field_Field_not_set_case + } +} + +type ConnectorAccountCreationSchema_Field_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + DisplayName string + Required bool + Description string + Placeholder string + Order int32 + Deprecated bool + // Fields of oneof xxx_hidden_Field: + StringField *ConnectorAccountCreationSchema_StringField + BoolField *ConnectorAccountCreationSchema_BoolField + StringListField *ConnectorAccountCreationSchema_StringListField + IntField *ConnectorAccountCreationSchema_IntField + MapField *ConnectorAccountCreationSchema_MapField + // -- end of xxx_hidden_Field +} + +func (b0 ConnectorAccountCreationSchema_Field_builder) Build() *ConnectorAccountCreationSchema_Field { + m0 := &ConnectorAccountCreationSchema_Field{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_DisplayName = b.DisplayName + x.xxx_hidden_Required = b.Required + x.xxx_hidden_Description = b.Description + x.xxx_hidden_Placeholder = b.Placeholder + x.xxx_hidden_Order = b.Order + x.xxx_hidden_Deprecated = b.Deprecated + if b.StringField != nil { + x.xxx_hidden_Field = &connectorAccountCreationSchema_Field_StringField{b.StringField} + } + if b.BoolField != nil { + x.xxx_hidden_Field = &connectorAccountCreationSchema_Field_BoolField{b.BoolField} + } + if b.StringListField != nil { + x.xxx_hidden_Field = &connectorAccountCreationSchema_Field_StringListField{b.StringListField} + } + if b.IntField != nil { + x.xxx_hidden_Field = &connectorAccountCreationSchema_Field_IntField{b.IntField} + } + if b.MapField != nil { + x.xxx_hidden_Field = &connectorAccountCreationSchema_Field_MapField{b.MapField} + } + return m0 +} + +type case_ConnectorAccountCreationSchema_Field_Field protoreflect.FieldNumber + +func (x case_ConnectorAccountCreationSchema_Field_Field) String() string { + md := file_c1_connector_v2_connector_proto_msgTypes[16].Descriptor() + if x == 0 { + return "not set" + } + return protoimpl.X.MessageFieldStringOf(md, protoreflect.FieldNumber(x)) +} + +type isConnectorAccountCreationSchema_Field_Field interface { + isConnectorAccountCreationSchema_Field_Field() +} + +type connectorAccountCreationSchema_Field_StringField struct { + StringField *ConnectorAccountCreationSchema_StringField `protobuf:"bytes,100,opt,name=string_field,json=stringField,proto3,oneof"` +} + +type connectorAccountCreationSchema_Field_BoolField struct { + BoolField *ConnectorAccountCreationSchema_BoolField `protobuf:"bytes,101,opt,name=bool_field,json=boolField,proto3,oneof"` +} + +type connectorAccountCreationSchema_Field_StringListField struct { + StringListField *ConnectorAccountCreationSchema_StringListField `protobuf:"bytes,102,opt,name=string_list_field,json=stringListField,proto3,oneof"` +} + +type connectorAccountCreationSchema_Field_IntField struct { + IntField *ConnectorAccountCreationSchema_IntField `protobuf:"bytes,103,opt,name=int_field,json=intField,proto3,oneof"` +} + +type connectorAccountCreationSchema_Field_MapField struct { + MapField *ConnectorAccountCreationSchema_MapField `protobuf:"bytes,104,opt,name=map_field,json=mapField,proto3,oneof"` +} + +func (*connectorAccountCreationSchema_Field_StringField) isConnectorAccountCreationSchema_Field_Field() { +} + +func (*connectorAccountCreationSchema_Field_BoolField) isConnectorAccountCreationSchema_Field_Field() { +} + +func (*connectorAccountCreationSchema_Field_StringListField) isConnectorAccountCreationSchema_Field_Field() { +} + +func (*connectorAccountCreationSchema_Field_IntField) isConnectorAccountCreationSchema_Field_Field() { +} + +func (*connectorAccountCreationSchema_Field_MapField) isConnectorAccountCreationSchema_Field_Field() { +} + +type ConnectorAccountCreationSchema_StringField struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_DefaultValue *string `protobuf:"bytes,1,opt,name=default_value,json=defaultValue,proto3,oneof"` + XXX_raceDetectHookData protoimpl.RaceDetectHookData + XXX_presence [1]uint32 + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *ConnectorAccountCreationSchema_StringField) Reset() { + *x = ConnectorAccountCreationSchema_StringField{} + mi := &file_c1_connector_v2_connector_proto_msgTypes[17] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *ConnectorAccountCreationSchema_StringField) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ConnectorAccountCreationSchema_StringField) ProtoMessage() {} + +func (x *ConnectorAccountCreationSchema_StringField) ProtoReflect() protoreflect.Message { + mi := &file_c1_connector_v2_connector_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) +} + +func (x *ConnectorAccountCreationSchema_StringField) GetDefaultValue() string { + if x != nil { + if x.xxx_hidden_DefaultValue != nil { + return *x.xxx_hidden_DefaultValue + } + return "" + } + return "" +} + +func (x *ConnectorAccountCreationSchema_StringField) SetDefaultValue(v string) { + x.xxx_hidden_DefaultValue = &v + protoimpl.X.SetPresent(&(x.XXX_presence[0]), 0, 1) +} + +func (x *ConnectorAccountCreationSchema_StringField) HasDefaultValue() bool { + if x == nil { + return false + } + return protoimpl.X.Present(&(x.XXX_presence[0]), 0) +} + +func (x *ConnectorAccountCreationSchema_StringField) ClearDefaultValue() { + protoimpl.X.ClearPresent(&(x.XXX_presence[0]), 0) + x.xxx_hidden_DefaultValue = nil +} + +type ConnectorAccountCreationSchema_StringField_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + DefaultValue *string +} + +func (b0 ConnectorAccountCreationSchema_StringField_builder) Build() *ConnectorAccountCreationSchema_StringField { + m0 := &ConnectorAccountCreationSchema_StringField{} + b, x := &b0, m0 + _, _ = b, x + if b.DefaultValue != nil { + protoimpl.X.SetPresentNonAtomic(&(x.XXX_presence[0]), 0, 1) + x.xxx_hidden_DefaultValue = b.DefaultValue + } + return m0 +} + +type ConnectorAccountCreationSchema_BoolField struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_DefaultValue bool `protobuf:"varint,1,opt,name=default_value,json=defaultValue,proto3,oneof"` + XXX_raceDetectHookData protoimpl.RaceDetectHookData + XXX_presence [1]uint32 + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *ConnectorAccountCreationSchema_BoolField) Reset() { + *x = ConnectorAccountCreationSchema_BoolField{} + mi := &file_c1_connector_v2_connector_proto_msgTypes[18] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *ConnectorAccountCreationSchema_BoolField) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ConnectorAccountCreationSchema_BoolField) ProtoMessage() {} + +func (x *ConnectorAccountCreationSchema_BoolField) ProtoReflect() protoreflect.Message { + mi := &file_c1_connector_v2_connector_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) +} + +func (x *ConnectorAccountCreationSchema_BoolField) GetDefaultValue() bool { + if x != nil { + return x.xxx_hidden_DefaultValue + } + return false +} + +func (x *ConnectorAccountCreationSchema_BoolField) SetDefaultValue(v bool) { + x.xxx_hidden_DefaultValue = v + protoimpl.X.SetPresent(&(x.XXX_presence[0]), 0, 1) +} + +func (x *ConnectorAccountCreationSchema_BoolField) HasDefaultValue() bool { + if x == nil { + return false + } + return protoimpl.X.Present(&(x.XXX_presence[0]), 0) +} + +func (x *ConnectorAccountCreationSchema_BoolField) ClearDefaultValue() { + protoimpl.X.ClearPresent(&(x.XXX_presence[0]), 0) + x.xxx_hidden_DefaultValue = false +} + +type ConnectorAccountCreationSchema_BoolField_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + DefaultValue *bool +} + +func (b0 ConnectorAccountCreationSchema_BoolField_builder) Build() *ConnectorAccountCreationSchema_BoolField { + m0 := &ConnectorAccountCreationSchema_BoolField{} + b, x := &b0, m0 + _, _ = b, x + if b.DefaultValue != nil { + protoimpl.X.SetPresentNonAtomic(&(x.XXX_presence[0]), 0, 1) + x.xxx_hidden_DefaultValue = *b.DefaultValue + } + return m0 +} + +type ConnectorAccountCreationSchema_StringListField struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_DefaultValue []string `protobuf:"bytes,1,rep,name=default_value,json=defaultValue,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *ConnectorAccountCreationSchema_StringListField) Reset() { + *x = ConnectorAccountCreationSchema_StringListField{} + mi := &file_c1_connector_v2_connector_proto_msgTypes[19] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *ConnectorAccountCreationSchema_StringListField) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ConnectorAccountCreationSchema_StringListField) ProtoMessage() {} + +func (x *ConnectorAccountCreationSchema_StringListField) ProtoReflect() protoreflect.Message { + mi := &file_c1_connector_v2_connector_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) +} + +func (x *ConnectorAccountCreationSchema_StringListField) GetDefaultValue() []string { + if x != nil { + return x.xxx_hidden_DefaultValue + } + return nil +} + +func (x *ConnectorAccountCreationSchema_StringListField) SetDefaultValue(v []string) { + x.xxx_hidden_DefaultValue = v +} + +type ConnectorAccountCreationSchema_StringListField_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + DefaultValue []string +} + +func (b0 ConnectorAccountCreationSchema_StringListField_builder) Build() *ConnectorAccountCreationSchema_StringListField { + m0 := &ConnectorAccountCreationSchema_StringListField{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_DefaultValue = b.DefaultValue + return m0 +} + +type ConnectorAccountCreationSchema_IntField struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_DefaultValue int32 `protobuf:"varint,1,opt,name=default_value,json=defaultValue,proto3,oneof"` + XXX_raceDetectHookData protoimpl.RaceDetectHookData + XXX_presence [1]uint32 + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *ConnectorAccountCreationSchema_IntField) Reset() { + *x = ConnectorAccountCreationSchema_IntField{} + mi := &file_c1_connector_v2_connector_proto_msgTypes[20] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *ConnectorAccountCreationSchema_IntField) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ConnectorAccountCreationSchema_IntField) ProtoMessage() {} + +func (x *ConnectorAccountCreationSchema_IntField) ProtoReflect() protoreflect.Message { + mi := &file_c1_connector_v2_connector_proto_msgTypes[20] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *ConnectorAccountCreationSchema_IntField) GetDefaultValue() int32 { + if x != nil { + return x.xxx_hidden_DefaultValue + } + return 0 +} + +func (x *ConnectorAccountCreationSchema_IntField) SetDefaultValue(v int32) { + x.xxx_hidden_DefaultValue = v + protoimpl.X.SetPresent(&(x.XXX_presence[0]), 0, 1) +} + +func (x *ConnectorAccountCreationSchema_IntField) HasDefaultValue() bool { + if x == nil { + return false + } + return protoimpl.X.Present(&(x.XXX_presence[0]), 0) +} + +func (x *ConnectorAccountCreationSchema_IntField) ClearDefaultValue() { + protoimpl.X.ClearPresent(&(x.XXX_presence[0]), 0) + x.xxx_hidden_DefaultValue = 0 +} + +type ConnectorAccountCreationSchema_IntField_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + DefaultValue *int32 +} + +func (b0 ConnectorAccountCreationSchema_IntField_builder) Build() *ConnectorAccountCreationSchema_IntField { + m0 := &ConnectorAccountCreationSchema_IntField{} + b, x := &b0, m0 + _, _ = b, x + if b.DefaultValue != nil { + protoimpl.X.SetPresentNonAtomic(&(x.XXX_presence[0]), 0, 1) + x.xxx_hidden_DefaultValue = *b.DefaultValue + } + return m0 +} + +type ConnectorAccountCreationSchema_MapField struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_DefaultValue map[string]*ConnectorAccountCreationSchema_Field `protobuf:"bytes,1,rep,name=default_value,json=defaultValue,proto3" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *ConnectorAccountCreationSchema_MapField) Reset() { + *x = ConnectorAccountCreationSchema_MapField{} + mi := &file_c1_connector_v2_connector_proto_msgTypes[21] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *ConnectorAccountCreationSchema_MapField) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ConnectorAccountCreationSchema_MapField) ProtoMessage() {} + +func (x *ConnectorAccountCreationSchema_MapField) ProtoReflect() protoreflect.Message { + mi := &file_c1_connector_v2_connector_proto_msgTypes[21] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *ConnectorAccountCreationSchema_MapField) GetDefaultValue() map[string]*ConnectorAccountCreationSchema_Field { + if x != nil { + return x.xxx_hidden_DefaultValue + } + return nil +} + +func (x *ConnectorAccountCreationSchema_MapField) SetDefaultValue(v map[string]*ConnectorAccountCreationSchema_Field) { + x.xxx_hidden_DefaultValue = v +} + +type ConnectorAccountCreationSchema_MapField_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + DefaultValue map[string]*ConnectorAccountCreationSchema_Field +} + +func (b0 ConnectorAccountCreationSchema_MapField_builder) Build() *ConnectorAccountCreationSchema_MapField { + m0 := &ConnectorAccountCreationSchema_MapField{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_DefaultValue = b.DefaultValue + return m0 +} + +var File_c1_connector_v2_connector_proto protoreflect.FileDescriptor + +const file_c1_connector_v2_connector_proto_rawDesc = "" + + "\n" + + "\x1fc1/connector/v2/connector.proto\x12\x0fc1.connector.v2\x1a\x1bc1/connector/v2/asset.proto\x1a\x1ec1/connector/v2/resource.proto\x1a\x19google/protobuf/any.proto\x1a\x1cgoogle/protobuf/struct.proto\x1a\x17validate/validate.proto\"\x8d\x01\n" + + "\x1eConnectorServiceCleanupRequest\x126\n" + + "\vannotations\x18\x01 \x03(\v2\x14.google.protobuf.AnyR\vannotations\x123\n" + + "\x0eactive_sync_id\x18\x02 \x01(\tB\r\xfaB\n" + + "r\b \x01(\x80\b\xd0\x01\x01R\factiveSyncId\"Y\n" + + "\x1fConnectorServiceCleanupResponse\x126\n" + + "\vannotations\x18\x01 \x03(\v2\x14.google.protobuf.AnyR\vannotations\"\xa8\x04\n" + + "\x11ConnectorMetadata\x12-\n" + + "\fdisplay_name\x18\x01 \x01(\tB\n" + + "\xfaB\ar\x05 \x01(\x80\bR\vdisplayName\x125\n" + + "\bhelp_url\x18\x02 \x01(\tB\x1a\xfaB\x17r\x15 \x01(\x80\b:\bhttps://\xd0\x01\x01\x88\x01\x01R\ahelpUrl\x12-\n" + + "\x04icon\x18\x03 \x01(\v2\x19.c1.connector.v2.AssetRefR\x04icon\x12-\n" + + "\x04logo\x18\x04 \x01(\v2\x19.c1.connector.v2.AssetRefR\x04logo\x121\n" + + "\aprofile\x18\x05 \x01(\v2\x17.google.protobuf.StructR\aprofile\x126\n" + + "\vannotations\x18\x06 \x03(\v2\x14.google.protobuf.AnyR\vannotations\x12/\n" + + "\vdescription\x18\a \x01(\tB\r\xfaB\n" + + "r\b \x01(\x80 \xd0\x01\x01R\vdescription\x12J\n" + + "\fcapabilities\x18\b \x01(\v2&.c1.connector.v2.ConnectorCapabilitiesR\fcapabilities\x12g\n" + + "\x17account_creation_schema\x18\t \x01(\v2/.c1.connector.v2.ConnectorAccountCreationSchemaR\x15accountCreationSchema\"\x8e\x02\n" + + "\x11CredentialDetails\x12}\n" + + "\x1fcapability_account_provisioning\x18\x01 \x01(\v25.c1.connector.v2.CredentialDetailsAccountProvisioningR\x1dcapabilityAccountProvisioning\x12z\n" + + "\x1ecapability_credential_rotation\x18\x02 \x01(\v24.c1.connector.v2.CredentialDetailsCredentialRotationR\x1ccapabilityCredentialRotation\"\x8e\x02\n" + + "$CredentialDetailsAccountProvisioning\x12s\n" + + "\x1csupported_credential_options\x18\x01 \x03(\x0e21.c1.connector.v2.CapabilityDetailCredentialOptionR\x1asupportedCredentialOptions\x12q\n" + + "\x1bpreferred_credential_option\x18\x02 \x01(\x0e21.c1.connector.v2.CapabilityDetailCredentialOptionR\x19preferredCredentialOption\"\x8d\x02\n" + + "#CredentialDetailsCredentialRotation\x12s\n" + + "\x1csupported_credential_options\x18\x01 \x03(\x0e21.c1.connector.v2.CapabilityDetailCredentialOptionR\x1asupportedCredentialOptions\x12q\n" + + "\x1bpreferred_credential_option\x18\x02 \x01(\x0e21.c1.connector.v2.CapabilityDetailCredentialOptionR\x19preferredCredentialOption\"\xa5\x02\n" + + "\x15ConnectorCapabilities\x12e\n" + + "\x1aresource_type_capabilities\x18\x01 \x03(\v2'.c1.connector.v2.ResourceTypeCapabilityR\x18resourceTypeCapabilities\x12R\n" + + "\x16connector_capabilities\x18\x02 \x03(\x0e2\x1b.c1.connector.v2.CapabilityR\x15connectorCapabilities\x12Q\n" + + "\x12credential_details\x18\x03 \x01(\v2\".c1.connector.v2.CredentialDetailsR\x11credentialDetails\"6\n" + + "\x14CapabilityPermission\x12\x1e\n" + + "\n" + + "permission\x18\x01 \x01(\tR\n" + + "permission\"`\n" + + "\x15CapabilityPermissions\x12G\n" + + "\vpermissions\x18\x01 \x03(\v2%.c1.connector.v2.CapabilityPermissionR\vpermissions\"\xe7\x01\n" + + "\x16ResourceTypeCapability\x12B\n" + + "\rresource_type\x18\x01 \x01(\v2\x1d.c1.connector.v2.ResourceTypeR\fresourceType\x12?\n" + + "\fcapabilities\x18\x02 \x03(\x0e2\x1b.c1.connector.v2.CapabilityR\fcapabilities\x12H\n" + + "\vpermissions\x18\x03 \x01(\v2&.c1.connector.v2.CapabilityPermissionsR\vpermissions\"$\n" + + "\"ConnectorServiceGetMetadataRequest\"e\n" + + "#ConnectorServiceGetMetadataResponse\x12>\n" + + "\bmetadata\x18\x01 \x01(\v2\".c1.connector.v2.ConnectorMetadataR\bmetadata\"!\n" + + "\x1fConnectorServiceValidateRequest\"{\n" + + " ConnectorServiceValidateResponse\x126\n" + + "\vannotations\x18\x01 \x03(\v2\x14.google.protobuf.AnyR\vannotations\x12\x1f\n" + + "\vsdk_version\x18\x02 \x01(\tR\n" + + "sdkVersion\"\xa5\v\n" + + "\x1eConnectorAccountCreationSchema\x12Z\n" + + "\tfield_map\x18\x01 \x03(\v2=.c1.connector.v2.ConnectorAccountCreationSchema.FieldMapEntryR\bfieldMap\x1ar\n" + + "\rFieldMapEntry\x12\x10\n" + + "\x03key\x18\x01 \x01(\tR\x03key\x12K\n" + + "\x05value\x18\x02 \x01(\v25.c1.connector.v2.ConnectorAccountCreationSchema.FieldR\x05value:\x028\x01\x1a\xa8\x05\n" + + "\x05Field\x12!\n" + + "\fdisplay_name\x18\x01 \x01(\tR\vdisplayName\x12\x1a\n" + + "\brequired\x18\x02 \x01(\bR\brequired\x12 \n" + + "\vdescription\x18\x03 \x01(\tR\vdescription\x12 \n" + + "\vplaceholder\x18\x04 \x01(\tR\vplaceholder\x12\x14\n" + + "\x05order\x18\x05 \x01(\x05R\x05order\x12\x1e\n" + + "\n" + + "deprecated\x18\x06 \x01(\bR\n" + + "deprecated\x12`\n" + + "\fstring_field\x18d \x01(\v2;.c1.connector.v2.ConnectorAccountCreationSchema.StringFieldH\x00R\vstringField\x12Z\n" + + "\n" + + "bool_field\x18e \x01(\v29.c1.connector.v2.ConnectorAccountCreationSchema.BoolFieldH\x00R\tboolField\x12m\n" + + "\x11string_list_field\x18f \x01(\v2?.c1.connector.v2.ConnectorAccountCreationSchema.StringListFieldH\x00R\x0fstringListField\x12W\n" + + "\tint_field\x18g \x01(\v28.c1.connector.v2.ConnectorAccountCreationSchema.IntFieldH\x00R\bintField\x12W\n" + + "\tmap_field\x18h \x01(\v28.c1.connector.v2.ConnectorAccountCreationSchema.MapFieldH\x00R\bmapFieldB\a\n" + + "\x05field\x1aI\n" + + "\vStringField\x12(\n" + + "\rdefault_value\x18\x01 \x01(\tH\x00R\fdefaultValue\x88\x01\x01B\x10\n" + + "\x0e_default_value\x1aG\n" + + "\tBoolField\x12(\n" + + "\rdefault_value\x18\x01 \x01(\bH\x00R\fdefaultValue\x88\x01\x01B\x10\n" + + "\x0e_default_value\x1a6\n" + + "\x0fStringListField\x12#\n" + + "\rdefault_value\x18\x01 \x03(\tR\fdefaultValue\x1aF\n" + + "\bIntField\x12(\n" + + "\rdefault_value\x18\x01 \x01(\x05H\x00R\fdefaultValue\x88\x01\x01B\x10\n" + + "\x0e_default_value\x1a\xf3\x01\n" + + "\bMapField\x12o\n" + + "\rdefault_value\x18\x01 \x03(\v2J.c1.connector.v2.ConnectorAccountCreationSchema.MapField.DefaultValueEntryR\fdefaultValue\x1av\n" + + "\x11DefaultValueEntry\x12\x10\n" + + "\x03key\x18\x01 \x01(\tR\x03key\x12K\n" + + "\x05value\x18\x02 \x01(\v25.c1.connector.v2.ConnectorAccountCreationSchema.FieldR\x05value:\x028\x01*\x86\x03\n" + + "\n" + + "Capability\x12\x1a\n" + + "\x16CAPABILITY_UNSPECIFIED\x10\x00\x12\x18\n" + + "\x14CAPABILITY_PROVISION\x10\x01\x12\x13\n" + + "\x0fCAPABILITY_SYNC\x10\x02\x12\x19\n" + + "\x15CAPABILITY_EVENT_FEED\x10\x03\x12\x18\n" + + "\x14CAPABILITY_TICKETING\x10\x04\x12#\n" + + "\x1fCAPABILITY_ACCOUNT_PROVISIONING\x10\x05\x12\"\n" + + "\x1eCAPABILITY_CREDENTIAL_ROTATION\x10\x06\x12\x1e\n" + + "\x1aCAPABILITY_RESOURCE_CREATE\x10\a\x12\x1e\n" + + "\x1aCAPABILITY_RESOURCE_DELETE\x10\b\x12\x1b\n" + + "\x17CAPABILITY_SYNC_SECRETS\x10\t\x12\x16\n" + + "\x12CAPABILITY_ACTIONS\x10\n" + + "\x12\x1c\n" + + "\x18CAPABILITY_TARGETED_SYNC\x10\v\x12\x1c\n" + + "\x18CAPABILITY_EVENT_FEED_V2\x10\f*\xae\x02\n" + + " CapabilityDetailCredentialOption\x123\n" + + "/CAPABILITY_DETAIL_CREDENTIAL_OPTION_UNSPECIFIED\x10\x00\x123\n" + + "/CAPABILITY_DETAIL_CREDENTIAL_OPTION_NO_PASSWORD\x10\x01\x127\n" + + "3CAPABILITY_DETAIL_CREDENTIAL_OPTION_RANDOM_PASSWORD\x10\x02\x12+\n" + + "'CAPABILITY_DETAIL_CREDENTIAL_OPTION_SSO\x10\x03\x12:\n" + + "6CAPABILITY_DETAIL_CREDENTIAL_OPTION_ENCRYPTED_PASSWORD\x10\x042\xeb\x02\n" + + "\x10ConnectorService\x12x\n" + + "\vGetMetadata\x123.c1.connector.v2.ConnectorServiceGetMetadataRequest\x1a4.c1.connector.v2.ConnectorServiceGetMetadataResponse\x12o\n" + + "\bValidate\x120.c1.connector.v2.ConnectorServiceValidateRequest\x1a1.c1.connector.v2.ConnectorServiceValidateResponse\x12l\n" + + "\aCleanup\x12/.c1.connector.v2.ConnectorServiceCleanupRequest\x1a0.c1.connector.v2.ConnectorServiceCleanupResponseB6Z4github.com/conductorone/baton-sdk/pb/c1/connector/v2b\x06proto3" + +var file_c1_connector_v2_connector_proto_enumTypes = make([]protoimpl.EnumInfo, 2) +var file_c1_connector_v2_connector_proto_msgTypes = make([]protoimpl.MessageInfo, 23) +var file_c1_connector_v2_connector_proto_goTypes = []any{ + (Capability)(0), // 0: c1.connector.v2.Capability + (CapabilityDetailCredentialOption)(0), // 1: c1.connector.v2.CapabilityDetailCredentialOption + (*ConnectorServiceCleanupRequest)(nil), // 2: c1.connector.v2.ConnectorServiceCleanupRequest + (*ConnectorServiceCleanupResponse)(nil), // 3: c1.connector.v2.ConnectorServiceCleanupResponse + (*ConnectorMetadata)(nil), // 4: c1.connector.v2.ConnectorMetadata + (*CredentialDetails)(nil), // 5: c1.connector.v2.CredentialDetails + (*CredentialDetailsAccountProvisioning)(nil), // 6: c1.connector.v2.CredentialDetailsAccountProvisioning + (*CredentialDetailsCredentialRotation)(nil), // 7: c1.connector.v2.CredentialDetailsCredentialRotation + (*ConnectorCapabilities)(nil), // 8: c1.connector.v2.ConnectorCapabilities + (*CapabilityPermission)(nil), // 9: c1.connector.v2.CapabilityPermission + (*CapabilityPermissions)(nil), // 10: c1.connector.v2.CapabilityPermissions + (*ResourceTypeCapability)(nil), // 11: c1.connector.v2.ResourceTypeCapability + (*ConnectorServiceGetMetadataRequest)(nil), // 12: c1.connector.v2.ConnectorServiceGetMetadataRequest + (*ConnectorServiceGetMetadataResponse)(nil), // 13: c1.connector.v2.ConnectorServiceGetMetadataResponse + (*ConnectorServiceValidateRequest)(nil), // 14: c1.connector.v2.ConnectorServiceValidateRequest + (*ConnectorServiceValidateResponse)(nil), // 15: c1.connector.v2.ConnectorServiceValidateResponse + (*ConnectorAccountCreationSchema)(nil), // 16: c1.connector.v2.ConnectorAccountCreationSchema + nil, // 17: c1.connector.v2.ConnectorAccountCreationSchema.FieldMapEntry + (*ConnectorAccountCreationSchema_Field)(nil), // 18: c1.connector.v2.ConnectorAccountCreationSchema.Field + (*ConnectorAccountCreationSchema_StringField)(nil), // 19: c1.connector.v2.ConnectorAccountCreationSchema.StringField + (*ConnectorAccountCreationSchema_BoolField)(nil), // 20: c1.connector.v2.ConnectorAccountCreationSchema.BoolField + (*ConnectorAccountCreationSchema_StringListField)(nil), // 21: c1.connector.v2.ConnectorAccountCreationSchema.StringListField + (*ConnectorAccountCreationSchema_IntField)(nil), // 22: c1.connector.v2.ConnectorAccountCreationSchema.IntField + (*ConnectorAccountCreationSchema_MapField)(nil), // 23: c1.connector.v2.ConnectorAccountCreationSchema.MapField + nil, // 24: c1.connector.v2.ConnectorAccountCreationSchema.MapField.DefaultValueEntry + (*anypb.Any)(nil), // 25: google.protobuf.Any + (*AssetRef)(nil), // 26: c1.connector.v2.AssetRef + (*structpb.Struct)(nil), // 27: google.protobuf.Struct + (*ResourceType)(nil), // 28: c1.connector.v2.ResourceType +} +var file_c1_connector_v2_connector_proto_depIdxs = []int32{ + 25, // 0: c1.connector.v2.ConnectorServiceCleanupRequest.annotations:type_name -> google.protobuf.Any + 25, // 1: c1.connector.v2.ConnectorServiceCleanupResponse.annotations:type_name -> google.protobuf.Any + 26, // 2: c1.connector.v2.ConnectorMetadata.icon:type_name -> c1.connector.v2.AssetRef + 26, // 3: c1.connector.v2.ConnectorMetadata.logo:type_name -> c1.connector.v2.AssetRef + 27, // 4: c1.connector.v2.ConnectorMetadata.profile:type_name -> google.protobuf.Struct + 25, // 5: c1.connector.v2.ConnectorMetadata.annotations:type_name -> google.protobuf.Any + 8, // 6: c1.connector.v2.ConnectorMetadata.capabilities:type_name -> c1.connector.v2.ConnectorCapabilities + 16, // 7: c1.connector.v2.ConnectorMetadata.account_creation_schema:type_name -> c1.connector.v2.ConnectorAccountCreationSchema + 6, // 8: c1.connector.v2.CredentialDetails.capability_account_provisioning:type_name -> c1.connector.v2.CredentialDetailsAccountProvisioning + 7, // 9: c1.connector.v2.CredentialDetails.capability_credential_rotation:type_name -> c1.connector.v2.CredentialDetailsCredentialRotation + 1, // 10: c1.connector.v2.CredentialDetailsAccountProvisioning.supported_credential_options:type_name -> c1.connector.v2.CapabilityDetailCredentialOption + 1, // 11: c1.connector.v2.CredentialDetailsAccountProvisioning.preferred_credential_option:type_name -> c1.connector.v2.CapabilityDetailCredentialOption + 1, // 12: c1.connector.v2.CredentialDetailsCredentialRotation.supported_credential_options:type_name -> c1.connector.v2.CapabilityDetailCredentialOption + 1, // 13: c1.connector.v2.CredentialDetailsCredentialRotation.preferred_credential_option:type_name -> c1.connector.v2.CapabilityDetailCredentialOption + 11, // 14: c1.connector.v2.ConnectorCapabilities.resource_type_capabilities:type_name -> c1.connector.v2.ResourceTypeCapability + 0, // 15: c1.connector.v2.ConnectorCapabilities.connector_capabilities:type_name -> c1.connector.v2.Capability + 5, // 16: c1.connector.v2.ConnectorCapabilities.credential_details:type_name -> c1.connector.v2.CredentialDetails + 9, // 17: c1.connector.v2.CapabilityPermissions.permissions:type_name -> c1.connector.v2.CapabilityPermission + 28, // 18: c1.connector.v2.ResourceTypeCapability.resource_type:type_name -> c1.connector.v2.ResourceType + 0, // 19: c1.connector.v2.ResourceTypeCapability.capabilities:type_name -> c1.connector.v2.Capability + 10, // 20: c1.connector.v2.ResourceTypeCapability.permissions:type_name -> c1.connector.v2.CapabilityPermissions + 4, // 21: c1.connector.v2.ConnectorServiceGetMetadataResponse.metadata:type_name -> c1.connector.v2.ConnectorMetadata + 25, // 22: c1.connector.v2.ConnectorServiceValidateResponse.annotations:type_name -> google.protobuf.Any + 17, // 23: c1.connector.v2.ConnectorAccountCreationSchema.field_map:type_name -> c1.connector.v2.ConnectorAccountCreationSchema.FieldMapEntry + 18, // 24: c1.connector.v2.ConnectorAccountCreationSchema.FieldMapEntry.value:type_name -> c1.connector.v2.ConnectorAccountCreationSchema.Field + 19, // 25: c1.connector.v2.ConnectorAccountCreationSchema.Field.string_field:type_name -> c1.connector.v2.ConnectorAccountCreationSchema.StringField + 20, // 26: c1.connector.v2.ConnectorAccountCreationSchema.Field.bool_field:type_name -> c1.connector.v2.ConnectorAccountCreationSchema.BoolField + 21, // 27: c1.connector.v2.ConnectorAccountCreationSchema.Field.string_list_field:type_name -> c1.connector.v2.ConnectorAccountCreationSchema.StringListField + 22, // 28: c1.connector.v2.ConnectorAccountCreationSchema.Field.int_field:type_name -> c1.connector.v2.ConnectorAccountCreationSchema.IntField + 23, // 29: c1.connector.v2.ConnectorAccountCreationSchema.Field.map_field:type_name -> c1.connector.v2.ConnectorAccountCreationSchema.MapField + 24, // 30: c1.connector.v2.ConnectorAccountCreationSchema.MapField.default_value:type_name -> c1.connector.v2.ConnectorAccountCreationSchema.MapField.DefaultValueEntry + 18, // 31: c1.connector.v2.ConnectorAccountCreationSchema.MapField.DefaultValueEntry.value:type_name -> c1.connector.v2.ConnectorAccountCreationSchema.Field + 12, // 32: c1.connector.v2.ConnectorService.GetMetadata:input_type -> c1.connector.v2.ConnectorServiceGetMetadataRequest + 14, // 33: c1.connector.v2.ConnectorService.Validate:input_type -> c1.connector.v2.ConnectorServiceValidateRequest + 2, // 34: c1.connector.v2.ConnectorService.Cleanup:input_type -> c1.connector.v2.ConnectorServiceCleanupRequest + 13, // 35: c1.connector.v2.ConnectorService.GetMetadata:output_type -> c1.connector.v2.ConnectorServiceGetMetadataResponse + 15, // 36: c1.connector.v2.ConnectorService.Validate:output_type -> c1.connector.v2.ConnectorServiceValidateResponse + 3, // 37: c1.connector.v2.ConnectorService.Cleanup:output_type -> c1.connector.v2.ConnectorServiceCleanupResponse + 35, // [35:38] is the sub-list for method output_type + 32, // [32:35] is the sub-list for method input_type + 32, // [32:32] is the sub-list for extension type_name + 32, // [32:32] is the sub-list for extension extendee + 0, // [0:32] is the sub-list for field type_name +} + +func init() { file_c1_connector_v2_connector_proto_init() } +func file_c1_connector_v2_connector_proto_init() { + if File_c1_connector_v2_connector_proto != nil { + return + } + file_c1_connector_v2_asset_proto_init() + file_c1_connector_v2_resource_proto_init() + file_c1_connector_v2_connector_proto_msgTypes[16].OneofWrappers = []any{ + (*connectorAccountCreationSchema_Field_StringField)(nil), + (*connectorAccountCreationSchema_Field_BoolField)(nil), + (*connectorAccountCreationSchema_Field_StringListField)(nil), + (*connectorAccountCreationSchema_Field_IntField)(nil), + (*connectorAccountCreationSchema_Field_MapField)(nil), + } + file_c1_connector_v2_connector_proto_msgTypes[17].OneofWrappers = []any{} + file_c1_connector_v2_connector_proto_msgTypes[18].OneofWrappers = []any{} + file_c1_connector_v2_connector_proto_msgTypes[20].OneofWrappers = []any{} + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: unsafe.Slice(unsafe.StringData(file_c1_connector_v2_connector_proto_rawDesc), len(file_c1_connector_v2_connector_proto_rawDesc)), + NumEnums: 2, + NumMessages: 23, + NumExtensions: 0, + NumServices: 1, + }, + GoTypes: file_c1_connector_v2_connector_proto_goTypes, + DependencyIndexes: file_c1_connector_v2_connector_proto_depIdxs, + EnumInfos: file_c1_connector_v2_connector_proto_enumTypes, + MessageInfos: file_c1_connector_v2_connector_proto_msgTypes, + }.Build() + File_c1_connector_v2_connector_proto = out.File + file_c1_connector_v2_connector_proto_goTypes = nil + file_c1_connector_v2_connector_proto_depIdxs = nil +} diff --git a/vendor/github.com/conductorone/baton-sdk/pb/c1/connector/v2/entitlement.pb.go b/vendor/github.com/conductorone/baton-sdk/pb/c1/connector/v2/entitlement.pb.go index ec6c1d0e..d1926c4a 100644 --- a/vendor/github.com/conductorone/baton-sdk/pb/c1/connector/v2/entitlement.pb.go +++ b/vendor/github.com/conductorone/baton-sdk/pb/c1/connector/v2/entitlement.pb.go @@ -1,9 +1,11 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.36.4 +// protoc-gen-go v1.36.10 // protoc (unknown) // source: c1/connector/v2/entitlement.proto +//go:build !protoopaque + package v2 import ( @@ -12,7 +14,6 @@ import ( protoimpl "google.golang.org/protobuf/runtime/protoimpl" anypb "google.golang.org/protobuf/types/known/anypb" reflect "reflect" - sync "sync" unsafe "unsafe" ) @@ -29,6 +30,7 @@ const ( Entitlement_PURPOSE_VALUE_UNSPECIFIED Entitlement_PurposeValue = 0 Entitlement_PURPOSE_VALUE_ASSIGNMENT Entitlement_PurposeValue = 1 Entitlement_PURPOSE_VALUE_PERMISSION Entitlement_PurposeValue = 2 + Entitlement_PURPOSE_VALUE_OWNERSHIP Entitlement_PurposeValue = 3 ) // Enum value maps for Entitlement_PurposeValue. @@ -37,11 +39,13 @@ var ( 0: "PURPOSE_VALUE_UNSPECIFIED", 1: "PURPOSE_VALUE_ASSIGNMENT", 2: "PURPOSE_VALUE_PERMISSION", + 3: "PURPOSE_VALUE_OWNERSHIP", } Entitlement_PurposeValue_value = map[string]int32{ "PURPOSE_VALUE_UNSPECIFIED": 0, "PURPOSE_VALUE_ASSIGNMENT": 1, "PURPOSE_VALUE_PERMISSION": 2, + "PURPOSE_VALUE_OWNERSHIP": 3, } ) @@ -67,13 +71,8 @@ func (x Entitlement_PurposeValue) Number() protoreflect.EnumNumber { return protoreflect.EnumNumber(x) } -// Deprecated: Use Entitlement_PurposeValue.Descriptor instead. -func (Entitlement_PurposeValue) EnumDescriptor() ([]byte, []int) { - return file_c1_connector_v2_entitlement_proto_rawDescGZIP(), []int{0, 0} -} - type Entitlement struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` Resource *Resource `protobuf:"bytes,1,opt,name=resource,proto3" json:"resource,omitempty"` Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"` DisplayName string `protobuf:"bytes,3,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"` @@ -111,11 +110,6 @@ func (x *Entitlement) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use Entitlement.ProtoReflect.Descriptor instead. -func (*Entitlement) Descriptor() ([]byte, []int) { - return file_c1_connector_v2_entitlement_proto_rawDescGZIP(), []int{0} -} - func (x *Entitlement) GetResource() *Resource { if x != nil { return x.Resource @@ -172,12 +166,84 @@ func (x *Entitlement) GetSlug() string { return "" } +func (x *Entitlement) SetResource(v *Resource) { + x.Resource = v +} + +func (x *Entitlement) SetId(v string) { + x.Id = v +} + +func (x *Entitlement) SetDisplayName(v string) { + x.DisplayName = v +} + +func (x *Entitlement) SetDescription(v string) { + x.Description = v +} + +func (x *Entitlement) SetGrantableTo(v []*ResourceType) { + x.GrantableTo = v +} + +func (x *Entitlement) SetAnnotations(v []*anypb.Any) { + x.Annotations = v +} + +func (x *Entitlement) SetPurpose(v Entitlement_PurposeValue) { + x.Purpose = v +} + +func (x *Entitlement) SetSlug(v string) { + x.Slug = v +} + +func (x *Entitlement) HasResource() bool { + if x == nil { + return false + } + return x.Resource != nil +} + +func (x *Entitlement) ClearResource() { + x.Resource = nil +} + +type Entitlement_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Resource *Resource + Id string + DisplayName string + Description string + GrantableTo []*ResourceType + Annotations []*anypb.Any + Purpose Entitlement_PurposeValue + Slug string +} + +func (b0 Entitlement_builder) Build() *Entitlement { + m0 := &Entitlement{} + b, x := &b0, m0 + _, _ = b, x + x.Resource = b.Resource + x.Id = b.Id + x.DisplayName = b.DisplayName + x.Description = b.Description + x.GrantableTo = b.GrantableTo + x.Annotations = b.Annotations + x.Purpose = b.Purpose + x.Slug = b.Slug + return m0 +} + type EntitlementsServiceListEntitlementsRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` Resource *Resource `protobuf:"bytes,1,opt,name=resource,proto3" json:"resource,omitempty"` PageSize uint32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"` Annotations []*anypb.Any `protobuf:"bytes,4,rep,name=annotations,proto3" json:"annotations,omitempty"` + ActiveSyncId string `protobuf:"bytes,5,opt,name=active_sync_id,json=activeSyncId,proto3" json:"active_sync_id,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } @@ -207,11 +273,6 @@ func (x *EntitlementsServiceListEntitlementsRequest) ProtoReflect() protoreflect return mi.MessageOf(x) } -// Deprecated: Use EntitlementsServiceListEntitlementsRequest.ProtoReflect.Descriptor instead. -func (*EntitlementsServiceListEntitlementsRequest) Descriptor() ([]byte, []int) { - return file_c1_connector_v2_entitlement_proto_rawDescGZIP(), []int{1} -} - func (x *EntitlementsServiceListEntitlementsRequest) GetResource() *Resource { if x != nil { return x.Resource @@ -240,8 +301,68 @@ func (x *EntitlementsServiceListEntitlementsRequest) GetAnnotations() []*anypb.A return nil } +func (x *EntitlementsServiceListEntitlementsRequest) GetActiveSyncId() string { + if x != nil { + return x.ActiveSyncId + } + return "" +} + +func (x *EntitlementsServiceListEntitlementsRequest) SetResource(v *Resource) { + x.Resource = v +} + +func (x *EntitlementsServiceListEntitlementsRequest) SetPageSize(v uint32) { + x.PageSize = v +} + +func (x *EntitlementsServiceListEntitlementsRequest) SetPageToken(v string) { + x.PageToken = v +} + +func (x *EntitlementsServiceListEntitlementsRequest) SetAnnotations(v []*anypb.Any) { + x.Annotations = v +} + +func (x *EntitlementsServiceListEntitlementsRequest) SetActiveSyncId(v string) { + x.ActiveSyncId = v +} + +func (x *EntitlementsServiceListEntitlementsRequest) HasResource() bool { + if x == nil { + return false + } + return x.Resource != nil +} + +func (x *EntitlementsServiceListEntitlementsRequest) ClearResource() { + x.Resource = nil +} + +type EntitlementsServiceListEntitlementsRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Resource *Resource + PageSize uint32 + PageToken string + Annotations []*anypb.Any + ActiveSyncId string +} + +func (b0 EntitlementsServiceListEntitlementsRequest_builder) Build() *EntitlementsServiceListEntitlementsRequest { + m0 := &EntitlementsServiceListEntitlementsRequest{} + b, x := &b0, m0 + _, _ = b, x + x.Resource = b.Resource + x.PageSize = b.PageSize + x.PageToken = b.PageToken + x.Annotations = b.Annotations + x.ActiveSyncId = b.ActiveSyncId + return m0 +} + type EntitlementsServiceListEntitlementsResponse struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` List []*Entitlement `protobuf:"bytes,1,rep,name=list,proto3" json:"list,omitempty"` NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` Annotations []*anypb.Any `protobuf:"bytes,3,rep,name=annotations,proto3" json:"annotations,omitempty"` @@ -274,11 +395,6 @@ func (x *EntitlementsServiceListEntitlementsResponse) ProtoReflect() protoreflec return mi.MessageOf(x) } -// Deprecated: Use EntitlementsServiceListEntitlementsResponse.ProtoReflect.Descriptor instead. -func (*EntitlementsServiceListEntitlementsResponse) Descriptor() ([]byte, []int) { - return file_c1_connector_v2_entitlement_proto_rawDescGZIP(), []int{2} -} - func (x *EntitlementsServiceListEntitlementsResponse) GetList() []*Entitlement { if x != nil { return x.List @@ -300,135 +416,321 @@ func (x *EntitlementsServiceListEntitlementsResponse) GetAnnotations() []*anypb. return nil } -var File_c1_connector_v2_entitlement_proto protoreflect.FileDescriptor +func (x *EntitlementsServiceListEntitlementsResponse) SetList(v []*Entitlement) { + x.List = v +} -var file_c1_connector_v2_entitlement_proto_rawDesc = string([]byte{ - 0x0a, 0x21, 0x63, 0x31, 0x2f, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x2f, 0x76, - 0x32, 0x2f, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x2e, 0x70, 0x72, - 0x6f, 0x74, 0x6f, 0x12, 0x0f, 0x63, 0x31, 0x2e, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, - 0x72, 0x2e, 0x76, 0x32, 0x1a, 0x1e, 0x63, 0x31, 0x2f, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, - 0x6f, 0x72, 0x2f, 0x76, 0x32, 0x2f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x2e, 0x70, - 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x19, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, - 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x61, 0x6e, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, - 0x17, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x2f, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, - 0x74, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x95, 0x04, 0x0a, 0x0b, 0x45, 0x6e, 0x74, - 0x69, 0x74, 0x6c, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x12, 0x3f, 0x0a, 0x08, 0x72, 0x65, 0x73, 0x6f, - 0x75, 0x72, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x63, 0x31, 0x2e, - 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x2e, 0x76, 0x32, 0x2e, 0x52, 0x65, 0x73, - 0x6f, 0x75, 0x72, 0x63, 0x65, 0x42, 0x08, 0xfa, 0x42, 0x05, 0x8a, 0x01, 0x02, 0x10, 0x01, 0x52, - 0x08, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x12, 0x1a, 0x0a, 0x02, 0x69, 0x64, 0x18, - 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x0a, 0xfa, 0x42, 0x07, 0x72, 0x05, 0x20, 0x01, 0x28, 0x80, - 0x08, 0x52, 0x02, 0x69, 0x64, 0x12, 0x30, 0x0a, 0x0c, 0x64, 0x69, 0x73, 0x70, 0x6c, 0x61, 0x79, - 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x42, 0x0d, 0xfa, 0x42, 0x0a, - 0x72, 0x08, 0x20, 0x01, 0x28, 0x80, 0x08, 0xd0, 0x01, 0x01, 0x52, 0x0b, 0x64, 0x69, 0x73, 0x70, - 0x6c, 0x61, 0x79, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x2f, 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, - 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x42, 0x0d, 0xfa, 0x42, - 0x0a, 0x72, 0x08, 0x20, 0x01, 0x28, 0x80, 0x10, 0xd0, 0x01, 0x01, 0x52, 0x0b, 0x64, 0x65, 0x73, - 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x40, 0x0a, 0x0c, 0x67, 0x72, 0x61, 0x6e, - 0x74, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x74, 0x6f, 0x18, 0x05, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1d, - 0x2e, 0x63, 0x31, 0x2e, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x2e, 0x76, 0x32, - 0x2e, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x54, 0x79, 0x70, 0x65, 0x52, 0x0b, 0x67, - 0x72, 0x61, 0x6e, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x54, 0x6f, 0x12, 0x36, 0x0a, 0x0b, 0x61, 0x6e, - 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x06, 0x20, 0x03, 0x28, 0x0b, 0x32, - 0x14, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, - 0x66, 0x2e, 0x41, 0x6e, 0x79, 0x52, 0x0b, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, - 0x6e, 0x73, 0x12, 0x4d, 0x0a, 0x07, 0x70, 0x75, 0x72, 0x70, 0x6f, 0x73, 0x65, 0x18, 0x07, 0x20, - 0x01, 0x28, 0x0e, 0x32, 0x29, 0x2e, 0x63, 0x31, 0x2e, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, - 0x6f, 0x72, 0x2e, 0x76, 0x32, 0x2e, 0x45, 0x6e, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x6d, 0x65, 0x6e, - 0x74, 0x2e, 0x50, 0x75, 0x72, 0x70, 0x6f, 0x73, 0x65, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x42, 0x08, - 0xfa, 0x42, 0x05, 0x82, 0x01, 0x02, 0x10, 0x01, 0x52, 0x07, 0x70, 0x75, 0x72, 0x70, 0x6f, 0x73, - 0x65, 0x12, 0x12, 0x0a, 0x04, 0x73, 0x6c, 0x75, 0x67, 0x18, 0x08, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x04, 0x73, 0x6c, 0x75, 0x67, 0x22, 0x69, 0x0a, 0x0c, 0x50, 0x75, 0x72, 0x70, 0x6f, 0x73, 0x65, - 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x1d, 0x0a, 0x19, 0x50, 0x55, 0x52, 0x50, 0x4f, 0x53, 0x45, - 0x5f, 0x56, 0x41, 0x4c, 0x55, 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, - 0x45, 0x44, 0x10, 0x00, 0x12, 0x1c, 0x0a, 0x18, 0x50, 0x55, 0x52, 0x50, 0x4f, 0x53, 0x45, 0x5f, - 0x56, 0x41, 0x4c, 0x55, 0x45, 0x5f, 0x41, 0x53, 0x53, 0x49, 0x47, 0x4e, 0x4d, 0x45, 0x4e, 0x54, - 0x10, 0x01, 0x12, 0x1c, 0x0a, 0x18, 0x50, 0x55, 0x52, 0x50, 0x4f, 0x53, 0x45, 0x5f, 0x56, 0x41, - 0x4c, 0x55, 0x45, 0x5f, 0x50, 0x45, 0x52, 0x4d, 0x49, 0x53, 0x53, 0x49, 0x4f, 0x4e, 0x10, 0x02, - 0x22, 0xf3, 0x01, 0x0a, 0x2a, 0x45, 0x6e, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x6d, 0x65, 0x6e, 0x74, - 0x73, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x4c, 0x69, 0x73, 0x74, 0x45, 0x6e, 0x74, 0x69, - 0x74, 0x6c, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, - 0x35, 0x0a, 0x08, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x0b, 0x32, 0x19, 0x2e, 0x63, 0x31, 0x2e, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, - 0x2e, 0x76, 0x32, 0x2e, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x52, 0x08, 0x72, 0x65, - 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x12, 0x27, 0x0a, 0x09, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x73, - 0x69, 0x7a, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, 0x42, 0x0a, 0xfa, 0x42, 0x07, 0x2a, 0x05, - 0x18, 0xfa, 0x01, 0x40, 0x01, 0x52, 0x08, 0x70, 0x61, 0x67, 0x65, 0x53, 0x69, 0x7a, 0x65, 0x12, - 0x2d, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x03, 0x20, - 0x01, 0x28, 0x09, 0x42, 0x0e, 0xfa, 0x42, 0x0b, 0x72, 0x09, 0x20, 0x01, 0x28, 0x80, 0x80, 0x40, - 0xd0, 0x01, 0x01, 0x52, 0x09, 0x70, 0x61, 0x67, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x36, - 0x0a, 0x0b, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x04, 0x20, - 0x03, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, - 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x41, 0x6e, 0x79, 0x52, 0x0b, 0x61, 0x6e, 0x6e, 0x6f, 0x74, - 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x22, 0xcf, 0x01, 0x0a, 0x2b, 0x45, 0x6e, 0x74, 0x69, 0x74, - 0x6c, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x4c, 0x69, - 0x73, 0x74, 0x45, 0x6e, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x52, 0x65, - 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x30, 0x0a, 0x04, 0x6c, 0x69, 0x73, 0x74, 0x18, 0x01, - 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x63, 0x31, 0x2e, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, - 0x74, 0x6f, 0x72, 0x2e, 0x76, 0x32, 0x2e, 0x45, 0x6e, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x6d, 0x65, - 0x6e, 0x74, 0x52, 0x04, 0x6c, 0x69, 0x73, 0x74, 0x12, 0x36, 0x0a, 0x0f, 0x6e, 0x65, 0x78, 0x74, - 0x5f, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, - 0x09, 0x42, 0x0e, 0xfa, 0x42, 0x0b, 0x72, 0x09, 0x20, 0x01, 0x28, 0x80, 0x80, 0x40, 0xd0, 0x01, - 0x01, 0x52, 0x0d, 0x6e, 0x65, 0x78, 0x74, 0x50, 0x61, 0x67, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, - 0x12, 0x36, 0x0a, 0x0b, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, - 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, - 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x41, 0x6e, 0x79, 0x52, 0x0b, 0x61, 0x6e, 0x6e, - 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x32, 0xa5, 0x01, 0x0a, 0x13, 0x45, 0x6e, 0x74, - 0x69, 0x74, 0x6c, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, - 0x12, 0x8d, 0x01, 0x0a, 0x10, 0x4c, 0x69, 0x73, 0x74, 0x45, 0x6e, 0x74, 0x69, 0x74, 0x6c, 0x65, - 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x12, 0x3b, 0x2e, 0x63, 0x31, 0x2e, 0x63, 0x6f, 0x6e, 0x6e, 0x65, - 0x63, 0x74, 0x6f, 0x72, 0x2e, 0x76, 0x32, 0x2e, 0x45, 0x6e, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x6d, - 0x65, 0x6e, 0x74, 0x73, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x4c, 0x69, 0x73, 0x74, 0x45, - 0x6e, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, - 0x73, 0x74, 0x1a, 0x3c, 0x2e, 0x63, 0x31, 0x2e, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, - 0x72, 0x2e, 0x76, 0x32, 0x2e, 0x45, 0x6e, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x6d, 0x65, 0x6e, 0x74, - 0x73, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x4c, 0x69, 0x73, 0x74, 0x45, 0x6e, 0x74, 0x69, - 0x74, 0x6c, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, - 0x42, 0x36, 0x5a, 0x34, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x63, - 0x6f, 0x6e, 0x64, 0x75, 0x63, 0x74, 0x6f, 0x72, 0x6f, 0x6e, 0x65, 0x2f, 0x62, 0x61, 0x74, 0x6f, - 0x6e, 0x2d, 0x73, 0x64, 0x6b, 0x2f, 0x70, 0x62, 0x2f, 0x63, 0x31, 0x2f, 0x63, 0x6f, 0x6e, 0x6e, - 0x65, 0x63, 0x74, 0x6f, 0x72, 0x2f, 0x76, 0x32, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, -}) +func (x *EntitlementsServiceListEntitlementsResponse) SetNextPageToken(v string) { + x.NextPageToken = v +} -var ( - file_c1_connector_v2_entitlement_proto_rawDescOnce sync.Once - file_c1_connector_v2_entitlement_proto_rawDescData []byte -) +func (x *EntitlementsServiceListEntitlementsResponse) SetAnnotations(v []*anypb.Any) { + x.Annotations = v +} -func file_c1_connector_v2_entitlement_proto_rawDescGZIP() []byte { - file_c1_connector_v2_entitlement_proto_rawDescOnce.Do(func() { - file_c1_connector_v2_entitlement_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_c1_connector_v2_entitlement_proto_rawDesc), len(file_c1_connector_v2_entitlement_proto_rawDesc))) - }) - return file_c1_connector_v2_entitlement_proto_rawDescData +type EntitlementsServiceListEntitlementsResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + List []*Entitlement + NextPageToken string + Annotations []*anypb.Any +} + +func (b0 EntitlementsServiceListEntitlementsResponse_builder) Build() *EntitlementsServiceListEntitlementsResponse { + m0 := &EntitlementsServiceListEntitlementsResponse{} + b, x := &b0, m0 + _, _ = b, x + x.List = b.List + x.NextPageToken = b.NextPageToken + x.Annotations = b.Annotations + return m0 } +type EntitlementsServiceListStaticEntitlementsRequest struct { + state protoimpl.MessageState `protogen:"hybrid.v1"` + ResourceTypeId string `protobuf:"bytes,1,opt,name=resource_type_id,json=resourceTypeId,proto3" json:"resource_type_id,omitempty"` + PageSize uint32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` + PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"` + Annotations []*anypb.Any `protobuf:"bytes,4,rep,name=annotations,proto3" json:"annotations,omitempty"` + ActiveSyncId string `protobuf:"bytes,5,opt,name=active_sync_id,json=activeSyncId,proto3" json:"active_sync_id,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *EntitlementsServiceListStaticEntitlementsRequest) Reset() { + *x = EntitlementsServiceListStaticEntitlementsRequest{} + mi := &file_c1_connector_v2_entitlement_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *EntitlementsServiceListStaticEntitlementsRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*EntitlementsServiceListStaticEntitlementsRequest) ProtoMessage() {} + +func (x *EntitlementsServiceListStaticEntitlementsRequest) ProtoReflect() protoreflect.Message { + mi := &file_c1_connector_v2_entitlement_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) +} + +func (x *EntitlementsServiceListStaticEntitlementsRequest) GetResourceTypeId() string { + if x != nil { + return x.ResourceTypeId + } + return "" +} + +func (x *EntitlementsServiceListStaticEntitlementsRequest) GetPageSize() uint32 { + if x != nil { + return x.PageSize + } + return 0 +} + +func (x *EntitlementsServiceListStaticEntitlementsRequest) GetPageToken() string { + if x != nil { + return x.PageToken + } + return "" +} + +func (x *EntitlementsServiceListStaticEntitlementsRequest) GetAnnotations() []*anypb.Any { + if x != nil { + return x.Annotations + } + return nil +} + +func (x *EntitlementsServiceListStaticEntitlementsRequest) GetActiveSyncId() string { + if x != nil { + return x.ActiveSyncId + } + return "" +} + +func (x *EntitlementsServiceListStaticEntitlementsRequest) SetResourceTypeId(v string) { + x.ResourceTypeId = v +} + +func (x *EntitlementsServiceListStaticEntitlementsRequest) SetPageSize(v uint32) { + x.PageSize = v +} + +func (x *EntitlementsServiceListStaticEntitlementsRequest) SetPageToken(v string) { + x.PageToken = v +} + +func (x *EntitlementsServiceListStaticEntitlementsRequest) SetAnnotations(v []*anypb.Any) { + x.Annotations = v +} + +func (x *EntitlementsServiceListStaticEntitlementsRequest) SetActiveSyncId(v string) { + x.ActiveSyncId = v +} + +type EntitlementsServiceListStaticEntitlementsRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + ResourceTypeId string + PageSize uint32 + PageToken string + Annotations []*anypb.Any + ActiveSyncId string +} + +func (b0 EntitlementsServiceListStaticEntitlementsRequest_builder) Build() *EntitlementsServiceListStaticEntitlementsRequest { + m0 := &EntitlementsServiceListStaticEntitlementsRequest{} + b, x := &b0, m0 + _, _ = b, x + x.ResourceTypeId = b.ResourceTypeId + x.PageSize = b.PageSize + x.PageToken = b.PageToken + x.Annotations = b.Annotations + x.ActiveSyncId = b.ActiveSyncId + return m0 +} + +type EntitlementsServiceListStaticEntitlementsResponse struct { + state protoimpl.MessageState `protogen:"hybrid.v1"` + List []*Entitlement `protobuf:"bytes,1,rep,name=list,proto3" json:"list,omitempty"` + NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` + Annotations []*anypb.Any `protobuf:"bytes,3,rep,name=annotations,proto3" json:"annotations,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *EntitlementsServiceListStaticEntitlementsResponse) Reset() { + *x = EntitlementsServiceListStaticEntitlementsResponse{} + mi := &file_c1_connector_v2_entitlement_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *EntitlementsServiceListStaticEntitlementsResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*EntitlementsServiceListStaticEntitlementsResponse) ProtoMessage() {} + +func (x *EntitlementsServiceListStaticEntitlementsResponse) ProtoReflect() protoreflect.Message { + mi := &file_c1_connector_v2_entitlement_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) +} + +func (x *EntitlementsServiceListStaticEntitlementsResponse) GetList() []*Entitlement { + if x != nil { + return x.List + } + return nil +} + +func (x *EntitlementsServiceListStaticEntitlementsResponse) GetNextPageToken() string { + if x != nil { + return x.NextPageToken + } + return "" +} + +func (x *EntitlementsServiceListStaticEntitlementsResponse) GetAnnotations() []*anypb.Any { + if x != nil { + return x.Annotations + } + return nil +} + +func (x *EntitlementsServiceListStaticEntitlementsResponse) SetList(v []*Entitlement) { + x.List = v +} + +func (x *EntitlementsServiceListStaticEntitlementsResponse) SetNextPageToken(v string) { + x.NextPageToken = v +} + +func (x *EntitlementsServiceListStaticEntitlementsResponse) SetAnnotations(v []*anypb.Any) { + x.Annotations = v +} + +type EntitlementsServiceListStaticEntitlementsResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + List []*Entitlement + NextPageToken string + Annotations []*anypb.Any +} + +func (b0 EntitlementsServiceListStaticEntitlementsResponse_builder) Build() *EntitlementsServiceListStaticEntitlementsResponse { + m0 := &EntitlementsServiceListStaticEntitlementsResponse{} + b, x := &b0, m0 + _, _ = b, x + x.List = b.List + x.NextPageToken = b.NextPageToken + x.Annotations = b.Annotations + return m0 +} + +var File_c1_connector_v2_entitlement_proto protoreflect.FileDescriptor + +const file_c1_connector_v2_entitlement_proto_rawDesc = "" + + "\n" + + "!c1/connector/v2/entitlement.proto\x12\x0fc1.connector.v2\x1a\x1ec1/connector/v2/resource.proto\x1a\x19google/protobuf/any.proto\x1a\x17validate/validate.proto\"\xb3\x04\n" + + "\vEntitlement\x12?\n" + + "\bresource\x18\x01 \x01(\v2\x19.c1.connector.v2.ResourceB\b\xfaB\x05\x8a\x01\x02\x10\x01R\bresource\x12\x1a\n" + + "\x02id\x18\x02 \x01(\tB\n" + + "\xfaB\ar\x05 \x01(\x80\bR\x02id\x120\n" + + "\fdisplay_name\x18\x03 \x01(\tB\r\xfaB\n" + + "r\b \x01(\x80\b\xd0\x01\x01R\vdisplayName\x12/\n" + + "\vdescription\x18\x04 \x01(\tB\r\xfaB\n" + + "r\b \x01(\x80\x10\xd0\x01\x01R\vdescription\x12@\n" + + "\fgrantable_to\x18\x05 \x03(\v2\x1d.c1.connector.v2.ResourceTypeR\vgrantableTo\x126\n" + + "\vannotations\x18\x06 \x03(\v2\x14.google.protobuf.AnyR\vannotations\x12M\n" + + "\apurpose\x18\a \x01(\x0e2).c1.connector.v2.Entitlement.PurposeValueB\b\xfaB\x05\x82\x01\x02\x10\x01R\apurpose\x12\x12\n" + + "\x04slug\x18\b \x01(\tR\x04slug\"\x86\x01\n" + + "\fPurposeValue\x12\x1d\n" + + "\x19PURPOSE_VALUE_UNSPECIFIED\x10\x00\x12\x1c\n" + + "\x18PURPOSE_VALUE_ASSIGNMENT\x10\x01\x12\x1c\n" + + "\x18PURPOSE_VALUE_PERMISSION\x10\x02\x12\x1b\n" + + "\x17PURPOSE_VALUE_OWNERSHIP\x10\x03\"\xa8\x02\n" + + "*EntitlementsServiceListEntitlementsRequest\x125\n" + + "\bresource\x18\x01 \x01(\v2\x19.c1.connector.v2.ResourceR\bresource\x12'\n" + + "\tpage_size\x18\x02 \x01(\rB\n" + + "\xfaB\a*\x05\x18\xfa\x01@\x01R\bpageSize\x12-\n" + + "\n" + + "page_token\x18\x03 \x01(\tB\x0e\xfaB\vr\t \x01(\x80\x80@\xd0\x01\x01R\tpageToken\x126\n" + + "\vannotations\x18\x04 \x03(\v2\x14.google.protobuf.AnyR\vannotations\x123\n" + + "\x0eactive_sync_id\x18\x05 \x01(\tB\r\xfaB\n" + + "r\b \x01(\x80\b\xd0\x01\x01R\factiveSyncId\"\xcf\x01\n" + + "+EntitlementsServiceListEntitlementsResponse\x120\n" + + "\x04list\x18\x01 \x03(\v2\x1c.c1.connector.v2.EntitlementR\x04list\x126\n" + + "\x0fnext_page_token\x18\x02 \x01(\tB\x0e\xfaB\vr\t \x01(\x80\x80@\xd0\x01\x01R\rnextPageToken\x126\n" + + "\vannotations\x18\x03 \x03(\v2\x14.google.protobuf.AnyR\vannotations\"\xad\x02\n" + + "0EntitlementsServiceListStaticEntitlementsRequest\x124\n" + + "\x10resource_type_id\x18\x01 \x01(\tB\n" + + "\xfaB\ar\x05 \x01(\x80\bR\x0eresourceTypeId\x12'\n" + + "\tpage_size\x18\x02 \x01(\rB\n" + + "\xfaB\a*\x05\x18\xfa\x01@\x01R\bpageSize\x12-\n" + + "\n" + + "page_token\x18\x03 \x01(\tB\x0e\xfaB\vr\t \x01(\x80\x80@\xd0\x01\x01R\tpageToken\x126\n" + + "\vannotations\x18\x04 \x03(\v2\x14.google.protobuf.AnyR\vannotations\x123\n" + + "\x0eactive_sync_id\x18\x05 \x01(\tB\r\xfaB\n" + + "r\b \x01(\x80\b\xd0\x01\x01R\factiveSyncId\"\xd5\x01\n" + + "1EntitlementsServiceListStaticEntitlementsResponse\x120\n" + + "\x04list\x18\x01 \x03(\v2\x1c.c1.connector.v2.EntitlementR\x04list\x126\n" + + "\x0fnext_page_token\x18\x02 \x01(\tB\x0e\xfaB\vr\t \x01(\x80\x80@\xd0\x01\x01R\rnextPageToken\x126\n" + + "\vannotations\x18\x03 \x03(\v2\x14.google.protobuf.AnyR\vannotations2\xc7\x02\n" + + "\x13EntitlementsService\x12\x8d\x01\n" + + "\x10ListEntitlements\x12;.c1.connector.v2.EntitlementsServiceListEntitlementsRequest\x1a<.c1.connector.v2.EntitlementsServiceListEntitlementsResponse\x12\x9f\x01\n" + + "\x16ListStaticEntitlements\x12A.c1.connector.v2.EntitlementsServiceListStaticEntitlementsRequest\x1aB.c1.connector.v2.EntitlementsServiceListStaticEntitlementsResponseB6Z4github.com/conductorone/baton-sdk/pb/c1/connector/v2b\x06proto3" + var file_c1_connector_v2_entitlement_proto_enumTypes = make([]protoimpl.EnumInfo, 1) -var file_c1_connector_v2_entitlement_proto_msgTypes = make([]protoimpl.MessageInfo, 3) +var file_c1_connector_v2_entitlement_proto_msgTypes = make([]protoimpl.MessageInfo, 5) var file_c1_connector_v2_entitlement_proto_goTypes = []any{ - (Entitlement_PurposeValue)(0), // 0: c1.connector.v2.Entitlement.PurposeValue - (*Entitlement)(nil), // 1: c1.connector.v2.Entitlement - (*EntitlementsServiceListEntitlementsRequest)(nil), // 2: c1.connector.v2.EntitlementsServiceListEntitlementsRequest - (*EntitlementsServiceListEntitlementsResponse)(nil), // 3: c1.connector.v2.EntitlementsServiceListEntitlementsResponse - (*Resource)(nil), // 4: c1.connector.v2.Resource - (*ResourceType)(nil), // 5: c1.connector.v2.ResourceType - (*anypb.Any)(nil), // 6: google.protobuf.Any + (Entitlement_PurposeValue)(0), // 0: c1.connector.v2.Entitlement.PurposeValue + (*Entitlement)(nil), // 1: c1.connector.v2.Entitlement + (*EntitlementsServiceListEntitlementsRequest)(nil), // 2: c1.connector.v2.EntitlementsServiceListEntitlementsRequest + (*EntitlementsServiceListEntitlementsResponse)(nil), // 3: c1.connector.v2.EntitlementsServiceListEntitlementsResponse + (*EntitlementsServiceListStaticEntitlementsRequest)(nil), // 4: c1.connector.v2.EntitlementsServiceListStaticEntitlementsRequest + (*EntitlementsServiceListStaticEntitlementsResponse)(nil), // 5: c1.connector.v2.EntitlementsServiceListStaticEntitlementsResponse + (*Resource)(nil), // 6: c1.connector.v2.Resource + (*ResourceType)(nil), // 7: c1.connector.v2.ResourceType + (*anypb.Any)(nil), // 8: google.protobuf.Any } var file_c1_connector_v2_entitlement_proto_depIdxs = []int32{ - 4, // 0: c1.connector.v2.Entitlement.resource:type_name -> c1.connector.v2.Resource - 5, // 1: c1.connector.v2.Entitlement.grantable_to:type_name -> c1.connector.v2.ResourceType - 6, // 2: c1.connector.v2.Entitlement.annotations:type_name -> google.protobuf.Any - 0, // 3: c1.connector.v2.Entitlement.purpose:type_name -> c1.connector.v2.Entitlement.PurposeValue - 4, // 4: c1.connector.v2.EntitlementsServiceListEntitlementsRequest.resource:type_name -> c1.connector.v2.Resource - 6, // 5: c1.connector.v2.EntitlementsServiceListEntitlementsRequest.annotations:type_name -> google.protobuf.Any - 1, // 6: c1.connector.v2.EntitlementsServiceListEntitlementsResponse.list:type_name -> c1.connector.v2.Entitlement - 6, // 7: c1.connector.v2.EntitlementsServiceListEntitlementsResponse.annotations:type_name -> google.protobuf.Any - 2, // 8: c1.connector.v2.EntitlementsService.ListEntitlements:input_type -> c1.connector.v2.EntitlementsServiceListEntitlementsRequest - 3, // 9: c1.connector.v2.EntitlementsService.ListEntitlements:output_type -> c1.connector.v2.EntitlementsServiceListEntitlementsResponse - 9, // [9:10] is the sub-list for method output_type - 8, // [8:9] 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 + 6, // 0: c1.connector.v2.Entitlement.resource:type_name -> c1.connector.v2.Resource + 7, // 1: c1.connector.v2.Entitlement.grantable_to:type_name -> c1.connector.v2.ResourceType + 8, // 2: c1.connector.v2.Entitlement.annotations:type_name -> google.protobuf.Any + 0, // 3: c1.connector.v2.Entitlement.purpose:type_name -> c1.connector.v2.Entitlement.PurposeValue + 6, // 4: c1.connector.v2.EntitlementsServiceListEntitlementsRequest.resource:type_name -> c1.connector.v2.Resource + 8, // 5: c1.connector.v2.EntitlementsServiceListEntitlementsRequest.annotations:type_name -> google.protobuf.Any + 1, // 6: c1.connector.v2.EntitlementsServiceListEntitlementsResponse.list:type_name -> c1.connector.v2.Entitlement + 8, // 7: c1.connector.v2.EntitlementsServiceListEntitlementsResponse.annotations:type_name -> google.protobuf.Any + 8, // 8: c1.connector.v2.EntitlementsServiceListStaticEntitlementsRequest.annotations:type_name -> google.protobuf.Any + 1, // 9: c1.connector.v2.EntitlementsServiceListStaticEntitlementsResponse.list:type_name -> c1.connector.v2.Entitlement + 8, // 10: c1.connector.v2.EntitlementsServiceListStaticEntitlementsResponse.annotations:type_name -> google.protobuf.Any + 2, // 11: c1.connector.v2.EntitlementsService.ListEntitlements:input_type -> c1.connector.v2.EntitlementsServiceListEntitlementsRequest + 4, // 12: c1.connector.v2.EntitlementsService.ListStaticEntitlements:input_type -> c1.connector.v2.EntitlementsServiceListStaticEntitlementsRequest + 3, // 13: c1.connector.v2.EntitlementsService.ListEntitlements:output_type -> c1.connector.v2.EntitlementsServiceListEntitlementsResponse + 5, // 14: c1.connector.v2.EntitlementsService.ListStaticEntitlements:output_type -> c1.connector.v2.EntitlementsServiceListStaticEntitlementsResponse + 13, // [13:15] is the sub-list for method output_type + 11, // [11:13] is the sub-list for method input_type + 11, // [11:11] is the sub-list for extension type_name + 11, // [11:11] is the sub-list for extension extendee + 0, // [0:11] is the sub-list for field type_name } func init() { file_c1_connector_v2_entitlement_proto_init() } @@ -443,7 +745,7 @@ func file_c1_connector_v2_entitlement_proto_init() { GoPackagePath: reflect.TypeOf(x{}).PkgPath(), RawDescriptor: unsafe.Slice(unsafe.StringData(file_c1_connector_v2_entitlement_proto_rawDesc), len(file_c1_connector_v2_entitlement_proto_rawDesc)), NumEnums: 1, - NumMessages: 3, + NumMessages: 5, NumExtensions: 0, NumServices: 1, }, diff --git a/vendor/github.com/conductorone/baton-sdk/pb/c1/connector/v2/entitlement.pb.validate.go b/vendor/github.com/conductorone/baton-sdk/pb/c1/connector/v2/entitlement.pb.validate.go index 4f979076..cf8fb4e8 100644 --- a/vendor/github.com/conductorone/baton-sdk/pb/c1/connector/v2/entitlement.pb.validate.go +++ b/vendor/github.com/conductorone/baton-sdk/pb/c1/connector/v2/entitlement.pb.validate.go @@ -413,6 +413,21 @@ func (m *EntitlementsServiceListEntitlementsRequest) validate(all bool) error { } + if m.GetActiveSyncId() != "" { + + if l := len(m.GetActiveSyncId()); l < 1 || l > 1024 { + err := EntitlementsServiceListEntitlementsRequestValidationError{ + field: "ActiveSyncId", + reason: "value length must be between 1 and 1024 bytes, inclusive", + } + if !all { + return err + } + errors = append(errors, err) + } + + } + if len(errors) > 0 { return EntitlementsServiceListEntitlementsRequestMultiError(errors) } @@ -683,3 +698,402 @@ var _ interface { Cause() error ErrorName() string } = EntitlementsServiceListEntitlementsResponseValidationError{} + +// Validate checks the field values on +// EntitlementsServiceListStaticEntitlementsRequest with the rules defined in +// the proto definition for this message. If any rules are violated, the first +// error encountered is returned, or nil if there are no violations. +func (m *EntitlementsServiceListStaticEntitlementsRequest) Validate() error { + return m.validate(false) +} + +// ValidateAll checks the field values on +// EntitlementsServiceListStaticEntitlementsRequest with the rules defined in +// the proto definition for this message. If any rules are violated, the +// result is a list of violation errors wrapped in +// EntitlementsServiceListStaticEntitlementsRequestMultiError, or nil if none found. +func (m *EntitlementsServiceListStaticEntitlementsRequest) ValidateAll() error { + return m.validate(true) +} + +func (m *EntitlementsServiceListStaticEntitlementsRequest) validate(all bool) error { + if m == nil { + return nil + } + + var errors []error + + if l := len(m.GetResourceTypeId()); l < 1 || l > 1024 { + err := EntitlementsServiceListStaticEntitlementsRequestValidationError{ + field: "ResourceTypeId", + reason: "value length must be between 1 and 1024 bytes, inclusive", + } + if !all { + return err + } + errors = append(errors, err) + } + + if m.GetPageSize() != 0 { + + if m.GetPageSize() > 250 { + err := EntitlementsServiceListStaticEntitlementsRequestValidationError{ + field: "PageSize", + reason: "value must be less than or equal to 250", + } + if !all { + return err + } + errors = append(errors, err) + } + + } + + if m.GetPageToken() != "" { + + if l := len(m.GetPageToken()); l < 1 || l > 1048576 { + err := EntitlementsServiceListStaticEntitlementsRequestValidationError{ + field: "PageToken", + reason: "value length must be between 1 and 1048576 bytes, inclusive", + } + if !all { + return err + } + errors = append(errors, err) + } + + } + + for idx, item := range m.GetAnnotations() { + _, _ = idx, item + + if all { + switch v := interface{}(item).(type) { + case interface{ ValidateAll() error }: + if err := v.ValidateAll(); err != nil { + errors = append(errors, EntitlementsServiceListStaticEntitlementsRequestValidationError{ + field: fmt.Sprintf("Annotations[%v]", idx), + reason: "embedded message failed validation", + cause: err, + }) + } + case interface{ Validate() error }: + if err := v.Validate(); err != nil { + errors = append(errors, EntitlementsServiceListStaticEntitlementsRequestValidationError{ + field: fmt.Sprintf("Annotations[%v]", idx), + reason: "embedded message failed validation", + cause: err, + }) + } + } + } else if v, ok := interface{}(item).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return EntitlementsServiceListStaticEntitlementsRequestValidationError{ + field: fmt.Sprintf("Annotations[%v]", idx), + reason: "embedded message failed validation", + cause: err, + } + } + } + + } + + if m.GetActiveSyncId() != "" { + + if l := len(m.GetActiveSyncId()); l < 1 || l > 1024 { + err := EntitlementsServiceListStaticEntitlementsRequestValidationError{ + field: "ActiveSyncId", + reason: "value length must be between 1 and 1024 bytes, inclusive", + } + if !all { + return err + } + errors = append(errors, err) + } + + } + + if len(errors) > 0 { + return EntitlementsServiceListStaticEntitlementsRequestMultiError(errors) + } + + return nil +} + +// EntitlementsServiceListStaticEntitlementsRequestMultiError is an error +// wrapping multiple validation errors returned by +// EntitlementsServiceListStaticEntitlementsRequest.ValidateAll() if the +// designated constraints aren't met. +type EntitlementsServiceListStaticEntitlementsRequestMultiError []error + +// Error returns a concatenation of all the error messages it wraps. +func (m EntitlementsServiceListStaticEntitlementsRequestMultiError) Error() string { + msgs := make([]string, 0, len(m)) + for _, err := range m { + msgs = append(msgs, err.Error()) + } + return strings.Join(msgs, "; ") +} + +// AllErrors returns a list of validation violation errors. +func (m EntitlementsServiceListStaticEntitlementsRequestMultiError) AllErrors() []error { return m } + +// EntitlementsServiceListStaticEntitlementsRequestValidationError is the +// validation error returned by +// EntitlementsServiceListStaticEntitlementsRequest.Validate if the designated +// constraints aren't met. +type EntitlementsServiceListStaticEntitlementsRequestValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e EntitlementsServiceListStaticEntitlementsRequestValidationError) Field() string { + return e.field +} + +// Reason function returns reason value. +func (e EntitlementsServiceListStaticEntitlementsRequestValidationError) Reason() string { + return e.reason +} + +// Cause function returns cause value. +func (e EntitlementsServiceListStaticEntitlementsRequestValidationError) Cause() error { + return e.cause +} + +// Key function returns key value. +func (e EntitlementsServiceListStaticEntitlementsRequestValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e EntitlementsServiceListStaticEntitlementsRequestValidationError) ErrorName() string { + return "EntitlementsServiceListStaticEntitlementsRequestValidationError" +} + +// Error satisfies the builtin error interface +func (e EntitlementsServiceListStaticEntitlementsRequestValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sEntitlementsServiceListStaticEntitlementsRequest.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = EntitlementsServiceListStaticEntitlementsRequestValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = EntitlementsServiceListStaticEntitlementsRequestValidationError{} + +// Validate checks the field values on +// EntitlementsServiceListStaticEntitlementsResponse with the rules defined in +// the proto definition for this message. If any rules are violated, the first +// error encountered is returned, or nil if there are no violations. +func (m *EntitlementsServiceListStaticEntitlementsResponse) Validate() error { + return m.validate(false) +} + +// ValidateAll checks the field values on +// EntitlementsServiceListStaticEntitlementsResponse with the rules defined in +// the proto definition for this message. If any rules are violated, the +// result is a list of violation errors wrapped in +// EntitlementsServiceListStaticEntitlementsResponseMultiError, or nil if none found. +func (m *EntitlementsServiceListStaticEntitlementsResponse) ValidateAll() error { + return m.validate(true) +} + +func (m *EntitlementsServiceListStaticEntitlementsResponse) validate(all bool) error { + if m == nil { + return nil + } + + var errors []error + + for idx, item := range m.GetList() { + _, _ = idx, item + + if all { + switch v := interface{}(item).(type) { + case interface{ ValidateAll() error }: + if err := v.ValidateAll(); err != nil { + errors = append(errors, EntitlementsServiceListStaticEntitlementsResponseValidationError{ + field: fmt.Sprintf("List[%v]", idx), + reason: "embedded message failed validation", + cause: err, + }) + } + case interface{ Validate() error }: + if err := v.Validate(); err != nil { + errors = append(errors, EntitlementsServiceListStaticEntitlementsResponseValidationError{ + field: fmt.Sprintf("List[%v]", idx), + reason: "embedded message failed validation", + cause: err, + }) + } + } + } else if v, ok := interface{}(item).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return EntitlementsServiceListStaticEntitlementsResponseValidationError{ + field: fmt.Sprintf("List[%v]", idx), + reason: "embedded message failed validation", + cause: err, + } + } + } + + } + + if m.GetNextPageToken() != "" { + + if l := len(m.GetNextPageToken()); l < 1 || l > 1048576 { + err := EntitlementsServiceListStaticEntitlementsResponseValidationError{ + field: "NextPageToken", + reason: "value length must be between 1 and 1048576 bytes, inclusive", + } + if !all { + return err + } + errors = append(errors, err) + } + + } + + for idx, item := range m.GetAnnotations() { + _, _ = idx, item + + if all { + switch v := interface{}(item).(type) { + case interface{ ValidateAll() error }: + if err := v.ValidateAll(); err != nil { + errors = append(errors, EntitlementsServiceListStaticEntitlementsResponseValidationError{ + field: fmt.Sprintf("Annotations[%v]", idx), + reason: "embedded message failed validation", + cause: err, + }) + } + case interface{ Validate() error }: + if err := v.Validate(); err != nil { + errors = append(errors, EntitlementsServiceListStaticEntitlementsResponseValidationError{ + field: fmt.Sprintf("Annotations[%v]", idx), + reason: "embedded message failed validation", + cause: err, + }) + } + } + } else if v, ok := interface{}(item).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return EntitlementsServiceListStaticEntitlementsResponseValidationError{ + field: fmt.Sprintf("Annotations[%v]", idx), + reason: "embedded message failed validation", + cause: err, + } + } + } + + } + + if len(errors) > 0 { + return EntitlementsServiceListStaticEntitlementsResponseMultiError(errors) + } + + return nil +} + +// EntitlementsServiceListStaticEntitlementsResponseMultiError is an error +// wrapping multiple validation errors returned by +// EntitlementsServiceListStaticEntitlementsResponse.ValidateAll() if the +// designated constraints aren't met. +type EntitlementsServiceListStaticEntitlementsResponseMultiError []error + +// Error returns a concatenation of all the error messages it wraps. +func (m EntitlementsServiceListStaticEntitlementsResponseMultiError) Error() string { + msgs := make([]string, 0, len(m)) + for _, err := range m { + msgs = append(msgs, err.Error()) + } + return strings.Join(msgs, "; ") +} + +// AllErrors returns a list of validation violation errors. +func (m EntitlementsServiceListStaticEntitlementsResponseMultiError) AllErrors() []error { return m } + +// EntitlementsServiceListStaticEntitlementsResponseValidationError is the +// validation error returned by +// EntitlementsServiceListStaticEntitlementsResponse.Validate if the +// designated constraints aren't met. +type EntitlementsServiceListStaticEntitlementsResponseValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e EntitlementsServiceListStaticEntitlementsResponseValidationError) Field() string { + return e.field +} + +// Reason function returns reason value. +func (e EntitlementsServiceListStaticEntitlementsResponseValidationError) Reason() string { + return e.reason +} + +// Cause function returns cause value. +func (e EntitlementsServiceListStaticEntitlementsResponseValidationError) Cause() error { + return e.cause +} + +// Key function returns key value. +func (e EntitlementsServiceListStaticEntitlementsResponseValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e EntitlementsServiceListStaticEntitlementsResponseValidationError) ErrorName() string { + return "EntitlementsServiceListStaticEntitlementsResponseValidationError" +} + +// Error satisfies the builtin error interface +func (e EntitlementsServiceListStaticEntitlementsResponseValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sEntitlementsServiceListStaticEntitlementsResponse.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = EntitlementsServiceListStaticEntitlementsResponseValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = EntitlementsServiceListStaticEntitlementsResponseValidationError{} diff --git a/vendor/github.com/conductorone/baton-sdk/pb/c1/connector/v2/entitlement_grpc.pb.go b/vendor/github.com/conductorone/baton-sdk/pb/c1/connector/v2/entitlement_grpc.pb.go index 821161d3..6286b134 100644 --- a/vendor/github.com/conductorone/baton-sdk/pb/c1/connector/v2/entitlement_grpc.pb.go +++ b/vendor/github.com/conductorone/baton-sdk/pb/c1/connector/v2/entitlement_grpc.pb.go @@ -19,7 +19,8 @@ import ( const _ = grpc.SupportPackageIsVersion9 const ( - EntitlementsService_ListEntitlements_FullMethodName = "/c1.connector.v2.EntitlementsService/ListEntitlements" + EntitlementsService_ListEntitlements_FullMethodName = "/c1.connector.v2.EntitlementsService/ListEntitlements" + EntitlementsService_ListStaticEntitlements_FullMethodName = "/c1.connector.v2.EntitlementsService/ListStaticEntitlements" ) // EntitlementsServiceClient is the client API for EntitlementsService service. @@ -27,6 +28,7 @@ const ( // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. type EntitlementsServiceClient interface { ListEntitlements(ctx context.Context, in *EntitlementsServiceListEntitlementsRequest, opts ...grpc.CallOption) (*EntitlementsServiceListEntitlementsResponse, error) + ListStaticEntitlements(ctx context.Context, in *EntitlementsServiceListStaticEntitlementsRequest, opts ...grpc.CallOption) (*EntitlementsServiceListStaticEntitlementsResponse, error) } type entitlementsServiceClient struct { @@ -47,11 +49,22 @@ func (c *entitlementsServiceClient) ListEntitlements(ctx context.Context, in *En return out, nil } +func (c *entitlementsServiceClient) ListStaticEntitlements(ctx context.Context, in *EntitlementsServiceListStaticEntitlementsRequest, opts ...grpc.CallOption) (*EntitlementsServiceListStaticEntitlementsResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(EntitlementsServiceListStaticEntitlementsResponse) + err := c.cc.Invoke(ctx, EntitlementsService_ListStaticEntitlements_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + // EntitlementsServiceServer is the server API for EntitlementsService service. // All implementations should embed UnimplementedEntitlementsServiceServer // for forward compatibility. type EntitlementsServiceServer interface { ListEntitlements(context.Context, *EntitlementsServiceListEntitlementsRequest) (*EntitlementsServiceListEntitlementsResponse, error) + ListStaticEntitlements(context.Context, *EntitlementsServiceListStaticEntitlementsRequest) (*EntitlementsServiceListStaticEntitlementsResponse, error) } // UnimplementedEntitlementsServiceServer should be embedded to have @@ -64,6 +77,9 @@ type UnimplementedEntitlementsServiceServer struct{} func (UnimplementedEntitlementsServiceServer) ListEntitlements(context.Context, *EntitlementsServiceListEntitlementsRequest) (*EntitlementsServiceListEntitlementsResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method ListEntitlements not implemented") } +func (UnimplementedEntitlementsServiceServer) ListStaticEntitlements(context.Context, *EntitlementsServiceListStaticEntitlementsRequest) (*EntitlementsServiceListStaticEntitlementsResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method ListStaticEntitlements not implemented") +} func (UnimplementedEntitlementsServiceServer) testEmbeddedByValue() {} // UnsafeEntitlementsServiceServer may be embedded to opt out of forward compatibility for this service. @@ -102,6 +118,24 @@ func _EntitlementsService_ListEntitlements_Handler(srv interface{}, ctx context. return interceptor(ctx, in, info, handler) } +func _EntitlementsService_ListStaticEntitlements_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(EntitlementsServiceListStaticEntitlementsRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(EntitlementsServiceServer).ListStaticEntitlements(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: EntitlementsService_ListStaticEntitlements_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(EntitlementsServiceServer).ListStaticEntitlements(ctx, req.(*EntitlementsServiceListStaticEntitlementsRequest)) + } + return interceptor(ctx, in, info, handler) +} + // EntitlementsService_ServiceDesc is the grpc.ServiceDesc for EntitlementsService service. // It's only intended for direct use with grpc.RegisterService, // and not to be introspected or modified (even as a copy) @@ -113,6 +147,10 @@ var EntitlementsService_ServiceDesc = grpc.ServiceDesc{ MethodName: "ListEntitlements", Handler: _EntitlementsService_ListEntitlements_Handler, }, + { + MethodName: "ListStaticEntitlements", + Handler: _EntitlementsService_ListStaticEntitlements_Handler, + }, }, Streams: []grpc.StreamDesc{}, Metadata: "c1/connector/v2/entitlement.proto", diff --git a/vendor/github.com/conductorone/baton-sdk/pb/c1/connector/v2/entitlement_protoopaque.pb.go b/vendor/github.com/conductorone/baton-sdk/pb/c1/connector/v2/entitlement_protoopaque.pb.go new file mode 100644 index 00000000..0fc2b471 --- /dev/null +++ b/vendor/github.com/conductorone/baton-sdk/pb/c1/connector/v2/entitlement_protoopaque.pb.go @@ -0,0 +1,776 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.36.10 +// protoc (unknown) +// source: c1/connector/v2/entitlement.proto + +//go:build protoopaque + +package v2 + +import ( + _ "github.com/envoyproxy/protoc-gen-validate/validate" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + anypb "google.golang.org/protobuf/types/known/anypb" + reflect "reflect" + 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 Entitlement_PurposeValue int32 + +const ( + Entitlement_PURPOSE_VALUE_UNSPECIFIED Entitlement_PurposeValue = 0 + Entitlement_PURPOSE_VALUE_ASSIGNMENT Entitlement_PurposeValue = 1 + Entitlement_PURPOSE_VALUE_PERMISSION Entitlement_PurposeValue = 2 + Entitlement_PURPOSE_VALUE_OWNERSHIP Entitlement_PurposeValue = 3 +) + +// Enum value maps for Entitlement_PurposeValue. +var ( + Entitlement_PurposeValue_name = map[int32]string{ + 0: "PURPOSE_VALUE_UNSPECIFIED", + 1: "PURPOSE_VALUE_ASSIGNMENT", + 2: "PURPOSE_VALUE_PERMISSION", + 3: "PURPOSE_VALUE_OWNERSHIP", + } + Entitlement_PurposeValue_value = map[string]int32{ + "PURPOSE_VALUE_UNSPECIFIED": 0, + "PURPOSE_VALUE_ASSIGNMENT": 1, + "PURPOSE_VALUE_PERMISSION": 2, + "PURPOSE_VALUE_OWNERSHIP": 3, + } +) + +func (x Entitlement_PurposeValue) Enum() *Entitlement_PurposeValue { + p := new(Entitlement_PurposeValue) + *p = x + return p +} + +func (x Entitlement_PurposeValue) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (Entitlement_PurposeValue) Descriptor() protoreflect.EnumDescriptor { + return file_c1_connector_v2_entitlement_proto_enumTypes[0].Descriptor() +} + +func (Entitlement_PurposeValue) Type() protoreflect.EnumType { + return &file_c1_connector_v2_entitlement_proto_enumTypes[0] +} + +func (x Entitlement_PurposeValue) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +type Entitlement struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Resource *Resource `protobuf:"bytes,1,opt,name=resource,proto3"` + xxx_hidden_Id string `protobuf:"bytes,2,opt,name=id,proto3"` + xxx_hidden_DisplayName string `protobuf:"bytes,3,opt,name=display_name,json=displayName,proto3"` + xxx_hidden_Description string `protobuf:"bytes,4,opt,name=description,proto3"` + xxx_hidden_GrantableTo *[]*ResourceType `protobuf:"bytes,5,rep,name=grantable_to,json=grantableTo,proto3"` + xxx_hidden_Annotations *[]*anypb.Any `protobuf:"bytes,6,rep,name=annotations,proto3"` + xxx_hidden_Purpose Entitlement_PurposeValue `protobuf:"varint,7,opt,name=purpose,proto3,enum=c1.connector.v2.Entitlement_PurposeValue"` + xxx_hidden_Slug string `protobuf:"bytes,8,opt,name=slug,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *Entitlement) Reset() { + *x = Entitlement{} + mi := &file_c1_connector_v2_entitlement_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *Entitlement) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Entitlement) ProtoMessage() {} + +func (x *Entitlement) ProtoReflect() protoreflect.Message { + mi := &file_c1_connector_v2_entitlement_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) +} + +func (x *Entitlement) GetResource() *Resource { + if x != nil { + return x.xxx_hidden_Resource + } + return nil +} + +func (x *Entitlement) GetId() string { + if x != nil { + return x.xxx_hidden_Id + } + return "" +} + +func (x *Entitlement) GetDisplayName() string { + if x != nil { + return x.xxx_hidden_DisplayName + } + return "" +} + +func (x *Entitlement) GetDescription() string { + if x != nil { + return x.xxx_hidden_Description + } + return "" +} + +func (x *Entitlement) GetGrantableTo() []*ResourceType { + if x != nil { + if x.xxx_hidden_GrantableTo != nil { + return *x.xxx_hidden_GrantableTo + } + } + return nil +} + +func (x *Entitlement) GetAnnotations() []*anypb.Any { + if x != nil { + if x.xxx_hidden_Annotations != nil { + return *x.xxx_hidden_Annotations + } + } + return nil +} + +func (x *Entitlement) GetPurpose() Entitlement_PurposeValue { + if x != nil { + return x.xxx_hidden_Purpose + } + return Entitlement_PURPOSE_VALUE_UNSPECIFIED +} + +func (x *Entitlement) GetSlug() string { + if x != nil { + return x.xxx_hidden_Slug + } + return "" +} + +func (x *Entitlement) SetResource(v *Resource) { + x.xxx_hidden_Resource = v +} + +func (x *Entitlement) SetId(v string) { + x.xxx_hidden_Id = v +} + +func (x *Entitlement) SetDisplayName(v string) { + x.xxx_hidden_DisplayName = v +} + +func (x *Entitlement) SetDescription(v string) { + x.xxx_hidden_Description = v +} + +func (x *Entitlement) SetGrantableTo(v []*ResourceType) { + x.xxx_hidden_GrantableTo = &v +} + +func (x *Entitlement) SetAnnotations(v []*anypb.Any) { + x.xxx_hidden_Annotations = &v +} + +func (x *Entitlement) SetPurpose(v Entitlement_PurposeValue) { + x.xxx_hidden_Purpose = v +} + +func (x *Entitlement) SetSlug(v string) { + x.xxx_hidden_Slug = v +} + +func (x *Entitlement) HasResource() bool { + if x == nil { + return false + } + return x.xxx_hidden_Resource != nil +} + +func (x *Entitlement) ClearResource() { + x.xxx_hidden_Resource = nil +} + +type Entitlement_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Resource *Resource + Id string + DisplayName string + Description string + GrantableTo []*ResourceType + Annotations []*anypb.Any + Purpose Entitlement_PurposeValue + Slug string +} + +func (b0 Entitlement_builder) Build() *Entitlement { + m0 := &Entitlement{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Resource = b.Resource + x.xxx_hidden_Id = b.Id + x.xxx_hidden_DisplayName = b.DisplayName + x.xxx_hidden_Description = b.Description + x.xxx_hidden_GrantableTo = &b.GrantableTo + x.xxx_hidden_Annotations = &b.Annotations + x.xxx_hidden_Purpose = b.Purpose + x.xxx_hidden_Slug = b.Slug + return m0 +} + +type EntitlementsServiceListEntitlementsRequest struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Resource *Resource `protobuf:"bytes,1,opt,name=resource,proto3"` + xxx_hidden_PageSize uint32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3"` + xxx_hidden_PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3"` + xxx_hidden_Annotations *[]*anypb.Any `protobuf:"bytes,4,rep,name=annotations,proto3"` + xxx_hidden_ActiveSyncId string `protobuf:"bytes,5,opt,name=active_sync_id,json=activeSyncId,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *EntitlementsServiceListEntitlementsRequest) Reset() { + *x = EntitlementsServiceListEntitlementsRequest{} + mi := &file_c1_connector_v2_entitlement_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *EntitlementsServiceListEntitlementsRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*EntitlementsServiceListEntitlementsRequest) ProtoMessage() {} + +func (x *EntitlementsServiceListEntitlementsRequest) ProtoReflect() protoreflect.Message { + mi := &file_c1_connector_v2_entitlement_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) +} + +func (x *EntitlementsServiceListEntitlementsRequest) GetResource() *Resource { + if x != nil { + return x.xxx_hidden_Resource + } + return nil +} + +func (x *EntitlementsServiceListEntitlementsRequest) GetPageSize() uint32 { + if x != nil { + return x.xxx_hidden_PageSize + } + return 0 +} + +func (x *EntitlementsServiceListEntitlementsRequest) GetPageToken() string { + if x != nil { + return x.xxx_hidden_PageToken + } + return "" +} + +func (x *EntitlementsServiceListEntitlementsRequest) GetAnnotations() []*anypb.Any { + if x != nil { + if x.xxx_hidden_Annotations != nil { + return *x.xxx_hidden_Annotations + } + } + return nil +} + +func (x *EntitlementsServiceListEntitlementsRequest) GetActiveSyncId() string { + if x != nil { + return x.xxx_hidden_ActiveSyncId + } + return "" +} + +func (x *EntitlementsServiceListEntitlementsRequest) SetResource(v *Resource) { + x.xxx_hidden_Resource = v +} + +func (x *EntitlementsServiceListEntitlementsRequest) SetPageSize(v uint32) { + x.xxx_hidden_PageSize = v +} + +func (x *EntitlementsServiceListEntitlementsRequest) SetPageToken(v string) { + x.xxx_hidden_PageToken = v +} + +func (x *EntitlementsServiceListEntitlementsRequest) SetAnnotations(v []*anypb.Any) { + x.xxx_hidden_Annotations = &v +} + +func (x *EntitlementsServiceListEntitlementsRequest) SetActiveSyncId(v string) { + x.xxx_hidden_ActiveSyncId = v +} + +func (x *EntitlementsServiceListEntitlementsRequest) HasResource() bool { + if x == nil { + return false + } + return x.xxx_hidden_Resource != nil +} + +func (x *EntitlementsServiceListEntitlementsRequest) ClearResource() { + x.xxx_hidden_Resource = nil +} + +type EntitlementsServiceListEntitlementsRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Resource *Resource + PageSize uint32 + PageToken string + Annotations []*anypb.Any + ActiveSyncId string +} + +func (b0 EntitlementsServiceListEntitlementsRequest_builder) Build() *EntitlementsServiceListEntitlementsRequest { + m0 := &EntitlementsServiceListEntitlementsRequest{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Resource = b.Resource + x.xxx_hidden_PageSize = b.PageSize + x.xxx_hidden_PageToken = b.PageToken + x.xxx_hidden_Annotations = &b.Annotations + x.xxx_hidden_ActiveSyncId = b.ActiveSyncId + return m0 +} + +type EntitlementsServiceListEntitlementsResponse struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_List *[]*Entitlement `protobuf:"bytes,1,rep,name=list,proto3"` + xxx_hidden_NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3"` + xxx_hidden_Annotations *[]*anypb.Any `protobuf:"bytes,3,rep,name=annotations,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *EntitlementsServiceListEntitlementsResponse) Reset() { + *x = EntitlementsServiceListEntitlementsResponse{} + mi := &file_c1_connector_v2_entitlement_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *EntitlementsServiceListEntitlementsResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*EntitlementsServiceListEntitlementsResponse) ProtoMessage() {} + +func (x *EntitlementsServiceListEntitlementsResponse) ProtoReflect() protoreflect.Message { + mi := &file_c1_connector_v2_entitlement_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) +} + +func (x *EntitlementsServiceListEntitlementsResponse) GetList() []*Entitlement { + if x != nil { + if x.xxx_hidden_List != nil { + return *x.xxx_hidden_List + } + } + return nil +} + +func (x *EntitlementsServiceListEntitlementsResponse) GetNextPageToken() string { + if x != nil { + return x.xxx_hidden_NextPageToken + } + return "" +} + +func (x *EntitlementsServiceListEntitlementsResponse) GetAnnotations() []*anypb.Any { + if x != nil { + if x.xxx_hidden_Annotations != nil { + return *x.xxx_hidden_Annotations + } + } + return nil +} + +func (x *EntitlementsServiceListEntitlementsResponse) SetList(v []*Entitlement) { + x.xxx_hidden_List = &v +} + +func (x *EntitlementsServiceListEntitlementsResponse) SetNextPageToken(v string) { + x.xxx_hidden_NextPageToken = v +} + +func (x *EntitlementsServiceListEntitlementsResponse) SetAnnotations(v []*anypb.Any) { + x.xxx_hidden_Annotations = &v +} + +type EntitlementsServiceListEntitlementsResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + List []*Entitlement + NextPageToken string + Annotations []*anypb.Any +} + +func (b0 EntitlementsServiceListEntitlementsResponse_builder) Build() *EntitlementsServiceListEntitlementsResponse { + m0 := &EntitlementsServiceListEntitlementsResponse{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_List = &b.List + x.xxx_hidden_NextPageToken = b.NextPageToken + x.xxx_hidden_Annotations = &b.Annotations + return m0 +} + +type EntitlementsServiceListStaticEntitlementsRequest struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_ResourceTypeId string `protobuf:"bytes,1,opt,name=resource_type_id,json=resourceTypeId,proto3"` + xxx_hidden_PageSize uint32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3"` + xxx_hidden_PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3"` + xxx_hidden_Annotations *[]*anypb.Any `protobuf:"bytes,4,rep,name=annotations,proto3"` + xxx_hidden_ActiveSyncId string `protobuf:"bytes,5,opt,name=active_sync_id,json=activeSyncId,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *EntitlementsServiceListStaticEntitlementsRequest) Reset() { + *x = EntitlementsServiceListStaticEntitlementsRequest{} + mi := &file_c1_connector_v2_entitlement_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *EntitlementsServiceListStaticEntitlementsRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*EntitlementsServiceListStaticEntitlementsRequest) ProtoMessage() {} + +func (x *EntitlementsServiceListStaticEntitlementsRequest) ProtoReflect() protoreflect.Message { + mi := &file_c1_connector_v2_entitlement_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) +} + +func (x *EntitlementsServiceListStaticEntitlementsRequest) GetResourceTypeId() string { + if x != nil { + return x.xxx_hidden_ResourceTypeId + } + return "" +} + +func (x *EntitlementsServiceListStaticEntitlementsRequest) GetPageSize() uint32 { + if x != nil { + return x.xxx_hidden_PageSize + } + return 0 +} + +func (x *EntitlementsServiceListStaticEntitlementsRequest) GetPageToken() string { + if x != nil { + return x.xxx_hidden_PageToken + } + return "" +} + +func (x *EntitlementsServiceListStaticEntitlementsRequest) GetAnnotations() []*anypb.Any { + if x != nil { + if x.xxx_hidden_Annotations != nil { + return *x.xxx_hidden_Annotations + } + } + return nil +} + +func (x *EntitlementsServiceListStaticEntitlementsRequest) GetActiveSyncId() string { + if x != nil { + return x.xxx_hidden_ActiveSyncId + } + return "" +} + +func (x *EntitlementsServiceListStaticEntitlementsRequest) SetResourceTypeId(v string) { + x.xxx_hidden_ResourceTypeId = v +} + +func (x *EntitlementsServiceListStaticEntitlementsRequest) SetPageSize(v uint32) { + x.xxx_hidden_PageSize = v +} + +func (x *EntitlementsServiceListStaticEntitlementsRequest) SetPageToken(v string) { + x.xxx_hidden_PageToken = v +} + +func (x *EntitlementsServiceListStaticEntitlementsRequest) SetAnnotations(v []*anypb.Any) { + x.xxx_hidden_Annotations = &v +} + +func (x *EntitlementsServiceListStaticEntitlementsRequest) SetActiveSyncId(v string) { + x.xxx_hidden_ActiveSyncId = v +} + +type EntitlementsServiceListStaticEntitlementsRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + ResourceTypeId string + PageSize uint32 + PageToken string + Annotations []*anypb.Any + ActiveSyncId string +} + +func (b0 EntitlementsServiceListStaticEntitlementsRequest_builder) Build() *EntitlementsServiceListStaticEntitlementsRequest { + m0 := &EntitlementsServiceListStaticEntitlementsRequest{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_ResourceTypeId = b.ResourceTypeId + x.xxx_hidden_PageSize = b.PageSize + x.xxx_hidden_PageToken = b.PageToken + x.xxx_hidden_Annotations = &b.Annotations + x.xxx_hidden_ActiveSyncId = b.ActiveSyncId + return m0 +} + +type EntitlementsServiceListStaticEntitlementsResponse struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_List *[]*Entitlement `protobuf:"bytes,1,rep,name=list,proto3"` + xxx_hidden_NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3"` + xxx_hidden_Annotations *[]*anypb.Any `protobuf:"bytes,3,rep,name=annotations,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *EntitlementsServiceListStaticEntitlementsResponse) Reset() { + *x = EntitlementsServiceListStaticEntitlementsResponse{} + mi := &file_c1_connector_v2_entitlement_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *EntitlementsServiceListStaticEntitlementsResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*EntitlementsServiceListStaticEntitlementsResponse) ProtoMessage() {} + +func (x *EntitlementsServiceListStaticEntitlementsResponse) ProtoReflect() protoreflect.Message { + mi := &file_c1_connector_v2_entitlement_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) +} + +func (x *EntitlementsServiceListStaticEntitlementsResponse) GetList() []*Entitlement { + if x != nil { + if x.xxx_hidden_List != nil { + return *x.xxx_hidden_List + } + } + return nil +} + +func (x *EntitlementsServiceListStaticEntitlementsResponse) GetNextPageToken() string { + if x != nil { + return x.xxx_hidden_NextPageToken + } + return "" +} + +func (x *EntitlementsServiceListStaticEntitlementsResponse) GetAnnotations() []*anypb.Any { + if x != nil { + if x.xxx_hidden_Annotations != nil { + return *x.xxx_hidden_Annotations + } + } + return nil +} + +func (x *EntitlementsServiceListStaticEntitlementsResponse) SetList(v []*Entitlement) { + x.xxx_hidden_List = &v +} + +func (x *EntitlementsServiceListStaticEntitlementsResponse) SetNextPageToken(v string) { + x.xxx_hidden_NextPageToken = v +} + +func (x *EntitlementsServiceListStaticEntitlementsResponse) SetAnnotations(v []*anypb.Any) { + x.xxx_hidden_Annotations = &v +} + +type EntitlementsServiceListStaticEntitlementsResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + List []*Entitlement + NextPageToken string + Annotations []*anypb.Any +} + +func (b0 EntitlementsServiceListStaticEntitlementsResponse_builder) Build() *EntitlementsServiceListStaticEntitlementsResponse { + m0 := &EntitlementsServiceListStaticEntitlementsResponse{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_List = &b.List + x.xxx_hidden_NextPageToken = b.NextPageToken + x.xxx_hidden_Annotations = &b.Annotations + return m0 +} + +var File_c1_connector_v2_entitlement_proto protoreflect.FileDescriptor + +const file_c1_connector_v2_entitlement_proto_rawDesc = "" + + "\n" + + "!c1/connector/v2/entitlement.proto\x12\x0fc1.connector.v2\x1a\x1ec1/connector/v2/resource.proto\x1a\x19google/protobuf/any.proto\x1a\x17validate/validate.proto\"\xb3\x04\n" + + "\vEntitlement\x12?\n" + + "\bresource\x18\x01 \x01(\v2\x19.c1.connector.v2.ResourceB\b\xfaB\x05\x8a\x01\x02\x10\x01R\bresource\x12\x1a\n" + + "\x02id\x18\x02 \x01(\tB\n" + + "\xfaB\ar\x05 \x01(\x80\bR\x02id\x120\n" + + "\fdisplay_name\x18\x03 \x01(\tB\r\xfaB\n" + + "r\b \x01(\x80\b\xd0\x01\x01R\vdisplayName\x12/\n" + + "\vdescription\x18\x04 \x01(\tB\r\xfaB\n" + + "r\b \x01(\x80\x10\xd0\x01\x01R\vdescription\x12@\n" + + "\fgrantable_to\x18\x05 \x03(\v2\x1d.c1.connector.v2.ResourceTypeR\vgrantableTo\x126\n" + + "\vannotations\x18\x06 \x03(\v2\x14.google.protobuf.AnyR\vannotations\x12M\n" + + "\apurpose\x18\a \x01(\x0e2).c1.connector.v2.Entitlement.PurposeValueB\b\xfaB\x05\x82\x01\x02\x10\x01R\apurpose\x12\x12\n" + + "\x04slug\x18\b \x01(\tR\x04slug\"\x86\x01\n" + + "\fPurposeValue\x12\x1d\n" + + "\x19PURPOSE_VALUE_UNSPECIFIED\x10\x00\x12\x1c\n" + + "\x18PURPOSE_VALUE_ASSIGNMENT\x10\x01\x12\x1c\n" + + "\x18PURPOSE_VALUE_PERMISSION\x10\x02\x12\x1b\n" + + "\x17PURPOSE_VALUE_OWNERSHIP\x10\x03\"\xa8\x02\n" + + "*EntitlementsServiceListEntitlementsRequest\x125\n" + + "\bresource\x18\x01 \x01(\v2\x19.c1.connector.v2.ResourceR\bresource\x12'\n" + + "\tpage_size\x18\x02 \x01(\rB\n" + + "\xfaB\a*\x05\x18\xfa\x01@\x01R\bpageSize\x12-\n" + + "\n" + + "page_token\x18\x03 \x01(\tB\x0e\xfaB\vr\t \x01(\x80\x80@\xd0\x01\x01R\tpageToken\x126\n" + + "\vannotations\x18\x04 \x03(\v2\x14.google.protobuf.AnyR\vannotations\x123\n" + + "\x0eactive_sync_id\x18\x05 \x01(\tB\r\xfaB\n" + + "r\b \x01(\x80\b\xd0\x01\x01R\factiveSyncId\"\xcf\x01\n" + + "+EntitlementsServiceListEntitlementsResponse\x120\n" + + "\x04list\x18\x01 \x03(\v2\x1c.c1.connector.v2.EntitlementR\x04list\x126\n" + + "\x0fnext_page_token\x18\x02 \x01(\tB\x0e\xfaB\vr\t \x01(\x80\x80@\xd0\x01\x01R\rnextPageToken\x126\n" + + "\vannotations\x18\x03 \x03(\v2\x14.google.protobuf.AnyR\vannotations\"\xad\x02\n" + + "0EntitlementsServiceListStaticEntitlementsRequest\x124\n" + + "\x10resource_type_id\x18\x01 \x01(\tB\n" + + "\xfaB\ar\x05 \x01(\x80\bR\x0eresourceTypeId\x12'\n" + + "\tpage_size\x18\x02 \x01(\rB\n" + + "\xfaB\a*\x05\x18\xfa\x01@\x01R\bpageSize\x12-\n" + + "\n" + + "page_token\x18\x03 \x01(\tB\x0e\xfaB\vr\t \x01(\x80\x80@\xd0\x01\x01R\tpageToken\x126\n" + + "\vannotations\x18\x04 \x03(\v2\x14.google.protobuf.AnyR\vannotations\x123\n" + + "\x0eactive_sync_id\x18\x05 \x01(\tB\r\xfaB\n" + + "r\b \x01(\x80\b\xd0\x01\x01R\factiveSyncId\"\xd5\x01\n" + + "1EntitlementsServiceListStaticEntitlementsResponse\x120\n" + + "\x04list\x18\x01 \x03(\v2\x1c.c1.connector.v2.EntitlementR\x04list\x126\n" + + "\x0fnext_page_token\x18\x02 \x01(\tB\x0e\xfaB\vr\t \x01(\x80\x80@\xd0\x01\x01R\rnextPageToken\x126\n" + + "\vannotations\x18\x03 \x03(\v2\x14.google.protobuf.AnyR\vannotations2\xc7\x02\n" + + "\x13EntitlementsService\x12\x8d\x01\n" + + "\x10ListEntitlements\x12;.c1.connector.v2.EntitlementsServiceListEntitlementsRequest\x1a<.c1.connector.v2.EntitlementsServiceListEntitlementsResponse\x12\x9f\x01\n" + + "\x16ListStaticEntitlements\x12A.c1.connector.v2.EntitlementsServiceListStaticEntitlementsRequest\x1aB.c1.connector.v2.EntitlementsServiceListStaticEntitlementsResponseB6Z4github.com/conductorone/baton-sdk/pb/c1/connector/v2b\x06proto3" + +var file_c1_connector_v2_entitlement_proto_enumTypes = make([]protoimpl.EnumInfo, 1) +var file_c1_connector_v2_entitlement_proto_msgTypes = make([]protoimpl.MessageInfo, 5) +var file_c1_connector_v2_entitlement_proto_goTypes = []any{ + (Entitlement_PurposeValue)(0), // 0: c1.connector.v2.Entitlement.PurposeValue + (*Entitlement)(nil), // 1: c1.connector.v2.Entitlement + (*EntitlementsServiceListEntitlementsRequest)(nil), // 2: c1.connector.v2.EntitlementsServiceListEntitlementsRequest + (*EntitlementsServiceListEntitlementsResponse)(nil), // 3: c1.connector.v2.EntitlementsServiceListEntitlementsResponse + (*EntitlementsServiceListStaticEntitlementsRequest)(nil), // 4: c1.connector.v2.EntitlementsServiceListStaticEntitlementsRequest + (*EntitlementsServiceListStaticEntitlementsResponse)(nil), // 5: c1.connector.v2.EntitlementsServiceListStaticEntitlementsResponse + (*Resource)(nil), // 6: c1.connector.v2.Resource + (*ResourceType)(nil), // 7: c1.connector.v2.ResourceType + (*anypb.Any)(nil), // 8: google.protobuf.Any +} +var file_c1_connector_v2_entitlement_proto_depIdxs = []int32{ + 6, // 0: c1.connector.v2.Entitlement.resource:type_name -> c1.connector.v2.Resource + 7, // 1: c1.connector.v2.Entitlement.grantable_to:type_name -> c1.connector.v2.ResourceType + 8, // 2: c1.connector.v2.Entitlement.annotations:type_name -> google.protobuf.Any + 0, // 3: c1.connector.v2.Entitlement.purpose:type_name -> c1.connector.v2.Entitlement.PurposeValue + 6, // 4: c1.connector.v2.EntitlementsServiceListEntitlementsRequest.resource:type_name -> c1.connector.v2.Resource + 8, // 5: c1.connector.v2.EntitlementsServiceListEntitlementsRequest.annotations:type_name -> google.protobuf.Any + 1, // 6: c1.connector.v2.EntitlementsServiceListEntitlementsResponse.list:type_name -> c1.connector.v2.Entitlement + 8, // 7: c1.connector.v2.EntitlementsServiceListEntitlementsResponse.annotations:type_name -> google.protobuf.Any + 8, // 8: c1.connector.v2.EntitlementsServiceListStaticEntitlementsRequest.annotations:type_name -> google.protobuf.Any + 1, // 9: c1.connector.v2.EntitlementsServiceListStaticEntitlementsResponse.list:type_name -> c1.connector.v2.Entitlement + 8, // 10: c1.connector.v2.EntitlementsServiceListStaticEntitlementsResponse.annotations:type_name -> google.protobuf.Any + 2, // 11: c1.connector.v2.EntitlementsService.ListEntitlements:input_type -> c1.connector.v2.EntitlementsServiceListEntitlementsRequest + 4, // 12: c1.connector.v2.EntitlementsService.ListStaticEntitlements:input_type -> c1.connector.v2.EntitlementsServiceListStaticEntitlementsRequest + 3, // 13: c1.connector.v2.EntitlementsService.ListEntitlements:output_type -> c1.connector.v2.EntitlementsServiceListEntitlementsResponse + 5, // 14: c1.connector.v2.EntitlementsService.ListStaticEntitlements:output_type -> c1.connector.v2.EntitlementsServiceListStaticEntitlementsResponse + 13, // [13:15] is the sub-list for method output_type + 11, // [11:13] is the sub-list for method input_type + 11, // [11:11] is the sub-list for extension type_name + 11, // [11:11] is the sub-list for extension extendee + 0, // [0:11] is the sub-list for field type_name +} + +func init() { file_c1_connector_v2_entitlement_proto_init() } +func file_c1_connector_v2_entitlement_proto_init() { + if File_c1_connector_v2_entitlement_proto != nil { + return + } + file_c1_connector_v2_resource_proto_init() + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: unsafe.Slice(unsafe.StringData(file_c1_connector_v2_entitlement_proto_rawDesc), len(file_c1_connector_v2_entitlement_proto_rawDesc)), + NumEnums: 1, + NumMessages: 5, + NumExtensions: 0, + NumServices: 1, + }, + GoTypes: file_c1_connector_v2_entitlement_proto_goTypes, + DependencyIndexes: file_c1_connector_v2_entitlement_proto_depIdxs, + EnumInfos: file_c1_connector_v2_entitlement_proto_enumTypes, + MessageInfos: file_c1_connector_v2_entitlement_proto_msgTypes, + }.Build() + File_c1_connector_v2_entitlement_proto = out.File + file_c1_connector_v2_entitlement_proto_goTypes = nil + file_c1_connector_v2_entitlement_proto_depIdxs = nil +} diff --git a/vendor/github.com/conductorone/baton-sdk/pb/c1/connector/v2/event_feed.pb.go b/vendor/github.com/conductorone/baton-sdk/pb/c1/connector/v2/event_feed.pb.go index 133fbcba..0b4f4556 100644 --- a/vendor/github.com/conductorone/baton-sdk/pb/c1/connector/v2/event_feed.pb.go +++ b/vendor/github.com/conductorone/baton-sdk/pb/c1/connector/v2/event_feed.pb.go @@ -1,9 +1,11 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.36.4 +// protoc-gen-go v1.36.10 // protoc (unknown) // source: c1/connector/v2/event_feed.proto +//go:build !protoopaque + package v2 import ( @@ -13,7 +15,6 @@ import ( anypb "google.golang.org/protobuf/types/known/anypb" timestamppb "google.golang.org/protobuf/types/known/timestamppb" reflect "reflect" - sync "sync" unsafe "unsafe" ) @@ -74,13 +75,8 @@ func (x EventType) Number() protoreflect.EnumNumber { return protoreflect.EnumNumber(x) } -// Deprecated: Use EventType.Descriptor instead. -func (EventType) EnumDescriptor() ([]byte, []int) { - return file_c1_connector_v2_event_feed_proto_rawDescGZIP(), []int{0} -} - type ListEventsRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // Can function like a page token but also can be arbitrary to resume a feed at any point Cursor string `protobuf:"bytes,1,opt,name=cursor,proto3" json:"cursor,omitempty"` StartAt *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=start_at,json=startAt,proto3" json:"start_at,omitempty"` @@ -118,11 +114,6 @@ func (x *ListEventsRequest) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use ListEventsRequest.ProtoReflect.Descriptor instead. -func (*ListEventsRequest) Descriptor() ([]byte, []int) { - return file_c1_connector_v2_event_feed_proto_rawDescGZIP(), []int{0} -} - func (x *ListEventsRequest) GetCursor() string { if x != nil { return x.Cursor @@ -158,8 +149,64 @@ func (x *ListEventsRequest) GetEventFeedId() string { return "" } +func (x *ListEventsRequest) SetCursor(v string) { + x.Cursor = v +} + +func (x *ListEventsRequest) SetStartAt(v *timestamppb.Timestamp) { + x.StartAt = v +} + +func (x *ListEventsRequest) SetPageSize(v uint32) { + x.PageSize = v +} + +func (x *ListEventsRequest) SetAnnotations(v []*anypb.Any) { + x.Annotations = v +} + +func (x *ListEventsRequest) SetEventFeedId(v string) { + x.EventFeedId = v +} + +func (x *ListEventsRequest) HasStartAt() bool { + if x == nil { + return false + } + return x.StartAt != nil +} + +func (x *ListEventsRequest) ClearStartAt() { + x.StartAt = nil +} + +type ListEventsRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Can function like a page token but also can be arbitrary to resume a feed at any point + Cursor string + StartAt *timestamppb.Timestamp + PageSize uint32 + Annotations []*anypb.Any + // Used to specify a specific event feed to list events from. + // If not provided, the connector will use the old event feed. + EventFeedId string +} + +func (b0 ListEventsRequest_builder) Build() *ListEventsRequest { + m0 := &ListEventsRequest{} + b, x := &b0, m0 + _, _ = b, x + x.Cursor = b.Cursor + x.StartAt = b.StartAt + x.PageSize = b.PageSize + x.Annotations = b.Annotations + x.EventFeedId = b.EventFeedId + return m0 +} + type ListEventsResponse struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` Events []*Event `protobuf:"bytes,1,rep,name=events,proto3" json:"events,omitempty"` Cursor string `protobuf:"bytes,2,opt,name=cursor,proto3" json:"cursor,omitempty"` HasMore bool `protobuf:"varint,3,opt,name=has_more,json=hasMore,proto3" json:"has_more,omitempty"` @@ -193,11 +240,6 @@ func (x *ListEventsResponse) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use ListEventsResponse.ProtoReflect.Descriptor instead. -func (*ListEventsResponse) Descriptor() ([]byte, []int) { - return file_c1_connector_v2_event_feed_proto_rawDescGZIP(), []int{1} -} - func (x *ListEventsResponse) GetEvents() []*Event { if x != nil { return x.Events @@ -226,8 +268,44 @@ func (x *ListEventsResponse) GetAnnotations() []*anypb.Any { return nil } +func (x *ListEventsResponse) SetEvents(v []*Event) { + x.Events = v +} + +func (x *ListEventsResponse) SetCursor(v string) { + x.Cursor = v +} + +func (x *ListEventsResponse) SetHasMore(v bool) { + x.HasMore = v +} + +func (x *ListEventsResponse) SetAnnotations(v []*anypb.Any) { + x.Annotations = v +} + +type ListEventsResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Events []*Event + Cursor string + HasMore bool + Annotations []*anypb.Any +} + +func (b0 ListEventsResponse_builder) Build() *ListEventsResponse { + m0 := &ListEventsResponse{} + b, x := &b0, m0 + _, _ = b, x + x.Events = b.Events + x.Cursor = b.Cursor + x.HasMore = b.HasMore + x.Annotations = b.Annotations + return m0 +} + type ListEventFeedsRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` Annotations []*anypb.Any `protobuf:"bytes,1,rep,name=annotations,proto3" json:"annotations,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache @@ -258,11 +336,6 @@ func (x *ListEventFeedsRequest) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use ListEventFeedsRequest.ProtoReflect.Descriptor instead. -func (*ListEventFeedsRequest) Descriptor() ([]byte, []int) { - return file_c1_connector_v2_event_feed_proto_rawDescGZIP(), []int{2} -} - func (x *ListEventFeedsRequest) GetAnnotations() []*anypb.Any { if x != nil { return x.Annotations @@ -270,8 +343,26 @@ func (x *ListEventFeedsRequest) GetAnnotations() []*anypb.Any { return nil } +func (x *ListEventFeedsRequest) SetAnnotations(v []*anypb.Any) { + x.Annotations = v +} + +type ListEventFeedsRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Annotations []*anypb.Any +} + +func (b0 ListEventFeedsRequest_builder) Build() *ListEventFeedsRequest { + m0 := &ListEventFeedsRequest{} + b, x := &b0, m0 + _, _ = b, x + x.Annotations = b.Annotations + return m0 +} + type ListEventFeedsResponse struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` List []*EventFeedMetadata `protobuf:"bytes,1,rep,name=list,proto3" json:"list,omitempty"` Annotations []*anypb.Any `protobuf:"bytes,2,rep,name=annotations,proto3" json:"annotations,omitempty"` unknownFields protoimpl.UnknownFields @@ -303,11 +394,6 @@ func (x *ListEventFeedsResponse) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use ListEventFeedsResponse.ProtoReflect.Descriptor instead. -func (*ListEventFeedsResponse) Descriptor() ([]byte, []int) { - return file_c1_connector_v2_event_feed_proto_rawDescGZIP(), []int{3} -} - func (x *ListEventFeedsResponse) GetList() []*EventFeedMetadata { if x != nil { return x.List @@ -322,8 +408,32 @@ func (x *ListEventFeedsResponse) GetAnnotations() []*anypb.Any { return nil } +func (x *ListEventFeedsResponse) SetList(v []*EventFeedMetadata) { + x.List = v +} + +func (x *ListEventFeedsResponse) SetAnnotations(v []*anypb.Any) { + x.Annotations = v +} + +type ListEventFeedsResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + List []*EventFeedMetadata + Annotations []*anypb.Any +} + +func (b0 ListEventFeedsResponse_builder) Build() *ListEventFeedsResponse { + m0 := &ListEventFeedsResponse{} + b, x := &b0, m0 + _, _ = b, x + x.List = b.List + x.Annotations = b.Annotations + return m0 +} + type Event struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` OccurredAt *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=occurred_at,json=occurredAt,proto3" json:"occurred_at,omitempty"` // Each event has structs that will usually be mostly empty. @@ -369,11 +479,6 @@ func (x *Event) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use Event.ProtoReflect.Descriptor instead. -func (*Event) Descriptor() ([]byte, []int) { - return file_c1_connector_v2_event_feed_proto_rawDescGZIP(), []int{4} -} - func (x *Event) GetId() string { if x != nil { return x.Id @@ -456,6 +561,260 @@ func (x *Event) GetAnnotations() []*anypb.Any { return nil } +func (x *Event) SetId(v string) { + x.Id = v +} + +func (x *Event) SetOccurredAt(v *timestamppb.Timestamp) { + x.OccurredAt = v +} + +func (x *Event) SetUsageEvent(v *UsageEvent) { + if v == nil { + x.Event = nil + return + } + x.Event = &Event_UsageEvent{v} +} + +func (x *Event) SetGrantEvent(v *GrantEvent) { + if v == nil { + x.Event = nil + return + } + x.Event = &Event_GrantEvent{v} +} + +func (x *Event) SetRevokeEvent(v *RevokeEvent) { + if v == nil { + x.Event = nil + return + } + x.Event = &Event_RevokeEvent{v} +} + +func (x *Event) SetResourceChangeEvent(v *ResourceChangeEvent) { + if v == nil { + x.Event = nil + return + } + x.Event = &Event_ResourceChangeEvent{v} +} + +func (x *Event) SetCreateGrantEvent(v *CreateGrantEvent) { + if v == nil { + x.Event = nil + return + } + x.Event = &Event_CreateGrantEvent{v} +} + +func (x *Event) SetCreateRevokeEvent(v *CreateRevokeEvent) { + if v == nil { + x.Event = nil + return + } + x.Event = &Event_CreateRevokeEvent{v} +} + +func (x *Event) SetAnnotations(v []*anypb.Any) { + x.Annotations = v +} + +func (x *Event) HasOccurredAt() bool { + if x == nil { + return false + } + return x.OccurredAt != nil +} + +func (x *Event) HasEvent() bool { + if x == nil { + return false + } + return x.Event != nil +} + +func (x *Event) HasUsageEvent() bool { + if x == nil { + return false + } + _, ok := x.Event.(*Event_UsageEvent) + return ok +} + +func (x *Event) HasGrantEvent() bool { + if x == nil { + return false + } + _, ok := x.Event.(*Event_GrantEvent) + return ok +} + +func (x *Event) HasRevokeEvent() bool { + if x == nil { + return false + } + _, ok := x.Event.(*Event_RevokeEvent) + return ok +} + +func (x *Event) HasResourceChangeEvent() bool { + if x == nil { + return false + } + _, ok := x.Event.(*Event_ResourceChangeEvent) + return ok +} + +func (x *Event) HasCreateGrantEvent() bool { + if x == nil { + return false + } + _, ok := x.Event.(*Event_CreateGrantEvent) + return ok +} + +func (x *Event) HasCreateRevokeEvent() bool { + if x == nil { + return false + } + _, ok := x.Event.(*Event_CreateRevokeEvent) + return ok +} + +func (x *Event) ClearOccurredAt() { + x.OccurredAt = nil +} + +func (x *Event) ClearEvent() { + x.Event = nil +} + +func (x *Event) ClearUsageEvent() { + if _, ok := x.Event.(*Event_UsageEvent); ok { + x.Event = nil + } +} + +func (x *Event) ClearGrantEvent() { + if _, ok := x.Event.(*Event_GrantEvent); ok { + x.Event = nil + } +} + +func (x *Event) ClearRevokeEvent() { + if _, ok := x.Event.(*Event_RevokeEvent); ok { + x.Event = nil + } +} + +func (x *Event) ClearResourceChangeEvent() { + if _, ok := x.Event.(*Event_ResourceChangeEvent); ok { + x.Event = nil + } +} + +func (x *Event) ClearCreateGrantEvent() { + if _, ok := x.Event.(*Event_CreateGrantEvent); ok { + x.Event = nil + } +} + +func (x *Event) ClearCreateRevokeEvent() { + if _, ok := x.Event.(*Event_CreateRevokeEvent); ok { + x.Event = nil + } +} + +const Event_Event_not_set_case case_Event_Event = 0 +const Event_UsageEvent_case case_Event_Event = 100 +const Event_GrantEvent_case case_Event_Event = 101 +const Event_RevokeEvent_case case_Event_Event = 102 +const Event_ResourceChangeEvent_case case_Event_Event = 103 +const Event_CreateGrantEvent_case case_Event_Event = 104 +const Event_CreateRevokeEvent_case case_Event_Event = 105 + +func (x *Event) WhichEvent() case_Event_Event { + if x == nil { + return Event_Event_not_set_case + } + switch x.Event.(type) { + case *Event_UsageEvent: + return Event_UsageEvent_case + case *Event_GrantEvent: + return Event_GrantEvent_case + case *Event_RevokeEvent: + return Event_RevokeEvent_case + case *Event_ResourceChangeEvent: + return Event_ResourceChangeEvent_case + case *Event_CreateGrantEvent: + return Event_CreateGrantEvent_case + case *Event_CreateRevokeEvent: + return Event_CreateRevokeEvent_case + default: + return Event_Event_not_set_case + } +} + +type Event_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Id string + OccurredAt *timestamppb.Timestamp + // Each event has structs that will usually be mostly empty. + // Stream consumer must be defensive about what it's reading + + // Fields of oneof Event: + UsageEvent *UsageEvent + GrantEvent *GrantEvent + RevokeEvent *RevokeEvent + ResourceChangeEvent *ResourceChangeEvent + CreateGrantEvent *CreateGrantEvent + CreateRevokeEvent *CreateRevokeEvent + // -- end of Event + // May contain resources for targets, actor, or items referenced in events + Annotations []*anypb.Any +} + +func (b0 Event_builder) Build() *Event { + m0 := &Event{} + b, x := &b0, m0 + _, _ = b, x + x.Id = b.Id + x.OccurredAt = b.OccurredAt + if b.UsageEvent != nil { + x.Event = &Event_UsageEvent{b.UsageEvent} + } + if b.GrantEvent != nil { + x.Event = &Event_GrantEvent{b.GrantEvent} + } + if b.RevokeEvent != nil { + x.Event = &Event_RevokeEvent{b.RevokeEvent} + } + if b.ResourceChangeEvent != nil { + x.Event = &Event_ResourceChangeEvent{b.ResourceChangeEvent} + } + if b.CreateGrantEvent != nil { + x.Event = &Event_CreateGrantEvent{b.CreateGrantEvent} + } + if b.CreateRevokeEvent != nil { + x.Event = &Event_CreateRevokeEvent{b.CreateRevokeEvent} + } + x.Annotations = b.Annotations + return m0 +} + +type case_Event_Event protoreflect.FieldNumber + +func (x case_Event_Event) String() string { + md := file_c1_connector_v2_event_feed_proto_msgTypes[4].Descriptor() + if x == 0 { + return "not set" + } + return protoimpl.X.MessageFieldStringOf(md, protoreflect.FieldNumber(x)) +} + type isEvent_Event interface { isEvent_Event() } @@ -497,7 +856,7 @@ func (*Event_CreateGrantEvent) isEvent_Event() {} func (*Event_CreateRevokeEvent) isEvent_Event() {} type UsageEvent struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` TargetResource *Resource `protobuf:"bytes,1,opt,name=target_resource,json=targetResource,proto3" json:"target_resource,omitempty"` ActorResource *Resource `protobuf:"bytes,2,opt,name=actor_resource,json=actorResource,proto3" json:"actor_resource,omitempty"` unknownFields protoimpl.UnknownFields @@ -529,11 +888,6 @@ func (x *UsageEvent) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use UsageEvent.ProtoReflect.Descriptor instead. -func (*UsageEvent) Descriptor() ([]byte, []int) { - return file_c1_connector_v2_event_feed_proto_rawDescGZIP(), []int{5} -} - func (x *UsageEvent) GetTargetResource() *Resource { if x != nil { return x.TargetResource @@ -548,9 +902,55 @@ func (x *UsageEvent) GetActorResource() *Resource { return nil } +func (x *UsageEvent) SetTargetResource(v *Resource) { + x.TargetResource = v +} + +func (x *UsageEvent) SetActorResource(v *Resource) { + x.ActorResource = v +} + +func (x *UsageEvent) HasTargetResource() bool { + if x == nil { + return false + } + return x.TargetResource != nil +} + +func (x *UsageEvent) HasActorResource() bool { + if x == nil { + return false + } + return x.ActorResource != nil +} + +func (x *UsageEvent) ClearTargetResource() { + x.TargetResource = nil +} + +func (x *UsageEvent) ClearActorResource() { + x.ActorResource = nil +} + +type UsageEvent_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + TargetResource *Resource + ActorResource *Resource +} + +func (b0 UsageEvent_builder) Build() *UsageEvent { + m0 := &UsageEvent{} + b, x := &b0, m0 + _, _ = b, x + x.TargetResource = b.TargetResource + x.ActorResource = b.ActorResource + return m0 +} + // Unrelated to this effort, but valuable for other projects type GrantEvent struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` Grant *Grant `protobuf:"bytes,1,opt,name=grant,proto3" json:"grant,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache @@ -581,11 +981,6 @@ func (x *GrantEvent) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use GrantEvent.ProtoReflect.Descriptor instead. -func (*GrantEvent) Descriptor() ([]byte, []int) { - return file_c1_connector_v2_event_feed_proto_rawDescGZIP(), []int{6} -} - func (x *GrantEvent) GetGrant() *Grant { if x != nil { return x.Grant @@ -593,8 +988,37 @@ func (x *GrantEvent) GetGrant() *Grant { return nil } +func (x *GrantEvent) SetGrant(v *Grant) { + x.Grant = v +} + +func (x *GrantEvent) HasGrant() bool { + if x == nil { + return false + } + return x.Grant != nil +} + +func (x *GrantEvent) ClearGrant() { + x.Grant = nil +} + +type GrantEvent_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Grant *Grant +} + +func (b0 GrantEvent_builder) Build() *GrantEvent { + m0 := &GrantEvent{} + b, x := &b0, m0 + _, _ = b, x + x.Grant = b.Grant + return m0 +} + type CreateGrantEvent struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` Entitlement *Entitlement `protobuf:"bytes,1,opt,name=entitlement,proto3" json:"entitlement,omitempty"` Principal *Resource `protobuf:"bytes,2,opt,name=principal,proto3" json:"principal,omitempty"` Annotations []*anypb.Any `protobuf:"bytes,3,rep,name=annotations,proto3" json:"annotations,omitempty"` @@ -627,11 +1051,6 @@ func (x *CreateGrantEvent) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use CreateGrantEvent.ProtoReflect.Descriptor instead. -func (*CreateGrantEvent) Descriptor() ([]byte, []int) { - return file_c1_connector_v2_event_feed_proto_rawDescGZIP(), []int{7} -} - func (x *CreateGrantEvent) GetEntitlement() *Entitlement { if x != nil { return x.Entitlement @@ -653,8 +1072,60 @@ func (x *CreateGrantEvent) GetAnnotations() []*anypb.Any { return nil } +func (x *CreateGrantEvent) SetEntitlement(v *Entitlement) { + x.Entitlement = v +} + +func (x *CreateGrantEvent) SetPrincipal(v *Resource) { + x.Principal = v +} + +func (x *CreateGrantEvent) SetAnnotations(v []*anypb.Any) { + x.Annotations = v +} + +func (x *CreateGrantEvent) HasEntitlement() bool { + if x == nil { + return false + } + return x.Entitlement != nil +} + +func (x *CreateGrantEvent) HasPrincipal() bool { + if x == nil { + return false + } + return x.Principal != nil +} + +func (x *CreateGrantEvent) ClearEntitlement() { + x.Entitlement = nil +} + +func (x *CreateGrantEvent) ClearPrincipal() { + x.Principal = nil +} + +type CreateGrantEvent_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Entitlement *Entitlement + Principal *Resource + Annotations []*anypb.Any +} + +func (b0 CreateGrantEvent_builder) Build() *CreateGrantEvent { + m0 := &CreateGrantEvent{} + b, x := &b0, m0 + _, _ = b, x + x.Entitlement = b.Entitlement + x.Principal = b.Principal + x.Annotations = b.Annotations + return m0 +} + type CreateRevokeEvent struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` Entitlement *Entitlement `protobuf:"bytes,1,opt,name=entitlement,proto3" json:"entitlement,omitempty"` Principal *Resource `protobuf:"bytes,2,opt,name=principal,proto3" json:"principal,omitempty"` Annotations []*anypb.Any `protobuf:"bytes,3,rep,name=annotations,proto3" json:"annotations,omitempty"` @@ -687,11 +1158,6 @@ func (x *CreateRevokeEvent) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use CreateRevokeEvent.ProtoReflect.Descriptor instead. -func (*CreateRevokeEvent) Descriptor() ([]byte, []int) { - return file_c1_connector_v2_event_feed_proto_rawDescGZIP(), []int{8} -} - func (x *CreateRevokeEvent) GetEntitlement() *Entitlement { if x != nil { return x.Entitlement @@ -713,8 +1179,60 @@ func (x *CreateRevokeEvent) GetAnnotations() []*anypb.Any { return nil } +func (x *CreateRevokeEvent) SetEntitlement(v *Entitlement) { + x.Entitlement = v +} + +func (x *CreateRevokeEvent) SetPrincipal(v *Resource) { + x.Principal = v +} + +func (x *CreateRevokeEvent) SetAnnotations(v []*anypb.Any) { + x.Annotations = v +} + +func (x *CreateRevokeEvent) HasEntitlement() bool { + if x == nil { + return false + } + return x.Entitlement != nil +} + +func (x *CreateRevokeEvent) HasPrincipal() bool { + if x == nil { + return false + } + return x.Principal != nil +} + +func (x *CreateRevokeEvent) ClearEntitlement() { + x.Entitlement = nil +} + +func (x *CreateRevokeEvent) ClearPrincipal() { + x.Principal = nil +} + +type CreateRevokeEvent_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Entitlement *Entitlement + Principal *Resource + Annotations []*anypb.Any +} + +func (b0 CreateRevokeEvent_builder) Build() *CreateRevokeEvent { + m0 := &CreateRevokeEvent{} + b, x := &b0, m0 + _, _ = b, x + x.Entitlement = b.Entitlement + x.Principal = b.Principal + x.Annotations = b.Annotations + return m0 +} + type RevokeEvent struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` Entitlement *Entitlement `protobuf:"bytes,1,opt,name=entitlement,proto3" json:"entitlement,omitempty"` Principal *Resource `protobuf:"bytes,2,opt,name=principal,proto3" json:"principal,omitempty"` unknownFields protoimpl.UnknownFields @@ -746,11 +1264,6 @@ func (x *RevokeEvent) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use RevokeEvent.ProtoReflect.Descriptor instead. -func (*RevokeEvent) Descriptor() ([]byte, []int) { - return file_c1_connector_v2_event_feed_proto_rawDescGZIP(), []int{9} -} - func (x *RevokeEvent) GetEntitlement() *Entitlement { if x != nil { return x.Entitlement @@ -765,9 +1278,55 @@ func (x *RevokeEvent) GetPrincipal() *Resource { return nil } +func (x *RevokeEvent) SetEntitlement(v *Entitlement) { + x.Entitlement = v +} + +func (x *RevokeEvent) SetPrincipal(v *Resource) { + x.Principal = v +} + +func (x *RevokeEvent) HasEntitlement() bool { + if x == nil { + return false + } + return x.Entitlement != nil +} + +func (x *RevokeEvent) HasPrincipal() bool { + if x == nil { + return false + } + return x.Principal != nil +} + +func (x *RevokeEvent) ClearEntitlement() { + x.Entitlement = nil +} + +func (x *RevokeEvent) ClearPrincipal() { + x.Principal = nil +} + +type RevokeEvent_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Entitlement *Entitlement + Principal *Resource +} + +func (b0 RevokeEvent_builder) Build() *RevokeEvent { + m0 := &RevokeEvent{} + b, x := &b0, m0 + _, _ = b, x + x.Entitlement = b.Entitlement + x.Principal = b.Principal + return m0 +} + // generic light weight event indicating a resource was changed type ResourceChangeEvent struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` ResourceId *ResourceId `protobuf:"bytes,1,opt,name=resource_id,json=resourceId,proto3" json:"resource_id,omitempty"` ParentResourceId *ResourceId `protobuf:"bytes,2,opt,name=parent_resource_id,json=parentResourceId,proto3" json:"parent_resource_id,omitempty"` unknownFields protoimpl.UnknownFields @@ -799,11 +1358,6 @@ func (x *ResourceChangeEvent) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use ResourceChangeEvent.ProtoReflect.Descriptor instead. -func (*ResourceChangeEvent) Descriptor() ([]byte, []int) { - return file_c1_connector_v2_event_feed_proto_rawDescGZIP(), []int{10} -} - func (x *ResourceChangeEvent) GetResourceId() *ResourceId { if x != nil { return x.ResourceId @@ -818,8 +1372,54 @@ func (x *ResourceChangeEvent) GetParentResourceId() *ResourceId { return nil } +func (x *ResourceChangeEvent) SetResourceId(v *ResourceId) { + x.ResourceId = v +} + +func (x *ResourceChangeEvent) SetParentResourceId(v *ResourceId) { + x.ParentResourceId = v +} + +func (x *ResourceChangeEvent) HasResourceId() bool { + if x == nil { + return false + } + return x.ResourceId != nil +} + +func (x *ResourceChangeEvent) HasParentResourceId() bool { + if x == nil { + return false + } + return x.ParentResourceId != nil +} + +func (x *ResourceChangeEvent) ClearResourceId() { + x.ResourceId = nil +} + +func (x *ResourceChangeEvent) ClearParentResourceId() { + x.ParentResourceId = nil +} + +type ResourceChangeEvent_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + ResourceId *ResourceId + ParentResourceId *ResourceId +} + +func (b0 ResourceChangeEvent_builder) Build() *ResourceChangeEvent { + m0 := &ResourceChangeEvent{} + b, x := &b0, m0 + _, _ = b, x + x.ResourceId = b.ResourceId + x.ParentResourceId = b.ParentResourceId + return m0 +} + type EventFeedMetadata struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // unique identifier for the event feed Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` SupportedEventTypes []EventType `protobuf:"varint,2,rep,packed,name=supported_event_types,json=supportedEventTypes,proto3,enum=c1.connector.v2.EventType" json:"supported_event_types,omitempty"` @@ -852,11 +1452,6 @@ func (x *EventFeedMetadata) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use EventFeedMetadata.ProtoReflect.Descriptor instead. -func (*EventFeedMetadata) Descriptor() ([]byte, []int) { - return file_c1_connector_v2_event_feed_proto_rawDescGZIP(), []int{11} -} - func (x *EventFeedMetadata) GetId() string { if x != nil { return x.Id @@ -871,214 +1466,107 @@ func (x *EventFeedMetadata) GetSupportedEventTypes() []EventType { return nil } -var File_c1_connector_v2_event_feed_proto protoreflect.FileDescriptor +func (x *EventFeedMetadata) SetId(v string) { + x.Id = v +} -var file_c1_connector_v2_event_feed_proto_rawDesc = string([]byte{ - 0x0a, 0x20, 0x63, 0x31, 0x2f, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x2f, 0x76, - 0x32, 0x2f, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x5f, 0x66, 0x65, 0x65, 0x64, 0x2e, 0x70, 0x72, 0x6f, - 0x74, 0x6f, 0x12, 0x0f, 0x63, 0x31, 0x2e, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, - 0x2e, 0x76, 0x32, 0x1a, 0x21, 0x63, 0x31, 0x2f, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, - 0x72, 0x2f, 0x76, 0x32, 0x2f, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x6d, 0x65, 0x6e, 0x74, - 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1b, 0x63, 0x31, 0x2f, 0x63, 0x6f, 0x6e, 0x6e, 0x65, - 0x63, 0x74, 0x6f, 0x72, 0x2f, 0x76, 0x32, 0x2f, 0x67, 0x72, 0x61, 0x6e, 0x74, 0x2e, 0x70, 0x72, - 0x6f, 0x74, 0x6f, 0x1a, 0x1e, 0x63, 0x31, 0x2f, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, - 0x72, 0x2f, 0x76, 0x32, 0x2f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x2e, 0x70, 0x72, - 0x6f, 0x74, 0x6f, 0x1a, 0x19, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x61, 0x6e, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1f, - 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, - 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, - 0x17, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x2f, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, - 0x74, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x85, 0x02, 0x0a, 0x11, 0x4c, 0x69, 0x73, - 0x74, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x25, - 0x0a, 0x06, 0x63, 0x75, 0x72, 0x73, 0x6f, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x0d, - 0xfa, 0x42, 0x0a, 0x72, 0x08, 0x20, 0x01, 0x28, 0x80, 0x20, 0xd0, 0x01, 0x01, 0x52, 0x06, 0x63, - 0x75, 0x72, 0x73, 0x6f, 0x72, 0x12, 0x35, 0x0a, 0x08, 0x73, 0x74, 0x61, 0x72, 0x74, 0x5f, 0x61, - 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, - 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, - 0x61, 0x6d, 0x70, 0x52, 0x07, 0x73, 0x74, 0x61, 0x72, 0x74, 0x41, 0x74, 0x12, 0x27, 0x0a, 0x09, - 0x70, 0x61, 0x67, 0x65, 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0d, 0x42, - 0x0a, 0xfa, 0x42, 0x07, 0x2a, 0x05, 0x18, 0xfa, 0x01, 0x40, 0x01, 0x52, 0x08, 0x70, 0x61, 0x67, - 0x65, 0x53, 0x69, 0x7a, 0x65, 0x12, 0x36, 0x0a, 0x0b, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, - 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x67, 0x6f, 0x6f, - 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x41, 0x6e, 0x79, - 0x52, 0x0b, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x31, 0x0a, - 0x0d, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x5f, 0x66, 0x65, 0x65, 0x64, 0x5f, 0x69, 0x64, 0x18, 0x05, - 0x20, 0x01, 0x28, 0x09, 0x42, 0x0d, 0xfa, 0x42, 0x0a, 0x72, 0x08, 0x20, 0x01, 0x28, 0x80, 0x08, - 0xd0, 0x01, 0x01, 0x52, 0x0b, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x46, 0x65, 0x65, 0x64, 0x49, 0x64, - 0x22, 0xbe, 0x01, 0x0a, 0x12, 0x4c, 0x69, 0x73, 0x74, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x52, - 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2e, 0x0a, 0x06, 0x65, 0x76, 0x65, 0x6e, 0x74, - 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x63, 0x31, 0x2e, 0x63, 0x6f, 0x6e, - 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x2e, 0x76, 0x32, 0x2e, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x52, - 0x06, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x12, 0x25, 0x0a, 0x06, 0x63, 0x75, 0x72, 0x73, 0x6f, - 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x0d, 0xfa, 0x42, 0x0a, 0x72, 0x08, 0x20, 0x01, - 0x28, 0x80, 0x20, 0xd0, 0x01, 0x01, 0x52, 0x06, 0x63, 0x75, 0x72, 0x73, 0x6f, 0x72, 0x12, 0x19, - 0x0a, 0x08, 0x68, 0x61, 0x73, 0x5f, 0x6d, 0x6f, 0x72, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, - 0x52, 0x07, 0x68, 0x61, 0x73, 0x4d, 0x6f, 0x72, 0x65, 0x12, 0x36, 0x0a, 0x0b, 0x61, 0x6e, 0x6e, - 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x14, - 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, - 0x2e, 0x41, 0x6e, 0x79, 0x52, 0x0b, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, - 0x73, 0x22, 0x4f, 0x0a, 0x15, 0x4c, 0x69, 0x73, 0x74, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x46, 0x65, - 0x65, 0x64, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x36, 0x0a, 0x0b, 0x61, 0x6e, - 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, - 0x14, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, - 0x66, 0x2e, 0x41, 0x6e, 0x79, 0x52, 0x0b, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, - 0x6e, 0x73, 0x22, 0x88, 0x01, 0x0a, 0x16, 0x4c, 0x69, 0x73, 0x74, 0x45, 0x76, 0x65, 0x6e, 0x74, - 0x46, 0x65, 0x65, 0x64, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x36, 0x0a, - 0x04, 0x6c, 0x69, 0x73, 0x74, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x63, 0x31, - 0x2e, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x2e, 0x76, 0x32, 0x2e, 0x45, 0x76, - 0x65, 0x6e, 0x74, 0x46, 0x65, 0x65, 0x64, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x52, - 0x04, 0x6c, 0x69, 0x73, 0x74, 0x12, 0x36, 0x0a, 0x0b, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, - 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x67, 0x6f, 0x6f, - 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x41, 0x6e, 0x79, - 0x52, 0x0b, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x22, 0xdd, 0x04, - 0x0a, 0x05, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x3b, 0x0a, 0x0b, 0x6f, 0x63, 0x63, 0x75, 0x72, - 0x72, 0x65, 0x64, 0x5f, 0x61, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, - 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, - 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x0a, 0x6f, 0x63, 0x63, 0x75, 0x72, 0x72, - 0x65, 0x64, 0x41, 0x74, 0x12, 0x3e, 0x0a, 0x0b, 0x75, 0x73, 0x61, 0x67, 0x65, 0x5f, 0x65, 0x76, - 0x65, 0x6e, 0x74, 0x18, 0x64, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x63, 0x31, 0x2e, 0x63, - 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x2e, 0x76, 0x32, 0x2e, 0x55, 0x73, 0x61, 0x67, - 0x65, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x48, 0x00, 0x52, 0x0a, 0x75, 0x73, 0x61, 0x67, 0x65, 0x45, - 0x76, 0x65, 0x6e, 0x74, 0x12, 0x3e, 0x0a, 0x0b, 0x67, 0x72, 0x61, 0x6e, 0x74, 0x5f, 0x65, 0x76, - 0x65, 0x6e, 0x74, 0x18, 0x65, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x63, 0x31, 0x2e, 0x63, - 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x2e, 0x76, 0x32, 0x2e, 0x47, 0x72, 0x61, 0x6e, - 0x74, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x48, 0x00, 0x52, 0x0a, 0x67, 0x72, 0x61, 0x6e, 0x74, 0x45, - 0x76, 0x65, 0x6e, 0x74, 0x12, 0x41, 0x0a, 0x0c, 0x72, 0x65, 0x76, 0x6f, 0x6b, 0x65, 0x5f, 0x65, - 0x76, 0x65, 0x6e, 0x74, 0x18, 0x66, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x63, 0x31, 0x2e, - 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x2e, 0x76, 0x32, 0x2e, 0x52, 0x65, 0x76, - 0x6f, 0x6b, 0x65, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x48, 0x00, 0x52, 0x0b, 0x72, 0x65, 0x76, 0x6f, - 0x6b, 0x65, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x12, 0x5a, 0x0a, 0x15, 0x72, 0x65, 0x73, 0x6f, 0x75, - 0x72, 0x63, 0x65, 0x5f, 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x5f, 0x65, 0x76, 0x65, 0x6e, 0x74, - 0x18, 0x67, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x63, 0x31, 0x2e, 0x63, 0x6f, 0x6e, 0x6e, - 0x65, 0x63, 0x74, 0x6f, 0x72, 0x2e, 0x76, 0x32, 0x2e, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, - 0x65, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x48, 0x00, 0x52, 0x13, - 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x45, 0x76, - 0x65, 0x6e, 0x74, 0x12, 0x51, 0x0a, 0x12, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x5f, 0x67, 0x72, - 0x61, 0x6e, 0x74, 0x5f, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x18, 0x68, 0x20, 0x01, 0x28, 0x0b, 0x32, - 0x21, 0x2e, 0x63, 0x31, 0x2e, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x2e, 0x76, - 0x32, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x47, 0x72, 0x61, 0x6e, 0x74, 0x45, 0x76, 0x65, - 0x6e, 0x74, 0x48, 0x00, 0x52, 0x10, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x47, 0x72, 0x61, 0x6e, - 0x74, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x12, 0x54, 0x0a, 0x13, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, - 0x5f, 0x72, 0x65, 0x76, 0x6f, 0x6b, 0x65, 0x5f, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x18, 0x69, 0x20, - 0x01, 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x63, 0x31, 0x2e, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, - 0x6f, 0x72, 0x2e, 0x76, 0x32, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x52, 0x65, 0x76, 0x6f, - 0x6b, 0x65, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x48, 0x00, 0x52, 0x11, 0x63, 0x72, 0x65, 0x61, 0x74, - 0x65, 0x52, 0x65, 0x76, 0x6f, 0x6b, 0x65, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x12, 0x36, 0x0a, 0x0b, - 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, - 0x0b, 0x32, 0x14, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, - 0x62, 0x75, 0x66, 0x2e, 0x41, 0x6e, 0x79, 0x52, 0x0b, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, - 0x69, 0x6f, 0x6e, 0x73, 0x42, 0x07, 0x0a, 0x05, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x22, 0x92, 0x01, - 0x0a, 0x0a, 0x55, 0x73, 0x61, 0x67, 0x65, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x12, 0x42, 0x0a, 0x0f, - 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x5f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x63, 0x31, 0x2e, 0x63, 0x6f, 0x6e, 0x6e, 0x65, - 0x63, 0x74, 0x6f, 0x72, 0x2e, 0x76, 0x32, 0x2e, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, - 0x52, 0x0e, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, - 0x12, 0x40, 0x0a, 0x0e, 0x61, 0x63, 0x74, 0x6f, 0x72, 0x5f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, - 0x63, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x63, 0x31, 0x2e, 0x63, 0x6f, - 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x2e, 0x76, 0x32, 0x2e, 0x52, 0x65, 0x73, 0x6f, 0x75, - 0x72, 0x63, 0x65, 0x52, 0x0d, 0x61, 0x63, 0x74, 0x6f, 0x72, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, - 0x63, 0x65, 0x22, 0x3a, 0x0a, 0x0a, 0x47, 0x72, 0x61, 0x6e, 0x74, 0x45, 0x76, 0x65, 0x6e, 0x74, - 0x12, 0x2c, 0x0a, 0x05, 0x67, 0x72, 0x61, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, - 0x16, 0x2e, 0x63, 0x31, 0x2e, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x2e, 0x76, - 0x32, 0x2e, 0x47, 0x72, 0x61, 0x6e, 0x74, 0x52, 0x05, 0x67, 0x72, 0x61, 0x6e, 0x74, 0x22, 0xd7, - 0x01, 0x0a, 0x10, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x47, 0x72, 0x61, 0x6e, 0x74, 0x45, 0x76, - 0x65, 0x6e, 0x74, 0x12, 0x48, 0x0a, 0x0b, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x6d, 0x65, - 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x63, 0x31, 0x2e, 0x63, 0x6f, - 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x2e, 0x76, 0x32, 0x2e, 0x45, 0x6e, 0x74, 0x69, 0x74, - 0x6c, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x42, 0x08, 0xfa, 0x42, 0x05, 0x8a, 0x01, 0x02, 0x10, 0x01, - 0x52, 0x0b, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x12, 0x41, 0x0a, - 0x09, 0x70, 0x72, 0x69, 0x6e, 0x63, 0x69, 0x70, 0x61, 0x6c, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, - 0x32, 0x19, 0x2e, 0x63, 0x31, 0x2e, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x2e, - 0x76, 0x32, 0x2e, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x42, 0x08, 0xfa, 0x42, 0x05, - 0x8a, 0x01, 0x02, 0x10, 0x01, 0x52, 0x09, 0x70, 0x72, 0x69, 0x6e, 0x63, 0x69, 0x70, 0x61, 0x6c, - 0x12, 0x36, 0x0a, 0x0b, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, - 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, - 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x41, 0x6e, 0x79, 0x52, 0x0b, 0x61, 0x6e, 0x6e, - 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x22, 0xd8, 0x01, 0x0a, 0x11, 0x43, 0x72, 0x65, - 0x61, 0x74, 0x65, 0x52, 0x65, 0x76, 0x6f, 0x6b, 0x65, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x12, 0x48, - 0x0a, 0x0b, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x63, 0x31, 0x2e, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, - 0x6f, 0x72, 0x2e, 0x76, 0x32, 0x2e, 0x45, 0x6e, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x6d, 0x65, 0x6e, - 0x74, 0x42, 0x08, 0xfa, 0x42, 0x05, 0x8a, 0x01, 0x02, 0x10, 0x01, 0x52, 0x0b, 0x65, 0x6e, 0x74, - 0x69, 0x74, 0x6c, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x12, 0x41, 0x0a, 0x09, 0x70, 0x72, 0x69, 0x6e, - 0x63, 0x69, 0x70, 0x61, 0x6c, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x63, 0x31, - 0x2e, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x2e, 0x76, 0x32, 0x2e, 0x52, 0x65, - 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x42, 0x08, 0xfa, 0x42, 0x05, 0x8a, 0x01, 0x02, 0x10, 0x01, - 0x52, 0x09, 0x70, 0x72, 0x69, 0x6e, 0x63, 0x69, 0x70, 0x61, 0x6c, 0x12, 0x36, 0x0a, 0x0b, 0x61, - 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, - 0x32, 0x14, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, - 0x75, 0x66, 0x2e, 0x41, 0x6e, 0x79, 0x52, 0x0b, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, - 0x6f, 0x6e, 0x73, 0x22, 0x86, 0x01, 0x0a, 0x0b, 0x52, 0x65, 0x76, 0x6f, 0x6b, 0x65, 0x45, 0x76, - 0x65, 0x6e, 0x74, 0x12, 0x3e, 0x0a, 0x0b, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x6d, 0x65, - 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x63, 0x31, 0x2e, 0x63, 0x6f, - 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x2e, 0x76, 0x32, 0x2e, 0x45, 0x6e, 0x74, 0x69, 0x74, - 0x6c, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x52, 0x0b, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x6d, - 0x65, 0x6e, 0x74, 0x12, 0x37, 0x0a, 0x09, 0x70, 0x72, 0x69, 0x6e, 0x63, 0x69, 0x70, 0x61, 0x6c, - 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x63, 0x31, 0x2e, 0x63, 0x6f, 0x6e, 0x6e, - 0x65, 0x63, 0x74, 0x6f, 0x72, 0x2e, 0x76, 0x32, 0x2e, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, - 0x65, 0x52, 0x09, 0x70, 0x72, 0x69, 0x6e, 0x63, 0x69, 0x70, 0x61, 0x6c, 0x22, 0xa8, 0x01, 0x0a, - 0x13, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x45, - 0x76, 0x65, 0x6e, 0x74, 0x12, 0x46, 0x0a, 0x0b, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, - 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x63, 0x31, 0x2e, 0x63, - 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x2e, 0x76, 0x32, 0x2e, 0x52, 0x65, 0x73, 0x6f, - 0x75, 0x72, 0x63, 0x65, 0x49, 0x64, 0x42, 0x08, 0xfa, 0x42, 0x05, 0x8a, 0x01, 0x02, 0x10, 0x01, - 0x52, 0x0a, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x49, 0x64, 0x12, 0x49, 0x0a, 0x12, - 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x5f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, - 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x63, 0x31, 0x2e, 0x63, 0x6f, - 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x2e, 0x76, 0x32, 0x2e, 0x52, 0x65, 0x73, 0x6f, 0x75, - 0x72, 0x63, 0x65, 0x49, 0x64, 0x52, 0x10, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x73, - 0x6f, 0x75, 0x72, 0x63, 0x65, 0x49, 0x64, 0x22, 0x90, 0x01, 0x0a, 0x11, 0x45, 0x76, 0x65, 0x6e, - 0x74, 0x46, 0x65, 0x65, 0x64, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0x1a, 0x0a, - 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x0a, 0xfa, 0x42, 0x07, 0x72, 0x05, - 0x20, 0x01, 0x28, 0x80, 0x08, 0x52, 0x02, 0x69, 0x64, 0x12, 0x5f, 0x0a, 0x15, 0x73, 0x75, 0x70, - 0x70, 0x6f, 0x72, 0x74, 0x65, 0x64, 0x5f, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x5f, 0x74, 0x79, 0x70, - 0x65, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0e, 0x32, 0x1a, 0x2e, 0x63, 0x31, 0x2e, 0x63, 0x6f, - 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x2e, 0x76, 0x32, 0x2e, 0x45, 0x76, 0x65, 0x6e, 0x74, - 0x54, 0x79, 0x70, 0x65, 0x42, 0x0f, 0xfa, 0x42, 0x0c, 0x92, 0x01, 0x09, 0x18, 0x01, 0x22, 0x05, - 0x82, 0x01, 0x02, 0x10, 0x01, 0x52, 0x13, 0x73, 0x75, 0x70, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x64, - 0x45, 0x76, 0x65, 0x6e, 0x74, 0x54, 0x79, 0x70, 0x65, 0x73, 0x2a, 0xa4, 0x01, 0x0a, 0x09, 0x45, - 0x76, 0x65, 0x6e, 0x74, 0x54, 0x79, 0x70, 0x65, 0x12, 0x1a, 0x0a, 0x16, 0x45, 0x56, 0x45, 0x4e, - 0x54, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, - 0x45, 0x44, 0x10, 0x00, 0x12, 0x14, 0x0a, 0x10, 0x45, 0x56, 0x45, 0x4e, 0x54, 0x5f, 0x54, 0x59, - 0x50, 0x45, 0x5f, 0x55, 0x53, 0x41, 0x47, 0x45, 0x10, 0x01, 0x12, 0x1e, 0x0a, 0x1a, 0x45, 0x56, - 0x45, 0x4e, 0x54, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x52, 0x45, 0x53, 0x4f, 0x55, 0x52, 0x43, - 0x45, 0x5f, 0x43, 0x48, 0x41, 0x4e, 0x47, 0x45, 0x10, 0x04, 0x12, 0x1b, 0x0a, 0x17, 0x45, 0x56, - 0x45, 0x4e, 0x54, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x43, 0x52, 0x45, 0x41, 0x54, 0x45, 0x5f, - 0x47, 0x52, 0x41, 0x4e, 0x54, 0x10, 0x05, 0x12, 0x1c, 0x0a, 0x18, 0x45, 0x56, 0x45, 0x4e, 0x54, - 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x43, 0x52, 0x45, 0x41, 0x54, 0x45, 0x5f, 0x52, 0x45, 0x56, - 0x4f, 0x4b, 0x45, 0x10, 0x06, 0x22, 0x04, 0x08, 0x02, 0x10, 0x02, 0x22, 0x04, 0x08, 0x03, 0x10, - 0x03, 0x32, 0xc8, 0x01, 0x0a, 0x0c, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x53, 0x65, 0x72, 0x76, 0x69, - 0x63, 0x65, 0x12, 0x55, 0x0a, 0x0a, 0x4c, 0x69, 0x73, 0x74, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x73, - 0x12, 0x22, 0x2e, 0x63, 0x31, 0x2e, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x2e, - 0x76, 0x32, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x52, 0x65, 0x71, - 0x75, 0x65, 0x73, 0x74, 0x1a, 0x23, 0x2e, 0x63, 0x31, 0x2e, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, - 0x74, 0x6f, 0x72, 0x2e, 0x76, 0x32, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x45, 0x76, 0x65, 0x6e, 0x74, - 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x61, 0x0a, 0x0e, 0x4c, 0x69, 0x73, - 0x74, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x46, 0x65, 0x65, 0x64, 0x73, 0x12, 0x26, 0x2e, 0x63, 0x31, - 0x2e, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x2e, 0x76, 0x32, 0x2e, 0x4c, 0x69, - 0x73, 0x74, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x46, 0x65, 0x65, 0x64, 0x73, 0x52, 0x65, 0x71, 0x75, - 0x65, 0x73, 0x74, 0x1a, 0x27, 0x2e, 0x63, 0x31, 0x2e, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, - 0x6f, 0x72, 0x2e, 0x76, 0x32, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x46, - 0x65, 0x65, 0x64, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x42, 0x36, 0x5a, 0x34, - 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x63, 0x6f, 0x6e, 0x64, 0x75, - 0x63, 0x74, 0x6f, 0x72, 0x6f, 0x6e, 0x65, 0x2f, 0x62, 0x61, 0x74, 0x6f, 0x6e, 0x2d, 0x73, 0x64, - 0x6b, 0x2f, 0x70, 0x62, 0x2f, 0x63, 0x31, 0x2f, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, - 0x72, 0x2f, 0x76, 0x32, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, -}) +func (x *EventFeedMetadata) SetSupportedEventTypes(v []EventType) { + x.SupportedEventTypes = v +} -var ( - file_c1_connector_v2_event_feed_proto_rawDescOnce sync.Once - file_c1_connector_v2_event_feed_proto_rawDescData []byte -) +type EventFeedMetadata_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. -func file_c1_connector_v2_event_feed_proto_rawDescGZIP() []byte { - file_c1_connector_v2_event_feed_proto_rawDescOnce.Do(func() { - file_c1_connector_v2_event_feed_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_c1_connector_v2_event_feed_proto_rawDesc), len(file_c1_connector_v2_event_feed_proto_rawDesc))) - }) - return file_c1_connector_v2_event_feed_proto_rawDescData + // unique identifier for the event feed + Id string + SupportedEventTypes []EventType } +func (b0 EventFeedMetadata_builder) Build() *EventFeedMetadata { + m0 := &EventFeedMetadata{} + b, x := &b0, m0 + _, _ = b, x + x.Id = b.Id + x.SupportedEventTypes = b.SupportedEventTypes + return m0 +} + +var File_c1_connector_v2_event_feed_proto protoreflect.FileDescriptor + +const file_c1_connector_v2_event_feed_proto_rawDesc = "" + + "\n" + + " c1/connector/v2/event_feed.proto\x12\x0fc1.connector.v2\x1a!c1/connector/v2/entitlement.proto\x1a\x1bc1/connector/v2/grant.proto\x1a\x1ec1/connector/v2/resource.proto\x1a\x19google/protobuf/any.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x17validate/validate.proto\"\x85\x02\n" + + "\x11ListEventsRequest\x12%\n" + + "\x06cursor\x18\x01 \x01(\tB\r\xfaB\n" + + "r\b \x01(\x80 \xd0\x01\x01R\x06cursor\x125\n" + + "\bstart_at\x18\x02 \x01(\v2\x1a.google.protobuf.TimestampR\astartAt\x12'\n" + + "\tpage_size\x18\x03 \x01(\rB\n" + + "\xfaB\a*\x05\x18\xfa\x01@\x01R\bpageSize\x126\n" + + "\vannotations\x18\x04 \x03(\v2\x14.google.protobuf.AnyR\vannotations\x121\n" + + "\revent_feed_id\x18\x05 \x01(\tB\r\xfaB\n" + + "r\b \x01(\x80\b\xd0\x01\x01R\veventFeedId\"\xbe\x01\n" + + "\x12ListEventsResponse\x12.\n" + + "\x06events\x18\x01 \x03(\v2\x16.c1.connector.v2.EventR\x06events\x12%\n" + + "\x06cursor\x18\x02 \x01(\tB\r\xfaB\n" + + "r\b \x01(\x80 \xd0\x01\x01R\x06cursor\x12\x19\n" + + "\bhas_more\x18\x03 \x01(\bR\ahasMore\x126\n" + + "\vannotations\x18\x04 \x03(\v2\x14.google.protobuf.AnyR\vannotations\"O\n" + + "\x15ListEventFeedsRequest\x126\n" + + "\vannotations\x18\x01 \x03(\v2\x14.google.protobuf.AnyR\vannotations\"\x88\x01\n" + + "\x16ListEventFeedsResponse\x126\n" + + "\x04list\x18\x01 \x03(\v2\".c1.connector.v2.EventFeedMetadataR\x04list\x126\n" + + "\vannotations\x18\x02 \x03(\v2\x14.google.protobuf.AnyR\vannotations\"\xdd\x04\n" + + "\x05Event\x12\x0e\n" + + "\x02id\x18\x01 \x01(\tR\x02id\x12;\n" + + "\voccurred_at\x18\x02 \x01(\v2\x1a.google.protobuf.TimestampR\n" + + "occurredAt\x12>\n" + + "\vusage_event\x18d \x01(\v2\x1b.c1.connector.v2.UsageEventH\x00R\n" + + "usageEvent\x12>\n" + + "\vgrant_event\x18e \x01(\v2\x1b.c1.connector.v2.GrantEventH\x00R\n" + + "grantEvent\x12A\n" + + "\frevoke_event\x18f \x01(\v2\x1c.c1.connector.v2.RevokeEventH\x00R\vrevokeEvent\x12Z\n" + + "\x15resource_change_event\x18g \x01(\v2$.c1.connector.v2.ResourceChangeEventH\x00R\x13resourceChangeEvent\x12Q\n" + + "\x12create_grant_event\x18h \x01(\v2!.c1.connector.v2.CreateGrantEventH\x00R\x10createGrantEvent\x12T\n" + + "\x13create_revoke_event\x18i \x01(\v2\".c1.connector.v2.CreateRevokeEventH\x00R\x11createRevokeEvent\x126\n" + + "\vannotations\x18\x03 \x03(\v2\x14.google.protobuf.AnyR\vannotationsB\a\n" + + "\x05event\"\x92\x01\n" + + "\n" + + "UsageEvent\x12B\n" + + "\x0ftarget_resource\x18\x01 \x01(\v2\x19.c1.connector.v2.ResourceR\x0etargetResource\x12@\n" + + "\x0eactor_resource\x18\x02 \x01(\v2\x19.c1.connector.v2.ResourceR\ractorResource\":\n" + + "\n" + + "GrantEvent\x12,\n" + + "\x05grant\x18\x01 \x01(\v2\x16.c1.connector.v2.GrantR\x05grant\"\xd7\x01\n" + + "\x10CreateGrantEvent\x12H\n" + + "\ventitlement\x18\x01 \x01(\v2\x1c.c1.connector.v2.EntitlementB\b\xfaB\x05\x8a\x01\x02\x10\x01R\ventitlement\x12A\n" + + "\tprincipal\x18\x02 \x01(\v2\x19.c1.connector.v2.ResourceB\b\xfaB\x05\x8a\x01\x02\x10\x01R\tprincipal\x126\n" + + "\vannotations\x18\x03 \x03(\v2\x14.google.protobuf.AnyR\vannotations\"\xd8\x01\n" + + "\x11CreateRevokeEvent\x12H\n" + + "\ventitlement\x18\x01 \x01(\v2\x1c.c1.connector.v2.EntitlementB\b\xfaB\x05\x8a\x01\x02\x10\x01R\ventitlement\x12A\n" + + "\tprincipal\x18\x02 \x01(\v2\x19.c1.connector.v2.ResourceB\b\xfaB\x05\x8a\x01\x02\x10\x01R\tprincipal\x126\n" + + "\vannotations\x18\x03 \x03(\v2\x14.google.protobuf.AnyR\vannotations\"\x86\x01\n" + + "\vRevokeEvent\x12>\n" + + "\ventitlement\x18\x01 \x01(\v2\x1c.c1.connector.v2.EntitlementR\ventitlement\x127\n" + + "\tprincipal\x18\x02 \x01(\v2\x19.c1.connector.v2.ResourceR\tprincipal\"\xa8\x01\n" + + "\x13ResourceChangeEvent\x12F\n" + + "\vresource_id\x18\x01 \x01(\v2\x1b.c1.connector.v2.ResourceIdB\b\xfaB\x05\x8a\x01\x02\x10\x01R\n" + + "resourceId\x12I\n" + + "\x12parent_resource_id\x18\x02 \x01(\v2\x1b.c1.connector.v2.ResourceIdR\x10parentResourceId\"\x90\x01\n" + + "\x11EventFeedMetadata\x12\x1a\n" + + "\x02id\x18\x01 \x01(\tB\n" + + "\xfaB\ar\x05 \x01(\x80\bR\x02id\x12_\n" + + "\x15supported_event_types\x18\x02 \x03(\x0e2\x1a.c1.connector.v2.EventTypeB\x0f\xfaB\f\x92\x01\t\x18\x01\"\x05\x82\x01\x02\x10\x01R\x13supportedEventTypes*\xa4\x01\n" + + "\tEventType\x12\x1a\n" + + "\x16EVENT_TYPE_UNSPECIFIED\x10\x00\x12\x14\n" + + "\x10EVENT_TYPE_USAGE\x10\x01\x12\x1e\n" + + "\x1aEVENT_TYPE_RESOURCE_CHANGE\x10\x04\x12\x1b\n" + + "\x17EVENT_TYPE_CREATE_GRANT\x10\x05\x12\x1c\n" + + "\x18EVENT_TYPE_CREATE_REVOKE\x10\x06\"\x04\b\x02\x10\x02\"\x04\b\x03\x10\x032\xc8\x01\n" + + "\fEventService\x12U\n" + + "\n" + + "ListEvents\x12\".c1.connector.v2.ListEventsRequest\x1a#.c1.connector.v2.ListEventsResponse\x12a\n" + + "\x0eListEventFeeds\x12&.c1.connector.v2.ListEventFeedsRequest\x1a'.c1.connector.v2.ListEventFeedsResponseB6Z4github.com/conductorone/baton-sdk/pb/c1/connector/v2b\x06proto3" + var file_c1_connector_v2_event_feed_proto_enumTypes = make([]protoimpl.EnumInfo, 1) var file_c1_connector_v2_event_feed_proto_msgTypes = make([]protoimpl.MessageInfo, 12) var file_c1_connector_v2_event_feed_proto_goTypes = []any{ diff --git a/vendor/github.com/conductorone/baton-sdk/pb/c1/connector/v2/event_feed_protoopaque.pb.go b/vendor/github.com/conductorone/baton-sdk/pb/c1/connector/v2/event_feed_protoopaque.pb.go new file mode 100644 index 00000000..6433eddf --- /dev/null +++ b/vendor/github.com/conductorone/baton-sdk/pb/c1/connector/v2/event_feed_protoopaque.pb.go @@ -0,0 +1,1663 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.36.10 +// protoc (unknown) +// source: c1/connector/v2/event_feed.proto + +//go:build protoopaque + +package v2 + +import ( + _ "github.com/envoyproxy/protoc-gen-validate/validate" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + anypb "google.golang.org/protobuf/types/known/anypb" + timestamppb "google.golang.org/protobuf/types/known/timestamppb" + reflect "reflect" + 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 EventType int32 + +const ( + EventType_EVENT_TYPE_UNSPECIFIED EventType = 0 + EventType_EVENT_TYPE_USAGE EventType = 1 + EventType_EVENT_TYPE_RESOURCE_CHANGE EventType = 4 + EventType_EVENT_TYPE_CREATE_GRANT EventType = 5 + EventType_EVENT_TYPE_CREATE_REVOKE EventType = 6 +) + +// Enum value maps for EventType. +var ( + EventType_name = map[int32]string{ + 0: "EVENT_TYPE_UNSPECIFIED", + 1: "EVENT_TYPE_USAGE", + 4: "EVENT_TYPE_RESOURCE_CHANGE", + 5: "EVENT_TYPE_CREATE_GRANT", + 6: "EVENT_TYPE_CREATE_REVOKE", + } + EventType_value = map[string]int32{ + "EVENT_TYPE_UNSPECIFIED": 0, + "EVENT_TYPE_USAGE": 1, + "EVENT_TYPE_RESOURCE_CHANGE": 4, + "EVENT_TYPE_CREATE_GRANT": 5, + "EVENT_TYPE_CREATE_REVOKE": 6, + } +) + +func (x EventType) Enum() *EventType { + p := new(EventType) + *p = x + return p +} + +func (x EventType) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (EventType) Descriptor() protoreflect.EnumDescriptor { + return file_c1_connector_v2_event_feed_proto_enumTypes[0].Descriptor() +} + +func (EventType) Type() protoreflect.EnumType { + return &file_c1_connector_v2_event_feed_proto_enumTypes[0] +} + +func (x EventType) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +type ListEventsRequest struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Cursor string `protobuf:"bytes,1,opt,name=cursor,proto3"` + xxx_hidden_StartAt *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=start_at,json=startAt,proto3"` + xxx_hidden_PageSize uint32 `protobuf:"varint,3,opt,name=page_size,json=pageSize,proto3"` + xxx_hidden_Annotations *[]*anypb.Any `protobuf:"bytes,4,rep,name=annotations,proto3"` + xxx_hidden_EventFeedId string `protobuf:"bytes,5,opt,name=event_feed_id,json=eventFeedId,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *ListEventsRequest) Reset() { + *x = ListEventsRequest{} + mi := &file_c1_connector_v2_event_feed_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *ListEventsRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ListEventsRequest) ProtoMessage() {} + +func (x *ListEventsRequest) ProtoReflect() protoreflect.Message { + mi := &file_c1_connector_v2_event_feed_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) +} + +func (x *ListEventsRequest) GetCursor() string { + if x != nil { + return x.xxx_hidden_Cursor + } + return "" +} + +func (x *ListEventsRequest) GetStartAt() *timestamppb.Timestamp { + if x != nil { + return x.xxx_hidden_StartAt + } + return nil +} + +func (x *ListEventsRequest) GetPageSize() uint32 { + if x != nil { + return x.xxx_hidden_PageSize + } + return 0 +} + +func (x *ListEventsRequest) GetAnnotations() []*anypb.Any { + if x != nil { + if x.xxx_hidden_Annotations != nil { + return *x.xxx_hidden_Annotations + } + } + return nil +} + +func (x *ListEventsRequest) GetEventFeedId() string { + if x != nil { + return x.xxx_hidden_EventFeedId + } + return "" +} + +func (x *ListEventsRequest) SetCursor(v string) { + x.xxx_hidden_Cursor = v +} + +func (x *ListEventsRequest) SetStartAt(v *timestamppb.Timestamp) { + x.xxx_hidden_StartAt = v +} + +func (x *ListEventsRequest) SetPageSize(v uint32) { + x.xxx_hidden_PageSize = v +} + +func (x *ListEventsRequest) SetAnnotations(v []*anypb.Any) { + x.xxx_hidden_Annotations = &v +} + +func (x *ListEventsRequest) SetEventFeedId(v string) { + x.xxx_hidden_EventFeedId = v +} + +func (x *ListEventsRequest) HasStartAt() bool { + if x == nil { + return false + } + return x.xxx_hidden_StartAt != nil +} + +func (x *ListEventsRequest) ClearStartAt() { + x.xxx_hidden_StartAt = nil +} + +type ListEventsRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Can function like a page token but also can be arbitrary to resume a feed at any point + Cursor string + StartAt *timestamppb.Timestamp + PageSize uint32 + Annotations []*anypb.Any + // Used to specify a specific event feed to list events from. + // If not provided, the connector will use the old event feed. + EventFeedId string +} + +func (b0 ListEventsRequest_builder) Build() *ListEventsRequest { + m0 := &ListEventsRequest{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Cursor = b.Cursor + x.xxx_hidden_StartAt = b.StartAt + x.xxx_hidden_PageSize = b.PageSize + x.xxx_hidden_Annotations = &b.Annotations + x.xxx_hidden_EventFeedId = b.EventFeedId + return m0 +} + +type ListEventsResponse struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Events *[]*Event `protobuf:"bytes,1,rep,name=events,proto3"` + xxx_hidden_Cursor string `protobuf:"bytes,2,opt,name=cursor,proto3"` + xxx_hidden_HasMore bool `protobuf:"varint,3,opt,name=has_more,json=hasMore,proto3"` + xxx_hidden_Annotations *[]*anypb.Any `protobuf:"bytes,4,rep,name=annotations,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *ListEventsResponse) Reset() { + *x = ListEventsResponse{} + mi := &file_c1_connector_v2_event_feed_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *ListEventsResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ListEventsResponse) ProtoMessage() {} + +func (x *ListEventsResponse) ProtoReflect() protoreflect.Message { + mi := &file_c1_connector_v2_event_feed_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) +} + +func (x *ListEventsResponse) GetEvents() []*Event { + if x != nil { + if x.xxx_hidden_Events != nil { + return *x.xxx_hidden_Events + } + } + return nil +} + +func (x *ListEventsResponse) GetCursor() string { + if x != nil { + return x.xxx_hidden_Cursor + } + return "" +} + +func (x *ListEventsResponse) GetHasMore() bool { + if x != nil { + return x.xxx_hidden_HasMore + } + return false +} + +func (x *ListEventsResponse) GetAnnotations() []*anypb.Any { + if x != nil { + if x.xxx_hidden_Annotations != nil { + return *x.xxx_hidden_Annotations + } + } + return nil +} + +func (x *ListEventsResponse) SetEvents(v []*Event) { + x.xxx_hidden_Events = &v +} + +func (x *ListEventsResponse) SetCursor(v string) { + x.xxx_hidden_Cursor = v +} + +func (x *ListEventsResponse) SetHasMore(v bool) { + x.xxx_hidden_HasMore = v +} + +func (x *ListEventsResponse) SetAnnotations(v []*anypb.Any) { + x.xxx_hidden_Annotations = &v +} + +type ListEventsResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Events []*Event + Cursor string + HasMore bool + Annotations []*anypb.Any +} + +func (b0 ListEventsResponse_builder) Build() *ListEventsResponse { + m0 := &ListEventsResponse{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Events = &b.Events + x.xxx_hidden_Cursor = b.Cursor + x.xxx_hidden_HasMore = b.HasMore + x.xxx_hidden_Annotations = &b.Annotations + return m0 +} + +type ListEventFeedsRequest struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Annotations *[]*anypb.Any `protobuf:"bytes,1,rep,name=annotations,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *ListEventFeedsRequest) Reset() { + *x = ListEventFeedsRequest{} + mi := &file_c1_connector_v2_event_feed_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *ListEventFeedsRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ListEventFeedsRequest) ProtoMessage() {} + +func (x *ListEventFeedsRequest) ProtoReflect() protoreflect.Message { + mi := &file_c1_connector_v2_event_feed_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) +} + +func (x *ListEventFeedsRequest) GetAnnotations() []*anypb.Any { + if x != nil { + if x.xxx_hidden_Annotations != nil { + return *x.xxx_hidden_Annotations + } + } + return nil +} + +func (x *ListEventFeedsRequest) SetAnnotations(v []*anypb.Any) { + x.xxx_hidden_Annotations = &v +} + +type ListEventFeedsRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Annotations []*anypb.Any +} + +func (b0 ListEventFeedsRequest_builder) Build() *ListEventFeedsRequest { + m0 := &ListEventFeedsRequest{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Annotations = &b.Annotations + return m0 +} + +type ListEventFeedsResponse struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_List *[]*EventFeedMetadata `protobuf:"bytes,1,rep,name=list,proto3"` + xxx_hidden_Annotations *[]*anypb.Any `protobuf:"bytes,2,rep,name=annotations,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *ListEventFeedsResponse) Reset() { + *x = ListEventFeedsResponse{} + mi := &file_c1_connector_v2_event_feed_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *ListEventFeedsResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ListEventFeedsResponse) ProtoMessage() {} + +func (x *ListEventFeedsResponse) ProtoReflect() protoreflect.Message { + mi := &file_c1_connector_v2_event_feed_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) +} + +func (x *ListEventFeedsResponse) GetList() []*EventFeedMetadata { + if x != nil { + if x.xxx_hidden_List != nil { + return *x.xxx_hidden_List + } + } + return nil +} + +func (x *ListEventFeedsResponse) GetAnnotations() []*anypb.Any { + if x != nil { + if x.xxx_hidden_Annotations != nil { + return *x.xxx_hidden_Annotations + } + } + return nil +} + +func (x *ListEventFeedsResponse) SetList(v []*EventFeedMetadata) { + x.xxx_hidden_List = &v +} + +func (x *ListEventFeedsResponse) SetAnnotations(v []*anypb.Any) { + x.xxx_hidden_Annotations = &v +} + +type ListEventFeedsResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + List []*EventFeedMetadata + Annotations []*anypb.Any +} + +func (b0 ListEventFeedsResponse_builder) Build() *ListEventFeedsResponse { + m0 := &ListEventFeedsResponse{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_List = &b.List + x.xxx_hidden_Annotations = &b.Annotations + return m0 +} + +type Event struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Id string `protobuf:"bytes,1,opt,name=id,proto3"` + xxx_hidden_OccurredAt *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=occurred_at,json=occurredAt,proto3"` + xxx_hidden_Event isEvent_Event `protobuf_oneof:"event"` + xxx_hidden_Annotations *[]*anypb.Any `protobuf:"bytes,3,rep,name=annotations,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *Event) Reset() { + *x = Event{} + mi := &file_c1_connector_v2_event_feed_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *Event) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Event) ProtoMessage() {} + +func (x *Event) ProtoReflect() protoreflect.Message { + mi := &file_c1_connector_v2_event_feed_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) +} + +func (x *Event) GetId() string { + if x != nil { + return x.xxx_hidden_Id + } + return "" +} + +func (x *Event) GetOccurredAt() *timestamppb.Timestamp { + if x != nil { + return x.xxx_hidden_OccurredAt + } + return nil +} + +func (x *Event) GetUsageEvent() *UsageEvent { + if x != nil { + if x, ok := x.xxx_hidden_Event.(*event_UsageEvent); ok { + return x.UsageEvent + } + } + return nil +} + +func (x *Event) GetGrantEvent() *GrantEvent { + if x != nil { + if x, ok := x.xxx_hidden_Event.(*event_GrantEvent); ok { + return x.GrantEvent + } + } + return nil +} + +func (x *Event) GetRevokeEvent() *RevokeEvent { + if x != nil { + if x, ok := x.xxx_hidden_Event.(*event_RevokeEvent); ok { + return x.RevokeEvent + } + } + return nil +} + +func (x *Event) GetResourceChangeEvent() *ResourceChangeEvent { + if x != nil { + if x, ok := x.xxx_hidden_Event.(*event_ResourceChangeEvent); ok { + return x.ResourceChangeEvent + } + } + return nil +} + +func (x *Event) GetCreateGrantEvent() *CreateGrantEvent { + if x != nil { + if x, ok := x.xxx_hidden_Event.(*event_CreateGrantEvent); ok { + return x.CreateGrantEvent + } + } + return nil +} + +func (x *Event) GetCreateRevokeEvent() *CreateRevokeEvent { + if x != nil { + if x, ok := x.xxx_hidden_Event.(*event_CreateRevokeEvent); ok { + return x.CreateRevokeEvent + } + } + return nil +} + +func (x *Event) GetAnnotations() []*anypb.Any { + if x != nil { + if x.xxx_hidden_Annotations != nil { + return *x.xxx_hidden_Annotations + } + } + return nil +} + +func (x *Event) SetId(v string) { + x.xxx_hidden_Id = v +} + +func (x *Event) SetOccurredAt(v *timestamppb.Timestamp) { + x.xxx_hidden_OccurredAt = v +} + +func (x *Event) SetUsageEvent(v *UsageEvent) { + if v == nil { + x.xxx_hidden_Event = nil + return + } + x.xxx_hidden_Event = &event_UsageEvent{v} +} + +func (x *Event) SetGrantEvent(v *GrantEvent) { + if v == nil { + x.xxx_hidden_Event = nil + return + } + x.xxx_hidden_Event = &event_GrantEvent{v} +} + +func (x *Event) SetRevokeEvent(v *RevokeEvent) { + if v == nil { + x.xxx_hidden_Event = nil + return + } + x.xxx_hidden_Event = &event_RevokeEvent{v} +} + +func (x *Event) SetResourceChangeEvent(v *ResourceChangeEvent) { + if v == nil { + x.xxx_hidden_Event = nil + return + } + x.xxx_hidden_Event = &event_ResourceChangeEvent{v} +} + +func (x *Event) SetCreateGrantEvent(v *CreateGrantEvent) { + if v == nil { + x.xxx_hidden_Event = nil + return + } + x.xxx_hidden_Event = &event_CreateGrantEvent{v} +} + +func (x *Event) SetCreateRevokeEvent(v *CreateRevokeEvent) { + if v == nil { + x.xxx_hidden_Event = nil + return + } + x.xxx_hidden_Event = &event_CreateRevokeEvent{v} +} + +func (x *Event) SetAnnotations(v []*anypb.Any) { + x.xxx_hidden_Annotations = &v +} + +func (x *Event) HasOccurredAt() bool { + if x == nil { + return false + } + return x.xxx_hidden_OccurredAt != nil +} + +func (x *Event) HasEvent() bool { + if x == nil { + return false + } + return x.xxx_hidden_Event != nil +} + +func (x *Event) HasUsageEvent() bool { + if x == nil { + return false + } + _, ok := x.xxx_hidden_Event.(*event_UsageEvent) + return ok +} + +func (x *Event) HasGrantEvent() bool { + if x == nil { + return false + } + _, ok := x.xxx_hidden_Event.(*event_GrantEvent) + return ok +} + +func (x *Event) HasRevokeEvent() bool { + if x == nil { + return false + } + _, ok := x.xxx_hidden_Event.(*event_RevokeEvent) + return ok +} + +func (x *Event) HasResourceChangeEvent() bool { + if x == nil { + return false + } + _, ok := x.xxx_hidden_Event.(*event_ResourceChangeEvent) + return ok +} + +func (x *Event) HasCreateGrantEvent() bool { + if x == nil { + return false + } + _, ok := x.xxx_hidden_Event.(*event_CreateGrantEvent) + return ok +} + +func (x *Event) HasCreateRevokeEvent() bool { + if x == nil { + return false + } + _, ok := x.xxx_hidden_Event.(*event_CreateRevokeEvent) + return ok +} + +func (x *Event) ClearOccurredAt() { + x.xxx_hidden_OccurredAt = nil +} + +func (x *Event) ClearEvent() { + x.xxx_hidden_Event = nil +} + +func (x *Event) ClearUsageEvent() { + if _, ok := x.xxx_hidden_Event.(*event_UsageEvent); ok { + x.xxx_hidden_Event = nil + } +} + +func (x *Event) ClearGrantEvent() { + if _, ok := x.xxx_hidden_Event.(*event_GrantEvent); ok { + x.xxx_hidden_Event = nil + } +} + +func (x *Event) ClearRevokeEvent() { + if _, ok := x.xxx_hidden_Event.(*event_RevokeEvent); ok { + x.xxx_hidden_Event = nil + } +} + +func (x *Event) ClearResourceChangeEvent() { + if _, ok := x.xxx_hidden_Event.(*event_ResourceChangeEvent); ok { + x.xxx_hidden_Event = nil + } +} + +func (x *Event) ClearCreateGrantEvent() { + if _, ok := x.xxx_hidden_Event.(*event_CreateGrantEvent); ok { + x.xxx_hidden_Event = nil + } +} + +func (x *Event) ClearCreateRevokeEvent() { + if _, ok := x.xxx_hidden_Event.(*event_CreateRevokeEvent); ok { + x.xxx_hidden_Event = nil + } +} + +const Event_Event_not_set_case case_Event_Event = 0 +const Event_UsageEvent_case case_Event_Event = 100 +const Event_GrantEvent_case case_Event_Event = 101 +const Event_RevokeEvent_case case_Event_Event = 102 +const Event_ResourceChangeEvent_case case_Event_Event = 103 +const Event_CreateGrantEvent_case case_Event_Event = 104 +const Event_CreateRevokeEvent_case case_Event_Event = 105 + +func (x *Event) WhichEvent() case_Event_Event { + if x == nil { + return Event_Event_not_set_case + } + switch x.xxx_hidden_Event.(type) { + case *event_UsageEvent: + return Event_UsageEvent_case + case *event_GrantEvent: + return Event_GrantEvent_case + case *event_RevokeEvent: + return Event_RevokeEvent_case + case *event_ResourceChangeEvent: + return Event_ResourceChangeEvent_case + case *event_CreateGrantEvent: + return Event_CreateGrantEvent_case + case *event_CreateRevokeEvent: + return Event_CreateRevokeEvent_case + default: + return Event_Event_not_set_case + } +} + +type Event_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Id string + OccurredAt *timestamppb.Timestamp + // Each event has structs that will usually be mostly empty. + // Stream consumer must be defensive about what it's reading + + // Fields of oneof xxx_hidden_Event: + UsageEvent *UsageEvent + GrantEvent *GrantEvent + RevokeEvent *RevokeEvent + ResourceChangeEvent *ResourceChangeEvent + CreateGrantEvent *CreateGrantEvent + CreateRevokeEvent *CreateRevokeEvent + // -- end of xxx_hidden_Event + // May contain resources for targets, actor, or items referenced in events + Annotations []*anypb.Any +} + +func (b0 Event_builder) Build() *Event { + m0 := &Event{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Id = b.Id + x.xxx_hidden_OccurredAt = b.OccurredAt + if b.UsageEvent != nil { + x.xxx_hidden_Event = &event_UsageEvent{b.UsageEvent} + } + if b.GrantEvent != nil { + x.xxx_hidden_Event = &event_GrantEvent{b.GrantEvent} + } + if b.RevokeEvent != nil { + x.xxx_hidden_Event = &event_RevokeEvent{b.RevokeEvent} + } + if b.ResourceChangeEvent != nil { + x.xxx_hidden_Event = &event_ResourceChangeEvent{b.ResourceChangeEvent} + } + if b.CreateGrantEvent != nil { + x.xxx_hidden_Event = &event_CreateGrantEvent{b.CreateGrantEvent} + } + if b.CreateRevokeEvent != nil { + x.xxx_hidden_Event = &event_CreateRevokeEvent{b.CreateRevokeEvent} + } + x.xxx_hidden_Annotations = &b.Annotations + return m0 +} + +type case_Event_Event protoreflect.FieldNumber + +func (x case_Event_Event) String() string { + md := file_c1_connector_v2_event_feed_proto_msgTypes[4].Descriptor() + if x == 0 { + return "not set" + } + return protoimpl.X.MessageFieldStringOf(md, protoreflect.FieldNumber(x)) +} + +type isEvent_Event interface { + isEvent_Event() +} + +type event_UsageEvent struct { + UsageEvent *UsageEvent `protobuf:"bytes,100,opt,name=usage_event,json=usageEvent,proto3,oneof"` +} + +type event_GrantEvent struct { + GrantEvent *GrantEvent `protobuf:"bytes,101,opt,name=grant_event,json=grantEvent,proto3,oneof"` +} + +type event_RevokeEvent struct { + RevokeEvent *RevokeEvent `protobuf:"bytes,102,opt,name=revoke_event,json=revokeEvent,proto3,oneof"` +} + +type event_ResourceChangeEvent struct { + ResourceChangeEvent *ResourceChangeEvent `protobuf:"bytes,103,opt,name=resource_change_event,json=resourceChangeEvent,proto3,oneof"` +} + +type event_CreateGrantEvent struct { + CreateGrantEvent *CreateGrantEvent `protobuf:"bytes,104,opt,name=create_grant_event,json=createGrantEvent,proto3,oneof"` +} + +type event_CreateRevokeEvent struct { + CreateRevokeEvent *CreateRevokeEvent `protobuf:"bytes,105,opt,name=create_revoke_event,json=createRevokeEvent,proto3,oneof"` +} + +func (*event_UsageEvent) isEvent_Event() {} + +func (*event_GrantEvent) isEvent_Event() {} + +func (*event_RevokeEvent) isEvent_Event() {} + +func (*event_ResourceChangeEvent) isEvent_Event() {} + +func (*event_CreateGrantEvent) isEvent_Event() {} + +func (*event_CreateRevokeEvent) isEvent_Event() {} + +type UsageEvent struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_TargetResource *Resource `protobuf:"bytes,1,opt,name=target_resource,json=targetResource,proto3"` + xxx_hidden_ActorResource *Resource `protobuf:"bytes,2,opt,name=actor_resource,json=actorResource,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *UsageEvent) Reset() { + *x = UsageEvent{} + mi := &file_c1_connector_v2_event_feed_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *UsageEvent) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*UsageEvent) ProtoMessage() {} + +func (x *UsageEvent) ProtoReflect() protoreflect.Message { + mi := &file_c1_connector_v2_event_feed_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) +} + +func (x *UsageEvent) GetTargetResource() *Resource { + if x != nil { + return x.xxx_hidden_TargetResource + } + return nil +} + +func (x *UsageEvent) GetActorResource() *Resource { + if x != nil { + return x.xxx_hidden_ActorResource + } + return nil +} + +func (x *UsageEvent) SetTargetResource(v *Resource) { + x.xxx_hidden_TargetResource = v +} + +func (x *UsageEvent) SetActorResource(v *Resource) { + x.xxx_hidden_ActorResource = v +} + +func (x *UsageEvent) HasTargetResource() bool { + if x == nil { + return false + } + return x.xxx_hidden_TargetResource != nil +} + +func (x *UsageEvent) HasActorResource() bool { + if x == nil { + return false + } + return x.xxx_hidden_ActorResource != nil +} + +func (x *UsageEvent) ClearTargetResource() { + x.xxx_hidden_TargetResource = nil +} + +func (x *UsageEvent) ClearActorResource() { + x.xxx_hidden_ActorResource = nil +} + +type UsageEvent_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + TargetResource *Resource + ActorResource *Resource +} + +func (b0 UsageEvent_builder) Build() *UsageEvent { + m0 := &UsageEvent{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_TargetResource = b.TargetResource + x.xxx_hidden_ActorResource = b.ActorResource + return m0 +} + +// Unrelated to this effort, but valuable for other projects +type GrantEvent struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Grant *Grant `protobuf:"bytes,1,opt,name=grant,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *GrantEvent) Reset() { + *x = GrantEvent{} + mi := &file_c1_connector_v2_event_feed_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *GrantEvent) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GrantEvent) ProtoMessage() {} + +func (x *GrantEvent) ProtoReflect() protoreflect.Message { + mi := &file_c1_connector_v2_event_feed_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) +} + +func (x *GrantEvent) GetGrant() *Grant { + if x != nil { + return x.xxx_hidden_Grant + } + return nil +} + +func (x *GrantEvent) SetGrant(v *Grant) { + x.xxx_hidden_Grant = v +} + +func (x *GrantEvent) HasGrant() bool { + if x == nil { + return false + } + return x.xxx_hidden_Grant != nil +} + +func (x *GrantEvent) ClearGrant() { + x.xxx_hidden_Grant = nil +} + +type GrantEvent_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Grant *Grant +} + +func (b0 GrantEvent_builder) Build() *GrantEvent { + m0 := &GrantEvent{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Grant = b.Grant + return m0 +} + +type CreateGrantEvent struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Entitlement *Entitlement `protobuf:"bytes,1,opt,name=entitlement,proto3"` + xxx_hidden_Principal *Resource `protobuf:"bytes,2,opt,name=principal,proto3"` + xxx_hidden_Annotations *[]*anypb.Any `protobuf:"bytes,3,rep,name=annotations,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *CreateGrantEvent) Reset() { + *x = CreateGrantEvent{} + mi := &file_c1_connector_v2_event_feed_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *CreateGrantEvent) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*CreateGrantEvent) ProtoMessage() {} + +func (x *CreateGrantEvent) ProtoReflect() protoreflect.Message { + mi := &file_c1_connector_v2_event_feed_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) +} + +func (x *CreateGrantEvent) GetEntitlement() *Entitlement { + if x != nil { + return x.xxx_hidden_Entitlement + } + return nil +} + +func (x *CreateGrantEvent) GetPrincipal() *Resource { + if x != nil { + return x.xxx_hidden_Principal + } + return nil +} + +func (x *CreateGrantEvent) GetAnnotations() []*anypb.Any { + if x != nil { + if x.xxx_hidden_Annotations != nil { + return *x.xxx_hidden_Annotations + } + } + return nil +} + +func (x *CreateGrantEvent) SetEntitlement(v *Entitlement) { + x.xxx_hidden_Entitlement = v +} + +func (x *CreateGrantEvent) SetPrincipal(v *Resource) { + x.xxx_hidden_Principal = v +} + +func (x *CreateGrantEvent) SetAnnotations(v []*anypb.Any) { + x.xxx_hidden_Annotations = &v +} + +func (x *CreateGrantEvent) HasEntitlement() bool { + if x == nil { + return false + } + return x.xxx_hidden_Entitlement != nil +} + +func (x *CreateGrantEvent) HasPrincipal() bool { + if x == nil { + return false + } + return x.xxx_hidden_Principal != nil +} + +func (x *CreateGrantEvent) ClearEntitlement() { + x.xxx_hidden_Entitlement = nil +} + +func (x *CreateGrantEvent) ClearPrincipal() { + x.xxx_hidden_Principal = nil +} + +type CreateGrantEvent_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Entitlement *Entitlement + Principal *Resource + Annotations []*anypb.Any +} + +func (b0 CreateGrantEvent_builder) Build() *CreateGrantEvent { + m0 := &CreateGrantEvent{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Entitlement = b.Entitlement + x.xxx_hidden_Principal = b.Principal + x.xxx_hidden_Annotations = &b.Annotations + return m0 +} + +type CreateRevokeEvent struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Entitlement *Entitlement `protobuf:"bytes,1,opt,name=entitlement,proto3"` + xxx_hidden_Principal *Resource `protobuf:"bytes,2,opt,name=principal,proto3"` + xxx_hidden_Annotations *[]*anypb.Any `protobuf:"bytes,3,rep,name=annotations,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *CreateRevokeEvent) Reset() { + *x = CreateRevokeEvent{} + mi := &file_c1_connector_v2_event_feed_proto_msgTypes[8] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *CreateRevokeEvent) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*CreateRevokeEvent) ProtoMessage() {} + +func (x *CreateRevokeEvent) ProtoReflect() protoreflect.Message { + mi := &file_c1_connector_v2_event_feed_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) +} + +func (x *CreateRevokeEvent) GetEntitlement() *Entitlement { + if x != nil { + return x.xxx_hidden_Entitlement + } + return nil +} + +func (x *CreateRevokeEvent) GetPrincipal() *Resource { + if x != nil { + return x.xxx_hidden_Principal + } + return nil +} + +func (x *CreateRevokeEvent) GetAnnotations() []*anypb.Any { + if x != nil { + if x.xxx_hidden_Annotations != nil { + return *x.xxx_hidden_Annotations + } + } + return nil +} + +func (x *CreateRevokeEvent) SetEntitlement(v *Entitlement) { + x.xxx_hidden_Entitlement = v +} + +func (x *CreateRevokeEvent) SetPrincipal(v *Resource) { + x.xxx_hidden_Principal = v +} + +func (x *CreateRevokeEvent) SetAnnotations(v []*anypb.Any) { + x.xxx_hidden_Annotations = &v +} + +func (x *CreateRevokeEvent) HasEntitlement() bool { + if x == nil { + return false + } + return x.xxx_hidden_Entitlement != nil +} + +func (x *CreateRevokeEvent) HasPrincipal() bool { + if x == nil { + return false + } + return x.xxx_hidden_Principal != nil +} + +func (x *CreateRevokeEvent) ClearEntitlement() { + x.xxx_hidden_Entitlement = nil +} + +func (x *CreateRevokeEvent) ClearPrincipal() { + x.xxx_hidden_Principal = nil +} + +type CreateRevokeEvent_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Entitlement *Entitlement + Principal *Resource + Annotations []*anypb.Any +} + +func (b0 CreateRevokeEvent_builder) Build() *CreateRevokeEvent { + m0 := &CreateRevokeEvent{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Entitlement = b.Entitlement + x.xxx_hidden_Principal = b.Principal + x.xxx_hidden_Annotations = &b.Annotations + return m0 +} + +type RevokeEvent struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Entitlement *Entitlement `protobuf:"bytes,1,opt,name=entitlement,proto3"` + xxx_hidden_Principal *Resource `protobuf:"bytes,2,opt,name=principal,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *RevokeEvent) Reset() { + *x = RevokeEvent{} + mi := &file_c1_connector_v2_event_feed_proto_msgTypes[9] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *RevokeEvent) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*RevokeEvent) ProtoMessage() {} + +func (x *RevokeEvent) ProtoReflect() protoreflect.Message { + mi := &file_c1_connector_v2_event_feed_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) +} + +func (x *RevokeEvent) GetEntitlement() *Entitlement { + if x != nil { + return x.xxx_hidden_Entitlement + } + return nil +} + +func (x *RevokeEvent) GetPrincipal() *Resource { + if x != nil { + return x.xxx_hidden_Principal + } + return nil +} + +func (x *RevokeEvent) SetEntitlement(v *Entitlement) { + x.xxx_hidden_Entitlement = v +} + +func (x *RevokeEvent) SetPrincipal(v *Resource) { + x.xxx_hidden_Principal = v +} + +func (x *RevokeEvent) HasEntitlement() bool { + if x == nil { + return false + } + return x.xxx_hidden_Entitlement != nil +} + +func (x *RevokeEvent) HasPrincipal() bool { + if x == nil { + return false + } + return x.xxx_hidden_Principal != nil +} + +func (x *RevokeEvent) ClearEntitlement() { + x.xxx_hidden_Entitlement = nil +} + +func (x *RevokeEvent) ClearPrincipal() { + x.xxx_hidden_Principal = nil +} + +type RevokeEvent_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Entitlement *Entitlement + Principal *Resource +} + +func (b0 RevokeEvent_builder) Build() *RevokeEvent { + m0 := &RevokeEvent{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Entitlement = b.Entitlement + x.xxx_hidden_Principal = b.Principal + return m0 +} + +// generic light weight event indicating a resource was changed +type ResourceChangeEvent struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_ResourceId *ResourceId `protobuf:"bytes,1,opt,name=resource_id,json=resourceId,proto3"` + xxx_hidden_ParentResourceId *ResourceId `protobuf:"bytes,2,opt,name=parent_resource_id,json=parentResourceId,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *ResourceChangeEvent) Reset() { + *x = ResourceChangeEvent{} + mi := &file_c1_connector_v2_event_feed_proto_msgTypes[10] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *ResourceChangeEvent) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ResourceChangeEvent) ProtoMessage() {} + +func (x *ResourceChangeEvent) ProtoReflect() protoreflect.Message { + mi := &file_c1_connector_v2_event_feed_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) +} + +func (x *ResourceChangeEvent) GetResourceId() *ResourceId { + if x != nil { + return x.xxx_hidden_ResourceId + } + return nil +} + +func (x *ResourceChangeEvent) GetParentResourceId() *ResourceId { + if x != nil { + return x.xxx_hidden_ParentResourceId + } + return nil +} + +func (x *ResourceChangeEvent) SetResourceId(v *ResourceId) { + x.xxx_hidden_ResourceId = v +} + +func (x *ResourceChangeEvent) SetParentResourceId(v *ResourceId) { + x.xxx_hidden_ParentResourceId = v +} + +func (x *ResourceChangeEvent) HasResourceId() bool { + if x == nil { + return false + } + return x.xxx_hidden_ResourceId != nil +} + +func (x *ResourceChangeEvent) HasParentResourceId() bool { + if x == nil { + return false + } + return x.xxx_hidden_ParentResourceId != nil +} + +func (x *ResourceChangeEvent) ClearResourceId() { + x.xxx_hidden_ResourceId = nil +} + +func (x *ResourceChangeEvent) ClearParentResourceId() { + x.xxx_hidden_ParentResourceId = nil +} + +type ResourceChangeEvent_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + ResourceId *ResourceId + ParentResourceId *ResourceId +} + +func (b0 ResourceChangeEvent_builder) Build() *ResourceChangeEvent { + m0 := &ResourceChangeEvent{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_ResourceId = b.ResourceId + x.xxx_hidden_ParentResourceId = b.ParentResourceId + return m0 +} + +type EventFeedMetadata struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Id string `protobuf:"bytes,1,opt,name=id,proto3"` + xxx_hidden_SupportedEventTypes []EventType `protobuf:"varint,2,rep,packed,name=supported_event_types,json=supportedEventTypes,proto3,enum=c1.connector.v2.EventType"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *EventFeedMetadata) Reset() { + *x = EventFeedMetadata{} + mi := &file_c1_connector_v2_event_feed_proto_msgTypes[11] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *EventFeedMetadata) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*EventFeedMetadata) ProtoMessage() {} + +func (x *EventFeedMetadata) ProtoReflect() protoreflect.Message { + mi := &file_c1_connector_v2_event_feed_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) +} + +func (x *EventFeedMetadata) GetId() string { + if x != nil { + return x.xxx_hidden_Id + } + return "" +} + +func (x *EventFeedMetadata) GetSupportedEventTypes() []EventType { + if x != nil { + return x.xxx_hidden_SupportedEventTypes + } + return nil +} + +func (x *EventFeedMetadata) SetId(v string) { + x.xxx_hidden_Id = v +} + +func (x *EventFeedMetadata) SetSupportedEventTypes(v []EventType) { + x.xxx_hidden_SupportedEventTypes = v +} + +type EventFeedMetadata_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // unique identifier for the event feed + Id string + SupportedEventTypes []EventType +} + +func (b0 EventFeedMetadata_builder) Build() *EventFeedMetadata { + m0 := &EventFeedMetadata{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Id = b.Id + x.xxx_hidden_SupportedEventTypes = b.SupportedEventTypes + return m0 +} + +var File_c1_connector_v2_event_feed_proto protoreflect.FileDescriptor + +const file_c1_connector_v2_event_feed_proto_rawDesc = "" + + "\n" + + " c1/connector/v2/event_feed.proto\x12\x0fc1.connector.v2\x1a!c1/connector/v2/entitlement.proto\x1a\x1bc1/connector/v2/grant.proto\x1a\x1ec1/connector/v2/resource.proto\x1a\x19google/protobuf/any.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x17validate/validate.proto\"\x85\x02\n" + + "\x11ListEventsRequest\x12%\n" + + "\x06cursor\x18\x01 \x01(\tB\r\xfaB\n" + + "r\b \x01(\x80 \xd0\x01\x01R\x06cursor\x125\n" + + "\bstart_at\x18\x02 \x01(\v2\x1a.google.protobuf.TimestampR\astartAt\x12'\n" + + "\tpage_size\x18\x03 \x01(\rB\n" + + "\xfaB\a*\x05\x18\xfa\x01@\x01R\bpageSize\x126\n" + + "\vannotations\x18\x04 \x03(\v2\x14.google.protobuf.AnyR\vannotations\x121\n" + + "\revent_feed_id\x18\x05 \x01(\tB\r\xfaB\n" + + "r\b \x01(\x80\b\xd0\x01\x01R\veventFeedId\"\xbe\x01\n" + + "\x12ListEventsResponse\x12.\n" + + "\x06events\x18\x01 \x03(\v2\x16.c1.connector.v2.EventR\x06events\x12%\n" + + "\x06cursor\x18\x02 \x01(\tB\r\xfaB\n" + + "r\b \x01(\x80 \xd0\x01\x01R\x06cursor\x12\x19\n" + + "\bhas_more\x18\x03 \x01(\bR\ahasMore\x126\n" + + "\vannotations\x18\x04 \x03(\v2\x14.google.protobuf.AnyR\vannotations\"O\n" + + "\x15ListEventFeedsRequest\x126\n" + + "\vannotations\x18\x01 \x03(\v2\x14.google.protobuf.AnyR\vannotations\"\x88\x01\n" + + "\x16ListEventFeedsResponse\x126\n" + + "\x04list\x18\x01 \x03(\v2\".c1.connector.v2.EventFeedMetadataR\x04list\x126\n" + + "\vannotations\x18\x02 \x03(\v2\x14.google.protobuf.AnyR\vannotations\"\xdd\x04\n" + + "\x05Event\x12\x0e\n" + + "\x02id\x18\x01 \x01(\tR\x02id\x12;\n" + + "\voccurred_at\x18\x02 \x01(\v2\x1a.google.protobuf.TimestampR\n" + + "occurredAt\x12>\n" + + "\vusage_event\x18d \x01(\v2\x1b.c1.connector.v2.UsageEventH\x00R\n" + + "usageEvent\x12>\n" + + "\vgrant_event\x18e \x01(\v2\x1b.c1.connector.v2.GrantEventH\x00R\n" + + "grantEvent\x12A\n" + + "\frevoke_event\x18f \x01(\v2\x1c.c1.connector.v2.RevokeEventH\x00R\vrevokeEvent\x12Z\n" + + "\x15resource_change_event\x18g \x01(\v2$.c1.connector.v2.ResourceChangeEventH\x00R\x13resourceChangeEvent\x12Q\n" + + "\x12create_grant_event\x18h \x01(\v2!.c1.connector.v2.CreateGrantEventH\x00R\x10createGrantEvent\x12T\n" + + "\x13create_revoke_event\x18i \x01(\v2\".c1.connector.v2.CreateRevokeEventH\x00R\x11createRevokeEvent\x126\n" + + "\vannotations\x18\x03 \x03(\v2\x14.google.protobuf.AnyR\vannotationsB\a\n" + + "\x05event\"\x92\x01\n" + + "\n" + + "UsageEvent\x12B\n" + + "\x0ftarget_resource\x18\x01 \x01(\v2\x19.c1.connector.v2.ResourceR\x0etargetResource\x12@\n" + + "\x0eactor_resource\x18\x02 \x01(\v2\x19.c1.connector.v2.ResourceR\ractorResource\":\n" + + "\n" + + "GrantEvent\x12,\n" + + "\x05grant\x18\x01 \x01(\v2\x16.c1.connector.v2.GrantR\x05grant\"\xd7\x01\n" + + "\x10CreateGrantEvent\x12H\n" + + "\ventitlement\x18\x01 \x01(\v2\x1c.c1.connector.v2.EntitlementB\b\xfaB\x05\x8a\x01\x02\x10\x01R\ventitlement\x12A\n" + + "\tprincipal\x18\x02 \x01(\v2\x19.c1.connector.v2.ResourceB\b\xfaB\x05\x8a\x01\x02\x10\x01R\tprincipal\x126\n" + + "\vannotations\x18\x03 \x03(\v2\x14.google.protobuf.AnyR\vannotations\"\xd8\x01\n" + + "\x11CreateRevokeEvent\x12H\n" + + "\ventitlement\x18\x01 \x01(\v2\x1c.c1.connector.v2.EntitlementB\b\xfaB\x05\x8a\x01\x02\x10\x01R\ventitlement\x12A\n" + + "\tprincipal\x18\x02 \x01(\v2\x19.c1.connector.v2.ResourceB\b\xfaB\x05\x8a\x01\x02\x10\x01R\tprincipal\x126\n" + + "\vannotations\x18\x03 \x03(\v2\x14.google.protobuf.AnyR\vannotations\"\x86\x01\n" + + "\vRevokeEvent\x12>\n" + + "\ventitlement\x18\x01 \x01(\v2\x1c.c1.connector.v2.EntitlementR\ventitlement\x127\n" + + "\tprincipal\x18\x02 \x01(\v2\x19.c1.connector.v2.ResourceR\tprincipal\"\xa8\x01\n" + + "\x13ResourceChangeEvent\x12F\n" + + "\vresource_id\x18\x01 \x01(\v2\x1b.c1.connector.v2.ResourceIdB\b\xfaB\x05\x8a\x01\x02\x10\x01R\n" + + "resourceId\x12I\n" + + "\x12parent_resource_id\x18\x02 \x01(\v2\x1b.c1.connector.v2.ResourceIdR\x10parentResourceId\"\x90\x01\n" + + "\x11EventFeedMetadata\x12\x1a\n" + + "\x02id\x18\x01 \x01(\tB\n" + + "\xfaB\ar\x05 \x01(\x80\bR\x02id\x12_\n" + + "\x15supported_event_types\x18\x02 \x03(\x0e2\x1a.c1.connector.v2.EventTypeB\x0f\xfaB\f\x92\x01\t\x18\x01\"\x05\x82\x01\x02\x10\x01R\x13supportedEventTypes*\xa4\x01\n" + + "\tEventType\x12\x1a\n" + + "\x16EVENT_TYPE_UNSPECIFIED\x10\x00\x12\x14\n" + + "\x10EVENT_TYPE_USAGE\x10\x01\x12\x1e\n" + + "\x1aEVENT_TYPE_RESOURCE_CHANGE\x10\x04\x12\x1b\n" + + "\x17EVENT_TYPE_CREATE_GRANT\x10\x05\x12\x1c\n" + + "\x18EVENT_TYPE_CREATE_REVOKE\x10\x06\"\x04\b\x02\x10\x02\"\x04\b\x03\x10\x032\xc8\x01\n" + + "\fEventService\x12U\n" + + "\n" + + "ListEvents\x12\".c1.connector.v2.ListEventsRequest\x1a#.c1.connector.v2.ListEventsResponse\x12a\n" + + "\x0eListEventFeeds\x12&.c1.connector.v2.ListEventFeedsRequest\x1a'.c1.connector.v2.ListEventFeedsResponseB6Z4github.com/conductorone/baton-sdk/pb/c1/connector/v2b\x06proto3" + +var file_c1_connector_v2_event_feed_proto_enumTypes = make([]protoimpl.EnumInfo, 1) +var file_c1_connector_v2_event_feed_proto_msgTypes = make([]protoimpl.MessageInfo, 12) +var file_c1_connector_v2_event_feed_proto_goTypes = []any{ + (EventType)(0), // 0: c1.connector.v2.EventType + (*ListEventsRequest)(nil), // 1: c1.connector.v2.ListEventsRequest + (*ListEventsResponse)(nil), // 2: c1.connector.v2.ListEventsResponse + (*ListEventFeedsRequest)(nil), // 3: c1.connector.v2.ListEventFeedsRequest + (*ListEventFeedsResponse)(nil), // 4: c1.connector.v2.ListEventFeedsResponse + (*Event)(nil), // 5: c1.connector.v2.Event + (*UsageEvent)(nil), // 6: c1.connector.v2.UsageEvent + (*GrantEvent)(nil), // 7: c1.connector.v2.GrantEvent + (*CreateGrantEvent)(nil), // 8: c1.connector.v2.CreateGrantEvent + (*CreateRevokeEvent)(nil), // 9: c1.connector.v2.CreateRevokeEvent + (*RevokeEvent)(nil), // 10: c1.connector.v2.RevokeEvent + (*ResourceChangeEvent)(nil), // 11: c1.connector.v2.ResourceChangeEvent + (*EventFeedMetadata)(nil), // 12: c1.connector.v2.EventFeedMetadata + (*timestamppb.Timestamp)(nil), // 13: google.protobuf.Timestamp + (*anypb.Any)(nil), // 14: google.protobuf.Any + (*Resource)(nil), // 15: c1.connector.v2.Resource + (*Grant)(nil), // 16: c1.connector.v2.Grant + (*Entitlement)(nil), // 17: c1.connector.v2.Entitlement + (*ResourceId)(nil), // 18: c1.connector.v2.ResourceId +} +var file_c1_connector_v2_event_feed_proto_depIdxs = []int32{ + 13, // 0: c1.connector.v2.ListEventsRequest.start_at:type_name -> google.protobuf.Timestamp + 14, // 1: c1.connector.v2.ListEventsRequest.annotations:type_name -> google.protobuf.Any + 5, // 2: c1.connector.v2.ListEventsResponse.events:type_name -> c1.connector.v2.Event + 14, // 3: c1.connector.v2.ListEventsResponse.annotations:type_name -> google.protobuf.Any + 14, // 4: c1.connector.v2.ListEventFeedsRequest.annotations:type_name -> google.protobuf.Any + 12, // 5: c1.connector.v2.ListEventFeedsResponse.list:type_name -> c1.connector.v2.EventFeedMetadata + 14, // 6: c1.connector.v2.ListEventFeedsResponse.annotations:type_name -> google.protobuf.Any + 13, // 7: c1.connector.v2.Event.occurred_at:type_name -> google.protobuf.Timestamp + 6, // 8: c1.connector.v2.Event.usage_event:type_name -> c1.connector.v2.UsageEvent + 7, // 9: c1.connector.v2.Event.grant_event:type_name -> c1.connector.v2.GrantEvent + 10, // 10: c1.connector.v2.Event.revoke_event:type_name -> c1.connector.v2.RevokeEvent + 11, // 11: c1.connector.v2.Event.resource_change_event:type_name -> c1.connector.v2.ResourceChangeEvent + 8, // 12: c1.connector.v2.Event.create_grant_event:type_name -> c1.connector.v2.CreateGrantEvent + 9, // 13: c1.connector.v2.Event.create_revoke_event:type_name -> c1.connector.v2.CreateRevokeEvent + 14, // 14: c1.connector.v2.Event.annotations:type_name -> google.protobuf.Any + 15, // 15: c1.connector.v2.UsageEvent.target_resource:type_name -> c1.connector.v2.Resource + 15, // 16: c1.connector.v2.UsageEvent.actor_resource:type_name -> c1.connector.v2.Resource + 16, // 17: c1.connector.v2.GrantEvent.grant:type_name -> c1.connector.v2.Grant + 17, // 18: c1.connector.v2.CreateGrantEvent.entitlement:type_name -> c1.connector.v2.Entitlement + 15, // 19: c1.connector.v2.CreateGrantEvent.principal:type_name -> c1.connector.v2.Resource + 14, // 20: c1.connector.v2.CreateGrantEvent.annotations:type_name -> google.protobuf.Any + 17, // 21: c1.connector.v2.CreateRevokeEvent.entitlement:type_name -> c1.connector.v2.Entitlement + 15, // 22: c1.connector.v2.CreateRevokeEvent.principal:type_name -> c1.connector.v2.Resource + 14, // 23: c1.connector.v2.CreateRevokeEvent.annotations:type_name -> google.protobuf.Any + 17, // 24: c1.connector.v2.RevokeEvent.entitlement:type_name -> c1.connector.v2.Entitlement + 15, // 25: c1.connector.v2.RevokeEvent.principal:type_name -> c1.connector.v2.Resource + 18, // 26: c1.connector.v2.ResourceChangeEvent.resource_id:type_name -> c1.connector.v2.ResourceId + 18, // 27: c1.connector.v2.ResourceChangeEvent.parent_resource_id:type_name -> c1.connector.v2.ResourceId + 0, // 28: c1.connector.v2.EventFeedMetadata.supported_event_types:type_name -> c1.connector.v2.EventType + 1, // 29: c1.connector.v2.EventService.ListEvents:input_type -> c1.connector.v2.ListEventsRequest + 3, // 30: c1.connector.v2.EventService.ListEventFeeds:input_type -> c1.connector.v2.ListEventFeedsRequest + 2, // 31: c1.connector.v2.EventService.ListEvents:output_type -> c1.connector.v2.ListEventsResponse + 4, // 32: c1.connector.v2.EventService.ListEventFeeds:output_type -> c1.connector.v2.ListEventFeedsResponse + 31, // [31:33] is the sub-list for method output_type + 29, // [29:31] is the sub-list for method input_type + 29, // [29:29] is the sub-list for extension type_name + 29, // [29:29] is the sub-list for extension extendee + 0, // [0:29] is the sub-list for field type_name +} + +func init() { file_c1_connector_v2_event_feed_proto_init() } +func file_c1_connector_v2_event_feed_proto_init() { + if File_c1_connector_v2_event_feed_proto != nil { + return + } + file_c1_connector_v2_entitlement_proto_init() + file_c1_connector_v2_grant_proto_init() + file_c1_connector_v2_resource_proto_init() + file_c1_connector_v2_event_feed_proto_msgTypes[4].OneofWrappers = []any{ + (*event_UsageEvent)(nil), + (*event_GrantEvent)(nil), + (*event_RevokeEvent)(nil), + (*event_ResourceChangeEvent)(nil), + (*event_CreateGrantEvent)(nil), + (*event_CreateRevokeEvent)(nil), + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: unsafe.Slice(unsafe.StringData(file_c1_connector_v2_event_feed_proto_rawDesc), len(file_c1_connector_v2_event_feed_proto_rawDesc)), + NumEnums: 1, + NumMessages: 12, + NumExtensions: 0, + NumServices: 1, + }, + GoTypes: file_c1_connector_v2_event_feed_proto_goTypes, + DependencyIndexes: file_c1_connector_v2_event_feed_proto_depIdxs, + EnumInfos: file_c1_connector_v2_event_feed_proto_enumTypes, + MessageInfos: file_c1_connector_v2_event_feed_proto_msgTypes, + }.Build() + File_c1_connector_v2_event_feed_proto = out.File + file_c1_connector_v2_event_feed_proto_goTypes = nil + file_c1_connector_v2_event_feed_proto_depIdxs = nil +} diff --git a/vendor/github.com/conductorone/baton-sdk/pb/c1/connector/v2/grant.pb.go b/vendor/github.com/conductorone/baton-sdk/pb/c1/connector/v2/grant.pb.go index 2091c808..485decbe 100644 --- a/vendor/github.com/conductorone/baton-sdk/pb/c1/connector/v2/grant.pb.go +++ b/vendor/github.com/conductorone/baton-sdk/pb/c1/connector/v2/grant.pb.go @@ -1,9 +1,11 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.36.4 +// protoc-gen-go v1.36.10 // protoc (unknown) // source: c1/connector/v2/grant.proto +//go:build !protoopaque + package v2 import ( @@ -12,7 +14,6 @@ import ( protoimpl "google.golang.org/protobuf/runtime/protoimpl" anypb "google.golang.org/protobuf/types/known/anypb" reflect "reflect" - sync "sync" unsafe "unsafe" ) @@ -24,7 +25,7 @@ const ( ) type GrantSources struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` Sources map[string]*GrantSources_GrantSource `protobuf:"bytes,1,rep,name=sources,proto3" json:"sources,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache @@ -55,11 +56,6 @@ func (x *GrantSources) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use GrantSources.ProtoReflect.Descriptor instead. -func (*GrantSources) Descriptor() ([]byte, []int) { - return file_c1_connector_v2_grant_proto_rawDescGZIP(), []int{0} -} - func (x *GrantSources) GetSources() map[string]*GrantSources_GrantSource { if x != nil { return x.Sources @@ -67,8 +63,26 @@ func (x *GrantSources) GetSources() map[string]*GrantSources_GrantSource { return nil } +func (x *GrantSources) SetSources(v map[string]*GrantSources_GrantSource) { + x.Sources = v +} + +type GrantSources_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Sources map[string]*GrantSources_GrantSource +} + +func (b0 GrantSources_builder) Build() *GrantSources { + m0 := &GrantSources{} + b, x := &b0, m0 + _, _ = b, x + x.Sources = b.Sources + return m0 +} + type Grant struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` Entitlement *Entitlement `protobuf:"bytes,1,opt,name=entitlement,proto3" json:"entitlement,omitempty"` Principal *Resource `protobuf:"bytes,2,opt,name=principal,proto3" json:"principal,omitempty"` Id string `protobuf:"bytes,3,opt,name=id,proto3" json:"id,omitempty"` @@ -103,11 +117,6 @@ func (x *Grant) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use Grant.ProtoReflect.Descriptor instead. -func (*Grant) Descriptor() ([]byte, []int) { - return file_c1_connector_v2_grant_proto_rawDescGZIP(), []int{1} -} - func (x *Grant) GetEntitlement() *Entitlement { if x != nil { return x.Entitlement @@ -143,12 +152,88 @@ func (x *Grant) GetAnnotations() []*anypb.Any { return nil } +func (x *Grant) SetEntitlement(v *Entitlement) { + x.Entitlement = v +} + +func (x *Grant) SetPrincipal(v *Resource) { + x.Principal = v +} + +func (x *Grant) SetId(v string) { + x.Id = v +} + +func (x *Grant) SetSources(v *GrantSources) { + x.Sources = v +} + +func (x *Grant) SetAnnotations(v []*anypb.Any) { + x.Annotations = v +} + +func (x *Grant) HasEntitlement() bool { + if x == nil { + return false + } + return x.Entitlement != nil +} + +func (x *Grant) HasPrincipal() bool { + if x == nil { + return false + } + return x.Principal != nil +} + +func (x *Grant) HasSources() bool { + if x == nil { + return false + } + return x.Sources != nil +} + +func (x *Grant) ClearEntitlement() { + x.Entitlement = nil +} + +func (x *Grant) ClearPrincipal() { + x.Principal = nil +} + +func (x *Grant) ClearSources() { + x.Sources = nil +} + +type Grant_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Entitlement *Entitlement + Principal *Resource + Id string + Sources *GrantSources + Annotations []*anypb.Any +} + +func (b0 Grant_builder) Build() *Grant { + m0 := &Grant{} + b, x := &b0, m0 + _, _ = b, x + x.Entitlement = b.Entitlement + x.Principal = b.Principal + x.Id = b.Id + x.Sources = b.Sources + x.Annotations = b.Annotations + return m0 +} + type GrantsServiceListGrantsRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` Resource *Resource `protobuf:"bytes,1,opt,name=resource,proto3" json:"resource,omitempty"` PageSize uint32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"` Annotations []*anypb.Any `protobuf:"bytes,4,rep,name=annotations,proto3" json:"annotations,omitempty"` + ActiveSyncId string `protobuf:"bytes,5,opt,name=active_sync_id,json=activeSyncId,proto3" json:"active_sync_id,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } @@ -178,11 +263,6 @@ func (x *GrantsServiceListGrantsRequest) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use GrantsServiceListGrantsRequest.ProtoReflect.Descriptor instead. -func (*GrantsServiceListGrantsRequest) Descriptor() ([]byte, []int) { - return file_c1_connector_v2_grant_proto_rawDescGZIP(), []int{2} -} - func (x *GrantsServiceListGrantsRequest) GetResource() *Resource { if x != nil { return x.Resource @@ -211,8 +291,68 @@ func (x *GrantsServiceListGrantsRequest) GetAnnotations() []*anypb.Any { return nil } +func (x *GrantsServiceListGrantsRequest) GetActiveSyncId() string { + if x != nil { + return x.ActiveSyncId + } + return "" +} + +func (x *GrantsServiceListGrantsRequest) SetResource(v *Resource) { + x.Resource = v +} + +func (x *GrantsServiceListGrantsRequest) SetPageSize(v uint32) { + x.PageSize = v +} + +func (x *GrantsServiceListGrantsRequest) SetPageToken(v string) { + x.PageToken = v +} + +func (x *GrantsServiceListGrantsRequest) SetAnnotations(v []*anypb.Any) { + x.Annotations = v +} + +func (x *GrantsServiceListGrantsRequest) SetActiveSyncId(v string) { + x.ActiveSyncId = v +} + +func (x *GrantsServiceListGrantsRequest) HasResource() bool { + if x == nil { + return false + } + return x.Resource != nil +} + +func (x *GrantsServiceListGrantsRequest) ClearResource() { + x.Resource = nil +} + +type GrantsServiceListGrantsRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Resource *Resource + PageSize uint32 + PageToken string + Annotations []*anypb.Any + ActiveSyncId string +} + +func (b0 GrantsServiceListGrantsRequest_builder) Build() *GrantsServiceListGrantsRequest { + m0 := &GrantsServiceListGrantsRequest{} + b, x := &b0, m0 + _, _ = b, x + x.Resource = b.Resource + x.PageSize = b.PageSize + x.PageToken = b.PageToken + x.Annotations = b.Annotations + x.ActiveSyncId = b.ActiveSyncId + return m0 +} + type GrantsServiceListGrantsResponse struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` List []*Grant `protobuf:"bytes,1,rep,name=list,proto3" json:"list,omitempty"` NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` Annotations []*anypb.Any `protobuf:"bytes,3,rep,name=annotations,proto3" json:"annotations,omitempty"` @@ -245,11 +385,6 @@ func (x *GrantsServiceListGrantsResponse) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use GrantsServiceListGrantsResponse.ProtoReflect.Descriptor instead. -func (*GrantsServiceListGrantsResponse) Descriptor() ([]byte, []int) { - return file_c1_connector_v2_grant_proto_rawDescGZIP(), []int{3} -} - func (x *GrantsServiceListGrantsResponse) GetList() []*Grant { if x != nil { return x.List @@ -271,8 +406,38 @@ func (x *GrantsServiceListGrantsResponse) GetAnnotations() []*anypb.Any { return nil } +func (x *GrantsServiceListGrantsResponse) SetList(v []*Grant) { + x.List = v +} + +func (x *GrantsServiceListGrantsResponse) SetNextPageToken(v string) { + x.NextPageToken = v +} + +func (x *GrantsServiceListGrantsResponse) SetAnnotations(v []*anypb.Any) { + x.Annotations = v +} + +type GrantsServiceListGrantsResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + List []*Grant + NextPageToken string + Annotations []*anypb.Any +} + +func (b0 GrantsServiceListGrantsResponse_builder) Build() *GrantsServiceListGrantsResponse { + m0 := &GrantsServiceListGrantsResponse{} + b, x := &b0, m0 + _, _ = b, x + x.List = b.List + x.NextPageToken = b.NextPageToken + x.Annotations = b.Annotations + return m0 +} + type GrantManagerServiceGrantRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` Entitlement *Entitlement `protobuf:"bytes,1,opt,name=entitlement,proto3" json:"entitlement,omitempty"` Principal *Resource `protobuf:"bytes,2,opt,name=principal,proto3" json:"principal,omitempty"` Annotations []*anypb.Any `protobuf:"bytes,3,rep,name=annotations,proto3" json:"annotations,omitempty"` @@ -305,11 +470,6 @@ func (x *GrantManagerServiceGrantRequest) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use GrantManagerServiceGrantRequest.ProtoReflect.Descriptor instead. -func (*GrantManagerServiceGrantRequest) Descriptor() ([]byte, []int) { - return file_c1_connector_v2_grant_proto_rawDescGZIP(), []int{4} -} - func (x *GrantManagerServiceGrantRequest) GetEntitlement() *Entitlement { if x != nil { return x.Entitlement @@ -331,8 +491,60 @@ func (x *GrantManagerServiceGrantRequest) GetAnnotations() []*anypb.Any { return nil } +func (x *GrantManagerServiceGrantRequest) SetEntitlement(v *Entitlement) { + x.Entitlement = v +} + +func (x *GrantManagerServiceGrantRequest) SetPrincipal(v *Resource) { + x.Principal = v +} + +func (x *GrantManagerServiceGrantRequest) SetAnnotations(v []*anypb.Any) { + x.Annotations = v +} + +func (x *GrantManagerServiceGrantRequest) HasEntitlement() bool { + if x == nil { + return false + } + return x.Entitlement != nil +} + +func (x *GrantManagerServiceGrantRequest) HasPrincipal() bool { + if x == nil { + return false + } + return x.Principal != nil +} + +func (x *GrantManagerServiceGrantRequest) ClearEntitlement() { + x.Entitlement = nil +} + +func (x *GrantManagerServiceGrantRequest) ClearPrincipal() { + x.Principal = nil +} + +type GrantManagerServiceGrantRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Entitlement *Entitlement + Principal *Resource + Annotations []*anypb.Any +} + +func (b0 GrantManagerServiceGrantRequest_builder) Build() *GrantManagerServiceGrantRequest { + m0 := &GrantManagerServiceGrantRequest{} + b, x := &b0, m0 + _, _ = b, x + x.Entitlement = b.Entitlement + x.Principal = b.Principal + x.Annotations = b.Annotations + return m0 +} + type GrantManagerServiceGrantResponse struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` Annotations []*anypb.Any `protobuf:"bytes,1,rep,name=annotations,proto3" json:"annotations,omitempty"` Grants []*Grant `protobuf:"bytes,2,rep,name=grants,proto3" json:"grants,omitempty"` unknownFields protoimpl.UnknownFields @@ -364,11 +576,6 @@ func (x *GrantManagerServiceGrantResponse) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use GrantManagerServiceGrantResponse.ProtoReflect.Descriptor instead. -func (*GrantManagerServiceGrantResponse) Descriptor() ([]byte, []int) { - return file_c1_connector_v2_grant_proto_rawDescGZIP(), []int{5} -} - func (x *GrantManagerServiceGrantResponse) GetAnnotations() []*anypb.Any { if x != nil { return x.Annotations @@ -383,8 +590,32 @@ func (x *GrantManagerServiceGrantResponse) GetGrants() []*Grant { return nil } +func (x *GrantManagerServiceGrantResponse) SetAnnotations(v []*anypb.Any) { + x.Annotations = v +} + +func (x *GrantManagerServiceGrantResponse) SetGrants(v []*Grant) { + x.Grants = v +} + +type GrantManagerServiceGrantResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Annotations []*anypb.Any + Grants []*Grant +} + +func (b0 GrantManagerServiceGrantResponse_builder) Build() *GrantManagerServiceGrantResponse { + m0 := &GrantManagerServiceGrantResponse{} + b, x := &b0, m0 + _, _ = b, x + x.Annotations = b.Annotations + x.Grants = b.Grants + return m0 +} + type GrantManagerServiceRevokeRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` Grant *Grant `protobuf:"bytes,1,opt,name=grant,proto3" json:"grant,omitempty"` Annotations []*anypb.Any `protobuf:"bytes,2,rep,name=annotations,proto3" json:"annotations,omitempty"` unknownFields protoimpl.UnknownFields @@ -416,11 +647,6 @@ func (x *GrantManagerServiceRevokeRequest) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use GrantManagerServiceRevokeRequest.ProtoReflect.Descriptor instead. -func (*GrantManagerServiceRevokeRequest) Descriptor() ([]byte, []int) { - return file_c1_connector_v2_grant_proto_rawDescGZIP(), []int{6} -} - func (x *GrantManagerServiceRevokeRequest) GetGrant() *Grant { if x != nil { return x.Grant @@ -435,8 +661,43 @@ func (x *GrantManagerServiceRevokeRequest) GetAnnotations() []*anypb.Any { return nil } +func (x *GrantManagerServiceRevokeRequest) SetGrant(v *Grant) { + x.Grant = v +} + +func (x *GrantManagerServiceRevokeRequest) SetAnnotations(v []*anypb.Any) { + x.Annotations = v +} + +func (x *GrantManagerServiceRevokeRequest) HasGrant() bool { + if x == nil { + return false + } + return x.Grant != nil +} + +func (x *GrantManagerServiceRevokeRequest) ClearGrant() { + x.Grant = nil +} + +type GrantManagerServiceRevokeRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Grant *Grant + Annotations []*anypb.Any +} + +func (b0 GrantManagerServiceRevokeRequest_builder) Build() *GrantManagerServiceRevokeRequest { + m0 := &GrantManagerServiceRevokeRequest{} + b, x := &b0, m0 + _, _ = b, x + x.Grant = b.Grant + x.Annotations = b.Annotations + return m0 +} + type GrantManagerServiceRevokeResponse struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` Annotations []*anypb.Any `protobuf:"bytes,1,rep,name=annotations,proto3" json:"annotations,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache @@ -467,11 +728,6 @@ func (x *GrantManagerServiceRevokeResponse) ProtoReflect() protoreflect.Message return mi.MessageOf(x) } -// Deprecated: Use GrantManagerServiceRevokeResponse.ProtoReflect.Descriptor instead. -func (*GrantManagerServiceRevokeResponse) Descriptor() ([]byte, []int) { - return file_c1_connector_v2_grant_proto_rawDescGZIP(), []int{7} -} - func (x *GrantManagerServiceRevokeResponse) GetAnnotations() []*anypb.Any { if x != nil { return x.Annotations @@ -479,8 +735,26 @@ func (x *GrantManagerServiceRevokeResponse) GetAnnotations() []*anypb.Any { return nil } +func (x *GrantManagerServiceRevokeResponse) SetAnnotations(v []*anypb.Any) { + x.Annotations = v +} + +type GrantManagerServiceRevokeResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Annotations []*anypb.Any +} + +func (b0 GrantManagerServiceRevokeResponse_builder) Build() *GrantManagerServiceRevokeResponse { + m0 := &GrantManagerServiceRevokeResponse{} + b, x := &b0, m0 + _, _ = b, x + x.Annotations = b.Annotations + return m0 +} + type GrantSources_GrantSource struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } @@ -510,163 +784,67 @@ func (x *GrantSources_GrantSource) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use GrantSources_GrantSource.ProtoReflect.Descriptor instead. -func (*GrantSources_GrantSource) Descriptor() ([]byte, []int) { - return file_c1_connector_v2_grant_proto_rawDescGZIP(), []int{0, 0} +type GrantSources_GrantSource_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + } -var File_c1_connector_v2_grant_proto protoreflect.FileDescriptor +func (b0 GrantSources_GrantSource_builder) Build() *GrantSources_GrantSource { + m0 := &GrantSources_GrantSource{} + b, x := &b0, m0 + _, _ = b, x + return m0 +} -var file_c1_connector_v2_grant_proto_rawDesc = string([]byte{ - 0x0a, 0x1b, 0x63, 0x31, 0x2f, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x2f, 0x76, - 0x32, 0x2f, 0x67, 0x72, 0x61, 0x6e, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0f, 0x63, - 0x31, 0x2e, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x2e, 0x76, 0x32, 0x1a, 0x21, - 0x63, 0x31, 0x2f, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x2f, 0x76, 0x32, 0x2f, - 0x65, 0x6e, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x1a, 0x1e, 0x63, 0x31, 0x2f, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x2f, - 0x76, 0x32, 0x2f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x1a, 0x19, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, - 0x75, 0x66, 0x2f, 0x61, 0x6e, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x17, 0x76, 0x61, - 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x2f, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x2e, - 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xca, 0x01, 0x0a, 0x0c, 0x47, 0x72, 0x61, 0x6e, 0x74, 0x53, - 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x12, 0x44, 0x0a, 0x07, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, - 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2a, 0x2e, 0x63, 0x31, 0x2e, 0x63, 0x6f, 0x6e, - 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x2e, 0x76, 0x32, 0x2e, 0x47, 0x72, 0x61, 0x6e, 0x74, 0x53, - 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x2e, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x45, 0x6e, - 0x74, 0x72, 0x79, 0x52, 0x07, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x1a, 0x0d, 0x0a, 0x0b, - 0x47, 0x72, 0x61, 0x6e, 0x74, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x1a, 0x65, 0x0a, 0x0c, 0x53, - 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, - 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x3f, 0x0a, - 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x29, 0x2e, 0x63, - 0x31, 0x2e, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x2e, 0x76, 0x32, 0x2e, 0x47, - 0x72, 0x61, 0x6e, 0x74, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x2e, 0x47, 0x72, 0x61, 0x6e, - 0x74, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, - 0x38, 0x01, 0x22, 0xab, 0x02, 0x0a, 0x05, 0x47, 0x72, 0x61, 0x6e, 0x74, 0x12, 0x48, 0x0a, 0x0b, - 0x65, 0x6e, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x0b, 0x32, 0x1c, 0x2e, 0x63, 0x31, 0x2e, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, - 0x2e, 0x76, 0x32, 0x2e, 0x45, 0x6e, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x42, - 0x08, 0xfa, 0x42, 0x05, 0x8a, 0x01, 0x02, 0x10, 0x01, 0x52, 0x0b, 0x65, 0x6e, 0x74, 0x69, 0x74, - 0x6c, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x12, 0x41, 0x0a, 0x09, 0x70, 0x72, 0x69, 0x6e, 0x63, 0x69, - 0x70, 0x61, 0x6c, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x63, 0x31, 0x2e, 0x63, - 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x2e, 0x76, 0x32, 0x2e, 0x52, 0x65, 0x73, 0x6f, - 0x75, 0x72, 0x63, 0x65, 0x42, 0x08, 0xfa, 0x42, 0x05, 0x8a, 0x01, 0x02, 0x10, 0x01, 0x52, 0x09, - 0x70, 0x72, 0x69, 0x6e, 0x63, 0x69, 0x70, 0x61, 0x6c, 0x12, 0x1a, 0x0a, 0x02, 0x69, 0x64, 0x18, - 0x03, 0x20, 0x01, 0x28, 0x09, 0x42, 0x0a, 0xfa, 0x42, 0x07, 0x72, 0x05, 0x20, 0x01, 0x28, 0x80, - 0x08, 0x52, 0x02, 0x69, 0x64, 0x12, 0x41, 0x0a, 0x07, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, - 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x63, 0x31, 0x2e, 0x63, 0x6f, 0x6e, 0x6e, - 0x65, 0x63, 0x74, 0x6f, 0x72, 0x2e, 0x76, 0x32, 0x2e, 0x47, 0x72, 0x61, 0x6e, 0x74, 0x53, 0x6f, - 0x75, 0x72, 0x63, 0x65, 0x73, 0x42, 0x08, 0xfa, 0x42, 0x05, 0x8a, 0x01, 0x02, 0x10, 0x00, 0x52, - 0x07, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x12, 0x36, 0x0a, 0x0b, 0x61, 0x6e, 0x6e, 0x6f, - 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x14, 0x2e, - 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, - 0x41, 0x6e, 0x79, 0x52, 0x0b, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, - 0x22, 0xf1, 0x01, 0x0a, 0x1e, 0x47, 0x72, 0x61, 0x6e, 0x74, 0x73, 0x53, 0x65, 0x72, 0x76, 0x69, - 0x63, 0x65, 0x4c, 0x69, 0x73, 0x74, 0x47, 0x72, 0x61, 0x6e, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, - 0x65, 0x73, 0x74, 0x12, 0x3f, 0x0a, 0x08, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x63, 0x31, 0x2e, 0x63, 0x6f, 0x6e, 0x6e, 0x65, - 0x63, 0x74, 0x6f, 0x72, 0x2e, 0x76, 0x32, 0x2e, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, - 0x42, 0x08, 0xfa, 0x42, 0x05, 0x8a, 0x01, 0x02, 0x10, 0x01, 0x52, 0x08, 0x72, 0x65, 0x73, 0x6f, - 0x75, 0x72, 0x63, 0x65, 0x12, 0x27, 0x0a, 0x09, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x73, 0x69, 0x7a, - 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, 0x42, 0x0a, 0xfa, 0x42, 0x07, 0x2a, 0x05, 0x18, 0xfa, - 0x01, 0x40, 0x01, 0x52, 0x08, 0x70, 0x61, 0x67, 0x65, 0x53, 0x69, 0x7a, 0x65, 0x12, 0x2d, 0x0a, - 0x0a, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, - 0x09, 0x42, 0x0e, 0xfa, 0x42, 0x0b, 0x72, 0x09, 0x20, 0x01, 0x28, 0x80, 0x80, 0x40, 0xd0, 0x01, - 0x01, 0x52, 0x09, 0x70, 0x61, 0x67, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x36, 0x0a, 0x0b, - 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, - 0x0b, 0x32, 0x14, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, - 0x62, 0x75, 0x66, 0x2e, 0x41, 0x6e, 0x79, 0x52, 0x0b, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, - 0x69, 0x6f, 0x6e, 0x73, 0x22, 0xbd, 0x01, 0x0a, 0x1f, 0x47, 0x72, 0x61, 0x6e, 0x74, 0x73, 0x53, - 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x4c, 0x69, 0x73, 0x74, 0x47, 0x72, 0x61, 0x6e, 0x74, 0x73, - 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2a, 0x0a, 0x04, 0x6c, 0x69, 0x73, 0x74, - 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x63, 0x31, 0x2e, 0x63, 0x6f, 0x6e, 0x6e, - 0x65, 0x63, 0x74, 0x6f, 0x72, 0x2e, 0x76, 0x32, 0x2e, 0x47, 0x72, 0x61, 0x6e, 0x74, 0x52, 0x04, - 0x6c, 0x69, 0x73, 0x74, 0x12, 0x36, 0x0a, 0x0f, 0x6e, 0x65, 0x78, 0x74, 0x5f, 0x70, 0x61, 0x67, - 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x0e, 0xfa, - 0x42, 0x0b, 0x72, 0x09, 0x20, 0x01, 0x28, 0x80, 0x80, 0x40, 0xd0, 0x01, 0x01, 0x52, 0x0d, 0x6e, - 0x65, 0x78, 0x74, 0x50, 0x61, 0x67, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x36, 0x0a, 0x0b, - 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, - 0x0b, 0x32, 0x14, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, - 0x62, 0x75, 0x66, 0x2e, 0x41, 0x6e, 0x79, 0x52, 0x0b, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, - 0x69, 0x6f, 0x6e, 0x73, 0x22, 0xe6, 0x01, 0x0a, 0x1f, 0x47, 0x72, 0x61, 0x6e, 0x74, 0x4d, 0x61, - 0x6e, 0x61, 0x67, 0x65, 0x72, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x47, 0x72, 0x61, 0x6e, - 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x48, 0x0a, 0x0b, 0x65, 0x6e, 0x74, 0x69, - 0x74, 0x6c, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, - 0x63, 0x31, 0x2e, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x2e, 0x76, 0x32, 0x2e, - 0x45, 0x6e, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x42, 0x08, 0xfa, 0x42, 0x05, - 0x8a, 0x01, 0x02, 0x10, 0x01, 0x52, 0x0b, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x6d, 0x65, - 0x6e, 0x74, 0x12, 0x41, 0x0a, 0x09, 0x70, 0x72, 0x69, 0x6e, 0x63, 0x69, 0x70, 0x61, 0x6c, 0x18, - 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x63, 0x31, 0x2e, 0x63, 0x6f, 0x6e, 0x6e, 0x65, - 0x63, 0x74, 0x6f, 0x72, 0x2e, 0x76, 0x32, 0x2e, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, - 0x42, 0x08, 0xfa, 0x42, 0x05, 0x8a, 0x01, 0x02, 0x10, 0x01, 0x52, 0x09, 0x70, 0x72, 0x69, 0x6e, - 0x63, 0x69, 0x70, 0x61, 0x6c, 0x12, 0x36, 0x0a, 0x0b, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, - 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x67, 0x6f, 0x6f, - 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x41, 0x6e, 0x79, - 0x52, 0x0b, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x22, 0x8a, 0x01, - 0x0a, 0x20, 0x47, 0x72, 0x61, 0x6e, 0x74, 0x4d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x72, 0x53, 0x65, - 0x72, 0x76, 0x69, 0x63, 0x65, 0x47, 0x72, 0x61, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, - 0x73, 0x65, 0x12, 0x36, 0x0a, 0x0b, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, - 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, - 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x41, 0x6e, 0x79, 0x52, 0x0b, 0x61, - 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x2e, 0x0a, 0x06, 0x67, 0x72, - 0x61, 0x6e, 0x74, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x63, 0x31, 0x2e, - 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x2e, 0x76, 0x32, 0x2e, 0x47, 0x72, 0x61, - 0x6e, 0x74, 0x52, 0x06, 0x67, 0x72, 0x61, 0x6e, 0x74, 0x73, 0x22, 0x92, 0x01, 0x0a, 0x20, 0x47, - 0x72, 0x61, 0x6e, 0x74, 0x4d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x72, 0x53, 0x65, 0x72, 0x76, 0x69, - 0x63, 0x65, 0x52, 0x65, 0x76, 0x6f, 0x6b, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, - 0x36, 0x0a, 0x05, 0x67, 0x72, 0x61, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x16, - 0x2e, 0x63, 0x31, 0x2e, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x2e, 0x76, 0x32, - 0x2e, 0x47, 0x72, 0x61, 0x6e, 0x74, 0x42, 0x08, 0xfa, 0x42, 0x05, 0x8a, 0x01, 0x02, 0x10, 0x01, - 0x52, 0x05, 0x67, 0x72, 0x61, 0x6e, 0x74, 0x12, 0x36, 0x0a, 0x0b, 0x61, 0x6e, 0x6e, 0x6f, 0x74, - 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x67, - 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x41, - 0x6e, 0x79, 0x52, 0x0b, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x22, - 0x5b, 0x0a, 0x21, 0x47, 0x72, 0x61, 0x6e, 0x74, 0x4d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x72, 0x53, - 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x52, 0x65, 0x76, 0x6f, 0x6b, 0x65, 0x52, 0x65, 0x73, 0x70, - 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x36, 0x0a, 0x0b, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, - 0x6f, 0x6e, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x67, 0x6f, 0x6f, 0x67, - 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x41, 0x6e, 0x79, 0x52, - 0x0b, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x32, 0x80, 0x01, 0x0a, - 0x0d, 0x47, 0x72, 0x61, 0x6e, 0x74, 0x73, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x6f, - 0x0a, 0x0a, 0x4c, 0x69, 0x73, 0x74, 0x47, 0x72, 0x61, 0x6e, 0x74, 0x73, 0x12, 0x2f, 0x2e, 0x63, - 0x31, 0x2e, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x2e, 0x76, 0x32, 0x2e, 0x47, - 0x72, 0x61, 0x6e, 0x74, 0x73, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x4c, 0x69, 0x73, 0x74, - 0x47, 0x72, 0x61, 0x6e, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x30, 0x2e, - 0x63, 0x31, 0x2e, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x2e, 0x76, 0x32, 0x2e, - 0x47, 0x72, 0x61, 0x6e, 0x74, 0x73, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x4c, 0x69, 0x73, - 0x74, 0x47, 0x72, 0x61, 0x6e, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x32, - 0xf4, 0x01, 0x0a, 0x13, 0x47, 0x72, 0x61, 0x6e, 0x74, 0x4d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x72, - 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x6c, 0x0a, 0x05, 0x47, 0x72, 0x61, 0x6e, 0x74, - 0x12, 0x30, 0x2e, 0x63, 0x31, 0x2e, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x2e, - 0x76, 0x32, 0x2e, 0x47, 0x72, 0x61, 0x6e, 0x74, 0x4d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x72, 0x53, - 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x47, 0x72, 0x61, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, - 0x73, 0x74, 0x1a, 0x31, 0x2e, 0x63, 0x31, 0x2e, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, - 0x72, 0x2e, 0x76, 0x32, 0x2e, 0x47, 0x72, 0x61, 0x6e, 0x74, 0x4d, 0x61, 0x6e, 0x61, 0x67, 0x65, - 0x72, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x47, 0x72, 0x61, 0x6e, 0x74, 0x52, 0x65, 0x73, - 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x6f, 0x0a, 0x06, 0x52, 0x65, 0x76, 0x6f, 0x6b, 0x65, 0x12, - 0x31, 0x2e, 0x63, 0x31, 0x2e, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x2e, 0x76, - 0x32, 0x2e, 0x47, 0x72, 0x61, 0x6e, 0x74, 0x4d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x72, 0x53, 0x65, - 0x72, 0x76, 0x69, 0x63, 0x65, 0x52, 0x65, 0x76, 0x6f, 0x6b, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, - 0x73, 0x74, 0x1a, 0x32, 0x2e, 0x63, 0x31, 0x2e, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, - 0x72, 0x2e, 0x76, 0x32, 0x2e, 0x47, 0x72, 0x61, 0x6e, 0x74, 0x4d, 0x61, 0x6e, 0x61, 0x67, 0x65, - 0x72, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x52, 0x65, 0x76, 0x6f, 0x6b, 0x65, 0x52, 0x65, - 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x42, 0x36, 0x5a, 0x34, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, - 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x63, 0x6f, 0x6e, 0x64, 0x75, 0x63, 0x74, 0x6f, 0x72, 0x6f, 0x6e, - 0x65, 0x2f, 0x62, 0x61, 0x74, 0x6f, 0x6e, 0x2d, 0x73, 0x64, 0x6b, 0x2f, 0x70, 0x62, 0x2f, 0x63, - 0x31, 0x2f, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x2f, 0x76, 0x32, 0x62, 0x06, - 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, -}) - -var ( - file_c1_connector_v2_grant_proto_rawDescOnce sync.Once - file_c1_connector_v2_grant_proto_rawDescData []byte -) +var File_c1_connector_v2_grant_proto protoreflect.FileDescriptor -func file_c1_connector_v2_grant_proto_rawDescGZIP() []byte { - file_c1_connector_v2_grant_proto_rawDescOnce.Do(func() { - file_c1_connector_v2_grant_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_c1_connector_v2_grant_proto_rawDesc), len(file_c1_connector_v2_grant_proto_rawDesc))) - }) - return file_c1_connector_v2_grant_proto_rawDescData -} +const file_c1_connector_v2_grant_proto_rawDesc = "" + + "\n" + + "\x1bc1/connector/v2/grant.proto\x12\x0fc1.connector.v2\x1a!c1/connector/v2/entitlement.proto\x1a\x1ec1/connector/v2/resource.proto\x1a\x19google/protobuf/any.proto\x1a\x17validate/validate.proto\"\xca\x01\n" + + "\fGrantSources\x12D\n" + + "\asources\x18\x01 \x03(\v2*.c1.connector.v2.GrantSources.SourcesEntryR\asources\x1a\r\n" + + "\vGrantSource\x1ae\n" + + "\fSourcesEntry\x12\x10\n" + + "\x03key\x18\x01 \x01(\tR\x03key\x12?\n" + + "\x05value\x18\x02 \x01(\v2).c1.connector.v2.GrantSources.GrantSourceR\x05value:\x028\x01\"\xab\x02\n" + + "\x05Grant\x12H\n" + + "\ventitlement\x18\x01 \x01(\v2\x1c.c1.connector.v2.EntitlementB\b\xfaB\x05\x8a\x01\x02\x10\x01R\ventitlement\x12A\n" + + "\tprincipal\x18\x02 \x01(\v2\x19.c1.connector.v2.ResourceB\b\xfaB\x05\x8a\x01\x02\x10\x01R\tprincipal\x12\x1a\n" + + "\x02id\x18\x03 \x01(\tB\n" + + "\xfaB\ar\x05 \x01(\x80\bR\x02id\x12A\n" + + "\asources\x18\x05 \x01(\v2\x1d.c1.connector.v2.GrantSourcesB\b\xfaB\x05\x8a\x01\x02\x10\x00R\asources\x126\n" + + "\vannotations\x18\x04 \x03(\v2\x14.google.protobuf.AnyR\vannotations\"\xa6\x02\n" + + "\x1eGrantsServiceListGrantsRequest\x12?\n" + + "\bresource\x18\x01 \x01(\v2\x19.c1.connector.v2.ResourceB\b\xfaB\x05\x8a\x01\x02\x10\x01R\bresource\x12'\n" + + "\tpage_size\x18\x02 \x01(\rB\n" + + "\xfaB\a*\x05\x18\xfa\x01@\x01R\bpageSize\x12-\n" + + "\n" + + "page_token\x18\x03 \x01(\tB\x0e\xfaB\vr\t \x01(\x80\x80@\xd0\x01\x01R\tpageToken\x126\n" + + "\vannotations\x18\x04 \x03(\v2\x14.google.protobuf.AnyR\vannotations\x123\n" + + "\x0eactive_sync_id\x18\x05 \x01(\tB\r\xfaB\n" + + "r\b \x01(\x80\b\xd0\x01\x01R\factiveSyncId\"\xbd\x01\n" + + "\x1fGrantsServiceListGrantsResponse\x12*\n" + + "\x04list\x18\x01 \x03(\v2\x16.c1.connector.v2.GrantR\x04list\x126\n" + + "\x0fnext_page_token\x18\x02 \x01(\tB\x0e\xfaB\vr\t \x01(\x80\x80@\xd0\x01\x01R\rnextPageToken\x126\n" + + "\vannotations\x18\x03 \x03(\v2\x14.google.protobuf.AnyR\vannotations\"\xe6\x01\n" + + "\x1fGrantManagerServiceGrantRequest\x12H\n" + + "\ventitlement\x18\x01 \x01(\v2\x1c.c1.connector.v2.EntitlementB\b\xfaB\x05\x8a\x01\x02\x10\x01R\ventitlement\x12A\n" + + "\tprincipal\x18\x02 \x01(\v2\x19.c1.connector.v2.ResourceB\b\xfaB\x05\x8a\x01\x02\x10\x01R\tprincipal\x126\n" + + "\vannotations\x18\x03 \x03(\v2\x14.google.protobuf.AnyR\vannotations\"\x8a\x01\n" + + " GrantManagerServiceGrantResponse\x126\n" + + "\vannotations\x18\x01 \x03(\v2\x14.google.protobuf.AnyR\vannotations\x12.\n" + + "\x06grants\x18\x02 \x03(\v2\x16.c1.connector.v2.GrantR\x06grants\"\x92\x01\n" + + " GrantManagerServiceRevokeRequest\x126\n" + + "\x05grant\x18\x01 \x01(\v2\x16.c1.connector.v2.GrantB\b\xfaB\x05\x8a\x01\x02\x10\x01R\x05grant\x126\n" + + "\vannotations\x18\x02 \x03(\v2\x14.google.protobuf.AnyR\vannotations\"[\n" + + "!GrantManagerServiceRevokeResponse\x126\n" + + "\vannotations\x18\x01 \x03(\v2\x14.google.protobuf.AnyR\vannotations2\x80\x01\n" + + "\rGrantsService\x12o\n" + + "\n" + + "ListGrants\x12/.c1.connector.v2.GrantsServiceListGrantsRequest\x1a0.c1.connector.v2.GrantsServiceListGrantsResponse2\xf4\x01\n" + + "\x13GrantManagerService\x12l\n" + + "\x05Grant\x120.c1.connector.v2.GrantManagerServiceGrantRequest\x1a1.c1.connector.v2.GrantManagerServiceGrantResponse\x12o\n" + + "\x06Revoke\x121.c1.connector.v2.GrantManagerServiceRevokeRequest\x1a2.c1.connector.v2.GrantManagerServiceRevokeResponseB6Z4github.com/conductorone/baton-sdk/pb/c1/connector/v2b\x06proto3" var file_c1_connector_v2_grant_proto_msgTypes = make([]protoimpl.MessageInfo, 10) var file_c1_connector_v2_grant_proto_goTypes = []any{ diff --git a/vendor/github.com/conductorone/baton-sdk/pb/c1/connector/v2/grant.pb.validate.go b/vendor/github.com/conductorone/baton-sdk/pb/c1/connector/v2/grant.pb.validate.go index 7d252857..a66db3e1 100644 --- a/vendor/github.com/conductorone/baton-sdk/pb/c1/connector/v2/grant.pb.validate.go +++ b/vendor/github.com/conductorone/baton-sdk/pb/c1/connector/v2/grant.pb.validate.go @@ -558,6 +558,21 @@ func (m *GrantsServiceListGrantsRequest) validate(all bool) error { } + if m.GetActiveSyncId() != "" { + + if l := len(m.GetActiveSyncId()); l < 1 || l > 1024 { + err := GrantsServiceListGrantsRequestValidationError{ + field: "ActiveSyncId", + reason: "value length must be between 1 and 1024 bytes, inclusive", + } + if !all { + return err + } + errors = append(errors, err) + } + + } + if len(errors) > 0 { return GrantsServiceListGrantsRequestMultiError(errors) } diff --git a/vendor/github.com/conductorone/baton-sdk/pb/c1/connector/v2/grant_protoopaque.pb.go b/vendor/github.com/conductorone/baton-sdk/pb/c1/connector/v2/grant_protoopaque.pb.go new file mode 100644 index 00000000..2aa8d446 --- /dev/null +++ b/vendor/github.com/conductorone/baton-sdk/pb/c1/connector/v2/grant_protoopaque.pb.go @@ -0,0 +1,939 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.36.10 +// protoc (unknown) +// source: c1/connector/v2/grant.proto + +//go:build protoopaque + +package v2 + +import ( + _ "github.com/envoyproxy/protoc-gen-validate/validate" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + anypb "google.golang.org/protobuf/types/known/anypb" + reflect "reflect" + 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 GrantSources struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Sources map[string]*GrantSources_GrantSource `protobuf:"bytes,1,rep,name=sources,proto3" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *GrantSources) Reset() { + *x = GrantSources{} + mi := &file_c1_connector_v2_grant_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *GrantSources) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GrantSources) ProtoMessage() {} + +func (x *GrantSources) ProtoReflect() protoreflect.Message { + mi := &file_c1_connector_v2_grant_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) +} + +func (x *GrantSources) GetSources() map[string]*GrantSources_GrantSource { + if x != nil { + return x.xxx_hidden_Sources + } + return nil +} + +func (x *GrantSources) SetSources(v map[string]*GrantSources_GrantSource) { + x.xxx_hidden_Sources = v +} + +type GrantSources_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Sources map[string]*GrantSources_GrantSource +} + +func (b0 GrantSources_builder) Build() *GrantSources { + m0 := &GrantSources{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Sources = b.Sources + return m0 +} + +type Grant struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Entitlement *Entitlement `protobuf:"bytes,1,opt,name=entitlement,proto3"` + xxx_hidden_Principal *Resource `protobuf:"bytes,2,opt,name=principal,proto3"` + xxx_hidden_Id string `protobuf:"bytes,3,opt,name=id,proto3"` + xxx_hidden_Sources *GrantSources `protobuf:"bytes,5,opt,name=sources,proto3"` + xxx_hidden_Annotations *[]*anypb.Any `protobuf:"bytes,4,rep,name=annotations,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *Grant) Reset() { + *x = Grant{} + mi := &file_c1_connector_v2_grant_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *Grant) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Grant) ProtoMessage() {} + +func (x *Grant) ProtoReflect() protoreflect.Message { + mi := &file_c1_connector_v2_grant_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) +} + +func (x *Grant) GetEntitlement() *Entitlement { + if x != nil { + return x.xxx_hidden_Entitlement + } + return nil +} + +func (x *Grant) GetPrincipal() *Resource { + if x != nil { + return x.xxx_hidden_Principal + } + return nil +} + +func (x *Grant) GetId() string { + if x != nil { + return x.xxx_hidden_Id + } + return "" +} + +func (x *Grant) GetSources() *GrantSources { + if x != nil { + return x.xxx_hidden_Sources + } + return nil +} + +func (x *Grant) GetAnnotations() []*anypb.Any { + if x != nil { + if x.xxx_hidden_Annotations != nil { + return *x.xxx_hidden_Annotations + } + } + return nil +} + +func (x *Grant) SetEntitlement(v *Entitlement) { + x.xxx_hidden_Entitlement = v +} + +func (x *Grant) SetPrincipal(v *Resource) { + x.xxx_hidden_Principal = v +} + +func (x *Grant) SetId(v string) { + x.xxx_hidden_Id = v +} + +func (x *Grant) SetSources(v *GrantSources) { + x.xxx_hidden_Sources = v +} + +func (x *Grant) SetAnnotations(v []*anypb.Any) { + x.xxx_hidden_Annotations = &v +} + +func (x *Grant) HasEntitlement() bool { + if x == nil { + return false + } + return x.xxx_hidden_Entitlement != nil +} + +func (x *Grant) HasPrincipal() bool { + if x == nil { + return false + } + return x.xxx_hidden_Principal != nil +} + +func (x *Grant) HasSources() bool { + if x == nil { + return false + } + return x.xxx_hidden_Sources != nil +} + +func (x *Grant) ClearEntitlement() { + x.xxx_hidden_Entitlement = nil +} + +func (x *Grant) ClearPrincipal() { + x.xxx_hidden_Principal = nil +} + +func (x *Grant) ClearSources() { + x.xxx_hidden_Sources = nil +} + +type Grant_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Entitlement *Entitlement + Principal *Resource + Id string + Sources *GrantSources + Annotations []*anypb.Any +} + +func (b0 Grant_builder) Build() *Grant { + m0 := &Grant{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Entitlement = b.Entitlement + x.xxx_hidden_Principal = b.Principal + x.xxx_hidden_Id = b.Id + x.xxx_hidden_Sources = b.Sources + x.xxx_hidden_Annotations = &b.Annotations + return m0 +} + +type GrantsServiceListGrantsRequest struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Resource *Resource `protobuf:"bytes,1,opt,name=resource,proto3"` + xxx_hidden_PageSize uint32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3"` + xxx_hidden_PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3"` + xxx_hidden_Annotations *[]*anypb.Any `protobuf:"bytes,4,rep,name=annotations,proto3"` + xxx_hidden_ActiveSyncId string `protobuf:"bytes,5,opt,name=active_sync_id,json=activeSyncId,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *GrantsServiceListGrantsRequest) Reset() { + *x = GrantsServiceListGrantsRequest{} + mi := &file_c1_connector_v2_grant_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *GrantsServiceListGrantsRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GrantsServiceListGrantsRequest) ProtoMessage() {} + +func (x *GrantsServiceListGrantsRequest) ProtoReflect() protoreflect.Message { + mi := &file_c1_connector_v2_grant_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) +} + +func (x *GrantsServiceListGrantsRequest) GetResource() *Resource { + if x != nil { + return x.xxx_hidden_Resource + } + return nil +} + +func (x *GrantsServiceListGrantsRequest) GetPageSize() uint32 { + if x != nil { + return x.xxx_hidden_PageSize + } + return 0 +} + +func (x *GrantsServiceListGrantsRequest) GetPageToken() string { + if x != nil { + return x.xxx_hidden_PageToken + } + return "" +} + +func (x *GrantsServiceListGrantsRequest) GetAnnotations() []*anypb.Any { + if x != nil { + if x.xxx_hidden_Annotations != nil { + return *x.xxx_hidden_Annotations + } + } + return nil +} + +func (x *GrantsServiceListGrantsRequest) GetActiveSyncId() string { + if x != nil { + return x.xxx_hidden_ActiveSyncId + } + return "" +} + +func (x *GrantsServiceListGrantsRequest) SetResource(v *Resource) { + x.xxx_hidden_Resource = v +} + +func (x *GrantsServiceListGrantsRequest) SetPageSize(v uint32) { + x.xxx_hidden_PageSize = v +} + +func (x *GrantsServiceListGrantsRequest) SetPageToken(v string) { + x.xxx_hidden_PageToken = v +} + +func (x *GrantsServiceListGrantsRequest) SetAnnotations(v []*anypb.Any) { + x.xxx_hidden_Annotations = &v +} + +func (x *GrantsServiceListGrantsRequest) SetActiveSyncId(v string) { + x.xxx_hidden_ActiveSyncId = v +} + +func (x *GrantsServiceListGrantsRequest) HasResource() bool { + if x == nil { + return false + } + return x.xxx_hidden_Resource != nil +} + +func (x *GrantsServiceListGrantsRequest) ClearResource() { + x.xxx_hidden_Resource = nil +} + +type GrantsServiceListGrantsRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Resource *Resource + PageSize uint32 + PageToken string + Annotations []*anypb.Any + ActiveSyncId string +} + +func (b0 GrantsServiceListGrantsRequest_builder) Build() *GrantsServiceListGrantsRequest { + m0 := &GrantsServiceListGrantsRequest{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Resource = b.Resource + x.xxx_hidden_PageSize = b.PageSize + x.xxx_hidden_PageToken = b.PageToken + x.xxx_hidden_Annotations = &b.Annotations + x.xxx_hidden_ActiveSyncId = b.ActiveSyncId + return m0 +} + +type GrantsServiceListGrantsResponse struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_List *[]*Grant `protobuf:"bytes,1,rep,name=list,proto3"` + xxx_hidden_NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3"` + xxx_hidden_Annotations *[]*anypb.Any `protobuf:"bytes,3,rep,name=annotations,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *GrantsServiceListGrantsResponse) Reset() { + *x = GrantsServiceListGrantsResponse{} + mi := &file_c1_connector_v2_grant_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *GrantsServiceListGrantsResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GrantsServiceListGrantsResponse) ProtoMessage() {} + +func (x *GrantsServiceListGrantsResponse) ProtoReflect() protoreflect.Message { + mi := &file_c1_connector_v2_grant_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) +} + +func (x *GrantsServiceListGrantsResponse) GetList() []*Grant { + if x != nil { + if x.xxx_hidden_List != nil { + return *x.xxx_hidden_List + } + } + return nil +} + +func (x *GrantsServiceListGrantsResponse) GetNextPageToken() string { + if x != nil { + return x.xxx_hidden_NextPageToken + } + return "" +} + +func (x *GrantsServiceListGrantsResponse) GetAnnotations() []*anypb.Any { + if x != nil { + if x.xxx_hidden_Annotations != nil { + return *x.xxx_hidden_Annotations + } + } + return nil +} + +func (x *GrantsServiceListGrantsResponse) SetList(v []*Grant) { + x.xxx_hidden_List = &v +} + +func (x *GrantsServiceListGrantsResponse) SetNextPageToken(v string) { + x.xxx_hidden_NextPageToken = v +} + +func (x *GrantsServiceListGrantsResponse) SetAnnotations(v []*anypb.Any) { + x.xxx_hidden_Annotations = &v +} + +type GrantsServiceListGrantsResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + List []*Grant + NextPageToken string + Annotations []*anypb.Any +} + +func (b0 GrantsServiceListGrantsResponse_builder) Build() *GrantsServiceListGrantsResponse { + m0 := &GrantsServiceListGrantsResponse{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_List = &b.List + x.xxx_hidden_NextPageToken = b.NextPageToken + x.xxx_hidden_Annotations = &b.Annotations + return m0 +} + +type GrantManagerServiceGrantRequest struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Entitlement *Entitlement `protobuf:"bytes,1,opt,name=entitlement,proto3"` + xxx_hidden_Principal *Resource `protobuf:"bytes,2,opt,name=principal,proto3"` + xxx_hidden_Annotations *[]*anypb.Any `protobuf:"bytes,3,rep,name=annotations,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *GrantManagerServiceGrantRequest) Reset() { + *x = GrantManagerServiceGrantRequest{} + mi := &file_c1_connector_v2_grant_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *GrantManagerServiceGrantRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GrantManagerServiceGrantRequest) ProtoMessage() {} + +func (x *GrantManagerServiceGrantRequest) ProtoReflect() protoreflect.Message { + mi := &file_c1_connector_v2_grant_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) +} + +func (x *GrantManagerServiceGrantRequest) GetEntitlement() *Entitlement { + if x != nil { + return x.xxx_hidden_Entitlement + } + return nil +} + +func (x *GrantManagerServiceGrantRequest) GetPrincipal() *Resource { + if x != nil { + return x.xxx_hidden_Principal + } + return nil +} + +func (x *GrantManagerServiceGrantRequest) GetAnnotations() []*anypb.Any { + if x != nil { + if x.xxx_hidden_Annotations != nil { + return *x.xxx_hidden_Annotations + } + } + return nil +} + +func (x *GrantManagerServiceGrantRequest) SetEntitlement(v *Entitlement) { + x.xxx_hidden_Entitlement = v +} + +func (x *GrantManagerServiceGrantRequest) SetPrincipal(v *Resource) { + x.xxx_hidden_Principal = v +} + +func (x *GrantManagerServiceGrantRequest) SetAnnotations(v []*anypb.Any) { + x.xxx_hidden_Annotations = &v +} + +func (x *GrantManagerServiceGrantRequest) HasEntitlement() bool { + if x == nil { + return false + } + return x.xxx_hidden_Entitlement != nil +} + +func (x *GrantManagerServiceGrantRequest) HasPrincipal() bool { + if x == nil { + return false + } + return x.xxx_hidden_Principal != nil +} + +func (x *GrantManagerServiceGrantRequest) ClearEntitlement() { + x.xxx_hidden_Entitlement = nil +} + +func (x *GrantManagerServiceGrantRequest) ClearPrincipal() { + x.xxx_hidden_Principal = nil +} + +type GrantManagerServiceGrantRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Entitlement *Entitlement + Principal *Resource + Annotations []*anypb.Any +} + +func (b0 GrantManagerServiceGrantRequest_builder) Build() *GrantManagerServiceGrantRequest { + m0 := &GrantManagerServiceGrantRequest{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Entitlement = b.Entitlement + x.xxx_hidden_Principal = b.Principal + x.xxx_hidden_Annotations = &b.Annotations + return m0 +} + +type GrantManagerServiceGrantResponse struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Annotations *[]*anypb.Any `protobuf:"bytes,1,rep,name=annotations,proto3"` + xxx_hidden_Grants *[]*Grant `protobuf:"bytes,2,rep,name=grants,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *GrantManagerServiceGrantResponse) Reset() { + *x = GrantManagerServiceGrantResponse{} + mi := &file_c1_connector_v2_grant_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *GrantManagerServiceGrantResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GrantManagerServiceGrantResponse) ProtoMessage() {} + +func (x *GrantManagerServiceGrantResponse) ProtoReflect() protoreflect.Message { + mi := &file_c1_connector_v2_grant_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) +} + +func (x *GrantManagerServiceGrantResponse) GetAnnotations() []*anypb.Any { + if x != nil { + if x.xxx_hidden_Annotations != nil { + return *x.xxx_hidden_Annotations + } + } + return nil +} + +func (x *GrantManagerServiceGrantResponse) GetGrants() []*Grant { + if x != nil { + if x.xxx_hidden_Grants != nil { + return *x.xxx_hidden_Grants + } + } + return nil +} + +func (x *GrantManagerServiceGrantResponse) SetAnnotations(v []*anypb.Any) { + x.xxx_hidden_Annotations = &v +} + +func (x *GrantManagerServiceGrantResponse) SetGrants(v []*Grant) { + x.xxx_hidden_Grants = &v +} + +type GrantManagerServiceGrantResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Annotations []*anypb.Any + Grants []*Grant +} + +func (b0 GrantManagerServiceGrantResponse_builder) Build() *GrantManagerServiceGrantResponse { + m0 := &GrantManagerServiceGrantResponse{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Annotations = &b.Annotations + x.xxx_hidden_Grants = &b.Grants + return m0 +} + +type GrantManagerServiceRevokeRequest struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Grant *Grant `protobuf:"bytes,1,opt,name=grant,proto3"` + xxx_hidden_Annotations *[]*anypb.Any `protobuf:"bytes,2,rep,name=annotations,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *GrantManagerServiceRevokeRequest) Reset() { + *x = GrantManagerServiceRevokeRequest{} + mi := &file_c1_connector_v2_grant_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *GrantManagerServiceRevokeRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GrantManagerServiceRevokeRequest) ProtoMessage() {} + +func (x *GrantManagerServiceRevokeRequest) ProtoReflect() protoreflect.Message { + mi := &file_c1_connector_v2_grant_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) +} + +func (x *GrantManagerServiceRevokeRequest) GetGrant() *Grant { + if x != nil { + return x.xxx_hidden_Grant + } + return nil +} + +func (x *GrantManagerServiceRevokeRequest) GetAnnotations() []*anypb.Any { + if x != nil { + if x.xxx_hidden_Annotations != nil { + return *x.xxx_hidden_Annotations + } + } + return nil +} + +func (x *GrantManagerServiceRevokeRequest) SetGrant(v *Grant) { + x.xxx_hidden_Grant = v +} + +func (x *GrantManagerServiceRevokeRequest) SetAnnotations(v []*anypb.Any) { + x.xxx_hidden_Annotations = &v +} + +func (x *GrantManagerServiceRevokeRequest) HasGrant() bool { + if x == nil { + return false + } + return x.xxx_hidden_Grant != nil +} + +func (x *GrantManagerServiceRevokeRequest) ClearGrant() { + x.xxx_hidden_Grant = nil +} + +type GrantManagerServiceRevokeRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Grant *Grant + Annotations []*anypb.Any +} + +func (b0 GrantManagerServiceRevokeRequest_builder) Build() *GrantManagerServiceRevokeRequest { + m0 := &GrantManagerServiceRevokeRequest{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Grant = b.Grant + x.xxx_hidden_Annotations = &b.Annotations + return m0 +} + +type GrantManagerServiceRevokeResponse struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Annotations *[]*anypb.Any `protobuf:"bytes,1,rep,name=annotations,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *GrantManagerServiceRevokeResponse) Reset() { + *x = GrantManagerServiceRevokeResponse{} + mi := &file_c1_connector_v2_grant_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *GrantManagerServiceRevokeResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GrantManagerServiceRevokeResponse) ProtoMessage() {} + +func (x *GrantManagerServiceRevokeResponse) ProtoReflect() protoreflect.Message { + mi := &file_c1_connector_v2_grant_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) +} + +func (x *GrantManagerServiceRevokeResponse) GetAnnotations() []*anypb.Any { + if x != nil { + if x.xxx_hidden_Annotations != nil { + return *x.xxx_hidden_Annotations + } + } + return nil +} + +func (x *GrantManagerServiceRevokeResponse) SetAnnotations(v []*anypb.Any) { + x.xxx_hidden_Annotations = &v +} + +type GrantManagerServiceRevokeResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Annotations []*anypb.Any +} + +func (b0 GrantManagerServiceRevokeResponse_builder) Build() *GrantManagerServiceRevokeResponse { + m0 := &GrantManagerServiceRevokeResponse{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Annotations = &b.Annotations + return m0 +} + +type GrantSources_GrantSource struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *GrantSources_GrantSource) Reset() { + *x = GrantSources_GrantSource{} + mi := &file_c1_connector_v2_grant_proto_msgTypes[8] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *GrantSources_GrantSource) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GrantSources_GrantSource) ProtoMessage() {} + +func (x *GrantSources_GrantSource) ProtoReflect() protoreflect.Message { + mi := &file_c1_connector_v2_grant_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) +} + +type GrantSources_GrantSource_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + +} + +func (b0 GrantSources_GrantSource_builder) Build() *GrantSources_GrantSource { + m0 := &GrantSources_GrantSource{} + b, x := &b0, m0 + _, _ = b, x + return m0 +} + +var File_c1_connector_v2_grant_proto protoreflect.FileDescriptor + +const file_c1_connector_v2_grant_proto_rawDesc = "" + + "\n" + + "\x1bc1/connector/v2/grant.proto\x12\x0fc1.connector.v2\x1a!c1/connector/v2/entitlement.proto\x1a\x1ec1/connector/v2/resource.proto\x1a\x19google/protobuf/any.proto\x1a\x17validate/validate.proto\"\xca\x01\n" + + "\fGrantSources\x12D\n" + + "\asources\x18\x01 \x03(\v2*.c1.connector.v2.GrantSources.SourcesEntryR\asources\x1a\r\n" + + "\vGrantSource\x1ae\n" + + "\fSourcesEntry\x12\x10\n" + + "\x03key\x18\x01 \x01(\tR\x03key\x12?\n" + + "\x05value\x18\x02 \x01(\v2).c1.connector.v2.GrantSources.GrantSourceR\x05value:\x028\x01\"\xab\x02\n" + + "\x05Grant\x12H\n" + + "\ventitlement\x18\x01 \x01(\v2\x1c.c1.connector.v2.EntitlementB\b\xfaB\x05\x8a\x01\x02\x10\x01R\ventitlement\x12A\n" + + "\tprincipal\x18\x02 \x01(\v2\x19.c1.connector.v2.ResourceB\b\xfaB\x05\x8a\x01\x02\x10\x01R\tprincipal\x12\x1a\n" + + "\x02id\x18\x03 \x01(\tB\n" + + "\xfaB\ar\x05 \x01(\x80\bR\x02id\x12A\n" + + "\asources\x18\x05 \x01(\v2\x1d.c1.connector.v2.GrantSourcesB\b\xfaB\x05\x8a\x01\x02\x10\x00R\asources\x126\n" + + "\vannotations\x18\x04 \x03(\v2\x14.google.protobuf.AnyR\vannotations\"\xa6\x02\n" + + "\x1eGrantsServiceListGrantsRequest\x12?\n" + + "\bresource\x18\x01 \x01(\v2\x19.c1.connector.v2.ResourceB\b\xfaB\x05\x8a\x01\x02\x10\x01R\bresource\x12'\n" + + "\tpage_size\x18\x02 \x01(\rB\n" + + "\xfaB\a*\x05\x18\xfa\x01@\x01R\bpageSize\x12-\n" + + "\n" + + "page_token\x18\x03 \x01(\tB\x0e\xfaB\vr\t \x01(\x80\x80@\xd0\x01\x01R\tpageToken\x126\n" + + "\vannotations\x18\x04 \x03(\v2\x14.google.protobuf.AnyR\vannotations\x123\n" + + "\x0eactive_sync_id\x18\x05 \x01(\tB\r\xfaB\n" + + "r\b \x01(\x80\b\xd0\x01\x01R\factiveSyncId\"\xbd\x01\n" + + "\x1fGrantsServiceListGrantsResponse\x12*\n" + + "\x04list\x18\x01 \x03(\v2\x16.c1.connector.v2.GrantR\x04list\x126\n" + + "\x0fnext_page_token\x18\x02 \x01(\tB\x0e\xfaB\vr\t \x01(\x80\x80@\xd0\x01\x01R\rnextPageToken\x126\n" + + "\vannotations\x18\x03 \x03(\v2\x14.google.protobuf.AnyR\vannotations\"\xe6\x01\n" + + "\x1fGrantManagerServiceGrantRequest\x12H\n" + + "\ventitlement\x18\x01 \x01(\v2\x1c.c1.connector.v2.EntitlementB\b\xfaB\x05\x8a\x01\x02\x10\x01R\ventitlement\x12A\n" + + "\tprincipal\x18\x02 \x01(\v2\x19.c1.connector.v2.ResourceB\b\xfaB\x05\x8a\x01\x02\x10\x01R\tprincipal\x126\n" + + "\vannotations\x18\x03 \x03(\v2\x14.google.protobuf.AnyR\vannotations\"\x8a\x01\n" + + " GrantManagerServiceGrantResponse\x126\n" + + "\vannotations\x18\x01 \x03(\v2\x14.google.protobuf.AnyR\vannotations\x12.\n" + + "\x06grants\x18\x02 \x03(\v2\x16.c1.connector.v2.GrantR\x06grants\"\x92\x01\n" + + " GrantManagerServiceRevokeRequest\x126\n" + + "\x05grant\x18\x01 \x01(\v2\x16.c1.connector.v2.GrantB\b\xfaB\x05\x8a\x01\x02\x10\x01R\x05grant\x126\n" + + "\vannotations\x18\x02 \x03(\v2\x14.google.protobuf.AnyR\vannotations\"[\n" + + "!GrantManagerServiceRevokeResponse\x126\n" + + "\vannotations\x18\x01 \x03(\v2\x14.google.protobuf.AnyR\vannotations2\x80\x01\n" + + "\rGrantsService\x12o\n" + + "\n" + + "ListGrants\x12/.c1.connector.v2.GrantsServiceListGrantsRequest\x1a0.c1.connector.v2.GrantsServiceListGrantsResponse2\xf4\x01\n" + + "\x13GrantManagerService\x12l\n" + + "\x05Grant\x120.c1.connector.v2.GrantManagerServiceGrantRequest\x1a1.c1.connector.v2.GrantManagerServiceGrantResponse\x12o\n" + + "\x06Revoke\x121.c1.connector.v2.GrantManagerServiceRevokeRequest\x1a2.c1.connector.v2.GrantManagerServiceRevokeResponseB6Z4github.com/conductorone/baton-sdk/pb/c1/connector/v2b\x06proto3" + +var file_c1_connector_v2_grant_proto_msgTypes = make([]protoimpl.MessageInfo, 10) +var file_c1_connector_v2_grant_proto_goTypes = []any{ + (*GrantSources)(nil), // 0: c1.connector.v2.GrantSources + (*Grant)(nil), // 1: c1.connector.v2.Grant + (*GrantsServiceListGrantsRequest)(nil), // 2: c1.connector.v2.GrantsServiceListGrantsRequest + (*GrantsServiceListGrantsResponse)(nil), // 3: c1.connector.v2.GrantsServiceListGrantsResponse + (*GrantManagerServiceGrantRequest)(nil), // 4: c1.connector.v2.GrantManagerServiceGrantRequest + (*GrantManagerServiceGrantResponse)(nil), // 5: c1.connector.v2.GrantManagerServiceGrantResponse + (*GrantManagerServiceRevokeRequest)(nil), // 6: c1.connector.v2.GrantManagerServiceRevokeRequest + (*GrantManagerServiceRevokeResponse)(nil), // 7: c1.connector.v2.GrantManagerServiceRevokeResponse + (*GrantSources_GrantSource)(nil), // 8: c1.connector.v2.GrantSources.GrantSource + nil, // 9: c1.connector.v2.GrantSources.SourcesEntry + (*Entitlement)(nil), // 10: c1.connector.v2.Entitlement + (*Resource)(nil), // 11: c1.connector.v2.Resource + (*anypb.Any)(nil), // 12: google.protobuf.Any +} +var file_c1_connector_v2_grant_proto_depIdxs = []int32{ + 9, // 0: c1.connector.v2.GrantSources.sources:type_name -> c1.connector.v2.GrantSources.SourcesEntry + 10, // 1: c1.connector.v2.Grant.entitlement:type_name -> c1.connector.v2.Entitlement + 11, // 2: c1.connector.v2.Grant.principal:type_name -> c1.connector.v2.Resource + 0, // 3: c1.connector.v2.Grant.sources:type_name -> c1.connector.v2.GrantSources + 12, // 4: c1.connector.v2.Grant.annotations:type_name -> google.protobuf.Any + 11, // 5: c1.connector.v2.GrantsServiceListGrantsRequest.resource:type_name -> c1.connector.v2.Resource + 12, // 6: c1.connector.v2.GrantsServiceListGrantsRequest.annotations:type_name -> google.protobuf.Any + 1, // 7: c1.connector.v2.GrantsServiceListGrantsResponse.list:type_name -> c1.connector.v2.Grant + 12, // 8: c1.connector.v2.GrantsServiceListGrantsResponse.annotations:type_name -> google.protobuf.Any + 10, // 9: c1.connector.v2.GrantManagerServiceGrantRequest.entitlement:type_name -> c1.connector.v2.Entitlement + 11, // 10: c1.connector.v2.GrantManagerServiceGrantRequest.principal:type_name -> c1.connector.v2.Resource + 12, // 11: c1.connector.v2.GrantManagerServiceGrantRequest.annotations:type_name -> google.protobuf.Any + 12, // 12: c1.connector.v2.GrantManagerServiceGrantResponse.annotations:type_name -> google.protobuf.Any + 1, // 13: c1.connector.v2.GrantManagerServiceGrantResponse.grants:type_name -> c1.connector.v2.Grant + 1, // 14: c1.connector.v2.GrantManagerServiceRevokeRequest.grant:type_name -> c1.connector.v2.Grant + 12, // 15: c1.connector.v2.GrantManagerServiceRevokeRequest.annotations:type_name -> google.protobuf.Any + 12, // 16: c1.connector.v2.GrantManagerServiceRevokeResponse.annotations:type_name -> google.protobuf.Any + 8, // 17: c1.connector.v2.GrantSources.SourcesEntry.value:type_name -> c1.connector.v2.GrantSources.GrantSource + 2, // 18: c1.connector.v2.GrantsService.ListGrants:input_type -> c1.connector.v2.GrantsServiceListGrantsRequest + 4, // 19: c1.connector.v2.GrantManagerService.Grant:input_type -> c1.connector.v2.GrantManagerServiceGrantRequest + 6, // 20: c1.connector.v2.GrantManagerService.Revoke:input_type -> c1.connector.v2.GrantManagerServiceRevokeRequest + 3, // 21: c1.connector.v2.GrantsService.ListGrants:output_type -> c1.connector.v2.GrantsServiceListGrantsResponse + 5, // 22: c1.connector.v2.GrantManagerService.Grant:output_type -> c1.connector.v2.GrantManagerServiceGrantResponse + 7, // 23: c1.connector.v2.GrantManagerService.Revoke:output_type -> c1.connector.v2.GrantManagerServiceRevokeResponse + 21, // [21:24] is the sub-list for method output_type + 18, // [18:21] is the sub-list for method input_type + 18, // [18:18] is the sub-list for extension type_name + 18, // [18:18] is the sub-list for extension extendee + 0, // [0:18] is the sub-list for field type_name +} + +func init() { file_c1_connector_v2_grant_proto_init() } +func file_c1_connector_v2_grant_proto_init() { + if File_c1_connector_v2_grant_proto != nil { + return + } + file_c1_connector_v2_entitlement_proto_init() + file_c1_connector_v2_resource_proto_init() + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: unsafe.Slice(unsafe.StringData(file_c1_connector_v2_grant_proto_rawDesc), len(file_c1_connector_v2_grant_proto_rawDesc)), + NumEnums: 0, + NumMessages: 10, + NumExtensions: 0, + NumServices: 2, + }, + GoTypes: file_c1_connector_v2_grant_proto_goTypes, + DependencyIndexes: file_c1_connector_v2_grant_proto_depIdxs, + MessageInfos: file_c1_connector_v2_grant_proto_msgTypes, + }.Build() + File_c1_connector_v2_grant_proto = out.File + file_c1_connector_v2_grant_proto_goTypes = nil + file_c1_connector_v2_grant_proto_depIdxs = nil +} diff --git a/vendor/github.com/conductorone/baton-sdk/pb/c1/connector/v2/resource.pb.go b/vendor/github.com/conductorone/baton-sdk/pb/c1/connector/v2/resource.pb.go index 27a761c5..e86d89c8 100644 --- a/vendor/github.com/conductorone/baton-sdk/pb/c1/connector/v2/resource.pb.go +++ b/vendor/github.com/conductorone/baton-sdk/pb/c1/connector/v2/resource.pb.go @@ -1,9 +1,11 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.36.4 +// protoc-gen-go v1.36.10 // protoc (unknown) // source: c1/connector/v2/resource.proto +//go:build !protoopaque + package v2 import ( @@ -13,7 +15,6 @@ import ( anypb "google.golang.org/protobuf/types/known/anypb" structpb "google.golang.org/protobuf/types/known/structpb" reflect "reflect" - sync "sync" unsafe "unsafe" ) @@ -27,12 +28,13 @@ const ( type ResourceType_Trait int32 const ( - ResourceType_TRAIT_UNSPECIFIED ResourceType_Trait = 0 - ResourceType_TRAIT_USER ResourceType_Trait = 1 - ResourceType_TRAIT_GROUP ResourceType_Trait = 2 - ResourceType_TRAIT_ROLE ResourceType_Trait = 3 - ResourceType_TRAIT_APP ResourceType_Trait = 4 - ResourceType_TRAIT_SECRET ResourceType_Trait = 5 + ResourceType_TRAIT_UNSPECIFIED ResourceType_Trait = 0 + ResourceType_TRAIT_USER ResourceType_Trait = 1 + ResourceType_TRAIT_GROUP ResourceType_Trait = 2 + ResourceType_TRAIT_ROLE ResourceType_Trait = 3 + ResourceType_TRAIT_APP ResourceType_Trait = 4 + ResourceType_TRAIT_SECRET ResourceType_Trait = 5 + ResourceType_TRAIT_SECURITY_INSIGHT ResourceType_Trait = 6 ) // Enum value maps for ResourceType_Trait. @@ -44,14 +46,16 @@ var ( 3: "TRAIT_ROLE", 4: "TRAIT_APP", 5: "TRAIT_SECRET", + 6: "TRAIT_SECURITY_INSIGHT", } ResourceType_Trait_value = map[string]int32{ - "TRAIT_UNSPECIFIED": 0, - "TRAIT_USER": 1, - "TRAIT_GROUP": 2, - "TRAIT_ROLE": 3, - "TRAIT_APP": 4, - "TRAIT_SECRET": 5, + "TRAIT_UNSPECIFIED": 0, + "TRAIT_USER": 1, + "TRAIT_GROUP": 2, + "TRAIT_ROLE": 3, + "TRAIT_APP": 4, + "TRAIT_SECRET": 5, + "TRAIT_SECURITY_INSIGHT": 6, } ) @@ -77,11 +81,6 @@ func (x ResourceType_Trait) Number() protoreflect.EnumNumber { return protoreflect.EnumNumber(x) } -// Deprecated: Use ResourceType_Trait.Descriptor instead. -func (ResourceType_Trait) EnumDescriptor() ([]byte, []int) { - return file_c1_connector_v2_resource_proto_rawDescGZIP(), []int{0, 0} -} - // FIXME(mstanbCO): call this something else? Should it just be a bool? Possibly just use an annotation? type Resource_CreationSource int32 @@ -127,13 +126,8 @@ func (x Resource_CreationSource) Number() protoreflect.EnumNumber { return protoreflect.EnumNumber(x) } -// Deprecated: Use Resource_CreationSource.Descriptor instead. -func (Resource_CreationSource) EnumDescriptor() ([]byte, []int) { - return file_c1_connector_v2_resource_proto_rawDescGZIP(), []int{21, 0} -} - type ResourceType struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` DisplayName string `protobuf:"bytes,2,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"` Traits []ResourceType_Trait `protobuf:"varint,3,rep,packed,name=traits,proto3,enum=c1.connector.v2.ResourceType_Trait" json:"traits,omitempty"` @@ -169,11 +163,6 @@ func (x *ResourceType) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use ResourceType.ProtoReflect.Descriptor instead. -func (*ResourceType) Descriptor() ([]byte, []int) { - return file_c1_connector_v2_resource_proto_rawDescGZIP(), []int{0} -} - func (x *ResourceType) GetId() string { if x != nil { return x.Id @@ -216,12 +205,61 @@ func (x *ResourceType) GetSourcedExternally() bool { return false } +func (x *ResourceType) SetId(v string) { + x.Id = v +} + +func (x *ResourceType) SetDisplayName(v string) { + x.DisplayName = v +} + +func (x *ResourceType) SetTraits(v []ResourceType_Trait) { + x.Traits = v +} + +func (x *ResourceType) SetAnnotations(v []*anypb.Any) { + x.Annotations = v +} + +func (x *ResourceType) SetDescription(v string) { + x.Description = v +} + +func (x *ResourceType) SetSourcedExternally(v bool) { + x.SourcedExternally = v +} + +type ResourceType_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Id string + DisplayName string + Traits []ResourceType_Trait + Annotations []*anypb.Any + Description string + SourcedExternally bool +} + +func (b0 ResourceType_builder) Build() *ResourceType { + m0 := &ResourceType{} + b, x := &b0, m0 + _, _ = b, x + x.Id = b.Id + x.DisplayName = b.DisplayName + x.Traits = b.Traits + x.Annotations = b.Annotations + x.Description = b.Description + x.SourcedExternally = b.SourcedExternally + return m0 +} + type ResourceTypesServiceListResourceTypesRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` Parent *Resource `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"` PageSize uint32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"` Annotations []*anypb.Any `protobuf:"bytes,4,rep,name=annotations,proto3" json:"annotations,omitempty"` + ActiveSyncId string `protobuf:"bytes,5,opt,name=active_sync_id,json=activeSyncId,proto3" json:"active_sync_id,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } @@ -251,11 +289,6 @@ func (x *ResourceTypesServiceListResourceTypesRequest) ProtoReflect() protorefle return mi.MessageOf(x) } -// Deprecated: Use ResourceTypesServiceListResourceTypesRequest.ProtoReflect.Descriptor instead. -func (*ResourceTypesServiceListResourceTypesRequest) Descriptor() ([]byte, []int) { - return file_c1_connector_v2_resource_proto_rawDescGZIP(), []int{1} -} - func (x *ResourceTypesServiceListResourceTypesRequest) GetParent() *Resource { if x != nil { return x.Parent @@ -284,8 +317,68 @@ func (x *ResourceTypesServiceListResourceTypesRequest) GetAnnotations() []*anypb return nil } +func (x *ResourceTypesServiceListResourceTypesRequest) GetActiveSyncId() string { + if x != nil { + return x.ActiveSyncId + } + return "" +} + +func (x *ResourceTypesServiceListResourceTypesRequest) SetParent(v *Resource) { + x.Parent = v +} + +func (x *ResourceTypesServiceListResourceTypesRequest) SetPageSize(v uint32) { + x.PageSize = v +} + +func (x *ResourceTypesServiceListResourceTypesRequest) SetPageToken(v string) { + x.PageToken = v +} + +func (x *ResourceTypesServiceListResourceTypesRequest) SetAnnotations(v []*anypb.Any) { + x.Annotations = v +} + +func (x *ResourceTypesServiceListResourceTypesRequest) SetActiveSyncId(v string) { + x.ActiveSyncId = v +} + +func (x *ResourceTypesServiceListResourceTypesRequest) HasParent() bool { + if x == nil { + return false + } + return x.Parent != nil +} + +func (x *ResourceTypesServiceListResourceTypesRequest) ClearParent() { + x.Parent = nil +} + +type ResourceTypesServiceListResourceTypesRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Parent *Resource + PageSize uint32 + PageToken string + Annotations []*anypb.Any + ActiveSyncId string +} + +func (b0 ResourceTypesServiceListResourceTypesRequest_builder) Build() *ResourceTypesServiceListResourceTypesRequest { + m0 := &ResourceTypesServiceListResourceTypesRequest{} + b, x := &b0, m0 + _, _ = b, x + x.Parent = b.Parent + x.PageSize = b.PageSize + x.PageToken = b.PageToken + x.Annotations = b.Annotations + x.ActiveSyncId = b.ActiveSyncId + return m0 +} + type ResourceTypesServiceListResourceTypesResponse struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` List []*ResourceType `protobuf:"bytes,1,rep,name=list,proto3" json:"list,omitempty"` NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` Annotations []*anypb.Any `protobuf:"bytes,3,rep,name=annotations,proto3" json:"annotations,omitempty"` @@ -318,11 +411,6 @@ func (x *ResourceTypesServiceListResourceTypesResponse) ProtoReflect() protorefl return mi.MessageOf(x) } -// Deprecated: Use ResourceTypesServiceListResourceTypesResponse.ProtoReflect.Descriptor instead. -func (*ResourceTypesServiceListResourceTypesResponse) Descriptor() ([]byte, []int) { - return file_c1_connector_v2_resource_proto_rawDescGZIP(), []int{2} -} - func (x *ResourceTypesServiceListResourceTypesResponse) GetList() []*ResourceType { if x != nil { return x.List @@ -344,8 +432,38 @@ func (x *ResourceTypesServiceListResourceTypesResponse) GetAnnotations() []*anyp return nil } +func (x *ResourceTypesServiceListResourceTypesResponse) SetList(v []*ResourceType) { + x.List = v +} + +func (x *ResourceTypesServiceListResourceTypesResponse) SetNextPageToken(v string) { + x.NextPageToken = v +} + +func (x *ResourceTypesServiceListResourceTypesResponse) SetAnnotations(v []*anypb.Any) { + x.Annotations = v +} + +type ResourceTypesServiceListResourceTypesResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + List []*ResourceType + NextPageToken string + Annotations []*anypb.Any +} + +func (b0 ResourceTypesServiceListResourceTypesResponse_builder) Build() *ResourceTypesServiceListResourceTypesResponse { + m0 := &ResourceTypesServiceListResourceTypesResponse{} + b, x := &b0, m0 + _, _ = b, x + x.List = b.List + x.NextPageToken = b.NextPageToken + x.Annotations = b.Annotations + return m0 +} + type CreateResourceRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` Resource *Resource `protobuf:"bytes,1,opt,name=resource,proto3" json:"resource,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache @@ -376,11 +494,6 @@ func (x *CreateResourceRequest) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use CreateResourceRequest.ProtoReflect.Descriptor instead. -func (*CreateResourceRequest) Descriptor() ([]byte, []int) { - return file_c1_connector_v2_resource_proto_rawDescGZIP(), []int{3} -} - func (x *CreateResourceRequest) GetResource() *Resource { if x != nil { return x.Resource @@ -388,8 +501,37 @@ func (x *CreateResourceRequest) GetResource() *Resource { return nil } +func (x *CreateResourceRequest) SetResource(v *Resource) { + x.Resource = v +} + +func (x *CreateResourceRequest) HasResource() bool { + if x == nil { + return false + } + return x.Resource != nil +} + +func (x *CreateResourceRequest) ClearResource() { + x.Resource = nil +} + +type CreateResourceRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Resource *Resource +} + +func (b0 CreateResourceRequest_builder) Build() *CreateResourceRequest { + m0 := &CreateResourceRequest{} + b, x := &b0, m0 + _, _ = b, x + x.Resource = b.Resource + return m0 +} + type CreateResourceResponse struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` Created *Resource `protobuf:"bytes,1,opt,name=created,proto3" json:"created,omitempty"` Annotations []*anypb.Any `protobuf:"bytes,2,rep,name=annotations,proto3" json:"annotations,omitempty"` unknownFields protoimpl.UnknownFields @@ -421,11 +563,6 @@ func (x *CreateResourceResponse) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use CreateResourceResponse.ProtoReflect.Descriptor instead. -func (*CreateResourceResponse) Descriptor() ([]byte, []int) { - return file_c1_connector_v2_resource_proto_rawDescGZIP(), []int{4} -} - func (x *CreateResourceResponse) GetCreated() *Resource { if x != nil { return x.Created @@ -440,8 +577,43 @@ func (x *CreateResourceResponse) GetAnnotations() []*anypb.Any { return nil } +func (x *CreateResourceResponse) SetCreated(v *Resource) { + x.Created = v +} + +func (x *CreateResourceResponse) SetAnnotations(v []*anypb.Any) { + x.Annotations = v +} + +func (x *CreateResourceResponse) HasCreated() bool { + if x == nil { + return false + } + return x.Created != nil +} + +func (x *CreateResourceResponse) ClearCreated() { + x.Created = nil +} + +type CreateResourceResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Created *Resource + Annotations []*anypb.Any +} + +func (b0 CreateResourceResponse_builder) Build() *CreateResourceResponse { + m0 := &CreateResourceResponse{} + b, x := &b0, m0 + _, _ = b, x + x.Created = b.Created + x.Annotations = b.Annotations + return m0 +} + type DeleteResourceRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` ResourceId *ResourceId `protobuf:"bytes,1,opt,name=resource_id,json=resourceId,proto3" json:"resource_id,omitempty"` ParentResourceId *ResourceId `protobuf:"bytes,2,opt,name=parent_resource_id,json=parentResourceId,proto3" json:"parent_resource_id,omitempty"` unknownFields protoimpl.UnknownFields @@ -473,11 +645,6 @@ func (x *DeleteResourceRequest) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use DeleteResourceRequest.ProtoReflect.Descriptor instead. -func (*DeleteResourceRequest) Descriptor() ([]byte, []int) { - return file_c1_connector_v2_resource_proto_rawDescGZIP(), []int{5} -} - func (x *DeleteResourceRequest) GetResourceId() *ResourceId { if x != nil { return x.ResourceId @@ -492,8 +659,54 @@ func (x *DeleteResourceRequest) GetParentResourceId() *ResourceId { return nil } +func (x *DeleteResourceRequest) SetResourceId(v *ResourceId) { + x.ResourceId = v +} + +func (x *DeleteResourceRequest) SetParentResourceId(v *ResourceId) { + x.ParentResourceId = v +} + +func (x *DeleteResourceRequest) HasResourceId() bool { + if x == nil { + return false + } + return x.ResourceId != nil +} + +func (x *DeleteResourceRequest) HasParentResourceId() bool { + if x == nil { + return false + } + return x.ParentResourceId != nil +} + +func (x *DeleteResourceRequest) ClearResourceId() { + x.ResourceId = nil +} + +func (x *DeleteResourceRequest) ClearParentResourceId() { + x.ParentResourceId = nil +} + +type DeleteResourceRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + ResourceId *ResourceId + ParentResourceId *ResourceId +} + +func (b0 DeleteResourceRequest_builder) Build() *DeleteResourceRequest { + m0 := &DeleteResourceRequest{} + b, x := &b0, m0 + _, _ = b, x + x.ResourceId = b.ResourceId + x.ParentResourceId = b.ParentResourceId + return m0 +} + type DeleteResourceResponse struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` Annotations []*anypb.Any `protobuf:"bytes,1,rep,name=annotations,proto3" json:"annotations,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache @@ -524,11 +737,6 @@ func (x *DeleteResourceResponse) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use DeleteResourceResponse.ProtoReflect.Descriptor instead. -func (*DeleteResourceResponse) Descriptor() ([]byte, []int) { - return file_c1_connector_v2_resource_proto_rawDescGZIP(), []int{6} -} - func (x *DeleteResourceResponse) GetAnnotations() []*anypb.Any { if x != nil { return x.Annotations @@ -536,8 +744,26 @@ func (x *DeleteResourceResponse) GetAnnotations() []*anypb.Any { return nil } +func (x *DeleteResourceResponse) SetAnnotations(v []*anypb.Any) { + x.Annotations = v +} + +type DeleteResourceResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Annotations []*anypb.Any +} + +func (b0 DeleteResourceResponse_builder) Build() *DeleteResourceResponse { + m0 := &DeleteResourceResponse{} + b, x := &b0, m0 + _, _ = b, x + x.Annotations = b.Annotations + return m0 +} + type DeleteResourceV2Request struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` ResourceId *ResourceId `protobuf:"bytes,1,opt,name=resource_id,json=resourceId,proto3" json:"resource_id,omitempty"` ParentResourceId *ResourceId `protobuf:"bytes,2,opt,name=parent_resource_id,json=parentResourceId,proto3" json:"parent_resource_id,omitempty"` unknownFields protoimpl.UnknownFields @@ -569,11 +795,6 @@ func (x *DeleteResourceV2Request) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use DeleteResourceV2Request.ProtoReflect.Descriptor instead. -func (*DeleteResourceV2Request) Descriptor() ([]byte, []int) { - return file_c1_connector_v2_resource_proto_rawDescGZIP(), []int{7} -} - func (x *DeleteResourceV2Request) GetResourceId() *ResourceId { if x != nil { return x.ResourceId @@ -588,8 +809,54 @@ func (x *DeleteResourceV2Request) GetParentResourceId() *ResourceId { return nil } +func (x *DeleteResourceV2Request) SetResourceId(v *ResourceId) { + x.ResourceId = v +} + +func (x *DeleteResourceV2Request) SetParentResourceId(v *ResourceId) { + x.ParentResourceId = v +} + +func (x *DeleteResourceV2Request) HasResourceId() bool { + if x == nil { + return false + } + return x.ResourceId != nil +} + +func (x *DeleteResourceV2Request) HasParentResourceId() bool { + if x == nil { + return false + } + return x.ParentResourceId != nil +} + +func (x *DeleteResourceV2Request) ClearResourceId() { + x.ResourceId = nil +} + +func (x *DeleteResourceV2Request) ClearParentResourceId() { + x.ParentResourceId = nil +} + +type DeleteResourceV2Request_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + ResourceId *ResourceId + ParentResourceId *ResourceId +} + +func (b0 DeleteResourceV2Request_builder) Build() *DeleteResourceV2Request { + m0 := &DeleteResourceV2Request{} + b, x := &b0, m0 + _, _ = b, x + x.ResourceId = b.ResourceId + x.ParentResourceId = b.ParentResourceId + return m0 +} + type DeleteResourceV2Response struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` Annotations []*anypb.Any `protobuf:"bytes,1,rep,name=annotations,proto3" json:"annotations,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache @@ -620,11 +887,6 @@ func (x *DeleteResourceV2Response) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use DeleteResourceV2Response.ProtoReflect.Descriptor instead. -func (*DeleteResourceV2Response) Descriptor() ([]byte, []int) { - return file_c1_connector_v2_resource_proto_rawDescGZIP(), []int{8} -} - func (x *DeleteResourceV2Response) GetAnnotations() []*anypb.Any { if x != nil { return x.Annotations @@ -632,8 +894,26 @@ func (x *DeleteResourceV2Response) GetAnnotations() []*anypb.Any { return nil } +func (x *DeleteResourceV2Response) SetAnnotations(v []*anypb.Any) { + x.Annotations = v +} + +type DeleteResourceV2Response_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Annotations []*anypb.Any +} + +func (b0 DeleteResourceV2Response_builder) Build() *DeleteResourceV2Response { + m0 := &DeleteResourceV2Response{} + b, x := &b0, m0 + _, _ = b, x + x.Annotations = b.Annotations + return m0 +} + type RotateCredentialRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` ResourceId *ResourceId `protobuf:"bytes,1,opt,name=resource_id,json=resourceId,proto3" json:"resource_id,omitempty"` CredentialOptions *CredentialOptions `protobuf:"bytes,2,opt,name=credential_options,json=credentialOptions,proto3" json:"credential_options,omitempty"` EncryptionConfigs []*EncryptionConfig `protobuf:"bytes,3,rep,name=encryption_configs,json=encryptionConfigs,proto3" json:"encryption_configs,omitempty"` @@ -666,11 +946,6 @@ func (x *RotateCredentialRequest) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use RotateCredentialRequest.ProtoReflect.Descriptor instead. -func (*RotateCredentialRequest) Descriptor() ([]byte, []int) { - return file_c1_connector_v2_resource_proto_rawDescGZIP(), []int{9} -} - func (x *RotateCredentialRequest) GetResourceId() *ResourceId { if x != nil { return x.ResourceId @@ -692,8 +967,60 @@ func (x *RotateCredentialRequest) GetEncryptionConfigs() []*EncryptionConfig { return nil } +func (x *RotateCredentialRequest) SetResourceId(v *ResourceId) { + x.ResourceId = v +} + +func (x *RotateCredentialRequest) SetCredentialOptions(v *CredentialOptions) { + x.CredentialOptions = v +} + +func (x *RotateCredentialRequest) SetEncryptionConfigs(v []*EncryptionConfig) { + x.EncryptionConfigs = v +} + +func (x *RotateCredentialRequest) HasResourceId() bool { + if x == nil { + return false + } + return x.ResourceId != nil +} + +func (x *RotateCredentialRequest) HasCredentialOptions() bool { + if x == nil { + return false + } + return x.CredentialOptions != nil +} + +func (x *RotateCredentialRequest) ClearResourceId() { + x.ResourceId = nil +} + +func (x *RotateCredentialRequest) ClearCredentialOptions() { + x.CredentialOptions = nil +} + +type RotateCredentialRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + ResourceId *ResourceId + CredentialOptions *CredentialOptions + EncryptionConfigs []*EncryptionConfig +} + +func (b0 RotateCredentialRequest_builder) Build() *RotateCredentialRequest { + m0 := &RotateCredentialRequest{} + b, x := &b0, m0 + _, _ = b, x + x.ResourceId = b.ResourceId + x.CredentialOptions = b.CredentialOptions + x.EncryptionConfigs = b.EncryptionConfigs + return m0 +} + type RotateCredentialResponse struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` EncryptedData []*EncryptedData `protobuf:"bytes,1,rep,name=encrypted_data,json=encryptedData,proto3" json:"encrypted_data,omitempty"` ResourceId *ResourceId `protobuf:"bytes,2,opt,name=resource_id,json=resourceId,proto3" json:"resource_id,omitempty"` Annotations []*anypb.Any `protobuf:"bytes,3,rep,name=annotations,proto3" json:"annotations,omitempty"` @@ -726,11 +1053,6 @@ func (x *RotateCredentialResponse) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use RotateCredentialResponse.ProtoReflect.Descriptor instead. -func (*RotateCredentialResponse) Descriptor() ([]byte, []int) { - return file_c1_connector_v2_resource_proto_rawDescGZIP(), []int{10} -} - func (x *RotateCredentialResponse) GetEncryptedData() []*EncryptedData { if x != nil { return x.EncryptedData @@ -752,8 +1074,49 @@ func (x *RotateCredentialResponse) GetAnnotations() []*anypb.Any { return nil } +func (x *RotateCredentialResponse) SetEncryptedData(v []*EncryptedData) { + x.EncryptedData = v +} + +func (x *RotateCredentialResponse) SetResourceId(v *ResourceId) { + x.ResourceId = v +} + +func (x *RotateCredentialResponse) SetAnnotations(v []*anypb.Any) { + x.Annotations = v +} + +func (x *RotateCredentialResponse) HasResourceId() bool { + if x == nil { + return false + } + return x.ResourceId != nil +} + +func (x *RotateCredentialResponse) ClearResourceId() { + x.ResourceId = nil +} + +type RotateCredentialResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + EncryptedData []*EncryptedData + ResourceId *ResourceId + Annotations []*anypb.Any +} + +func (b0 RotateCredentialResponse_builder) Build() *RotateCredentialResponse { + m0 := &RotateCredentialResponse{} + b, x := &b0, m0 + _, _ = b, x + x.EncryptedData = b.EncryptedData + x.ResourceId = b.ResourceId + x.Annotations = b.Annotations + return m0 +} + type AccountInfo struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` Emails []*AccountInfo_Email `protobuf:"bytes,1,rep,name=emails,proto3" json:"emails,omitempty"` // The user's login Login string `protobuf:"bytes,2,opt,name=login,proto3" json:"login,omitempty"` @@ -789,11 +1152,6 @@ func (x *AccountInfo) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use AccountInfo.ProtoReflect.Descriptor instead. -func (*AccountInfo) Descriptor() ([]byte, []int) { - return file_c1_connector_v2_resource_proto_rawDescGZIP(), []int{11} -} - func (x *AccountInfo) GetEmails() []*AccountInfo_Email { if x != nil { return x.Emails @@ -822,8 +1180,57 @@ func (x *AccountInfo) GetProfile() *structpb.Struct { return nil } +func (x *AccountInfo) SetEmails(v []*AccountInfo_Email) { + x.Emails = v +} + +func (x *AccountInfo) SetLogin(v string) { + x.Login = v +} + +func (x *AccountInfo) SetLoginAliases(v []string) { + x.LoginAliases = v +} + +func (x *AccountInfo) SetProfile(v *structpb.Struct) { + x.Profile = v +} + +func (x *AccountInfo) HasProfile() bool { + if x == nil { + return false + } + return x.Profile != nil +} + +func (x *AccountInfo) ClearProfile() { + x.Profile = nil +} + +type AccountInfo_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Emails []*AccountInfo_Email + // The user's login + Login string + // Any additional login aliases for the user + LoginAliases []string + Profile *structpb.Struct +} + +func (b0 AccountInfo_builder) Build() *AccountInfo { + m0 := &AccountInfo{} + b, x := &b0, m0 + _, _ = b, x + x.Emails = b.Emails + x.Login = b.Login + x.LoginAliases = b.LoginAliases + x.Profile = b.Profile + return m0 +} + type CredentialOptions struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // Types that are valid to be assigned to Options: // // *CredentialOptions_RandomPassword_ @@ -861,11 +1268,6 @@ func (x *CredentialOptions) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use CredentialOptions.ProtoReflect.Descriptor instead. -func (*CredentialOptions) Descriptor() ([]byte, []int) { - return file_c1_connector_v2_resource_proto_rawDescGZIP(), []int{12} -} - func (x *CredentialOptions) GetOptions() isCredentialOptions_Options { if x != nil { return x.Options @@ -916,42 +1318,211 @@ func (x *CredentialOptions) GetForceChangeAtNextLogin() bool { return false } -type isCredentialOptions_Options interface { - isCredentialOptions_Options() +func (x *CredentialOptions) SetRandomPassword(v *CredentialOptions_RandomPassword) { + if v == nil { + x.Options = nil + return + } + x.Options = &CredentialOptions_RandomPassword_{v} } -type CredentialOptions_RandomPassword_ struct { - RandomPassword *CredentialOptions_RandomPassword `protobuf:"bytes,100,opt,name=random_password,json=randomPassword,proto3,oneof"` +func (x *CredentialOptions) SetNoPassword(v *CredentialOptions_NoPassword) { + if v == nil { + x.Options = nil + return + } + x.Options = &CredentialOptions_NoPassword_{v} } -type CredentialOptions_NoPassword_ struct { - NoPassword *CredentialOptions_NoPassword `protobuf:"bytes,101,opt,name=no_password,json=noPassword,proto3,oneof"` +func (x *CredentialOptions) SetSso(v *CredentialOptions_SSO) { + if v == nil { + x.Options = nil + return + } + x.Options = &CredentialOptions_Sso{v} } -type CredentialOptions_Sso struct { - Sso *CredentialOptions_SSO `protobuf:"bytes,102,opt,name=sso,proto3,oneof"` +func (x *CredentialOptions) SetEncryptedPassword(v *CredentialOptions_EncryptedPassword) { + if v == nil { + x.Options = nil + return + } + x.Options = &CredentialOptions_EncryptedPassword_{v} } -type CredentialOptions_EncryptedPassword_ struct { - EncryptedPassword *CredentialOptions_EncryptedPassword `protobuf:"bytes,103,opt,name=encrypted_password,json=encryptedPassword,proto3,oneof"` +func (x *CredentialOptions) SetForceChangeAtNextLogin(v bool) { + x.ForceChangeAtNextLogin = v } -func (*CredentialOptions_RandomPassword_) isCredentialOptions_Options() {} +func (x *CredentialOptions) HasOptions() bool { + if x == nil { + return false + } + return x.Options != nil +} -func (*CredentialOptions_NoPassword_) isCredentialOptions_Options() {} +func (x *CredentialOptions) HasRandomPassword() bool { + if x == nil { + return false + } + _, ok := x.Options.(*CredentialOptions_RandomPassword_) + return ok +} -func (*CredentialOptions_Sso) isCredentialOptions_Options() {} +func (x *CredentialOptions) HasNoPassword() bool { + if x == nil { + return false + } + _, ok := x.Options.(*CredentialOptions_NoPassword_) + return ok +} -func (*CredentialOptions_EncryptedPassword_) isCredentialOptions_Options() {} +func (x *CredentialOptions) HasSso() bool { + if x == nil { + return false + } + _, ok := x.Options.(*CredentialOptions_Sso) + return ok +} -// Do not use this in any RPC or any message that is in an RPC. -type LocalCredentialOptions struct { - state protoimpl.MessageState `protogen:"open.v1"` - // Types that are valid to be assigned to Options: - // - // *LocalCredentialOptions_RandomPassword_ - // *LocalCredentialOptions_NoPassword_ - // *LocalCredentialOptions_Sso +func (x *CredentialOptions) HasEncryptedPassword() bool { + if x == nil { + return false + } + _, ok := x.Options.(*CredentialOptions_EncryptedPassword_) + return ok +} + +func (x *CredentialOptions) ClearOptions() { + x.Options = nil +} + +func (x *CredentialOptions) ClearRandomPassword() { + if _, ok := x.Options.(*CredentialOptions_RandomPassword_); ok { + x.Options = nil + } +} + +func (x *CredentialOptions) ClearNoPassword() { + if _, ok := x.Options.(*CredentialOptions_NoPassword_); ok { + x.Options = nil + } +} + +func (x *CredentialOptions) ClearSso() { + if _, ok := x.Options.(*CredentialOptions_Sso); ok { + x.Options = nil + } +} + +func (x *CredentialOptions) ClearEncryptedPassword() { + if _, ok := x.Options.(*CredentialOptions_EncryptedPassword_); ok { + x.Options = nil + } +} + +const CredentialOptions_Options_not_set_case case_CredentialOptions_Options = 0 +const CredentialOptions_RandomPassword_case case_CredentialOptions_Options = 100 +const CredentialOptions_NoPassword_case case_CredentialOptions_Options = 101 +const CredentialOptions_Sso_case case_CredentialOptions_Options = 102 +const CredentialOptions_EncryptedPassword_case case_CredentialOptions_Options = 103 + +func (x *CredentialOptions) WhichOptions() case_CredentialOptions_Options { + if x == nil { + return CredentialOptions_Options_not_set_case + } + switch x.Options.(type) { + case *CredentialOptions_RandomPassword_: + return CredentialOptions_RandomPassword_case + case *CredentialOptions_NoPassword_: + return CredentialOptions_NoPassword_case + case *CredentialOptions_Sso: + return CredentialOptions_Sso_case + case *CredentialOptions_EncryptedPassword_: + return CredentialOptions_EncryptedPassword_case + default: + return CredentialOptions_Options_not_set_case + } +} + +type CredentialOptions_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Fields of oneof Options: + RandomPassword *CredentialOptions_RandomPassword + NoPassword *CredentialOptions_NoPassword + Sso *CredentialOptions_SSO + EncryptedPassword *CredentialOptions_EncryptedPassword + // -- end of Options + ForceChangeAtNextLogin bool +} + +func (b0 CredentialOptions_builder) Build() *CredentialOptions { + m0 := &CredentialOptions{} + b, x := &b0, m0 + _, _ = b, x + if b.RandomPassword != nil { + x.Options = &CredentialOptions_RandomPassword_{b.RandomPassword} + } + if b.NoPassword != nil { + x.Options = &CredentialOptions_NoPassword_{b.NoPassword} + } + if b.Sso != nil { + x.Options = &CredentialOptions_Sso{b.Sso} + } + if b.EncryptedPassword != nil { + x.Options = &CredentialOptions_EncryptedPassword_{b.EncryptedPassword} + } + x.ForceChangeAtNextLogin = b.ForceChangeAtNextLogin + return m0 +} + +type case_CredentialOptions_Options protoreflect.FieldNumber + +func (x case_CredentialOptions_Options) String() string { + md := file_c1_connector_v2_resource_proto_msgTypes[12].Descriptor() + if x == 0 { + return "not set" + } + return protoimpl.X.MessageFieldStringOf(md, protoreflect.FieldNumber(x)) +} + +type isCredentialOptions_Options interface { + isCredentialOptions_Options() +} + +type CredentialOptions_RandomPassword_ struct { + RandomPassword *CredentialOptions_RandomPassword `protobuf:"bytes,100,opt,name=random_password,json=randomPassword,proto3,oneof"` +} + +type CredentialOptions_NoPassword_ struct { + NoPassword *CredentialOptions_NoPassword `protobuf:"bytes,101,opt,name=no_password,json=noPassword,proto3,oneof"` +} + +type CredentialOptions_Sso struct { + Sso *CredentialOptions_SSO `protobuf:"bytes,102,opt,name=sso,proto3,oneof"` +} + +type CredentialOptions_EncryptedPassword_ struct { + EncryptedPassword *CredentialOptions_EncryptedPassword `protobuf:"bytes,103,opt,name=encrypted_password,json=encryptedPassword,proto3,oneof"` +} + +func (*CredentialOptions_RandomPassword_) isCredentialOptions_Options() {} + +func (*CredentialOptions_NoPassword_) isCredentialOptions_Options() {} + +func (*CredentialOptions_Sso) isCredentialOptions_Options() {} + +func (*CredentialOptions_EncryptedPassword_) isCredentialOptions_Options() {} + +// Do not use this in any RPC or any message that is in an RPC. +type LocalCredentialOptions struct { + state protoimpl.MessageState `protogen:"hybrid.v1"` + // Types that are valid to be assigned to Options: + // + // *LocalCredentialOptions_RandomPassword_ + // *LocalCredentialOptions_NoPassword_ + // *LocalCredentialOptions_Sso // *LocalCredentialOptions_PlaintextPassword_ Options isLocalCredentialOptions_Options `protobuf_oneof:"options"` ForceChangeAtNextLogin bool `protobuf:"varint,1,opt,name=force_change_at_next_login,json=forceChangeAtNextLogin,proto3" json:"force_change_at_next_login,omitempty"` @@ -984,11 +1555,6 @@ func (x *LocalCredentialOptions) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use LocalCredentialOptions.ProtoReflect.Descriptor instead. -func (*LocalCredentialOptions) Descriptor() ([]byte, []int) { - return file_c1_connector_v2_resource_proto_rawDescGZIP(), []int{13} -} - func (x *LocalCredentialOptions) GetOptions() isLocalCredentialOptions_Options { if x != nil { return x.Options @@ -1039,6 +1605,175 @@ func (x *LocalCredentialOptions) GetForceChangeAtNextLogin() bool { return false } +func (x *LocalCredentialOptions) SetRandomPassword(v *LocalCredentialOptions_RandomPassword) { + if v == nil { + x.Options = nil + return + } + x.Options = &LocalCredentialOptions_RandomPassword_{v} +} + +func (x *LocalCredentialOptions) SetNoPassword(v *LocalCredentialOptions_NoPassword) { + if v == nil { + x.Options = nil + return + } + x.Options = &LocalCredentialOptions_NoPassword_{v} +} + +func (x *LocalCredentialOptions) SetSso(v *LocalCredentialOptions_SSO) { + if v == nil { + x.Options = nil + return + } + x.Options = &LocalCredentialOptions_Sso{v} +} + +func (x *LocalCredentialOptions) SetPlaintextPassword(v *LocalCredentialOptions_PlaintextPassword) { + if v == nil { + x.Options = nil + return + } + x.Options = &LocalCredentialOptions_PlaintextPassword_{v} +} + +func (x *LocalCredentialOptions) SetForceChangeAtNextLogin(v bool) { + x.ForceChangeAtNextLogin = v +} + +func (x *LocalCredentialOptions) HasOptions() bool { + if x == nil { + return false + } + return x.Options != nil +} + +func (x *LocalCredentialOptions) HasRandomPassword() bool { + if x == nil { + return false + } + _, ok := x.Options.(*LocalCredentialOptions_RandomPassword_) + return ok +} + +func (x *LocalCredentialOptions) HasNoPassword() bool { + if x == nil { + return false + } + _, ok := x.Options.(*LocalCredentialOptions_NoPassword_) + return ok +} + +func (x *LocalCredentialOptions) HasSso() bool { + if x == nil { + return false + } + _, ok := x.Options.(*LocalCredentialOptions_Sso) + return ok +} + +func (x *LocalCredentialOptions) HasPlaintextPassword() bool { + if x == nil { + return false + } + _, ok := x.Options.(*LocalCredentialOptions_PlaintextPassword_) + return ok +} + +func (x *LocalCredentialOptions) ClearOptions() { + x.Options = nil +} + +func (x *LocalCredentialOptions) ClearRandomPassword() { + if _, ok := x.Options.(*LocalCredentialOptions_RandomPassword_); ok { + x.Options = nil + } +} + +func (x *LocalCredentialOptions) ClearNoPassword() { + if _, ok := x.Options.(*LocalCredentialOptions_NoPassword_); ok { + x.Options = nil + } +} + +func (x *LocalCredentialOptions) ClearSso() { + if _, ok := x.Options.(*LocalCredentialOptions_Sso); ok { + x.Options = nil + } +} + +func (x *LocalCredentialOptions) ClearPlaintextPassword() { + if _, ok := x.Options.(*LocalCredentialOptions_PlaintextPassword_); ok { + x.Options = nil + } +} + +const LocalCredentialOptions_Options_not_set_case case_LocalCredentialOptions_Options = 0 +const LocalCredentialOptions_RandomPassword_case case_LocalCredentialOptions_Options = 100 +const LocalCredentialOptions_NoPassword_case case_LocalCredentialOptions_Options = 101 +const LocalCredentialOptions_Sso_case case_LocalCredentialOptions_Options = 102 +const LocalCredentialOptions_PlaintextPassword_case case_LocalCredentialOptions_Options = 103 + +func (x *LocalCredentialOptions) WhichOptions() case_LocalCredentialOptions_Options { + if x == nil { + return LocalCredentialOptions_Options_not_set_case + } + switch x.Options.(type) { + case *LocalCredentialOptions_RandomPassword_: + return LocalCredentialOptions_RandomPassword_case + case *LocalCredentialOptions_NoPassword_: + return LocalCredentialOptions_NoPassword_case + case *LocalCredentialOptions_Sso: + return LocalCredentialOptions_Sso_case + case *LocalCredentialOptions_PlaintextPassword_: + return LocalCredentialOptions_PlaintextPassword_case + default: + return LocalCredentialOptions_Options_not_set_case + } +} + +type LocalCredentialOptions_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Fields of oneof Options: + RandomPassword *LocalCredentialOptions_RandomPassword + NoPassword *LocalCredentialOptions_NoPassword + Sso *LocalCredentialOptions_SSO + PlaintextPassword *LocalCredentialOptions_PlaintextPassword + // -- end of Options + ForceChangeAtNextLogin bool +} + +func (b0 LocalCredentialOptions_builder) Build() *LocalCredentialOptions { + m0 := &LocalCredentialOptions{} + b, x := &b0, m0 + _, _ = b, x + if b.RandomPassword != nil { + x.Options = &LocalCredentialOptions_RandomPassword_{b.RandomPassword} + } + if b.NoPassword != nil { + x.Options = &LocalCredentialOptions_NoPassword_{b.NoPassword} + } + if b.Sso != nil { + x.Options = &LocalCredentialOptions_Sso{b.Sso} + } + if b.PlaintextPassword != nil { + x.Options = &LocalCredentialOptions_PlaintextPassword_{b.PlaintextPassword} + } + x.ForceChangeAtNextLogin = b.ForceChangeAtNextLogin + return m0 +} + +type case_LocalCredentialOptions_Options protoreflect.FieldNumber + +func (x case_LocalCredentialOptions_Options) String() string { + md := file_c1_connector_v2_resource_proto_msgTypes[13].Descriptor() + if x == 0 { + return "not set" + } + return protoimpl.X.MessageFieldStringOf(md, protoreflect.FieldNumber(x)) +} + type isLocalCredentialOptions_Options interface { isLocalCredentialOptions_Options() } @@ -1068,7 +1803,7 @@ func (*LocalCredentialOptions_Sso) isLocalCredentialOptions_Options() {} func (*LocalCredentialOptions_PlaintextPassword_) isLocalCredentialOptions_Options() {} type PasswordConstraint struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` CharSet string `protobuf:"bytes,1,opt,name=char_set,json=charSet,proto3" json:"char_set,omitempty"` MinCount uint32 `protobuf:"varint,2,opt,name=min_count,json=minCount,proto3" json:"min_count,omitempty"` unknownFields protoimpl.UnknownFields @@ -1100,11 +1835,6 @@ func (x *PasswordConstraint) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use PasswordConstraint.ProtoReflect.Descriptor instead. -func (*PasswordConstraint) Descriptor() ([]byte, []int) { - return file_c1_connector_v2_resource_proto_rawDescGZIP(), []int{14} -} - func (x *PasswordConstraint) GetCharSet() string { if x != nil { return x.CharSet @@ -1119,11 +1849,36 @@ func (x *PasswordConstraint) GetMinCount() uint32 { return 0 } +func (x *PasswordConstraint) SetCharSet(v string) { + x.CharSet = v +} + +func (x *PasswordConstraint) SetMinCount(v uint32) { + x.MinCount = v +} + +type PasswordConstraint_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + CharSet string + MinCount uint32 +} + +func (b0 PasswordConstraint_builder) Build() *PasswordConstraint { + m0 := &PasswordConstraint{} + b, x := &b0, m0 + _, _ = b, x + x.CharSet = b.CharSet + x.MinCount = b.MinCount + return m0 +} + type CreateAccountRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` AccountInfo *AccountInfo `protobuf:"bytes,1,opt,name=account_info,json=accountInfo,proto3" json:"account_info,omitempty"` CredentialOptions *CredentialOptions `protobuf:"bytes,2,opt,name=credential_options,json=credentialOptions,proto3" json:"credential_options,omitempty"` EncryptionConfigs []*EncryptionConfig `protobuf:"bytes,3,rep,name=encryption_configs,json=encryptionConfigs,proto3" json:"encryption_configs,omitempty"` + ResourceTypeId string `protobuf:"bytes,4,opt,name=resource_type_id,json=resourceTypeId,proto3" json:"resource_type_id,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } @@ -1153,11 +1908,6 @@ func (x *CreateAccountRequest) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use CreateAccountRequest.ProtoReflect.Descriptor instead. -func (*CreateAccountRequest) Descriptor() ([]byte, []int) { - return file_c1_connector_v2_resource_proto_rawDescGZIP(), []int{15} -} - func (x *CreateAccountRequest) GetAccountInfo() *AccountInfo { if x != nil { return x.AccountInfo @@ -1179,12 +1929,79 @@ func (x *CreateAccountRequest) GetEncryptionConfigs() []*EncryptionConfig { return nil } +func (x *CreateAccountRequest) GetResourceTypeId() string { + if x != nil { + return x.ResourceTypeId + } + return "" +} + +func (x *CreateAccountRequest) SetAccountInfo(v *AccountInfo) { + x.AccountInfo = v +} + +func (x *CreateAccountRequest) SetCredentialOptions(v *CredentialOptions) { + x.CredentialOptions = v +} + +func (x *CreateAccountRequest) SetEncryptionConfigs(v []*EncryptionConfig) { + x.EncryptionConfigs = v +} + +func (x *CreateAccountRequest) SetResourceTypeId(v string) { + x.ResourceTypeId = v +} + +func (x *CreateAccountRequest) HasAccountInfo() bool { + if x == nil { + return false + } + return x.AccountInfo != nil +} + +func (x *CreateAccountRequest) HasCredentialOptions() bool { + if x == nil { + return false + } + return x.CredentialOptions != nil +} + +func (x *CreateAccountRequest) ClearAccountInfo() { + x.AccountInfo = nil +} + +func (x *CreateAccountRequest) ClearCredentialOptions() { + x.CredentialOptions = nil +} + +type CreateAccountRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + AccountInfo *AccountInfo + CredentialOptions *CredentialOptions + EncryptionConfigs []*EncryptionConfig + ResourceTypeId string +} + +func (b0 CreateAccountRequest_builder) Build() *CreateAccountRequest { + m0 := &CreateAccountRequest{} + b, x := &b0, m0 + _, _ = b, x + x.AccountInfo = b.AccountInfo + x.CredentialOptions = b.CredentialOptions + x.EncryptionConfigs = b.EncryptionConfigs + x.ResourceTypeId = b.ResourceTypeId + return m0 +} + type CreateAccountResponse struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // Types that are valid to be assigned to Result: // // *CreateAccountResponse_Success // *CreateAccountResponse_ActionRequired + // *CreateAccountResponse_AlreadyExists + // *CreateAccountResponse_InProgress Result isCreateAccountResponse_Result `protobuf_oneof:"result"` EncryptedData []*EncryptedData `protobuf:"bytes,2,rep,name=encrypted_data,json=encryptedData,proto3" json:"encrypted_data,omitempty"` Annotations []*anypb.Any `protobuf:"bytes,3,rep,name=annotations,proto3" json:"annotations,omitempty"` @@ -1217,11 +2034,6 @@ func (x *CreateAccountResponse) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use CreateAccountResponse.ProtoReflect.Descriptor instead. -func (*CreateAccountResponse) Descriptor() ([]byte, []int) { - return file_c1_connector_v2_resource_proto_rawDescGZIP(), []int{16} -} - func (x *CreateAccountResponse) GetResult() isCreateAccountResponse_Result { if x != nil { return x.Result @@ -1247,6 +2059,24 @@ func (x *CreateAccountResponse) GetActionRequired() *CreateAccountResponse_Actio return nil } +func (x *CreateAccountResponse) GetAlreadyExists() *CreateAccountResponse_AlreadyExistsResult { + if x != nil { + if x, ok := x.Result.(*CreateAccountResponse_AlreadyExists); ok { + return x.AlreadyExists + } + } + return nil +} + +func (x *CreateAccountResponse) GetInProgress() *CreateAccountResponse_InProgressResult { + if x != nil { + if x, ok := x.Result.(*CreateAccountResponse_InProgress); ok { + return x.InProgress + } + } + return nil +} + func (x *CreateAccountResponse) GetEncryptedData() []*EncryptedData { if x != nil { return x.EncryptedData @@ -1261,6 +2091,181 @@ func (x *CreateAccountResponse) GetAnnotations() []*anypb.Any { return nil } +func (x *CreateAccountResponse) SetSuccess(v *CreateAccountResponse_SuccessResult) { + if v == nil { + x.Result = nil + return + } + x.Result = &CreateAccountResponse_Success{v} +} + +func (x *CreateAccountResponse) SetActionRequired(v *CreateAccountResponse_ActionRequiredResult) { + if v == nil { + x.Result = nil + return + } + x.Result = &CreateAccountResponse_ActionRequired{v} +} + +func (x *CreateAccountResponse) SetAlreadyExists(v *CreateAccountResponse_AlreadyExistsResult) { + if v == nil { + x.Result = nil + return + } + x.Result = &CreateAccountResponse_AlreadyExists{v} +} + +func (x *CreateAccountResponse) SetInProgress(v *CreateAccountResponse_InProgressResult) { + if v == nil { + x.Result = nil + return + } + x.Result = &CreateAccountResponse_InProgress{v} +} + +func (x *CreateAccountResponse) SetEncryptedData(v []*EncryptedData) { + x.EncryptedData = v +} + +func (x *CreateAccountResponse) SetAnnotations(v []*anypb.Any) { + x.Annotations = v +} + +func (x *CreateAccountResponse) HasResult() bool { + if x == nil { + return false + } + return x.Result != nil +} + +func (x *CreateAccountResponse) HasSuccess() bool { + if x == nil { + return false + } + _, ok := x.Result.(*CreateAccountResponse_Success) + return ok +} + +func (x *CreateAccountResponse) HasActionRequired() bool { + if x == nil { + return false + } + _, ok := x.Result.(*CreateAccountResponse_ActionRequired) + return ok +} + +func (x *CreateAccountResponse) HasAlreadyExists() bool { + if x == nil { + return false + } + _, ok := x.Result.(*CreateAccountResponse_AlreadyExists) + return ok +} + +func (x *CreateAccountResponse) HasInProgress() bool { + if x == nil { + return false + } + _, ok := x.Result.(*CreateAccountResponse_InProgress) + return ok +} + +func (x *CreateAccountResponse) ClearResult() { + x.Result = nil +} + +func (x *CreateAccountResponse) ClearSuccess() { + if _, ok := x.Result.(*CreateAccountResponse_Success); ok { + x.Result = nil + } +} + +func (x *CreateAccountResponse) ClearActionRequired() { + if _, ok := x.Result.(*CreateAccountResponse_ActionRequired); ok { + x.Result = nil + } +} + +func (x *CreateAccountResponse) ClearAlreadyExists() { + if _, ok := x.Result.(*CreateAccountResponse_AlreadyExists); ok { + x.Result = nil + } +} + +func (x *CreateAccountResponse) ClearInProgress() { + if _, ok := x.Result.(*CreateAccountResponse_InProgress); ok { + x.Result = nil + } +} + +const CreateAccountResponse_Result_not_set_case case_CreateAccountResponse_Result = 0 +const CreateAccountResponse_Success_case case_CreateAccountResponse_Result = 100 +const CreateAccountResponse_ActionRequired_case case_CreateAccountResponse_Result = 101 +const CreateAccountResponse_AlreadyExists_case case_CreateAccountResponse_Result = 102 +const CreateAccountResponse_InProgress_case case_CreateAccountResponse_Result = 103 + +func (x *CreateAccountResponse) WhichResult() case_CreateAccountResponse_Result { + if x == nil { + return CreateAccountResponse_Result_not_set_case + } + switch x.Result.(type) { + case *CreateAccountResponse_Success: + return CreateAccountResponse_Success_case + case *CreateAccountResponse_ActionRequired: + return CreateAccountResponse_ActionRequired_case + case *CreateAccountResponse_AlreadyExists: + return CreateAccountResponse_AlreadyExists_case + case *CreateAccountResponse_InProgress: + return CreateAccountResponse_InProgress_case + default: + return CreateAccountResponse_Result_not_set_case + } +} + +type CreateAccountResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Fields of oneof Result: + Success *CreateAccountResponse_SuccessResult + ActionRequired *CreateAccountResponse_ActionRequiredResult + AlreadyExists *CreateAccountResponse_AlreadyExistsResult + InProgress *CreateAccountResponse_InProgressResult + // -- end of Result + EncryptedData []*EncryptedData + Annotations []*anypb.Any +} + +func (b0 CreateAccountResponse_builder) Build() *CreateAccountResponse { + m0 := &CreateAccountResponse{} + b, x := &b0, m0 + _, _ = b, x + if b.Success != nil { + x.Result = &CreateAccountResponse_Success{b.Success} + } + if b.ActionRequired != nil { + x.Result = &CreateAccountResponse_ActionRequired{b.ActionRequired} + } + if b.AlreadyExists != nil { + x.Result = &CreateAccountResponse_AlreadyExists{b.AlreadyExists} + } + if b.InProgress != nil { + x.Result = &CreateAccountResponse_InProgress{b.InProgress} + } + x.EncryptedData = b.EncryptedData + x.Annotations = b.Annotations + return m0 +} + +type case_CreateAccountResponse_Result protoreflect.FieldNumber + +func (x case_CreateAccountResponse_Result) String() string { + md := file_c1_connector_v2_resource_proto_msgTypes[16].Descriptor() + if x == 0 { + return "not set" + } + return protoimpl.X.MessageFieldStringOf(md, protoreflect.FieldNumber(x)) +} + type isCreateAccountResponse_Result interface { isCreateAccountResponse_Result() } @@ -1273,12 +2278,24 @@ type CreateAccountResponse_ActionRequired struct { ActionRequired *CreateAccountResponse_ActionRequiredResult `protobuf:"bytes,101,opt,name=action_required,json=actionRequired,proto3,oneof"` } +type CreateAccountResponse_AlreadyExists struct { + AlreadyExists *CreateAccountResponse_AlreadyExistsResult `protobuf:"bytes,102,opt,name=already_exists,json=alreadyExists,proto3,oneof"` +} + +type CreateAccountResponse_InProgress struct { + InProgress *CreateAccountResponse_InProgressResult `protobuf:"bytes,103,opt,name=in_progress,json=inProgress,proto3,oneof"` +} + func (*CreateAccountResponse_Success) isCreateAccountResponse_Result() {} func (*CreateAccountResponse_ActionRequired) isCreateAccountResponse_Result() {} +func (*CreateAccountResponse_AlreadyExists) isCreateAccountResponse_Result() {} + +func (*CreateAccountResponse_InProgress) isCreateAccountResponse_Result() {} + type EncryptedData struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` Provider string `protobuf:"bytes,1,opt,name=provider,proto3" json:"provider,omitempty"` // Deprecated: Marked as deprecated in c1/connector/v2/resource.proto. KeyId string `protobuf:"bytes,2,opt,name=key_id,json=keyId,proto3" json:"key_id,omitempty"` @@ -1316,11 +2333,6 @@ func (x *EncryptedData) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use EncryptedData.ProtoReflect.Descriptor instead. -func (*EncryptedData) Descriptor() ([]byte, []int) { - return file_c1_connector_v2_resource_proto_rawDescGZIP(), []int{17} -} - func (x *EncryptedData) GetProvider() string { if x != nil { return x.Provider @@ -1371,8 +2383,67 @@ func (x *EncryptedData) GetKeyIds() []string { return nil } +func (x *EncryptedData) SetProvider(v string) { + x.Provider = v +} + +// Deprecated: Marked as deprecated in c1/connector/v2/resource.proto. +func (x *EncryptedData) SetKeyId(v string) { + x.KeyId = v +} + +func (x *EncryptedData) SetName(v string) { + x.Name = v +} + +func (x *EncryptedData) SetDescription(v string) { + x.Description = v +} + +func (x *EncryptedData) SetSchema(v string) { + x.Schema = v +} + +func (x *EncryptedData) SetEncryptedBytes(v []byte) { + if v == nil { + v = []byte{} + } + x.EncryptedBytes = v +} + +func (x *EncryptedData) SetKeyIds(v []string) { + x.KeyIds = v +} + +type EncryptedData_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Provider string + // Deprecated: Marked as deprecated in c1/connector/v2/resource.proto. + KeyId string + Name string + Description string + Schema string + EncryptedBytes []byte + KeyIds []string +} + +func (b0 EncryptedData_builder) Build() *EncryptedData { + m0 := &EncryptedData{} + b, x := &b0, m0 + _, _ = b, x + x.Provider = b.Provider + x.KeyId = b.KeyId + x.Name = b.Name + x.Description = b.Description + x.Schema = b.Schema + x.EncryptedBytes = b.EncryptedBytes + x.KeyIds = b.KeyIds + return m0 +} + type PlaintextData struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` Schema string `protobuf:"bytes,3,opt,name=schema,proto3" json:"schema,omitempty"` // optional @@ -1406,11 +2477,6 @@ func (x *PlaintextData) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use PlaintextData.ProtoReflect.Descriptor instead. -func (*PlaintextData) Descriptor() ([]byte, []int) { - return file_c1_connector_v2_resource_proto_rawDescGZIP(), []int{18} -} - func (x *PlaintextData) GetName() string { if x != nil { return x.Name @@ -1439,8 +2505,47 @@ func (x *PlaintextData) GetBytes() []byte { return nil } +func (x *PlaintextData) SetName(v string) { + x.Name = v +} + +func (x *PlaintextData) SetDescription(v string) { + x.Description = v +} + +func (x *PlaintextData) SetSchema(v string) { + x.Schema = v +} + +func (x *PlaintextData) SetBytes(v []byte) { + if v == nil { + v = []byte{} + } + x.Bytes = v +} + +type PlaintextData_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Name string + Description string + Schema string + Bytes []byte +} + +func (b0 PlaintextData_builder) Build() *PlaintextData { + m0 := &PlaintextData{} + b, x := &b0, m0 + _, _ = b, x + x.Name = b.Name + x.Description = b.Description + x.Schema = b.Schema + x.Bytes = b.Bytes + return m0 +} + type EncryptionConfig struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` Principal *Resource `protobuf:"bytes,1,opt,name=principal,proto3" json:"principal,omitempty"` Provider string `protobuf:"bytes,2,opt,name=provider,proto3" json:"provider,omitempty"` KeyId string `protobuf:"bytes,3,opt,name=key_id,json=keyId,proto3" json:"key_id,omitempty"` @@ -1477,11 +2582,6 @@ func (x *EncryptionConfig) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use EncryptionConfig.ProtoReflect.Descriptor instead. -func (*EncryptionConfig) Descriptor() ([]byte, []int) { - return file_c1_connector_v2_resource_proto_rawDescGZIP(), []int{19} -} - func (x *EncryptionConfig) GetPrincipal() *Resource { if x != nil { return x.Principal @@ -1519,6 +2619,111 @@ func (x *EncryptionConfig) GetJwkPublicKeyConfig() *EncryptionConfig_JWKPublicKe return nil } +func (x *EncryptionConfig) SetPrincipal(v *Resource) { + x.Principal = v +} + +func (x *EncryptionConfig) SetProvider(v string) { + x.Provider = v +} + +func (x *EncryptionConfig) SetKeyId(v string) { + x.KeyId = v +} + +func (x *EncryptionConfig) SetJwkPublicKeyConfig(v *EncryptionConfig_JWKPublicKeyConfig) { + if v == nil { + x.Config = nil + return + } + x.Config = &EncryptionConfig_JwkPublicKeyConfig{v} +} + +func (x *EncryptionConfig) HasPrincipal() bool { + if x == nil { + return false + } + return x.Principal != nil +} + +func (x *EncryptionConfig) HasConfig() bool { + if x == nil { + return false + } + return x.Config != nil +} + +func (x *EncryptionConfig) HasJwkPublicKeyConfig() bool { + if x == nil { + return false + } + _, ok := x.Config.(*EncryptionConfig_JwkPublicKeyConfig) + return ok +} + +func (x *EncryptionConfig) ClearPrincipal() { + x.Principal = nil +} + +func (x *EncryptionConfig) ClearConfig() { + x.Config = nil +} + +func (x *EncryptionConfig) ClearJwkPublicKeyConfig() { + if _, ok := x.Config.(*EncryptionConfig_JwkPublicKeyConfig); ok { + x.Config = nil + } +} + +const EncryptionConfig_Config_not_set_case case_EncryptionConfig_Config = 0 +const EncryptionConfig_JwkPublicKeyConfig_case case_EncryptionConfig_Config = 100 + +func (x *EncryptionConfig) WhichConfig() case_EncryptionConfig_Config { + if x == nil { + return EncryptionConfig_Config_not_set_case + } + switch x.Config.(type) { + case *EncryptionConfig_JwkPublicKeyConfig: + return EncryptionConfig_JwkPublicKeyConfig_case + default: + return EncryptionConfig_Config_not_set_case + } +} + +type EncryptionConfig_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Principal *Resource + Provider string + KeyId string + // Fields of oneof Config: + JwkPublicKeyConfig *EncryptionConfig_JWKPublicKeyConfig + // -- end of Config +} + +func (b0 EncryptionConfig_builder) Build() *EncryptionConfig { + m0 := &EncryptionConfig{} + b, x := &b0, m0 + _, _ = b, x + x.Principal = b.Principal + x.Provider = b.Provider + x.KeyId = b.KeyId + if b.JwkPublicKeyConfig != nil { + x.Config = &EncryptionConfig_JwkPublicKeyConfig{b.JwkPublicKeyConfig} + } + return m0 +} + +type case_EncryptionConfig_Config protoreflect.FieldNumber + +func (x case_EncryptionConfig_Config) String() string { + md := file_c1_connector_v2_resource_proto_msgTypes[19].Descriptor() + if x == 0 { + return "not set" + } + return protoimpl.X.MessageFieldStringOf(md, protoreflect.FieldNumber(x)) +} + type isEncryptionConfig_Config interface { isEncryptionConfig_Config() } @@ -1530,7 +2735,7 @@ type EncryptionConfig_JwkPublicKeyConfig struct { func (*EncryptionConfig_JwkPublicKeyConfig) isEncryptionConfig_Config() {} type ResourceId struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` ResourceType string `protobuf:"bytes,1,opt,name=resource_type,json=resourceType,proto3" json:"resource_type,omitempty"` Resource string `protobuf:"bytes,2,opt,name=resource,proto3" json:"resource,omitempty"` BatonResource bool `protobuf:"varint,3,opt,name=baton_resource,json=batonResource,proto3" json:"baton_resource,omitempty"` @@ -1563,11 +2768,6 @@ func (x *ResourceId) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use ResourceId.ProtoReflect.Descriptor instead. -func (*ResourceId) Descriptor() ([]byte, []int) { - return file_c1_connector_v2_resource_proto_rawDescGZIP(), []int{20} -} - func (x *ResourceId) GetResourceType() string { if x != nil { return x.ResourceType @@ -1589,8 +2789,38 @@ func (x *ResourceId) GetBatonResource() bool { return false } +func (x *ResourceId) SetResourceType(v string) { + x.ResourceType = v +} + +func (x *ResourceId) SetResource(v string) { + x.Resource = v +} + +func (x *ResourceId) SetBatonResource(v bool) { + x.BatonResource = v +} + +type ResourceId_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + ResourceType string + Resource string + BatonResource bool +} + +func (b0 ResourceId_builder) Build() *ResourceId { + m0 := &ResourceId{} + b, x := &b0, m0 + _, _ = b, x + x.ResourceType = b.ResourceType + x.Resource = b.Resource + x.BatonResource = b.BatonResource + return m0 +} + type Resource struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` Id *ResourceId `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` ParentResourceId *ResourceId `protobuf:"bytes,2,opt,name=parent_resource_id,json=parentResourceId,proto3" json:"parent_resource_id,omitempty"` DisplayName string `protobuf:"bytes,3,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"` @@ -1628,11 +2858,6 @@ func (x *Resource) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use Resource.ProtoReflect.Descriptor instead. -func (*Resource) Descriptor() ([]byte, []int) { - return file_c1_connector_v2_resource_proto_rawDescGZIP(), []int{21} -} - func (x *Resource) GetId() *ResourceId { if x != nil { return x.Id @@ -1689,13 +2914,107 @@ func (x *Resource) GetCreationSource() Resource_CreationSource { return Resource_CREATION_SOURCE_UNSPECIFIED } +func (x *Resource) SetId(v *ResourceId) { + x.Id = v +} + +func (x *Resource) SetParentResourceId(v *ResourceId) { + x.ParentResourceId = v +} + +func (x *Resource) SetDisplayName(v string) { + x.DisplayName = v +} + +func (x *Resource) SetAnnotations(v []*anypb.Any) { + x.Annotations = v +} + +func (x *Resource) SetDescription(v string) { + x.Description = v +} + +func (x *Resource) SetBatonResource(v bool) { + x.BatonResource = v +} + +func (x *Resource) SetExternalId(v *ExternalId) { + x.ExternalId = v +} + +func (x *Resource) SetCreationSource(v Resource_CreationSource) { + x.CreationSource = v +} + +func (x *Resource) HasId() bool { + if x == nil { + return false + } + return x.Id != nil +} + +func (x *Resource) HasParentResourceId() bool { + if x == nil { + return false + } + return x.ParentResourceId != nil +} + +func (x *Resource) HasExternalId() bool { + if x == nil { + return false + } + return x.ExternalId != nil +} + +func (x *Resource) ClearId() { + x.Id = nil +} + +func (x *Resource) ClearParentResourceId() { + x.ParentResourceId = nil +} + +func (x *Resource) ClearExternalId() { + x.ExternalId = nil +} + +type Resource_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Id *ResourceId + ParentResourceId *ResourceId + DisplayName string + Annotations []*anypb.Any + Description string + BatonResource bool + ExternalId *ExternalId + CreationSource Resource_CreationSource +} + +func (b0 Resource_builder) Build() *Resource { + m0 := &Resource{} + b, x := &b0, m0 + _, _ = b, x + x.Id = b.Id + x.ParentResourceId = b.ParentResourceId + x.DisplayName = b.DisplayName + x.Annotations = b.Annotations + x.Description = b.Description + x.BatonResource = b.BatonResource + x.ExternalId = b.ExternalId + x.CreationSource = b.CreationSource + return m0 +} + type ResourcesServiceListResourcesRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` ResourceTypeId string `protobuf:"bytes,1,opt,name=resource_type_id,json=resourceTypeId,proto3" json:"resource_type_id,omitempty"` ParentResourceId *ResourceId `protobuf:"bytes,2,opt,name=parent_resource_id,json=parentResourceId,proto3" json:"parent_resource_id,omitempty"` PageSize uint32 `protobuf:"varint,3,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` PageToken string `protobuf:"bytes,4,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"` Annotations []*anypb.Any `protobuf:"bytes,5,rep,name=annotations,proto3" json:"annotations,omitempty"` + ActiveSyncId string `protobuf:"bytes,6,opt,name=active_sync_id,json=activeSyncId,proto3" json:"active_sync_id,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } @@ -1725,11 +3044,6 @@ func (x *ResourcesServiceListResourcesRequest) ProtoReflect() protoreflect.Messa return mi.MessageOf(x) } -// Deprecated: Use ResourcesServiceListResourcesRequest.ProtoReflect.Descriptor instead. -func (*ResourcesServiceListResourcesRequest) Descriptor() ([]byte, []int) { - return file_c1_connector_v2_resource_proto_rawDescGZIP(), []int{22} -} - func (x *ResourcesServiceListResourcesRequest) GetResourceTypeId() string { if x != nil { return x.ResourceTypeId @@ -1765,8 +3079,74 @@ func (x *ResourcesServiceListResourcesRequest) GetAnnotations() []*anypb.Any { return nil } +func (x *ResourcesServiceListResourcesRequest) GetActiveSyncId() string { + if x != nil { + return x.ActiveSyncId + } + return "" +} + +func (x *ResourcesServiceListResourcesRequest) SetResourceTypeId(v string) { + x.ResourceTypeId = v +} + +func (x *ResourcesServiceListResourcesRequest) SetParentResourceId(v *ResourceId) { + x.ParentResourceId = v +} + +func (x *ResourcesServiceListResourcesRequest) SetPageSize(v uint32) { + x.PageSize = v +} + +func (x *ResourcesServiceListResourcesRequest) SetPageToken(v string) { + x.PageToken = v +} + +func (x *ResourcesServiceListResourcesRequest) SetAnnotations(v []*anypb.Any) { + x.Annotations = v +} + +func (x *ResourcesServiceListResourcesRequest) SetActiveSyncId(v string) { + x.ActiveSyncId = v +} + +func (x *ResourcesServiceListResourcesRequest) HasParentResourceId() bool { + if x == nil { + return false + } + return x.ParentResourceId != nil +} + +func (x *ResourcesServiceListResourcesRequest) ClearParentResourceId() { + x.ParentResourceId = nil +} + +type ResourcesServiceListResourcesRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + ResourceTypeId string + ParentResourceId *ResourceId + PageSize uint32 + PageToken string + Annotations []*anypb.Any + ActiveSyncId string +} + +func (b0 ResourcesServiceListResourcesRequest_builder) Build() *ResourcesServiceListResourcesRequest { + m0 := &ResourcesServiceListResourcesRequest{} + b, x := &b0, m0 + _, _ = b, x + x.ResourceTypeId = b.ResourceTypeId + x.ParentResourceId = b.ParentResourceId + x.PageSize = b.PageSize + x.PageToken = b.PageToken + x.Annotations = b.Annotations + x.ActiveSyncId = b.ActiveSyncId + return m0 +} + type ResourcesServiceListResourcesResponse struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` List []*Resource `protobuf:"bytes,1,rep,name=list,proto3" json:"list,omitempty"` NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` Annotations []*anypb.Any `protobuf:"bytes,3,rep,name=annotations,proto3" json:"annotations,omitempty"` @@ -1799,11 +3179,6 @@ func (x *ResourcesServiceListResourcesResponse) ProtoReflect() protoreflect.Mess return mi.MessageOf(x) } -// Deprecated: Use ResourcesServiceListResourcesResponse.ProtoReflect.Descriptor instead. -func (*ResourcesServiceListResourcesResponse) Descriptor() ([]byte, []int) { - return file_c1_connector_v2_resource_proto_rawDescGZIP(), []int{23} -} - func (x *ResourcesServiceListResourcesResponse) GetList() []*Resource { if x != nil { return x.List @@ -1825,11 +3200,42 @@ func (x *ResourcesServiceListResourcesResponse) GetAnnotations() []*anypb.Any { return nil } +func (x *ResourcesServiceListResourcesResponse) SetList(v []*Resource) { + x.List = v +} + +func (x *ResourcesServiceListResourcesResponse) SetNextPageToken(v string) { + x.NextPageToken = v +} + +func (x *ResourcesServiceListResourcesResponse) SetAnnotations(v []*anypb.Any) { + x.Annotations = v +} + +type ResourcesServiceListResourcesResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + List []*Resource + NextPageToken string + Annotations []*anypb.Any +} + +func (b0 ResourcesServiceListResourcesResponse_builder) Build() *ResourcesServiceListResourcesResponse { + m0 := &ResourcesServiceListResourcesResponse{} + b, x := &b0, m0 + _, _ = b, x + x.List = b.List + x.NextPageToken = b.NextPageToken + x.Annotations = b.Annotations + return m0 +} + type ResourceGetterServiceGetResourceRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` ResourceId *ResourceId `protobuf:"bytes,1,opt,name=resource_id,json=resourceId,proto3" json:"resource_id,omitempty"` ParentResourceId *ResourceId `protobuf:"bytes,2,opt,name=parent_resource_id,json=parentResourceId,proto3" json:"parent_resource_id,omitempty"` Annotations []*anypb.Any `protobuf:"bytes,3,rep,name=annotations,proto3" json:"annotations,omitempty"` + ActiveSyncId string `protobuf:"bytes,4,opt,name=active_sync_id,json=activeSyncId,proto3" json:"active_sync_id,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } @@ -1859,11 +3265,6 @@ func (x *ResourceGetterServiceGetResourceRequest) ProtoReflect() protoreflect.Me return mi.MessageOf(x) } -// Deprecated: Use ResourceGetterServiceGetResourceRequest.ProtoReflect.Descriptor instead. -func (*ResourceGetterServiceGetResourceRequest) Descriptor() ([]byte, []int) { - return file_c1_connector_v2_resource_proto_rawDescGZIP(), []int{24} -} - func (x *ResourceGetterServiceGetResourceRequest) GetResourceId() *ResourceId { if x != nil { return x.ResourceId @@ -1885,8 +3286,73 @@ func (x *ResourceGetterServiceGetResourceRequest) GetAnnotations() []*anypb.Any return nil } +func (x *ResourceGetterServiceGetResourceRequest) GetActiveSyncId() string { + if x != nil { + return x.ActiveSyncId + } + return "" +} + +func (x *ResourceGetterServiceGetResourceRequest) SetResourceId(v *ResourceId) { + x.ResourceId = v +} + +func (x *ResourceGetterServiceGetResourceRequest) SetParentResourceId(v *ResourceId) { + x.ParentResourceId = v +} + +func (x *ResourceGetterServiceGetResourceRequest) SetAnnotations(v []*anypb.Any) { + x.Annotations = v +} + +func (x *ResourceGetterServiceGetResourceRequest) SetActiveSyncId(v string) { + x.ActiveSyncId = v +} + +func (x *ResourceGetterServiceGetResourceRequest) HasResourceId() bool { + if x == nil { + return false + } + return x.ResourceId != nil +} + +func (x *ResourceGetterServiceGetResourceRequest) HasParentResourceId() bool { + if x == nil { + return false + } + return x.ParentResourceId != nil +} + +func (x *ResourceGetterServiceGetResourceRequest) ClearResourceId() { + x.ResourceId = nil +} + +func (x *ResourceGetterServiceGetResourceRequest) ClearParentResourceId() { + x.ParentResourceId = nil +} + +type ResourceGetterServiceGetResourceRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + ResourceId *ResourceId + ParentResourceId *ResourceId + Annotations []*anypb.Any + ActiveSyncId string +} + +func (b0 ResourceGetterServiceGetResourceRequest_builder) Build() *ResourceGetterServiceGetResourceRequest { + m0 := &ResourceGetterServiceGetResourceRequest{} + b, x := &b0, m0 + _, _ = b, x + x.ResourceId = b.ResourceId + x.ParentResourceId = b.ParentResourceId + x.Annotations = b.Annotations + x.ActiveSyncId = b.ActiveSyncId + return m0 +} + type ResourceGetterServiceGetResourceResponse struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` Resource *Resource `protobuf:"bytes,1,opt,name=resource,proto3" json:"resource,omitempty"` Annotations []*anypb.Any `protobuf:"bytes,2,rep,name=annotations,proto3" json:"annotations,omitempty"` unknownFields protoimpl.UnknownFields @@ -1918,11 +3384,6 @@ func (x *ResourceGetterServiceGetResourceResponse) ProtoReflect() protoreflect.M return mi.MessageOf(x) } -// Deprecated: Use ResourceGetterServiceGetResourceResponse.ProtoReflect.Descriptor instead. -func (*ResourceGetterServiceGetResourceResponse) Descriptor() ([]byte, []int) { - return file_c1_connector_v2_resource_proto_rawDescGZIP(), []int{25} -} - func (x *ResourceGetterServiceGetResourceResponse) GetResource() *Resource { if x != nil { return x.Resource @@ -1937,8 +3398,43 @@ func (x *ResourceGetterServiceGetResourceResponse) GetAnnotations() []*anypb.Any return nil } +func (x *ResourceGetterServiceGetResourceResponse) SetResource(v *Resource) { + x.Resource = v +} + +func (x *ResourceGetterServiceGetResourceResponse) SetAnnotations(v []*anypb.Any) { + x.Annotations = v +} + +func (x *ResourceGetterServiceGetResourceResponse) HasResource() bool { + if x == nil { + return false + } + return x.Resource != nil +} + +func (x *ResourceGetterServiceGetResourceResponse) ClearResource() { + x.Resource = nil +} + +type ResourceGetterServiceGetResourceResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Resource *Resource + Annotations []*anypb.Any +} + +func (b0 ResourceGetterServiceGetResourceResponse_builder) Build() *ResourceGetterServiceGetResourceResponse { + m0 := &ResourceGetterServiceGetResourceResponse{} + b, x := &b0, m0 + _, _ = b, x + x.Resource = b.Resource + x.Annotations = b.Annotations + return m0 +} + type ExternalId struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Link string `protobuf:"bytes,2,opt,name=link,proto3" json:"link,omitempty"` Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"` @@ -1971,11 +3467,6 @@ func (x *ExternalId) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use ExternalId.ProtoReflect.Descriptor instead. -func (*ExternalId) Descriptor() ([]byte, []int) { - return file_c1_connector_v2_resource_proto_rawDescGZIP(), []int{26} -} - func (x *ExternalId) GetId() string { if x != nil { return x.Id @@ -1997,8 +3488,38 @@ func (x *ExternalId) GetDescription() string { return "" } +func (x *ExternalId) SetId(v string) { + x.Id = v +} + +func (x *ExternalId) SetLink(v string) { + x.Link = v +} + +func (x *ExternalId) SetDescription(v string) { + x.Description = v +} + +type ExternalId_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Id string + Link string + Description string +} + +func (b0 ExternalId_builder) Build() *ExternalId { + m0 := &ExternalId{} + b, x := &b0, m0 + _, _ = b, x + x.Id = b.Id + x.Link = b.Link + x.Description = b.Description + return m0 +} + type AccountInfo_Email struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` // Indicates if this is the user's primary email. Only one entry can be marked as primary. IsPrimary bool `protobuf:"varint,2,opt,name=is_primary,json=isPrimary,proto3" json:"is_primary,omitempty"` @@ -2031,11 +3552,6 @@ func (x *AccountInfo_Email) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use AccountInfo_Email.ProtoReflect.Descriptor instead. -func (*AccountInfo_Email) Descriptor() ([]byte, []int) { - return file_c1_connector_v2_resource_proto_rawDescGZIP(), []int{11, 0} -} - func (x *AccountInfo_Email) GetAddress() string { if x != nil { return x.Address @@ -2050,8 +3566,33 @@ func (x *AccountInfo_Email) GetIsPrimary() bool { return false } +func (x *AccountInfo_Email) SetAddress(v string) { + x.Address = v +} + +func (x *AccountInfo_Email) SetIsPrimary(v bool) { + x.IsPrimary = v +} + +type AccountInfo_Email_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Address string + // Indicates if this is the user's primary email. Only one entry can be marked as primary. + IsPrimary bool +} + +func (b0 AccountInfo_Email_builder) Build() *AccountInfo_Email { + m0 := &AccountInfo_Email{} + b, x := &b0, m0 + _, _ = b, x + x.Address = b.Address + x.IsPrimary = b.IsPrimary + return m0 +} + type CredentialOptions_RandomPassword struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` Length int64 `protobuf:"varint,1,opt,name=length,proto3" json:"length,omitempty"` Constraints []*PasswordConstraint `protobuf:"bytes,2,rep,name=constraints,proto3" json:"constraints,omitempty"` unknownFields protoimpl.UnknownFields @@ -2083,11 +3624,6 @@ func (x *CredentialOptions_RandomPassword) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use CredentialOptions_RandomPassword.ProtoReflect.Descriptor instead. -func (*CredentialOptions_RandomPassword) Descriptor() ([]byte, []int) { - return file_c1_connector_v2_resource_proto_rawDescGZIP(), []int{12, 0} -} - func (x *CredentialOptions_RandomPassword) GetLength() int64 { if x != nil { return x.Length @@ -2102,8 +3638,32 @@ func (x *CredentialOptions_RandomPassword) GetConstraints() []*PasswordConstrain return nil } +func (x *CredentialOptions_RandomPassword) SetLength(v int64) { + x.Length = v +} + +func (x *CredentialOptions_RandomPassword) SetConstraints(v []*PasswordConstraint) { + x.Constraints = v +} + +type CredentialOptions_RandomPassword_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Length int64 + Constraints []*PasswordConstraint +} + +func (b0 CredentialOptions_RandomPassword_builder) Build() *CredentialOptions_RandomPassword { + m0 := &CredentialOptions_RandomPassword{} + b, x := &b0, m0 + _, _ = b, x + x.Length = b.Length + x.Constraints = b.Constraints + return m0 +} + type CredentialOptions_NoPassword struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } @@ -2133,13 +3693,20 @@ func (x *CredentialOptions_NoPassword) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use CredentialOptions_NoPassword.ProtoReflect.Descriptor instead. -func (*CredentialOptions_NoPassword) Descriptor() ([]byte, []int) { - return file_c1_connector_v2_resource_proto_rawDescGZIP(), []int{12, 1} +type CredentialOptions_NoPassword_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + +} + +func (b0 CredentialOptions_NoPassword_builder) Build() *CredentialOptions_NoPassword { + m0 := &CredentialOptions_NoPassword{} + b, x := &b0, m0 + _, _ = b, x + return m0 } type CredentialOptions_SSO struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` SsoProvider string `protobuf:"bytes,1,opt,name=sso_provider,json=ssoProvider,proto3" json:"sso_provider,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache @@ -2170,11 +3737,6 @@ func (x *CredentialOptions_SSO) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use CredentialOptions_SSO.ProtoReflect.Descriptor instead. -func (*CredentialOptions_SSO) Descriptor() ([]byte, []int) { - return file_c1_connector_v2_resource_proto_rawDescGZIP(), []int{12, 2} -} - func (x *CredentialOptions_SSO) GetSsoProvider() string { if x != nil { return x.SsoProvider @@ -2182,8 +3744,26 @@ func (x *CredentialOptions_SSO) GetSsoProvider() string { return "" } +func (x *CredentialOptions_SSO) SetSsoProvider(v string) { + x.SsoProvider = v +} + +type CredentialOptions_SSO_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + SsoProvider string +} + +func (b0 CredentialOptions_SSO_builder) Build() *CredentialOptions_SSO { + m0 := &CredentialOptions_SSO{} + b, x := &b0, m0 + _, _ = b, x + x.SsoProvider = b.SsoProvider + return m0 +} + type CredentialOptions_EncryptedPassword struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` EncryptedPasswords []*EncryptedData `protobuf:"bytes,1,rep,name=encrypted_passwords,json=encryptedPasswords,proto3" json:"encrypted_passwords,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache @@ -2214,11 +3794,6 @@ func (x *CredentialOptions_EncryptedPassword) ProtoReflect() protoreflect.Messag return mi.MessageOf(x) } -// Deprecated: Use CredentialOptions_EncryptedPassword.ProtoReflect.Descriptor instead. -func (*CredentialOptions_EncryptedPassword) Descriptor() ([]byte, []int) { - return file_c1_connector_v2_resource_proto_rawDescGZIP(), []int{12, 3} -} - func (x *CredentialOptions_EncryptedPassword) GetEncryptedPasswords() []*EncryptedData { if x != nil { return x.EncryptedPasswords @@ -2226,8 +3801,26 @@ func (x *CredentialOptions_EncryptedPassword) GetEncryptedPasswords() []*Encrypt return nil } +func (x *CredentialOptions_EncryptedPassword) SetEncryptedPasswords(v []*EncryptedData) { + x.EncryptedPasswords = v +} + +type CredentialOptions_EncryptedPassword_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + EncryptedPasswords []*EncryptedData +} + +func (b0 CredentialOptions_EncryptedPassword_builder) Build() *CredentialOptions_EncryptedPassword { + m0 := &CredentialOptions_EncryptedPassword{} + b, x := &b0, m0 + _, _ = b, x + x.EncryptedPasswords = b.EncryptedPasswords + return m0 +} + type LocalCredentialOptions_RandomPassword struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` Length int64 `protobuf:"varint,1,opt,name=length,proto3" json:"length,omitempty"` Constraints []*PasswordConstraint `protobuf:"bytes,2,rep,name=constraints,proto3" json:"constraints,omitempty"` unknownFields protoimpl.UnknownFields @@ -2259,11 +3852,6 @@ func (x *LocalCredentialOptions_RandomPassword) ProtoReflect() protoreflect.Mess return mi.MessageOf(x) } -// Deprecated: Use LocalCredentialOptions_RandomPassword.ProtoReflect.Descriptor instead. -func (*LocalCredentialOptions_RandomPassword) Descriptor() ([]byte, []int) { - return file_c1_connector_v2_resource_proto_rawDescGZIP(), []int{13, 0} -} - func (x *LocalCredentialOptions_RandomPassword) GetLength() int64 { if x != nil { return x.Length @@ -2278,8 +3866,32 @@ func (x *LocalCredentialOptions_RandomPassword) GetConstraints() []*PasswordCons return nil } +func (x *LocalCredentialOptions_RandomPassword) SetLength(v int64) { + x.Length = v +} + +func (x *LocalCredentialOptions_RandomPassword) SetConstraints(v []*PasswordConstraint) { + x.Constraints = v +} + +type LocalCredentialOptions_RandomPassword_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Length int64 + Constraints []*PasswordConstraint +} + +func (b0 LocalCredentialOptions_RandomPassword_builder) Build() *LocalCredentialOptions_RandomPassword { + m0 := &LocalCredentialOptions_RandomPassword{} + b, x := &b0, m0 + _, _ = b, x + x.Length = b.Length + x.Constraints = b.Constraints + return m0 +} + type LocalCredentialOptions_NoPassword struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } @@ -2309,13 +3921,20 @@ func (x *LocalCredentialOptions_NoPassword) ProtoReflect() protoreflect.Message return mi.MessageOf(x) } -// Deprecated: Use LocalCredentialOptions_NoPassword.ProtoReflect.Descriptor instead. -func (*LocalCredentialOptions_NoPassword) Descriptor() ([]byte, []int) { - return file_c1_connector_v2_resource_proto_rawDescGZIP(), []int{13, 1} +type LocalCredentialOptions_NoPassword_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + +} + +func (b0 LocalCredentialOptions_NoPassword_builder) Build() *LocalCredentialOptions_NoPassword { + m0 := &LocalCredentialOptions_NoPassword{} + b, x := &b0, m0 + _, _ = b, x + return m0 } type LocalCredentialOptions_SSO struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` SsoProvider string `protobuf:"bytes,1,opt,name=sso_provider,json=ssoProvider,proto3" json:"sso_provider,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache @@ -2346,11 +3965,6 @@ func (x *LocalCredentialOptions_SSO) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use LocalCredentialOptions_SSO.ProtoReflect.Descriptor instead. -func (*LocalCredentialOptions_SSO) Descriptor() ([]byte, []int) { - return file_c1_connector_v2_resource_proto_rawDescGZIP(), []int{13, 2} -} - func (x *LocalCredentialOptions_SSO) GetSsoProvider() string { if x != nil { return x.SsoProvider @@ -2358,8 +3972,26 @@ func (x *LocalCredentialOptions_SSO) GetSsoProvider() string { return "" } +func (x *LocalCredentialOptions_SSO) SetSsoProvider(v string) { + x.SsoProvider = v +} + +type LocalCredentialOptions_SSO_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + SsoProvider string +} + +func (b0 LocalCredentialOptions_SSO_builder) Build() *LocalCredentialOptions_SSO { + m0 := &LocalCredentialOptions_SSO{} + b, x := &b0, m0 + _, _ = b, x + x.SsoProvider = b.SsoProvider + return m0 +} + type LocalCredentialOptions_PlaintextPassword struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` PlaintextPassword string `protobuf:"bytes,1,opt,name=plaintext_password,json=plaintextPassword,proto3" json:"plaintext_password,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache @@ -2390,11 +4022,6 @@ func (x *LocalCredentialOptions_PlaintextPassword) ProtoReflect() protoreflect.M return mi.MessageOf(x) } -// Deprecated: Use LocalCredentialOptions_PlaintextPassword.ProtoReflect.Descriptor instead. -func (*LocalCredentialOptions_PlaintextPassword) Descriptor() ([]byte, []int) { - return file_c1_connector_v2_resource_proto_rawDescGZIP(), []int{13, 3} -} - func (x *LocalCredentialOptions_PlaintextPassword) GetPlaintextPassword() string { if x != nil { return x.PlaintextPassword @@ -2402,8 +4029,26 @@ func (x *LocalCredentialOptions_PlaintextPassword) GetPlaintextPassword() string return "" } +func (x *LocalCredentialOptions_PlaintextPassword) SetPlaintextPassword(v string) { + x.PlaintextPassword = v +} + +type LocalCredentialOptions_PlaintextPassword_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + PlaintextPassword string +} + +func (b0 LocalCredentialOptions_PlaintextPassword_builder) Build() *LocalCredentialOptions_PlaintextPassword { + m0 := &LocalCredentialOptions_PlaintextPassword{} + b, x := &b0, m0 + _, _ = b, x + x.PlaintextPassword = b.PlaintextPassword + return m0 +} + type CreateAccountResponse_SuccessResult struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` Resource *Resource `protobuf:"bytes,1,opt,name=resource,proto3" json:"resource,omitempty"` IsCreateAccountResult bool `protobuf:"varint,2,opt,name=is_create_account_result,json=isCreateAccountResult,proto3" json:"is_create_account_result,omitempty"` unknownFields protoimpl.UnknownFields @@ -2435,11 +4080,6 @@ func (x *CreateAccountResponse_SuccessResult) ProtoReflect() protoreflect.Messag return mi.MessageOf(x) } -// Deprecated: Use CreateAccountResponse_SuccessResult.ProtoReflect.Descriptor instead. -func (*CreateAccountResponse_SuccessResult) Descriptor() ([]byte, []int) { - return file_c1_connector_v2_resource_proto_rawDescGZIP(), []int{16, 0} -} - func (x *CreateAccountResponse_SuccessResult) GetResource() *Resource { if x != nil { return x.Resource @@ -2454,8 +4094,43 @@ func (x *CreateAccountResponse_SuccessResult) GetIsCreateAccountResult() bool { return false } +func (x *CreateAccountResponse_SuccessResult) SetResource(v *Resource) { + x.Resource = v +} + +func (x *CreateAccountResponse_SuccessResult) SetIsCreateAccountResult(v bool) { + x.IsCreateAccountResult = v +} + +func (x *CreateAccountResponse_SuccessResult) HasResource() bool { + if x == nil { + return false + } + return x.Resource != nil +} + +func (x *CreateAccountResponse_SuccessResult) ClearResource() { + x.Resource = nil +} + +type CreateAccountResponse_SuccessResult_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Resource *Resource + IsCreateAccountResult bool +} + +func (b0 CreateAccountResponse_SuccessResult_builder) Build() *CreateAccountResponse_SuccessResult { + m0 := &CreateAccountResponse_SuccessResult{} + b, x := &b0, m0 + _, _ = b, x + x.Resource = b.Resource + x.IsCreateAccountResult = b.IsCreateAccountResult + return m0 +} + type CreateAccountResponse_ActionRequiredResult struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` Resource *Resource `protobuf:"bytes,1,opt,name=resource,proto3" json:"resource,omitempty"` Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` IsCreateAccountResult bool `protobuf:"varint,3,opt,name=is_create_account_result,json=isCreateAccountResult,proto3" json:"is_create_account_result,omitempty"` @@ -2488,11 +4163,6 @@ func (x *CreateAccountResponse_ActionRequiredResult) ProtoReflect() protoreflect return mi.MessageOf(x) } -// Deprecated: Use CreateAccountResponse_ActionRequiredResult.ProtoReflect.Descriptor instead. -func (*CreateAccountResponse_ActionRequiredResult) Descriptor() ([]byte, []int) { - return file_c1_connector_v2_resource_proto_rawDescGZIP(), []int{16, 1} -} - func (x *CreateAccountResponse_ActionRequiredResult) GetResource() *Resource { if x != nil { return x.Resource @@ -2514,8 +4184,213 @@ func (x *CreateAccountResponse_ActionRequiredResult) GetIsCreateAccountResult() return false } +func (x *CreateAccountResponse_ActionRequiredResult) SetResource(v *Resource) { + x.Resource = v +} + +func (x *CreateAccountResponse_ActionRequiredResult) SetMessage(v string) { + x.Message = v +} + +func (x *CreateAccountResponse_ActionRequiredResult) SetIsCreateAccountResult(v bool) { + x.IsCreateAccountResult = v +} + +func (x *CreateAccountResponse_ActionRequiredResult) HasResource() bool { + if x == nil { + return false + } + return x.Resource != nil +} + +func (x *CreateAccountResponse_ActionRequiredResult) ClearResource() { + x.Resource = nil +} + +type CreateAccountResponse_ActionRequiredResult_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Resource *Resource + Message string + IsCreateAccountResult bool +} + +func (b0 CreateAccountResponse_ActionRequiredResult_builder) Build() *CreateAccountResponse_ActionRequiredResult { + m0 := &CreateAccountResponse_ActionRequiredResult{} + b, x := &b0, m0 + _, _ = b, x + x.Resource = b.Resource + x.Message = b.Message + x.IsCreateAccountResult = b.IsCreateAccountResult + return m0 +} + +type CreateAccountResponse_AlreadyExistsResult struct { + state protoimpl.MessageState `protogen:"hybrid.v1"` + Resource *Resource `protobuf:"bytes,1,opt,name=resource,proto3" json:"resource,omitempty"` + IsCreateAccountResult bool `protobuf:"varint,2,opt,name=is_create_account_result,json=isCreateAccountResult,proto3" json:"is_create_account_result,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *CreateAccountResponse_AlreadyExistsResult) Reset() { + *x = CreateAccountResponse_AlreadyExistsResult{} + mi := &file_c1_connector_v2_resource_proto_msgTypes[38] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *CreateAccountResponse_AlreadyExistsResult) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*CreateAccountResponse_AlreadyExistsResult) ProtoMessage() {} + +func (x *CreateAccountResponse_AlreadyExistsResult) ProtoReflect() protoreflect.Message { + mi := &file_c1_connector_v2_resource_proto_msgTypes[38] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *CreateAccountResponse_AlreadyExistsResult) GetResource() *Resource { + if x != nil { + return x.Resource + } + return nil +} + +func (x *CreateAccountResponse_AlreadyExistsResult) GetIsCreateAccountResult() bool { + if x != nil { + return x.IsCreateAccountResult + } + return false +} + +func (x *CreateAccountResponse_AlreadyExistsResult) SetResource(v *Resource) { + x.Resource = v +} + +func (x *CreateAccountResponse_AlreadyExistsResult) SetIsCreateAccountResult(v bool) { + x.IsCreateAccountResult = v +} + +func (x *CreateAccountResponse_AlreadyExistsResult) HasResource() bool { + if x == nil { + return false + } + return x.Resource != nil +} + +func (x *CreateAccountResponse_AlreadyExistsResult) ClearResource() { + x.Resource = nil +} + +type CreateAccountResponse_AlreadyExistsResult_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Resource *Resource + IsCreateAccountResult bool +} + +func (b0 CreateAccountResponse_AlreadyExistsResult_builder) Build() *CreateAccountResponse_AlreadyExistsResult { + m0 := &CreateAccountResponse_AlreadyExistsResult{} + b, x := &b0, m0 + _, _ = b, x + x.Resource = b.Resource + x.IsCreateAccountResult = b.IsCreateAccountResult + return m0 +} + +type CreateAccountResponse_InProgressResult struct { + state protoimpl.MessageState `protogen:"hybrid.v1"` + Resource *Resource `protobuf:"bytes,1,opt,name=resource,proto3" json:"resource,omitempty"` // Optional. + IsCreateAccountResult bool `protobuf:"varint,2,opt,name=is_create_account_result,json=isCreateAccountResult,proto3" json:"is_create_account_result,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *CreateAccountResponse_InProgressResult) Reset() { + *x = CreateAccountResponse_InProgressResult{} + mi := &file_c1_connector_v2_resource_proto_msgTypes[39] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *CreateAccountResponse_InProgressResult) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*CreateAccountResponse_InProgressResult) ProtoMessage() {} + +func (x *CreateAccountResponse_InProgressResult) ProtoReflect() protoreflect.Message { + mi := &file_c1_connector_v2_resource_proto_msgTypes[39] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *CreateAccountResponse_InProgressResult) GetResource() *Resource { + if x != nil { + return x.Resource + } + return nil +} + +func (x *CreateAccountResponse_InProgressResult) GetIsCreateAccountResult() bool { + if x != nil { + return x.IsCreateAccountResult + } + return false +} + +func (x *CreateAccountResponse_InProgressResult) SetResource(v *Resource) { + x.Resource = v +} + +func (x *CreateAccountResponse_InProgressResult) SetIsCreateAccountResult(v bool) { + x.IsCreateAccountResult = v +} + +func (x *CreateAccountResponse_InProgressResult) HasResource() bool { + if x == nil { + return false + } + return x.Resource != nil +} + +func (x *CreateAccountResponse_InProgressResult) ClearResource() { + x.Resource = nil +} + +type CreateAccountResponse_InProgressResult_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Resource *Resource + IsCreateAccountResult bool +} + +func (b0 CreateAccountResponse_InProgressResult_builder) Build() *CreateAccountResponse_InProgressResult { + m0 := &CreateAccountResponse_InProgressResult{} + b, x := &b0, m0 + _, _ = b, x + x.Resource = b.Resource + x.IsCreateAccountResult = b.IsCreateAccountResult + return m0 +} + type EncryptionConfig_JWKPublicKeyConfig struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` PubKey []byte `protobuf:"bytes,1,opt,name=pub_key,json=pubKey,proto3" json:"pub_key,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache @@ -2523,7 +4398,7 @@ type EncryptionConfig_JWKPublicKeyConfig struct { func (x *EncryptionConfig_JWKPublicKeyConfig) Reset() { *x = EncryptionConfig_JWKPublicKeyConfig{} - mi := &file_c1_connector_v2_resource_proto_msgTypes[38] + mi := &file_c1_connector_v2_resource_proto_msgTypes[40] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2535,7 +4410,7 @@ func (x *EncryptionConfig_JWKPublicKeyConfig) String() string { func (*EncryptionConfig_JWKPublicKeyConfig) ProtoMessage() {} func (x *EncryptionConfig_JWKPublicKeyConfig) ProtoReflect() protoreflect.Message { - mi := &file_c1_connector_v2_resource_proto_msgTypes[38] + mi := &file_c1_connector_v2_resource_proto_msgTypes[40] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2546,11 +4421,6 @@ func (x *EncryptionConfig_JWKPublicKeyConfig) ProtoReflect() protoreflect.Messag return mi.MessageOf(x) } -// Deprecated: Use EncryptionConfig_JWKPublicKeyConfig.ProtoReflect.Descriptor instead. -func (*EncryptionConfig_JWKPublicKeyConfig) Descriptor() ([]byte, []int) { - return file_c1_connector_v2_resource_proto_rawDescGZIP(), []int{19, 0} -} - func (x *EncryptionConfig_JWKPublicKeyConfig) GetPubKey() []byte { if x != nil { return x.PubKey @@ -2558,553 +4428,258 @@ func (x *EncryptionConfig_JWKPublicKeyConfig) GetPubKey() []byte { return nil } -var File_c1_connector_v2_resource_proto protoreflect.FileDescriptor +func (x *EncryptionConfig_JWKPublicKeyConfig) SetPubKey(v []byte) { + if v == nil { + v = []byte{} + } + x.PubKey = v +} -var file_c1_connector_v2_resource_proto_rawDesc = string([]byte{ - 0x0a, 0x1e, 0x63, 0x31, 0x2f, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x2f, 0x76, - 0x32, 0x2f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, - 0x12, 0x0f, 0x63, 0x31, 0x2e, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x2e, 0x76, - 0x32, 0x1a, 0x19, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, - 0x75, 0x66, 0x2f, 0x61, 0x6e, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1c, 0x67, 0x6f, - 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x73, 0x74, - 0x72, 0x75, 0x63, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x17, 0x76, 0x61, 0x6c, 0x69, - 0x64, 0x61, 0x74, 0x65, 0x2f, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x2e, 0x70, 0x72, - 0x6f, 0x74, 0x6f, 0x22, 0xb4, 0x03, 0x0a, 0x0c, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, - 0x54, 0x79, 0x70, 0x65, 0x12, 0x1a, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, - 0x42, 0x0a, 0xfa, 0x42, 0x07, 0x72, 0x05, 0x20, 0x01, 0x28, 0x80, 0x08, 0x52, 0x02, 0x69, 0x64, - 0x12, 0x30, 0x0a, 0x0c, 0x64, 0x69, 0x73, 0x70, 0x6c, 0x61, 0x79, 0x5f, 0x6e, 0x61, 0x6d, 0x65, - 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x0d, 0xfa, 0x42, 0x0a, 0x72, 0x08, 0x20, 0x01, 0x28, - 0x80, 0x08, 0xd0, 0x01, 0x01, 0x52, 0x0b, 0x64, 0x69, 0x73, 0x70, 0x6c, 0x61, 0x79, 0x4e, 0x61, - 0x6d, 0x65, 0x12, 0x4c, 0x0a, 0x06, 0x74, 0x72, 0x61, 0x69, 0x74, 0x73, 0x18, 0x03, 0x20, 0x03, - 0x28, 0x0e, 0x32, 0x23, 0x2e, 0x63, 0x31, 0x2e, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, - 0x72, 0x2e, 0x76, 0x32, 0x2e, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x54, 0x79, 0x70, - 0x65, 0x2e, 0x54, 0x72, 0x61, 0x69, 0x74, 0x42, 0x0f, 0xfa, 0x42, 0x0c, 0x92, 0x01, 0x09, 0x18, - 0x01, 0x22, 0x05, 0x82, 0x01, 0x02, 0x10, 0x01, 0x52, 0x06, 0x74, 0x72, 0x61, 0x69, 0x74, 0x73, - 0x12, 0x36, 0x0a, 0x0b, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, - 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, - 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x41, 0x6e, 0x79, 0x52, 0x0b, 0x61, 0x6e, 0x6e, - 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x2f, 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x63, - 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x42, 0x0d, 0xfa, - 0x42, 0x0a, 0x72, 0x08, 0x20, 0x01, 0x28, 0x80, 0x20, 0xd0, 0x01, 0x01, 0x52, 0x0b, 0x64, 0x65, - 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x2d, 0x0a, 0x12, 0x73, 0x6f, 0x75, - 0x72, 0x63, 0x65, 0x64, 0x5f, 0x65, 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x6c, 0x79, 0x18, - 0x06, 0x20, 0x01, 0x28, 0x08, 0x52, 0x11, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x64, 0x45, 0x78, - 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x6c, 0x79, 0x22, 0x70, 0x0a, 0x05, 0x54, 0x72, 0x61, 0x69, - 0x74, 0x12, 0x15, 0x0a, 0x11, 0x54, 0x52, 0x41, 0x49, 0x54, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, - 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x0e, 0x0a, 0x0a, 0x54, 0x52, 0x41, 0x49, - 0x54, 0x5f, 0x55, 0x53, 0x45, 0x52, 0x10, 0x01, 0x12, 0x0f, 0x0a, 0x0b, 0x54, 0x52, 0x41, 0x49, - 0x54, 0x5f, 0x47, 0x52, 0x4f, 0x55, 0x50, 0x10, 0x02, 0x12, 0x0e, 0x0a, 0x0a, 0x54, 0x52, 0x41, - 0x49, 0x54, 0x5f, 0x52, 0x4f, 0x4c, 0x45, 0x10, 0x03, 0x12, 0x0d, 0x0a, 0x09, 0x54, 0x52, 0x41, - 0x49, 0x54, 0x5f, 0x41, 0x50, 0x50, 0x10, 0x04, 0x12, 0x10, 0x0a, 0x0c, 0x54, 0x52, 0x41, 0x49, - 0x54, 0x5f, 0x53, 0x45, 0x43, 0x52, 0x45, 0x54, 0x10, 0x05, 0x22, 0xf1, 0x01, 0x0a, 0x2c, 0x52, - 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x54, 0x79, 0x70, 0x65, 0x73, 0x53, 0x65, 0x72, 0x76, - 0x69, 0x63, 0x65, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x54, - 0x79, 0x70, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x31, 0x0a, 0x06, 0x70, - 0x61, 0x72, 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x63, 0x31, - 0x2e, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x2e, 0x76, 0x32, 0x2e, 0x52, 0x65, - 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x52, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x12, 0x27, - 0x0a, 0x09, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, - 0x0d, 0x42, 0x0a, 0xfa, 0x42, 0x07, 0x2a, 0x05, 0x18, 0xfa, 0x01, 0x40, 0x01, 0x52, 0x08, 0x70, - 0x61, 0x67, 0x65, 0x53, 0x69, 0x7a, 0x65, 0x12, 0x2d, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x65, 0x5f, - 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x42, 0x0e, 0xfa, 0x42, 0x0b, - 0x72, 0x09, 0x20, 0x01, 0x28, 0x80, 0x80, 0x40, 0xd0, 0x01, 0x01, 0x52, 0x09, 0x70, 0x61, 0x67, - 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x36, 0x0a, 0x0b, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, - 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x67, 0x6f, - 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x41, 0x6e, - 0x79, 0x52, 0x0b, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x22, 0xd2, - 0x01, 0x0a, 0x2d, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x54, 0x79, 0x70, 0x65, 0x73, - 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x73, 0x6f, 0x75, - 0x72, 0x63, 0x65, 0x54, 0x79, 0x70, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, - 0x12, 0x31, 0x0a, 0x04, 0x6c, 0x69, 0x73, 0x74, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1d, - 0x2e, 0x63, 0x31, 0x2e, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x2e, 0x76, 0x32, - 0x2e, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x54, 0x79, 0x70, 0x65, 0x52, 0x04, 0x6c, - 0x69, 0x73, 0x74, 0x12, 0x36, 0x0a, 0x0f, 0x6e, 0x65, 0x78, 0x74, 0x5f, 0x70, 0x61, 0x67, 0x65, - 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x0e, 0xfa, 0x42, - 0x0b, 0x72, 0x09, 0x20, 0x01, 0x28, 0x80, 0x80, 0x40, 0xd0, 0x01, 0x01, 0x52, 0x0d, 0x6e, 0x65, - 0x78, 0x74, 0x50, 0x61, 0x67, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x36, 0x0a, 0x0b, 0x61, - 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, - 0x32, 0x14, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, - 0x75, 0x66, 0x2e, 0x41, 0x6e, 0x79, 0x52, 0x0b, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, - 0x6f, 0x6e, 0x73, 0x22, 0x4e, 0x0a, 0x15, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x52, 0x65, 0x73, - 0x6f, 0x75, 0x72, 0x63, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x35, 0x0a, 0x08, - 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, - 0x2e, 0x63, 0x31, 0x2e, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x2e, 0x76, 0x32, - 0x2e, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x52, 0x08, 0x72, 0x65, 0x73, 0x6f, 0x75, - 0x72, 0x63, 0x65, 0x22, 0x85, 0x01, 0x0a, 0x16, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x52, 0x65, - 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x33, - 0x0a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, - 0x19, 0x2e, 0x63, 0x31, 0x2e, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x2e, 0x76, - 0x32, 0x2e, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x52, 0x07, 0x63, 0x72, 0x65, 0x61, - 0x74, 0x65, 0x64, 0x12, 0x36, 0x0a, 0x0b, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, - 0x6e, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, - 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x41, 0x6e, 0x79, 0x52, 0x0b, - 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x22, 0xa0, 0x01, 0x0a, 0x15, - 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x52, 0x65, - 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x3c, 0x0a, 0x0b, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, - 0x65, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x63, 0x31, 0x2e, - 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x2e, 0x76, 0x32, 0x2e, 0x52, 0x65, 0x73, - 0x6f, 0x75, 0x72, 0x63, 0x65, 0x49, 0x64, 0x52, 0x0a, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, - 0x65, 0x49, 0x64, 0x12, 0x49, 0x0a, 0x12, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x5f, 0x72, 0x65, - 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, - 0x1b, 0x2e, 0x63, 0x31, 0x2e, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x2e, 0x76, - 0x32, 0x2e, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x49, 0x64, 0x52, 0x10, 0x70, 0x61, - 0x72, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x49, 0x64, 0x22, 0x50, - 0x0a, 0x16, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, - 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x36, 0x0a, 0x0b, 0x61, 0x6e, 0x6e, 0x6f, - 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x14, 0x2e, - 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, - 0x41, 0x6e, 0x79, 0x52, 0x0b, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, - 0x22, 0xa2, 0x01, 0x0a, 0x17, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x52, 0x65, 0x73, 0x6f, 0x75, - 0x72, 0x63, 0x65, 0x56, 0x32, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x3c, 0x0a, 0x0b, - 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x0b, 0x32, 0x1b, 0x2e, 0x63, 0x31, 0x2e, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, - 0x2e, 0x76, 0x32, 0x2e, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x49, 0x64, 0x52, 0x0a, - 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x49, 0x64, 0x12, 0x49, 0x0a, 0x12, 0x70, 0x61, - 0x72, 0x65, 0x6e, 0x74, 0x5f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x69, 0x64, - 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x63, 0x31, 0x2e, 0x63, 0x6f, 0x6e, 0x6e, - 0x65, 0x63, 0x74, 0x6f, 0x72, 0x2e, 0x76, 0x32, 0x2e, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, - 0x65, 0x49, 0x64, 0x52, 0x10, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x6f, 0x75, - 0x72, 0x63, 0x65, 0x49, 0x64, 0x22, 0x52, 0x0a, 0x18, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x52, - 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x56, 0x32, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, - 0x65, 0x12, 0x36, 0x0a, 0x0b, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, - 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, - 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x41, 0x6e, 0x79, 0x52, 0x0b, 0x61, 0x6e, - 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x22, 0xfc, 0x01, 0x0a, 0x17, 0x52, 0x6f, - 0x74, 0x61, 0x74, 0x65, 0x43, 0x72, 0x65, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x52, 0x65, - 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x3c, 0x0a, 0x0b, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, - 0x65, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x63, 0x31, 0x2e, - 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x2e, 0x76, 0x32, 0x2e, 0x52, 0x65, 0x73, - 0x6f, 0x75, 0x72, 0x63, 0x65, 0x49, 0x64, 0x52, 0x0a, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, - 0x65, 0x49, 0x64, 0x12, 0x51, 0x0a, 0x12, 0x63, 0x72, 0x65, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x61, - 0x6c, 0x5f, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, - 0x22, 0x2e, 0x63, 0x31, 0x2e, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x2e, 0x76, - 0x32, 0x2e, 0x43, 0x72, 0x65, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x4f, 0x70, 0x74, 0x69, - 0x6f, 0x6e, 0x73, 0x52, 0x11, 0x63, 0x72, 0x65, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x4f, - 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x50, 0x0a, 0x12, 0x65, 0x6e, 0x63, 0x72, 0x79, 0x70, - 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x73, 0x18, 0x03, 0x20, 0x03, - 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x63, 0x31, 0x2e, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, - 0x72, 0x2e, 0x76, 0x32, 0x2e, 0x45, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x43, - 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x11, 0x65, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x69, 0x6f, - 0x6e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x73, 0x22, 0xd7, 0x01, 0x0a, 0x18, 0x52, 0x6f, 0x74, - 0x61, 0x74, 0x65, 0x43, 0x72, 0x65, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x52, 0x65, 0x73, - 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x45, 0x0a, 0x0e, 0x65, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, - 0x65, 0x64, 0x5f, 0x64, 0x61, 0x74, 0x61, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1e, 0x2e, - 0x63, 0x31, 0x2e, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x2e, 0x76, 0x32, 0x2e, - 0x45, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x65, 0x64, 0x44, 0x61, 0x74, 0x61, 0x52, 0x0d, 0x65, - 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x65, 0x64, 0x44, 0x61, 0x74, 0x61, 0x12, 0x3c, 0x0a, 0x0b, - 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, - 0x0b, 0x32, 0x1b, 0x2e, 0x63, 0x31, 0x2e, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, - 0x2e, 0x76, 0x32, 0x2e, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x49, 0x64, 0x52, 0x0a, - 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x49, 0x64, 0x12, 0x36, 0x0a, 0x0b, 0x61, 0x6e, - 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, - 0x14, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, - 0x66, 0x2e, 0x41, 0x6e, 0x79, 0x52, 0x0b, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, - 0x6e, 0x73, 0x22, 0x82, 0x02, 0x0a, 0x0b, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x49, 0x6e, - 0x66, 0x6f, 0x12, 0x3a, 0x0a, 0x06, 0x65, 0x6d, 0x61, 0x69, 0x6c, 0x73, 0x18, 0x01, 0x20, 0x03, - 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x63, 0x31, 0x2e, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, - 0x72, 0x2e, 0x76, 0x32, 0x2e, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x49, 0x6e, 0x66, 0x6f, - 0x2e, 0x45, 0x6d, 0x61, 0x69, 0x6c, 0x52, 0x06, 0x65, 0x6d, 0x61, 0x69, 0x6c, 0x73, 0x12, 0x14, - 0x0a, 0x05, 0x6c, 0x6f, 0x67, 0x69, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x6c, - 0x6f, 0x67, 0x69, 0x6e, 0x12, 0x23, 0x0a, 0x0d, 0x6c, 0x6f, 0x67, 0x69, 0x6e, 0x5f, 0x61, 0x6c, - 0x69, 0x61, 0x73, 0x65, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0c, 0x6c, 0x6f, 0x67, - 0x69, 0x6e, 0x41, 0x6c, 0x69, 0x61, 0x73, 0x65, 0x73, 0x12, 0x31, 0x0a, 0x07, 0x70, 0x72, 0x6f, - 0x66, 0x69, 0x6c, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x67, 0x6f, 0x6f, - 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x53, 0x74, 0x72, - 0x75, 0x63, 0x74, 0x52, 0x07, 0x70, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x1a, 0x49, 0x0a, 0x05, - 0x45, 0x6d, 0x61, 0x69, 0x6c, 0x12, 0x21, 0x0a, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, - 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x07, 0xfa, 0x42, 0x04, 0x72, 0x02, 0x60, 0x01, 0x52, - 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x1d, 0x0a, 0x0a, 0x69, 0x73, 0x5f, 0x70, - 0x72, 0x69, 0x6d, 0x61, 0x72, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x09, 0x69, 0x73, - 0x50, 0x72, 0x69, 0x6d, 0x61, 0x72, 0x79, 0x22, 0xd1, 0x05, 0x0a, 0x11, 0x43, 0x72, 0x65, 0x64, - 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x5c, 0x0a, - 0x0f, 0x72, 0x61, 0x6e, 0x64, 0x6f, 0x6d, 0x5f, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, - 0x18, 0x64, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x31, 0x2e, 0x63, 0x31, 0x2e, 0x63, 0x6f, 0x6e, 0x6e, - 0x65, 0x63, 0x74, 0x6f, 0x72, 0x2e, 0x76, 0x32, 0x2e, 0x43, 0x72, 0x65, 0x64, 0x65, 0x6e, 0x74, - 0x69, 0x61, 0x6c, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x52, 0x61, 0x6e, 0x64, 0x6f, - 0x6d, 0x50, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x48, 0x00, 0x52, 0x0e, 0x72, 0x61, 0x6e, - 0x64, 0x6f, 0x6d, 0x50, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x12, 0x50, 0x0a, 0x0b, 0x6e, - 0x6f, 0x5f, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x18, 0x65, 0x20, 0x01, 0x28, 0x0b, - 0x32, 0x2d, 0x2e, 0x63, 0x31, 0x2e, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x2e, - 0x76, 0x32, 0x2e, 0x43, 0x72, 0x65, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x4f, 0x70, 0x74, - 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x4e, 0x6f, 0x50, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x48, - 0x00, 0x52, 0x0a, 0x6e, 0x6f, 0x50, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x12, 0x3a, 0x0a, - 0x03, 0x73, 0x73, 0x6f, 0x18, 0x66, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x63, 0x31, 0x2e, - 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x2e, 0x76, 0x32, 0x2e, 0x43, 0x72, 0x65, - 0x64, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x53, - 0x53, 0x4f, 0x48, 0x00, 0x52, 0x03, 0x73, 0x73, 0x6f, 0x12, 0x65, 0x0a, 0x12, 0x65, 0x6e, 0x63, - 0x72, 0x79, 0x70, 0x74, 0x65, 0x64, 0x5f, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x18, - 0x67, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x34, 0x2e, 0x63, 0x31, 0x2e, 0x63, 0x6f, 0x6e, 0x6e, 0x65, - 0x63, 0x74, 0x6f, 0x72, 0x2e, 0x76, 0x32, 0x2e, 0x43, 0x72, 0x65, 0x64, 0x65, 0x6e, 0x74, 0x69, - 0x61, 0x6c, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x45, 0x6e, 0x63, 0x72, 0x79, 0x70, - 0x74, 0x65, 0x64, 0x50, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x48, 0x00, 0x52, 0x11, 0x65, - 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x65, 0x64, 0x50, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, - 0x12, 0x3a, 0x0a, 0x1a, 0x66, 0x6f, 0x72, 0x63, 0x65, 0x5f, 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65, - 0x5f, 0x61, 0x74, 0x5f, 0x6e, 0x65, 0x78, 0x74, 0x5f, 0x6c, 0x6f, 0x67, 0x69, 0x6e, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x08, 0x52, 0x16, 0x66, 0x6f, 0x72, 0x63, 0x65, 0x43, 0x68, 0x61, 0x6e, 0x67, - 0x65, 0x41, 0x74, 0x4e, 0x65, 0x78, 0x74, 0x4c, 0x6f, 0x67, 0x69, 0x6e, 0x1a, 0x7a, 0x0a, 0x0e, - 0x52, 0x61, 0x6e, 0x64, 0x6f, 0x6d, 0x50, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x12, 0x21, - 0x0a, 0x06, 0x6c, 0x65, 0x6e, 0x67, 0x74, 0x68, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x42, 0x09, - 0xfa, 0x42, 0x06, 0x22, 0x04, 0x18, 0x40, 0x28, 0x08, 0x52, 0x06, 0x6c, 0x65, 0x6e, 0x67, 0x74, - 0x68, 0x12, 0x45, 0x0a, 0x0b, 0x63, 0x6f, 0x6e, 0x73, 0x74, 0x72, 0x61, 0x69, 0x6e, 0x74, 0x73, - 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x23, 0x2e, 0x63, 0x31, 0x2e, 0x63, 0x6f, 0x6e, 0x6e, - 0x65, 0x63, 0x74, 0x6f, 0x72, 0x2e, 0x76, 0x32, 0x2e, 0x50, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, - 0x64, 0x43, 0x6f, 0x6e, 0x73, 0x74, 0x72, 0x61, 0x69, 0x6e, 0x74, 0x52, 0x0b, 0x63, 0x6f, 0x6e, - 0x73, 0x74, 0x72, 0x61, 0x69, 0x6e, 0x74, 0x73, 0x1a, 0x0c, 0x0a, 0x0a, 0x4e, 0x6f, 0x50, 0x61, - 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x1a, 0x28, 0x0a, 0x03, 0x53, 0x53, 0x4f, 0x12, 0x21, 0x0a, - 0x0c, 0x73, 0x73, 0x6f, 0x5f, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x0b, 0x73, 0x73, 0x6f, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, - 0x1a, 0x6e, 0x0a, 0x11, 0x45, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x65, 0x64, 0x50, 0x61, 0x73, - 0x73, 0x77, 0x6f, 0x72, 0x64, 0x12, 0x59, 0x0a, 0x13, 0x65, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, - 0x65, 0x64, 0x5f, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x73, 0x18, 0x01, 0x20, 0x03, - 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x63, 0x31, 0x2e, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, - 0x72, 0x2e, 0x76, 0x32, 0x2e, 0x45, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x65, 0x64, 0x44, 0x61, - 0x74, 0x61, 0x42, 0x08, 0xfa, 0x42, 0x05, 0x92, 0x01, 0x02, 0x08, 0x01, 0x52, 0x12, 0x65, 0x6e, - 0x63, 0x72, 0x79, 0x70, 0x74, 0x65, 0x64, 0x50, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x73, - 0x42, 0x09, 0x0a, 0x07, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x22, 0xbe, 0x05, 0x0a, 0x16, - 0x4c, 0x6f, 0x63, 0x61, 0x6c, 0x43, 0x72, 0x65, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x4f, - 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x61, 0x0a, 0x0f, 0x72, 0x61, 0x6e, 0x64, 0x6f, 0x6d, - 0x5f, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x18, 0x64, 0x20, 0x01, 0x28, 0x0b, 0x32, - 0x36, 0x2e, 0x63, 0x31, 0x2e, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x2e, 0x76, - 0x32, 0x2e, 0x4c, 0x6f, 0x63, 0x61, 0x6c, 0x43, 0x72, 0x65, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x61, - 0x6c, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x52, 0x61, 0x6e, 0x64, 0x6f, 0x6d, 0x50, - 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x48, 0x00, 0x52, 0x0e, 0x72, 0x61, 0x6e, 0x64, 0x6f, - 0x6d, 0x50, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x12, 0x55, 0x0a, 0x0b, 0x6e, 0x6f, 0x5f, - 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x18, 0x65, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x32, - 0x2e, 0x63, 0x31, 0x2e, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x2e, 0x76, 0x32, - 0x2e, 0x4c, 0x6f, 0x63, 0x61, 0x6c, 0x43, 0x72, 0x65, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, - 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x4e, 0x6f, 0x50, 0x61, 0x73, 0x73, 0x77, 0x6f, - 0x72, 0x64, 0x48, 0x00, 0x52, 0x0a, 0x6e, 0x6f, 0x50, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, - 0x12, 0x3f, 0x0a, 0x03, 0x73, 0x73, 0x6f, 0x18, 0x66, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2b, 0x2e, - 0x63, 0x31, 0x2e, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x2e, 0x76, 0x32, 0x2e, - 0x4c, 0x6f, 0x63, 0x61, 0x6c, 0x43, 0x72, 0x65, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x4f, - 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x53, 0x53, 0x4f, 0x48, 0x00, 0x52, 0x03, 0x73, 0x73, - 0x6f, 0x12, 0x6a, 0x0a, 0x12, 0x70, 0x6c, 0x61, 0x69, 0x6e, 0x74, 0x65, 0x78, 0x74, 0x5f, 0x70, - 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x18, 0x67, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x39, 0x2e, - 0x63, 0x31, 0x2e, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x2e, 0x76, 0x32, 0x2e, - 0x4c, 0x6f, 0x63, 0x61, 0x6c, 0x43, 0x72, 0x65, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x4f, - 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x50, 0x6c, 0x61, 0x69, 0x6e, 0x74, 0x65, 0x78, 0x74, - 0x50, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x48, 0x00, 0x52, 0x11, 0x70, 0x6c, 0x61, 0x69, - 0x6e, 0x74, 0x65, 0x78, 0x74, 0x50, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x12, 0x3a, 0x0a, - 0x1a, 0x66, 0x6f, 0x72, 0x63, 0x65, 0x5f, 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x5f, 0x61, 0x74, - 0x5f, 0x6e, 0x65, 0x78, 0x74, 0x5f, 0x6c, 0x6f, 0x67, 0x69, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x08, 0x52, 0x16, 0x66, 0x6f, 0x72, 0x63, 0x65, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x41, 0x74, - 0x4e, 0x65, 0x78, 0x74, 0x4c, 0x6f, 0x67, 0x69, 0x6e, 0x1a, 0x7a, 0x0a, 0x0e, 0x52, 0x61, 0x6e, - 0x64, 0x6f, 0x6d, 0x50, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x12, 0x21, 0x0a, 0x06, 0x6c, - 0x65, 0x6e, 0x67, 0x74, 0x68, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x42, 0x09, 0xfa, 0x42, 0x06, - 0x22, 0x04, 0x18, 0x40, 0x28, 0x08, 0x52, 0x06, 0x6c, 0x65, 0x6e, 0x67, 0x74, 0x68, 0x12, 0x45, - 0x0a, 0x0b, 0x63, 0x6f, 0x6e, 0x73, 0x74, 0x72, 0x61, 0x69, 0x6e, 0x74, 0x73, 0x18, 0x02, 0x20, - 0x03, 0x28, 0x0b, 0x32, 0x23, 0x2e, 0x63, 0x31, 0x2e, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, - 0x6f, 0x72, 0x2e, 0x76, 0x32, 0x2e, 0x50, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x43, 0x6f, - 0x6e, 0x73, 0x74, 0x72, 0x61, 0x69, 0x6e, 0x74, 0x52, 0x0b, 0x63, 0x6f, 0x6e, 0x73, 0x74, 0x72, - 0x61, 0x69, 0x6e, 0x74, 0x73, 0x1a, 0x0c, 0x0a, 0x0a, 0x4e, 0x6f, 0x50, 0x61, 0x73, 0x73, 0x77, - 0x6f, 0x72, 0x64, 0x1a, 0x28, 0x0a, 0x03, 0x53, 0x53, 0x4f, 0x12, 0x21, 0x0a, 0x0c, 0x73, 0x73, - 0x6f, 0x5f, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x0b, 0x73, 0x73, 0x6f, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x1a, 0x42, 0x0a, - 0x11, 0x50, 0x6c, 0x61, 0x69, 0x6e, 0x74, 0x65, 0x78, 0x74, 0x50, 0x61, 0x73, 0x73, 0x77, 0x6f, - 0x72, 0x64, 0x12, 0x2d, 0x0a, 0x12, 0x70, 0x6c, 0x61, 0x69, 0x6e, 0x74, 0x65, 0x78, 0x74, 0x5f, - 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x11, - 0x70, 0x6c, 0x61, 0x69, 0x6e, 0x74, 0x65, 0x78, 0x74, 0x50, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, - 0x64, 0x42, 0x09, 0x0a, 0x07, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x22, 0x4c, 0x0a, 0x12, - 0x50, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x43, 0x6f, 0x6e, 0x73, 0x74, 0x72, 0x61, 0x69, - 0x6e, 0x74, 0x12, 0x19, 0x0a, 0x08, 0x63, 0x68, 0x61, 0x72, 0x5f, 0x73, 0x65, 0x74, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x68, 0x61, 0x72, 0x53, 0x65, 0x74, 0x12, 0x1b, 0x0a, - 0x09, 0x6d, 0x69, 0x6e, 0x5f, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, - 0x52, 0x08, 0x6d, 0x69, 0x6e, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x22, 0xfc, 0x01, 0x0a, 0x14, 0x43, - 0x72, 0x65, 0x61, 0x74, 0x65, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, - 0x65, 0x73, 0x74, 0x12, 0x3f, 0x0a, 0x0c, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x5f, 0x69, - 0x6e, 0x66, 0x6f, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x63, 0x31, 0x2e, 0x63, - 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x2e, 0x76, 0x32, 0x2e, 0x41, 0x63, 0x63, 0x6f, - 0x75, 0x6e, 0x74, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x0b, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, - 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x51, 0x0a, 0x12, 0x63, 0x72, 0x65, 0x64, 0x65, 0x6e, 0x74, 0x69, - 0x61, 0x6c, 0x5f, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, - 0x32, 0x22, 0x2e, 0x63, 0x31, 0x2e, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x2e, - 0x76, 0x32, 0x2e, 0x43, 0x72, 0x65, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x4f, 0x70, 0x74, - 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x11, 0x63, 0x72, 0x65, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, - 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x50, 0x0a, 0x12, 0x65, 0x6e, 0x63, 0x72, 0x79, - 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x73, 0x18, 0x03, 0x20, - 0x03, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x63, 0x31, 0x2e, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, - 0x6f, 0x72, 0x2e, 0x76, 0x32, 0x2e, 0x45, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x69, 0x6f, 0x6e, - 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x11, 0x65, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x69, - 0x6f, 0x6e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x73, 0x22, 0xfe, 0x04, 0x0a, 0x15, 0x43, 0x72, - 0x65, 0x61, 0x74, 0x65, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, - 0x6e, 0x73, 0x65, 0x12, 0x50, 0x0a, 0x07, 0x73, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x18, 0x64, - 0x20, 0x01, 0x28, 0x0b, 0x32, 0x34, 0x2e, 0x63, 0x31, 0x2e, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, - 0x74, 0x6f, 0x72, 0x2e, 0x76, 0x32, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x41, 0x63, 0x63, - 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x53, 0x75, 0x63, - 0x63, 0x65, 0x73, 0x73, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x48, 0x00, 0x52, 0x07, 0x73, 0x75, - 0x63, 0x63, 0x65, 0x73, 0x73, 0x12, 0x66, 0x0a, 0x0f, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x5f, - 0x72, 0x65, 0x71, 0x75, 0x69, 0x72, 0x65, 0x64, 0x18, 0x65, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x3b, - 0x2e, 0x63, 0x31, 0x2e, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x2e, 0x76, 0x32, - 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x65, - 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, - 0x75, 0x69, 0x72, 0x65, 0x64, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x48, 0x00, 0x52, 0x0e, 0x61, - 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x69, 0x72, 0x65, 0x64, 0x12, 0x45, 0x0a, - 0x0e, 0x65, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x65, 0x64, 0x5f, 0x64, 0x61, 0x74, 0x61, 0x18, - 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x63, 0x31, 0x2e, 0x63, 0x6f, 0x6e, 0x6e, 0x65, - 0x63, 0x74, 0x6f, 0x72, 0x2e, 0x76, 0x32, 0x2e, 0x45, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x65, - 0x64, 0x44, 0x61, 0x74, 0x61, 0x52, 0x0d, 0x65, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x65, 0x64, - 0x44, 0x61, 0x74, 0x61, 0x12, 0x36, 0x0a, 0x0b, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, - 0x6f, 0x6e, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x67, 0x6f, 0x6f, 0x67, - 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x41, 0x6e, 0x79, 0x52, - 0x0b, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x1a, 0x7f, 0x0a, 0x0d, - 0x53, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x12, 0x35, 0x0a, - 0x08, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, - 0x19, 0x2e, 0x63, 0x31, 0x2e, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x2e, 0x76, - 0x32, 0x2e, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x52, 0x08, 0x72, 0x65, 0x73, 0x6f, - 0x75, 0x72, 0x63, 0x65, 0x12, 0x37, 0x0a, 0x18, 0x69, 0x73, 0x5f, 0x63, 0x72, 0x65, 0x61, 0x74, - 0x65, 0x5f, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x5f, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, - 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x15, 0x69, 0x73, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, - 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x1a, 0xa0, 0x01, - 0x0a, 0x14, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x69, 0x72, 0x65, 0x64, - 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x12, 0x35, 0x0a, 0x08, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, - 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x63, 0x31, 0x2e, 0x63, 0x6f, - 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x2e, 0x76, 0x32, 0x2e, 0x52, 0x65, 0x73, 0x6f, 0x75, - 0x72, 0x63, 0x65, 0x52, 0x08, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x12, 0x18, 0x0a, - 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, - 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x37, 0x0a, 0x18, 0x69, 0x73, 0x5f, 0x63, 0x72, - 0x65, 0x61, 0x74, 0x65, 0x5f, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x5f, 0x72, 0x65, 0x73, - 0x75, 0x6c, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x15, 0x69, 0x73, 0x43, 0x72, 0x65, - 0x61, 0x74, 0x65, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, - 0x42, 0x08, 0x0a, 0x06, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x22, 0xd6, 0x01, 0x0a, 0x0d, 0x45, - 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x65, 0x64, 0x44, 0x61, 0x74, 0x61, 0x12, 0x1a, 0x0a, 0x08, - 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, - 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x12, 0x19, 0x0a, 0x06, 0x6b, 0x65, 0x79, 0x5f, - 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x02, 0x18, 0x01, 0x52, 0x05, 0x6b, 0x65, - 0x79, 0x49, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x20, 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, - 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x65, - 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x63, 0x68, - 0x65, 0x6d, 0x61, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x73, 0x63, 0x68, 0x65, 0x6d, - 0x61, 0x12, 0x27, 0x0a, 0x0f, 0x65, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x65, 0x64, 0x5f, 0x62, - 0x79, 0x74, 0x65, 0x73, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0e, 0x65, 0x6e, 0x63, 0x72, - 0x79, 0x70, 0x74, 0x65, 0x64, 0x42, 0x79, 0x74, 0x65, 0x73, 0x12, 0x17, 0x0a, 0x07, 0x6b, 0x65, - 0x79, 0x5f, 0x69, 0x64, 0x73, 0x18, 0x07, 0x20, 0x03, 0x28, 0x09, 0x52, 0x06, 0x6b, 0x65, 0x79, - 0x49, 0x64, 0x73, 0x22, 0x73, 0x0a, 0x0d, 0x50, 0x6c, 0x61, 0x69, 0x6e, 0x74, 0x65, 0x78, 0x74, - 0x44, 0x61, 0x74, 0x61, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x20, 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x63, - 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, - 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x63, - 0x68, 0x65, 0x6d, 0x61, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x73, 0x63, 0x68, 0x65, - 0x6d, 0x61, 0x12, 0x14, 0x0a, 0x05, 0x62, 0x79, 0x74, 0x65, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, - 0x0c, 0x52, 0x05, 0x62, 0x79, 0x74, 0x65, 0x73, 0x22, 0xa2, 0x02, 0x0a, 0x10, 0x45, 0x6e, 0x63, - 0x72, 0x79, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x37, 0x0a, - 0x09, 0x70, 0x72, 0x69, 0x6e, 0x63, 0x69, 0x70, 0x61, 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, - 0x32, 0x19, 0x2e, 0x63, 0x31, 0x2e, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x2e, - 0x76, 0x32, 0x2e, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x52, 0x09, 0x70, 0x72, 0x69, - 0x6e, 0x63, 0x69, 0x70, 0x61, 0x6c, 0x12, 0x1a, 0x0a, 0x08, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, - 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, - 0x65, 0x72, 0x12, 0x15, 0x0a, 0x06, 0x6b, 0x65, 0x79, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x05, 0x6b, 0x65, 0x79, 0x49, 0x64, 0x12, 0x69, 0x0a, 0x15, 0x6a, 0x77, 0x6b, - 0x5f, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x5f, 0x6b, 0x65, 0x79, 0x5f, 0x63, 0x6f, 0x6e, 0x66, - 0x69, 0x67, 0x18, 0x64, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x34, 0x2e, 0x63, 0x31, 0x2e, 0x63, 0x6f, - 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x2e, 0x76, 0x32, 0x2e, 0x45, 0x6e, 0x63, 0x72, 0x79, - 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x4a, 0x57, 0x4b, 0x50, - 0x75, 0x62, 0x6c, 0x69, 0x63, 0x4b, 0x65, 0x79, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x48, 0x00, - 0x52, 0x12, 0x6a, 0x77, 0x6b, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x4b, 0x65, 0x79, 0x43, 0x6f, - 0x6e, 0x66, 0x69, 0x67, 0x1a, 0x2d, 0x0a, 0x12, 0x4a, 0x57, 0x4b, 0x50, 0x75, 0x62, 0x6c, 0x69, - 0x63, 0x4b, 0x65, 0x79, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x17, 0x0a, 0x07, 0x70, 0x75, - 0x62, 0x5f, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x06, 0x70, 0x75, 0x62, - 0x4b, 0x65, 0x79, 0x42, 0x08, 0x0a, 0x06, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x22, 0x8c, 0x01, - 0x0a, 0x0a, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x49, 0x64, 0x12, 0x2f, 0x0a, 0x0d, - 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x09, 0x42, 0x0a, 0xfa, 0x42, 0x07, 0x72, 0x05, 0x20, 0x01, 0x28, 0x80, 0x08, 0x52, - 0x0c, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x54, 0x79, 0x70, 0x65, 0x12, 0x26, 0x0a, - 0x08, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, - 0x0a, 0xfa, 0x42, 0x07, 0x72, 0x05, 0x20, 0x01, 0x28, 0x80, 0x08, 0x52, 0x08, 0x72, 0x65, 0x73, - 0x6f, 0x75, 0x72, 0x63, 0x65, 0x12, 0x25, 0x0a, 0x0e, 0x62, 0x61, 0x74, 0x6f, 0x6e, 0x5f, 0x72, - 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0d, 0x62, - 0x61, 0x74, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x22, 0xf0, 0x04, 0x0a, - 0x08, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x12, 0x2b, 0x0a, 0x02, 0x69, 0x64, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x63, 0x31, 0x2e, 0x63, 0x6f, 0x6e, 0x6e, 0x65, - 0x63, 0x74, 0x6f, 0x72, 0x2e, 0x76, 0x32, 0x2e, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, - 0x49, 0x64, 0x52, 0x02, 0x69, 0x64, 0x12, 0x49, 0x0a, 0x12, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, - 0x5f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, - 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x63, 0x31, 0x2e, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, - 0x72, 0x2e, 0x76, 0x32, 0x2e, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x49, 0x64, 0x52, - 0x10, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x49, - 0x64, 0x12, 0x30, 0x0a, 0x0c, 0x64, 0x69, 0x73, 0x70, 0x6c, 0x61, 0x79, 0x5f, 0x6e, 0x61, 0x6d, - 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x42, 0x0d, 0xfa, 0x42, 0x0a, 0x72, 0x08, 0x20, 0x01, - 0x28, 0x80, 0x08, 0xd0, 0x01, 0x01, 0x52, 0x0b, 0x64, 0x69, 0x73, 0x70, 0x6c, 0x61, 0x79, 0x4e, - 0x61, 0x6d, 0x65, 0x12, 0x36, 0x0a, 0x0b, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, - 0x6e, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, - 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x41, 0x6e, 0x79, 0x52, 0x0b, - 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x2f, 0x0a, 0x0b, 0x64, - 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, - 0x42, 0x0d, 0xfa, 0x42, 0x0a, 0x72, 0x08, 0x20, 0x01, 0x28, 0x80, 0x10, 0xd0, 0x01, 0x01, 0x52, - 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x25, 0x0a, 0x0e, - 0x62, 0x61, 0x74, 0x6f, 0x6e, 0x5f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x18, 0x06, - 0x20, 0x01, 0x28, 0x08, 0x52, 0x0d, 0x62, 0x61, 0x74, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x6f, 0x75, - 0x72, 0x63, 0x65, 0x12, 0x3c, 0x0a, 0x0b, 0x65, 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x5f, - 0x69, 0x64, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x63, 0x31, 0x2e, 0x63, 0x6f, - 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x2e, 0x76, 0x32, 0x2e, 0x45, 0x78, 0x74, 0x65, 0x72, - 0x6e, 0x61, 0x6c, 0x49, 0x64, 0x52, 0x0a, 0x65, 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x49, - 0x64, 0x12, 0x51, 0x0a, 0x0f, 0x63, 0x72, 0x65, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x73, 0x6f, - 0x75, 0x72, 0x63, 0x65, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x28, 0x2e, 0x63, 0x31, 0x2e, - 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x2e, 0x76, 0x32, 0x2e, 0x52, 0x65, 0x73, - 0x6f, 0x75, 0x72, 0x63, 0x65, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x6f, - 0x75, 0x72, 0x63, 0x65, 0x52, 0x0e, 0x63, 0x72, 0x65, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x6f, - 0x75, 0x72, 0x63, 0x65, 0x22, 0x98, 0x01, 0x0a, 0x0e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x69, 0x6f, - 0x6e, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x12, 0x1f, 0x0a, 0x1b, 0x43, 0x52, 0x45, 0x41, 0x54, - 0x49, 0x4f, 0x4e, 0x5f, 0x53, 0x4f, 0x55, 0x52, 0x43, 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, - 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x2c, 0x0a, 0x28, 0x43, 0x52, 0x45, 0x41, - 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x53, 0x4f, 0x55, 0x52, 0x43, 0x45, 0x5f, 0x43, 0x4f, 0x4e, 0x4e, - 0x45, 0x43, 0x54, 0x4f, 0x52, 0x5f, 0x4c, 0x49, 0x53, 0x54, 0x5f, 0x52, 0x45, 0x53, 0x4f, 0x55, - 0x52, 0x43, 0x45, 0x53, 0x10, 0x01, 0x12, 0x37, 0x0a, 0x33, 0x43, 0x52, 0x45, 0x41, 0x54, 0x49, - 0x4f, 0x4e, 0x5f, 0x53, 0x4f, 0x55, 0x52, 0x43, 0x45, 0x5f, 0x43, 0x4f, 0x4e, 0x4e, 0x45, 0x43, - 0x54, 0x4f, 0x52, 0x5f, 0x4c, 0x49, 0x53, 0x54, 0x5f, 0x47, 0x52, 0x41, 0x4e, 0x54, 0x53, 0x5f, - 0x50, 0x52, 0x49, 0x4e, 0x43, 0x49, 0x50, 0x41, 0x4c, 0x5f, 0x4a, 0x49, 0x54, 0x10, 0x02, 0x22, - 0xc1, 0x02, 0x0a, 0x24, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x53, 0x65, 0x72, - 0x76, 0x69, 0x63, 0x65, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, - 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x34, 0x0a, 0x10, 0x72, 0x65, 0x73, 0x6f, - 0x75, 0x72, 0x63, 0x65, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x09, 0x42, 0x0a, 0xfa, 0x42, 0x07, 0x72, 0x05, 0x20, 0x01, 0x28, 0x80, 0x08, 0x52, 0x0e, - 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x54, 0x79, 0x70, 0x65, 0x49, 0x64, 0x12, 0x53, - 0x0a, 0x12, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x5f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, - 0x65, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x63, 0x31, 0x2e, - 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x2e, 0x76, 0x32, 0x2e, 0x52, 0x65, 0x73, - 0x6f, 0x75, 0x72, 0x63, 0x65, 0x49, 0x64, 0x42, 0x08, 0xfa, 0x42, 0x05, 0x8a, 0x01, 0x02, 0x10, - 0x00, 0x52, 0x10, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, - 0x65, 0x49, 0x64, 0x12, 0x27, 0x0a, 0x09, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x73, 0x69, 0x7a, 0x65, - 0x18, 0x03, 0x20, 0x01, 0x28, 0x0d, 0x42, 0x0a, 0xfa, 0x42, 0x07, 0x2a, 0x05, 0x18, 0xfa, 0x01, - 0x40, 0x01, 0x52, 0x08, 0x70, 0x61, 0x67, 0x65, 0x53, 0x69, 0x7a, 0x65, 0x12, 0x2d, 0x0a, 0x0a, - 0x70, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, - 0x42, 0x0e, 0xfa, 0x42, 0x0b, 0x72, 0x09, 0x20, 0x01, 0x28, 0x80, 0x80, 0x40, 0xd0, 0x01, 0x01, - 0x52, 0x09, 0x70, 0x61, 0x67, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x36, 0x0a, 0x0b, 0x61, - 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x0b, - 0x32, 0x14, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, - 0x75, 0x66, 0x2e, 0x41, 0x6e, 0x79, 0x52, 0x0b, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, - 0x6f, 0x6e, 0x73, 0x22, 0xc6, 0x01, 0x0a, 0x25, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, - 0x73, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x73, 0x6f, - 0x75, 0x72, 0x63, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2d, 0x0a, - 0x04, 0x6c, 0x69, 0x73, 0x74, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x63, 0x31, - 0x2e, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x2e, 0x76, 0x32, 0x2e, 0x52, 0x65, - 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x52, 0x04, 0x6c, 0x69, 0x73, 0x74, 0x12, 0x36, 0x0a, 0x0f, - 0x6e, 0x65, 0x78, 0x74, 0x5f, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, - 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x0e, 0xfa, 0x42, 0x0b, 0x72, 0x09, 0x20, 0x01, 0x28, 0x80, - 0x80, 0x40, 0xd0, 0x01, 0x01, 0x52, 0x0d, 0x6e, 0x65, 0x78, 0x74, 0x50, 0x61, 0x67, 0x65, 0x54, - 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x36, 0x0a, 0x0b, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, - 0x6f, 0x6e, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x67, 0x6f, 0x6f, 0x67, - 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x41, 0x6e, 0x79, 0x52, - 0x0b, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x22, 0xf4, 0x01, 0x0a, - 0x27, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x47, 0x65, 0x74, 0x74, 0x65, 0x72, 0x53, - 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x47, 0x65, 0x74, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, - 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x3c, 0x0a, 0x0b, 0x72, 0x65, 0x73, 0x6f, - 0x75, 0x72, 0x63, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, - 0x63, 0x31, 0x2e, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x2e, 0x76, 0x32, 0x2e, - 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x49, 0x64, 0x52, 0x0a, 0x72, 0x65, 0x73, 0x6f, - 0x75, 0x72, 0x63, 0x65, 0x49, 0x64, 0x12, 0x53, 0x0a, 0x12, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, - 0x5f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, - 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x63, 0x31, 0x2e, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, - 0x72, 0x2e, 0x76, 0x32, 0x2e, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x49, 0x64, 0x42, - 0x08, 0xfa, 0x42, 0x05, 0x8a, 0x01, 0x02, 0x10, 0x00, 0x52, 0x10, 0x70, 0x61, 0x72, 0x65, 0x6e, - 0x74, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x49, 0x64, 0x12, 0x36, 0x0a, 0x0b, 0x61, - 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, - 0x32, 0x14, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, - 0x75, 0x66, 0x2e, 0x41, 0x6e, 0x79, 0x52, 0x0b, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, - 0x6f, 0x6e, 0x73, 0x22, 0x99, 0x01, 0x0a, 0x28, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, - 0x47, 0x65, 0x74, 0x74, 0x65, 0x72, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x47, 0x65, 0x74, - 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, - 0x12, 0x35, 0x0a, 0x08, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x63, 0x31, 0x2e, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, - 0x72, 0x2e, 0x76, 0x32, 0x2e, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x52, 0x08, 0x72, - 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x12, 0x36, 0x0a, 0x0b, 0x61, 0x6e, 0x6e, 0x6f, 0x74, - 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x67, - 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x41, - 0x6e, 0x79, 0x52, 0x0b, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x22, - 0x52, 0x0a, 0x0a, 0x45, 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x49, 0x64, 0x12, 0x0e, 0x0a, - 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x12, 0x0a, - 0x04, 0x6c, 0x69, 0x6e, 0x6b, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6c, 0x69, 0x6e, - 0x6b, 0x12, 0x20, 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, - 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, - 0x69, 0x6f, 0x6e, 0x32, 0xab, 0x01, 0x0a, 0x14, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, - 0x54, 0x79, 0x70, 0x65, 0x73, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x92, 0x01, 0x0a, - 0x11, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x54, 0x79, 0x70, - 0x65, 0x73, 0x12, 0x3d, 0x2e, 0x63, 0x31, 0x2e, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, - 0x72, 0x2e, 0x76, 0x32, 0x2e, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x54, 0x79, 0x70, - 0x65, 0x73, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x73, - 0x6f, 0x75, 0x72, 0x63, 0x65, 0x54, 0x79, 0x70, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x1a, 0x3e, 0x2e, 0x63, 0x31, 0x2e, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, - 0x2e, 0x76, 0x32, 0x2e, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x54, 0x79, 0x70, 0x65, - 0x73, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x73, 0x6f, - 0x75, 0x72, 0x63, 0x65, 0x54, 0x79, 0x70, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, - 0x65, 0x32, 0x92, 0x01, 0x0a, 0x10, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x53, - 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x7e, 0x0a, 0x0d, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, - 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x12, 0x35, 0x2e, 0x63, 0x31, 0x2e, 0x63, 0x6f, 0x6e, - 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x2e, 0x76, 0x32, 0x2e, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, - 0x63, 0x65, 0x73, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, - 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x36, - 0x2e, 0x63, 0x31, 0x2e, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x2e, 0x76, 0x32, - 0x2e, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, - 0x65, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x52, 0x65, - 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x32, 0x9c, 0x01, 0x0a, 0x15, 0x52, 0x65, 0x73, 0x6f, 0x75, - 0x72, 0x63, 0x65, 0x47, 0x65, 0x74, 0x74, 0x65, 0x72, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, - 0x12, 0x82, 0x01, 0x0a, 0x0b, 0x47, 0x65, 0x74, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, - 0x12, 0x38, 0x2e, 0x63, 0x31, 0x2e, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x2e, - 0x76, 0x32, 0x2e, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x47, 0x65, 0x74, 0x74, 0x65, - 0x72, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x47, 0x65, 0x74, 0x52, 0x65, 0x73, 0x6f, 0x75, - 0x72, 0x63, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x39, 0x2e, 0x63, 0x31, 0x2e, - 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x2e, 0x76, 0x32, 0x2e, 0x52, 0x65, 0x73, - 0x6f, 0x75, 0x72, 0x63, 0x65, 0x47, 0x65, 0x74, 0x74, 0x65, 0x72, 0x53, 0x65, 0x72, 0x76, 0x69, - 0x63, 0x65, 0x47, 0x65, 0x74, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x52, 0x65, 0x73, - 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x32, 0xde, 0x01, 0x0a, 0x16, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, - 0x63, 0x65, 0x4d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x72, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, - 0x12, 0x61, 0x0a, 0x0e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, - 0x63, 0x65, 0x12, 0x26, 0x2e, 0x63, 0x31, 0x2e, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, - 0x72, 0x2e, 0x76, 0x32, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x52, 0x65, 0x73, 0x6f, 0x75, - 0x72, 0x63, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x27, 0x2e, 0x63, 0x31, 0x2e, - 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x2e, 0x76, 0x32, 0x2e, 0x43, 0x72, 0x65, - 0x61, 0x74, 0x65, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, - 0x6e, 0x73, 0x65, 0x12, 0x61, 0x0a, 0x0e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x52, 0x65, 0x73, - 0x6f, 0x75, 0x72, 0x63, 0x65, 0x12, 0x26, 0x2e, 0x63, 0x31, 0x2e, 0x63, 0x6f, 0x6e, 0x6e, 0x65, - 0x63, 0x74, 0x6f, 0x72, 0x2e, 0x76, 0x32, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x52, 0x65, - 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x27, 0x2e, - 0x63, 0x31, 0x2e, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x2e, 0x76, 0x32, 0x2e, - 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x52, 0x65, - 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x32, 0x81, 0x01, 0x0a, 0x16, 0x52, 0x65, 0x73, 0x6f, 0x75, - 0x72, 0x63, 0x65, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x72, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, - 0x65, 0x12, 0x67, 0x0a, 0x10, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x52, 0x65, 0x73, 0x6f, 0x75, - 0x72, 0x63, 0x65, 0x56, 0x32, 0x12, 0x28, 0x2e, 0x63, 0x31, 0x2e, 0x63, 0x6f, 0x6e, 0x6e, 0x65, - 0x63, 0x74, 0x6f, 0x72, 0x2e, 0x76, 0x32, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x52, 0x65, - 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x56, 0x32, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, - 0x29, 0x2e, 0x63, 0x31, 0x2e, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x2e, 0x76, - 0x32, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, - 0x56, 0x32, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x32, 0x83, 0x01, 0x0a, 0x18, 0x43, - 0x72, 0x65, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x4d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x72, - 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x67, 0x0a, 0x10, 0x52, 0x6f, 0x74, 0x61, 0x74, - 0x65, 0x43, 0x72, 0x65, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x12, 0x28, 0x2e, 0x63, 0x31, - 0x2e, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x2e, 0x76, 0x32, 0x2e, 0x52, 0x6f, - 0x74, 0x61, 0x74, 0x65, 0x43, 0x72, 0x65, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x52, 0x65, - 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x29, 0x2e, 0x63, 0x31, 0x2e, 0x63, 0x6f, 0x6e, 0x6e, 0x65, - 0x63, 0x74, 0x6f, 0x72, 0x2e, 0x76, 0x32, 0x2e, 0x52, 0x6f, 0x74, 0x61, 0x74, 0x65, 0x43, 0x72, - 0x65, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, - 0x32, 0x77, 0x0a, 0x15, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x4d, 0x61, 0x6e, 0x61, 0x67, - 0x65, 0x72, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x5e, 0x0a, 0x0d, 0x43, 0x72, 0x65, - 0x61, 0x74, 0x65, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x25, 0x2e, 0x63, 0x31, 0x2e, - 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x2e, 0x76, 0x32, 0x2e, 0x43, 0x72, 0x65, - 0x61, 0x74, 0x65, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x1a, 0x26, 0x2e, 0x63, 0x31, 0x2e, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, - 0x2e, 0x76, 0x32, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, - 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x42, 0x36, 0x5a, 0x34, 0x67, 0x69, 0x74, - 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x63, 0x6f, 0x6e, 0x64, 0x75, 0x63, 0x74, 0x6f, - 0x72, 0x6f, 0x6e, 0x65, 0x2f, 0x62, 0x61, 0x74, 0x6f, 0x6e, 0x2d, 0x73, 0x64, 0x6b, 0x2f, 0x70, - 0x62, 0x2f, 0x63, 0x31, 0x2f, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x2f, 0x76, - 0x32, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, -}) +type EncryptionConfig_JWKPublicKeyConfig_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. -var ( - file_c1_connector_v2_resource_proto_rawDescOnce sync.Once - file_c1_connector_v2_resource_proto_rawDescData []byte -) + PubKey []byte +} -func file_c1_connector_v2_resource_proto_rawDescGZIP() []byte { - file_c1_connector_v2_resource_proto_rawDescOnce.Do(func() { - file_c1_connector_v2_resource_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_c1_connector_v2_resource_proto_rawDesc), len(file_c1_connector_v2_resource_proto_rawDesc))) - }) - return file_c1_connector_v2_resource_proto_rawDescData +func (b0 EncryptionConfig_JWKPublicKeyConfig_builder) Build() *EncryptionConfig_JWKPublicKeyConfig { + m0 := &EncryptionConfig_JWKPublicKeyConfig{} + b, x := &b0, m0 + _, _ = b, x + x.PubKey = b.PubKey + return m0 } +var File_c1_connector_v2_resource_proto protoreflect.FileDescriptor + +const file_c1_connector_v2_resource_proto_rawDesc = "" + + "\n" + + "\x1ec1/connector/v2/resource.proto\x12\x0fc1.connector.v2\x1a\x19google/protobuf/any.proto\x1a\x1cgoogle/protobuf/struct.proto\x1a\x17validate/validate.proto\"\xd1\x03\n" + + "\fResourceType\x12\x1a\n" + + "\x02id\x18\x01 \x01(\tB\n" + + "\xfaB\ar\x05 \x01(\x80\bR\x02id\x120\n" + + "\fdisplay_name\x18\x02 \x01(\tB\r\xfaB\n" + + "r\b \x01(\x80\b\xd0\x01\x01R\vdisplayName\x12L\n" + + "\x06traits\x18\x03 \x03(\x0e2#.c1.connector.v2.ResourceType.TraitB\x0f\xfaB\f\x92\x01\t\x18\x01\"\x05\x82\x01\x02\x10\x01R\x06traits\x126\n" + + "\vannotations\x18\x04 \x03(\v2\x14.google.protobuf.AnyR\vannotations\x12/\n" + + "\vdescription\x18\x05 \x01(\tB\r\xfaB\n" + + "r\b \x01(\x80 \xd0\x01\x01R\vdescription\x12-\n" + + "\x12sourced_externally\x18\x06 \x01(\bR\x11sourcedExternally\"\x8c\x01\n" + + "\x05Trait\x12\x15\n" + + "\x11TRAIT_UNSPECIFIED\x10\x00\x12\x0e\n" + + "\n" + + "TRAIT_USER\x10\x01\x12\x0f\n" + + "\vTRAIT_GROUP\x10\x02\x12\x0e\n" + + "\n" + + "TRAIT_ROLE\x10\x03\x12\r\n" + + "\tTRAIT_APP\x10\x04\x12\x10\n" + + "\fTRAIT_SECRET\x10\x05\x12\x1a\n" + + "\x16TRAIT_SECURITY_INSIGHT\x10\x06\"\xa6\x02\n" + + ",ResourceTypesServiceListResourceTypesRequest\x121\n" + + "\x06parent\x18\x01 \x01(\v2\x19.c1.connector.v2.ResourceR\x06parent\x12'\n" + + "\tpage_size\x18\x02 \x01(\rB\n" + + "\xfaB\a*\x05\x18\xfa\x01@\x01R\bpageSize\x12-\n" + + "\n" + + "page_token\x18\x03 \x01(\tB\x0e\xfaB\vr\t \x01(\x80\x80@\xd0\x01\x01R\tpageToken\x126\n" + + "\vannotations\x18\x04 \x03(\v2\x14.google.protobuf.AnyR\vannotations\x123\n" + + "\x0eactive_sync_id\x18\x05 \x01(\tB\r\xfaB\n" + + "r\b \x01(\x80\b\xd0\x01\x01R\factiveSyncId\"\xd2\x01\n" + + "-ResourceTypesServiceListResourceTypesResponse\x121\n" + + "\x04list\x18\x01 \x03(\v2\x1d.c1.connector.v2.ResourceTypeR\x04list\x126\n" + + "\x0fnext_page_token\x18\x02 \x01(\tB\x0e\xfaB\vr\t \x01(\x80\x80@\xd0\x01\x01R\rnextPageToken\x126\n" + + "\vannotations\x18\x03 \x03(\v2\x14.google.protobuf.AnyR\vannotations\"N\n" + + "\x15CreateResourceRequest\x125\n" + + "\bresource\x18\x01 \x01(\v2\x19.c1.connector.v2.ResourceR\bresource\"\x85\x01\n" + + "\x16CreateResourceResponse\x123\n" + + "\acreated\x18\x01 \x01(\v2\x19.c1.connector.v2.ResourceR\acreated\x126\n" + + "\vannotations\x18\x02 \x03(\v2\x14.google.protobuf.AnyR\vannotations\"\xa0\x01\n" + + "\x15DeleteResourceRequest\x12<\n" + + "\vresource_id\x18\x01 \x01(\v2\x1b.c1.connector.v2.ResourceIdR\n" + + "resourceId\x12I\n" + + "\x12parent_resource_id\x18\x02 \x01(\v2\x1b.c1.connector.v2.ResourceIdR\x10parentResourceId\"P\n" + + "\x16DeleteResourceResponse\x126\n" + + "\vannotations\x18\x01 \x03(\v2\x14.google.protobuf.AnyR\vannotations\"\xa2\x01\n" + + "\x17DeleteResourceV2Request\x12<\n" + + "\vresource_id\x18\x01 \x01(\v2\x1b.c1.connector.v2.ResourceIdR\n" + + "resourceId\x12I\n" + + "\x12parent_resource_id\x18\x02 \x01(\v2\x1b.c1.connector.v2.ResourceIdR\x10parentResourceId\"R\n" + + "\x18DeleteResourceV2Response\x126\n" + + "\vannotations\x18\x01 \x03(\v2\x14.google.protobuf.AnyR\vannotations\"\xfc\x01\n" + + "\x17RotateCredentialRequest\x12<\n" + + "\vresource_id\x18\x01 \x01(\v2\x1b.c1.connector.v2.ResourceIdR\n" + + "resourceId\x12Q\n" + + "\x12credential_options\x18\x02 \x01(\v2\".c1.connector.v2.CredentialOptionsR\x11credentialOptions\x12P\n" + + "\x12encryption_configs\x18\x03 \x03(\v2!.c1.connector.v2.EncryptionConfigR\x11encryptionConfigs\"\xd7\x01\n" + + "\x18RotateCredentialResponse\x12E\n" + + "\x0eencrypted_data\x18\x01 \x03(\v2\x1e.c1.connector.v2.EncryptedDataR\rencryptedData\x12<\n" + + "\vresource_id\x18\x02 \x01(\v2\x1b.c1.connector.v2.ResourceIdR\n" + + "resourceId\x126\n" + + "\vannotations\x18\x03 \x03(\v2\x14.google.protobuf.AnyR\vannotations\"\x82\x02\n" + + "\vAccountInfo\x12:\n" + + "\x06emails\x18\x01 \x03(\v2\".c1.connector.v2.AccountInfo.EmailR\x06emails\x12\x14\n" + + "\x05login\x18\x02 \x01(\tR\x05login\x12#\n" + + "\rlogin_aliases\x18\x03 \x03(\tR\floginAliases\x121\n" + + "\aprofile\x18\x04 \x01(\v2\x17.google.protobuf.StructR\aprofile\x1aI\n" + + "\x05Email\x12!\n" + + "\aaddress\x18\x01 \x01(\tB\a\xfaB\x04r\x02`\x01R\aaddress\x12\x1d\n" + + "\n" + + "is_primary\x18\x02 \x01(\bR\tisPrimary\"\xd1\x05\n" + + "\x11CredentialOptions\x12\\\n" + + "\x0frandom_password\x18d \x01(\v21.c1.connector.v2.CredentialOptions.RandomPasswordH\x00R\x0erandomPassword\x12P\n" + + "\vno_password\x18e \x01(\v2-.c1.connector.v2.CredentialOptions.NoPasswordH\x00R\n" + + "noPassword\x12:\n" + + "\x03sso\x18f \x01(\v2&.c1.connector.v2.CredentialOptions.SSOH\x00R\x03sso\x12e\n" + + "\x12encrypted_password\x18g \x01(\v24.c1.connector.v2.CredentialOptions.EncryptedPasswordH\x00R\x11encryptedPassword\x12:\n" + + "\x1aforce_change_at_next_login\x18\x01 \x01(\bR\x16forceChangeAtNextLogin\x1az\n" + + "\x0eRandomPassword\x12!\n" + + "\x06length\x18\x01 \x01(\x03B\t\xfaB\x06\"\x04\x18@(\bR\x06length\x12E\n" + + "\vconstraints\x18\x02 \x03(\v2#.c1.connector.v2.PasswordConstraintR\vconstraints\x1a\f\n" + + "\n" + + "NoPassword\x1a(\n" + + "\x03SSO\x12!\n" + + "\fsso_provider\x18\x01 \x01(\tR\vssoProvider\x1an\n" + + "\x11EncryptedPassword\x12Y\n" + + "\x13encrypted_passwords\x18\x01 \x03(\v2\x1e.c1.connector.v2.EncryptedDataB\b\xfaB\x05\x92\x01\x02\b\x01R\x12encryptedPasswordsB\t\n" + + "\aoptions\"\xbe\x05\n" + + "\x16LocalCredentialOptions\x12a\n" + + "\x0frandom_password\x18d \x01(\v26.c1.connector.v2.LocalCredentialOptions.RandomPasswordH\x00R\x0erandomPassword\x12U\n" + + "\vno_password\x18e \x01(\v22.c1.connector.v2.LocalCredentialOptions.NoPasswordH\x00R\n" + + "noPassword\x12?\n" + + "\x03sso\x18f \x01(\v2+.c1.connector.v2.LocalCredentialOptions.SSOH\x00R\x03sso\x12j\n" + + "\x12plaintext_password\x18g \x01(\v29.c1.connector.v2.LocalCredentialOptions.PlaintextPasswordH\x00R\x11plaintextPassword\x12:\n" + + "\x1aforce_change_at_next_login\x18\x01 \x01(\bR\x16forceChangeAtNextLogin\x1az\n" + + "\x0eRandomPassword\x12!\n" + + "\x06length\x18\x01 \x01(\x03B\t\xfaB\x06\"\x04\x18@(\bR\x06length\x12E\n" + + "\vconstraints\x18\x02 \x03(\v2#.c1.connector.v2.PasswordConstraintR\vconstraints\x1a\f\n" + + "\n" + + "NoPassword\x1a(\n" + + "\x03SSO\x12!\n" + + "\fsso_provider\x18\x01 \x01(\tR\vssoProvider\x1aB\n" + + "\x11PlaintextPassword\x12-\n" + + "\x12plaintext_password\x18\x01 \x01(\tR\x11plaintextPasswordB\t\n" + + "\aoptions\"L\n" + + "\x12PasswordConstraint\x12\x19\n" + + "\bchar_set\x18\x01 \x01(\tR\acharSet\x12\x1b\n" + + "\tmin_count\x18\x02 \x01(\rR\bminCount\"\xb5\x02\n" + + "\x14CreateAccountRequest\x12?\n" + + "\faccount_info\x18\x01 \x01(\v2\x1c.c1.connector.v2.AccountInfoR\vaccountInfo\x12Q\n" + + "\x12credential_options\x18\x02 \x01(\v2\".c1.connector.v2.CredentialOptionsR\x11credentialOptions\x12P\n" + + "\x12encryption_configs\x18\x03 \x03(\v2!.c1.connector.v2.EncryptionConfigR\x11encryptionConfigs\x127\n" + + "\x10resource_type_id\x18\x04 \x01(\tB\r\xfaB\n" + + "r\b \x01(\x80\b\xd0\x01\x01R\x0eresourceTypeId\"\xcc\b\n" + + "\x15CreateAccountResponse\x12P\n" + + "\asuccess\x18d \x01(\v24.c1.connector.v2.CreateAccountResponse.SuccessResultH\x00R\asuccess\x12f\n" + + "\x0faction_required\x18e \x01(\v2;.c1.connector.v2.CreateAccountResponse.ActionRequiredResultH\x00R\x0eactionRequired\x12c\n" + + "\x0ealready_exists\x18f \x01(\v2:.c1.connector.v2.CreateAccountResponse.AlreadyExistsResultH\x00R\ralreadyExists\x12Z\n" + + "\vin_progress\x18g \x01(\v27.c1.connector.v2.CreateAccountResponse.InProgressResultH\x00R\n" + + "inProgress\x12E\n" + + "\x0eencrypted_data\x18\x02 \x03(\v2\x1e.c1.connector.v2.EncryptedDataR\rencryptedData\x126\n" + + "\vannotations\x18\x03 \x03(\v2\x14.google.protobuf.AnyR\vannotations\x1a\x7f\n" + + "\rSuccessResult\x125\n" + + "\bresource\x18\x01 \x01(\v2\x19.c1.connector.v2.ResourceR\bresource\x127\n" + + "\x18is_create_account_result\x18\x02 \x01(\bR\x15isCreateAccountResult\x1a\xa0\x01\n" + + "\x14ActionRequiredResult\x125\n" + + "\bresource\x18\x01 \x01(\v2\x19.c1.connector.v2.ResourceR\bresource\x12\x18\n" + + "\amessage\x18\x02 \x01(\tR\amessage\x127\n" + + "\x18is_create_account_result\x18\x03 \x01(\bR\x15isCreateAccountResult\x1a\x85\x01\n" + + "\x13AlreadyExistsResult\x125\n" + + "\bresource\x18\x01 \x01(\v2\x19.c1.connector.v2.ResourceR\bresource\x127\n" + + "\x18is_create_account_result\x18\x02 \x01(\bR\x15isCreateAccountResult\x1a\x82\x01\n" + + "\x10InProgressResult\x125\n" + + "\bresource\x18\x01 \x01(\v2\x19.c1.connector.v2.ResourceR\bresource\x127\n" + + "\x18is_create_account_result\x18\x02 \x01(\bR\x15isCreateAccountResultB\b\n" + + "\x06result\"\xd6\x01\n" + + "\rEncryptedData\x12\x1a\n" + + "\bprovider\x18\x01 \x01(\tR\bprovider\x12\x19\n" + + "\x06key_id\x18\x02 \x01(\tB\x02\x18\x01R\x05keyId\x12\x12\n" + + "\x04name\x18\x03 \x01(\tR\x04name\x12 \n" + + "\vdescription\x18\x04 \x01(\tR\vdescription\x12\x16\n" + + "\x06schema\x18\x05 \x01(\tR\x06schema\x12'\n" + + "\x0fencrypted_bytes\x18\x06 \x01(\fR\x0eencryptedBytes\x12\x17\n" + + "\akey_ids\x18\a \x03(\tR\x06keyIds\"s\n" + + "\rPlaintextData\x12\x12\n" + + "\x04name\x18\x01 \x01(\tR\x04name\x12 \n" + + "\vdescription\x18\x02 \x01(\tR\vdescription\x12\x16\n" + + "\x06schema\x18\x03 \x01(\tR\x06schema\x12\x14\n" + + "\x05bytes\x18\x04 \x01(\fR\x05bytes\"\xa2\x02\n" + + "\x10EncryptionConfig\x127\n" + + "\tprincipal\x18\x01 \x01(\v2\x19.c1.connector.v2.ResourceR\tprincipal\x12\x1a\n" + + "\bprovider\x18\x02 \x01(\tR\bprovider\x12\x15\n" + + "\x06key_id\x18\x03 \x01(\tR\x05keyId\x12i\n" + + "\x15jwk_public_key_config\x18d \x01(\v24.c1.connector.v2.EncryptionConfig.JWKPublicKeyConfigH\x00R\x12jwkPublicKeyConfig\x1a-\n" + + "\x12JWKPublicKeyConfig\x12\x17\n" + + "\apub_key\x18\x01 \x01(\fR\x06pubKeyB\b\n" + + "\x06config\"\x8c\x01\n" + + "\n" + + "ResourceId\x12/\n" + + "\rresource_type\x18\x01 \x01(\tB\n" + + "\xfaB\ar\x05 \x01(\x80\bR\fresourceType\x12&\n" + + "\bresource\x18\x02 \x01(\tB\n" + + "\xfaB\ar\x05 \x01(\x80\bR\bresource\x12%\n" + + "\x0ebaton_resource\x18\x03 \x01(\bR\rbatonResource\"\xf0\x04\n" + + "\bResource\x12+\n" + + "\x02id\x18\x01 \x01(\v2\x1b.c1.connector.v2.ResourceIdR\x02id\x12I\n" + + "\x12parent_resource_id\x18\x02 \x01(\v2\x1b.c1.connector.v2.ResourceIdR\x10parentResourceId\x120\n" + + "\fdisplay_name\x18\x03 \x01(\tB\r\xfaB\n" + + "r\b \x01(\x80\b\xd0\x01\x01R\vdisplayName\x126\n" + + "\vannotations\x18\x04 \x03(\v2\x14.google.protobuf.AnyR\vannotations\x12/\n" + + "\vdescription\x18\x05 \x01(\tB\r\xfaB\n" + + "r\b \x01(\x80\x10\xd0\x01\x01R\vdescription\x12%\n" + + "\x0ebaton_resource\x18\x06 \x01(\bR\rbatonResource\x12<\n" + + "\vexternal_id\x18\a \x01(\v2\x1b.c1.connector.v2.ExternalIdR\n" + + "externalId\x12Q\n" + + "\x0fcreation_source\x18\b \x01(\x0e2(.c1.connector.v2.Resource.CreationSourceR\x0ecreationSource\"\x98\x01\n" + + "\x0eCreationSource\x12\x1f\n" + + "\x1bCREATION_SOURCE_UNSPECIFIED\x10\x00\x12,\n" + + "(CREATION_SOURCE_CONNECTOR_LIST_RESOURCES\x10\x01\x127\n" + + "3CREATION_SOURCE_CONNECTOR_LIST_GRANTS_PRINCIPAL_JIT\x10\x02\"\xf6\x02\n" + + "$ResourcesServiceListResourcesRequest\x124\n" + + "\x10resource_type_id\x18\x01 \x01(\tB\n" + + "\xfaB\ar\x05 \x01(\x80\bR\x0eresourceTypeId\x12S\n" + + "\x12parent_resource_id\x18\x02 \x01(\v2\x1b.c1.connector.v2.ResourceIdB\b\xfaB\x05\x8a\x01\x02\x10\x00R\x10parentResourceId\x12'\n" + + "\tpage_size\x18\x03 \x01(\rB\n" + + "\xfaB\a*\x05\x18\xfa\x01@\x01R\bpageSize\x12-\n" + + "\n" + + "page_token\x18\x04 \x01(\tB\x0e\xfaB\vr\t \x01(\x80\x80@\xd0\x01\x01R\tpageToken\x126\n" + + "\vannotations\x18\x05 \x03(\v2\x14.google.protobuf.AnyR\vannotations\x123\n" + + "\x0eactive_sync_id\x18\x06 \x01(\tB\r\xfaB\n" + + "r\b \x01(\x80\b\xd0\x01\x01R\factiveSyncId\"\xc6\x01\n" + + "%ResourcesServiceListResourcesResponse\x12-\n" + + "\x04list\x18\x01 \x03(\v2\x19.c1.connector.v2.ResourceR\x04list\x126\n" + + "\x0fnext_page_token\x18\x02 \x01(\tB\x0e\xfaB\vr\t \x01(\x80\x80@\xd0\x01\x01R\rnextPageToken\x126\n" + + "\vannotations\x18\x03 \x03(\v2\x14.google.protobuf.AnyR\vannotations\"\xa9\x02\n" + + "'ResourceGetterServiceGetResourceRequest\x12<\n" + + "\vresource_id\x18\x01 \x01(\v2\x1b.c1.connector.v2.ResourceIdR\n" + + "resourceId\x12S\n" + + "\x12parent_resource_id\x18\x02 \x01(\v2\x1b.c1.connector.v2.ResourceIdB\b\xfaB\x05\x8a\x01\x02\x10\x00R\x10parentResourceId\x126\n" + + "\vannotations\x18\x03 \x03(\v2\x14.google.protobuf.AnyR\vannotations\x123\n" + + "\x0eactive_sync_id\x18\x04 \x01(\tB\r\xfaB\n" + + "r\b \x01(\x80\b\xd0\x01\x01R\factiveSyncId\"\x99\x01\n" + + "(ResourceGetterServiceGetResourceResponse\x125\n" + + "\bresource\x18\x01 \x01(\v2\x19.c1.connector.v2.ResourceR\bresource\x126\n" + + "\vannotations\x18\x02 \x03(\v2\x14.google.protobuf.AnyR\vannotations\"R\n" + + "\n" + + "ExternalId\x12\x0e\n" + + "\x02id\x18\x01 \x01(\tR\x02id\x12\x12\n" + + "\x04link\x18\x02 \x01(\tR\x04link\x12 \n" + + "\vdescription\x18\x03 \x01(\tR\vdescription2\xab\x01\n" + + "\x14ResourceTypesService\x12\x92\x01\n" + + "\x11ListResourceTypes\x12=.c1.connector.v2.ResourceTypesServiceListResourceTypesRequest\x1a>.c1.connector.v2.ResourceTypesServiceListResourceTypesResponse2\x92\x01\n" + + "\x10ResourcesService\x12~\n" + + "\rListResources\x125.c1.connector.v2.ResourcesServiceListResourcesRequest\x1a6.c1.connector.v2.ResourcesServiceListResourcesResponse2\x9c\x01\n" + + "\x15ResourceGetterService\x12\x82\x01\n" + + "\vGetResource\x128.c1.connector.v2.ResourceGetterServiceGetResourceRequest\x1a9.c1.connector.v2.ResourceGetterServiceGetResourceResponse2\xde\x01\n" + + "\x16ResourceManagerService\x12a\n" + + "\x0eCreateResource\x12&.c1.connector.v2.CreateResourceRequest\x1a'.c1.connector.v2.CreateResourceResponse\x12a\n" + + "\x0eDeleteResource\x12&.c1.connector.v2.DeleteResourceRequest\x1a'.c1.connector.v2.DeleteResourceResponse2\x81\x01\n" + + "\x16ResourceDeleterService\x12g\n" + + "\x10DeleteResourceV2\x12(.c1.connector.v2.DeleteResourceV2Request\x1a).c1.connector.v2.DeleteResourceV2Response2\x83\x01\n" + + "\x18CredentialManagerService\x12g\n" + + "\x10RotateCredential\x12(.c1.connector.v2.RotateCredentialRequest\x1a).c1.connector.v2.RotateCredentialResponse2w\n" + + "\x15AccountManagerService\x12^\n" + + "\rCreateAccount\x12%.c1.connector.v2.CreateAccountRequest\x1a&.c1.connector.v2.CreateAccountResponseB6Z4github.com/conductorone/baton-sdk/pb/c1/connector/v2b\x06proto3" + var file_c1_connector_v2_resource_proto_enumTypes = make([]protoimpl.EnumInfo, 2) -var file_c1_connector_v2_resource_proto_msgTypes = make([]protoimpl.MessageInfo, 39) +var file_c1_connector_v2_resource_proto_msgTypes = make([]protoimpl.MessageInfo, 41) var file_c1_connector_v2_resource_proto_goTypes = []any{ (ResourceType_Trait)(0), // 0: c1.connector.v2.ResourceType.Trait (Resource_CreationSource)(0), // 1: c1.connector.v2.Resource.CreationSource @@ -3146,34 +4721,36 @@ var file_c1_connector_v2_resource_proto_goTypes = []any{ (*LocalCredentialOptions_PlaintextPassword)(nil), // 37: c1.connector.v2.LocalCredentialOptions.PlaintextPassword (*CreateAccountResponse_SuccessResult)(nil), // 38: c1.connector.v2.CreateAccountResponse.SuccessResult (*CreateAccountResponse_ActionRequiredResult)(nil), // 39: c1.connector.v2.CreateAccountResponse.ActionRequiredResult - (*EncryptionConfig_JWKPublicKeyConfig)(nil), // 40: c1.connector.v2.EncryptionConfig.JWKPublicKeyConfig - (*anypb.Any)(nil), // 41: google.protobuf.Any - (*structpb.Struct)(nil), // 42: google.protobuf.Struct + (*CreateAccountResponse_AlreadyExistsResult)(nil), // 40: c1.connector.v2.CreateAccountResponse.AlreadyExistsResult + (*CreateAccountResponse_InProgressResult)(nil), // 41: c1.connector.v2.CreateAccountResponse.InProgressResult + (*EncryptionConfig_JWKPublicKeyConfig)(nil), // 42: c1.connector.v2.EncryptionConfig.JWKPublicKeyConfig + (*anypb.Any)(nil), // 43: google.protobuf.Any + (*structpb.Struct)(nil), // 44: google.protobuf.Struct } var file_c1_connector_v2_resource_proto_depIdxs = []int32{ 0, // 0: c1.connector.v2.ResourceType.traits:type_name -> c1.connector.v2.ResourceType.Trait - 41, // 1: c1.connector.v2.ResourceType.annotations:type_name -> google.protobuf.Any + 43, // 1: c1.connector.v2.ResourceType.annotations:type_name -> google.protobuf.Any 23, // 2: c1.connector.v2.ResourceTypesServiceListResourceTypesRequest.parent:type_name -> c1.connector.v2.Resource - 41, // 3: c1.connector.v2.ResourceTypesServiceListResourceTypesRequest.annotations:type_name -> google.protobuf.Any + 43, // 3: c1.connector.v2.ResourceTypesServiceListResourceTypesRequest.annotations:type_name -> google.protobuf.Any 2, // 4: c1.connector.v2.ResourceTypesServiceListResourceTypesResponse.list:type_name -> c1.connector.v2.ResourceType - 41, // 5: c1.connector.v2.ResourceTypesServiceListResourceTypesResponse.annotations:type_name -> google.protobuf.Any + 43, // 5: c1.connector.v2.ResourceTypesServiceListResourceTypesResponse.annotations:type_name -> google.protobuf.Any 23, // 6: c1.connector.v2.CreateResourceRequest.resource:type_name -> c1.connector.v2.Resource 23, // 7: c1.connector.v2.CreateResourceResponse.created:type_name -> c1.connector.v2.Resource - 41, // 8: c1.connector.v2.CreateResourceResponse.annotations:type_name -> google.protobuf.Any + 43, // 8: c1.connector.v2.CreateResourceResponse.annotations:type_name -> google.protobuf.Any 22, // 9: c1.connector.v2.DeleteResourceRequest.resource_id:type_name -> c1.connector.v2.ResourceId 22, // 10: c1.connector.v2.DeleteResourceRequest.parent_resource_id:type_name -> c1.connector.v2.ResourceId - 41, // 11: c1.connector.v2.DeleteResourceResponse.annotations:type_name -> google.protobuf.Any + 43, // 11: c1.connector.v2.DeleteResourceResponse.annotations:type_name -> google.protobuf.Any 22, // 12: c1.connector.v2.DeleteResourceV2Request.resource_id:type_name -> c1.connector.v2.ResourceId 22, // 13: c1.connector.v2.DeleteResourceV2Request.parent_resource_id:type_name -> c1.connector.v2.ResourceId - 41, // 14: c1.connector.v2.DeleteResourceV2Response.annotations:type_name -> google.protobuf.Any + 43, // 14: c1.connector.v2.DeleteResourceV2Response.annotations:type_name -> google.protobuf.Any 22, // 15: c1.connector.v2.RotateCredentialRequest.resource_id:type_name -> c1.connector.v2.ResourceId 14, // 16: c1.connector.v2.RotateCredentialRequest.credential_options:type_name -> c1.connector.v2.CredentialOptions 21, // 17: c1.connector.v2.RotateCredentialRequest.encryption_configs:type_name -> c1.connector.v2.EncryptionConfig 19, // 18: c1.connector.v2.RotateCredentialResponse.encrypted_data:type_name -> c1.connector.v2.EncryptedData 22, // 19: c1.connector.v2.RotateCredentialResponse.resource_id:type_name -> c1.connector.v2.ResourceId - 41, // 20: c1.connector.v2.RotateCredentialResponse.annotations:type_name -> google.protobuf.Any + 43, // 20: c1.connector.v2.RotateCredentialResponse.annotations:type_name -> google.protobuf.Any 29, // 21: c1.connector.v2.AccountInfo.emails:type_name -> c1.connector.v2.AccountInfo.Email - 42, // 22: c1.connector.v2.AccountInfo.profile:type_name -> google.protobuf.Struct + 44, // 22: c1.connector.v2.AccountInfo.profile:type_name -> google.protobuf.Struct 30, // 23: c1.connector.v2.CredentialOptions.random_password:type_name -> c1.connector.v2.CredentialOptions.RandomPassword 31, // 24: c1.connector.v2.CredentialOptions.no_password:type_name -> c1.connector.v2.CredentialOptions.NoPassword 32, // 25: c1.connector.v2.CredentialOptions.sso:type_name -> c1.connector.v2.CredentialOptions.SSO @@ -3187,50 +4764,54 @@ var file_c1_connector_v2_resource_proto_depIdxs = []int32{ 21, // 33: c1.connector.v2.CreateAccountRequest.encryption_configs:type_name -> c1.connector.v2.EncryptionConfig 38, // 34: c1.connector.v2.CreateAccountResponse.success:type_name -> c1.connector.v2.CreateAccountResponse.SuccessResult 39, // 35: c1.connector.v2.CreateAccountResponse.action_required:type_name -> c1.connector.v2.CreateAccountResponse.ActionRequiredResult - 19, // 36: c1.connector.v2.CreateAccountResponse.encrypted_data:type_name -> c1.connector.v2.EncryptedData - 41, // 37: c1.connector.v2.CreateAccountResponse.annotations:type_name -> google.protobuf.Any - 23, // 38: c1.connector.v2.EncryptionConfig.principal:type_name -> c1.connector.v2.Resource - 40, // 39: c1.connector.v2.EncryptionConfig.jwk_public_key_config:type_name -> c1.connector.v2.EncryptionConfig.JWKPublicKeyConfig - 22, // 40: c1.connector.v2.Resource.id:type_name -> c1.connector.v2.ResourceId - 22, // 41: c1.connector.v2.Resource.parent_resource_id:type_name -> c1.connector.v2.ResourceId - 41, // 42: c1.connector.v2.Resource.annotations:type_name -> google.protobuf.Any - 28, // 43: c1.connector.v2.Resource.external_id:type_name -> c1.connector.v2.ExternalId - 1, // 44: c1.connector.v2.Resource.creation_source:type_name -> c1.connector.v2.Resource.CreationSource - 22, // 45: c1.connector.v2.ResourcesServiceListResourcesRequest.parent_resource_id:type_name -> c1.connector.v2.ResourceId - 41, // 46: c1.connector.v2.ResourcesServiceListResourcesRequest.annotations:type_name -> google.protobuf.Any - 23, // 47: c1.connector.v2.ResourcesServiceListResourcesResponse.list:type_name -> c1.connector.v2.Resource - 41, // 48: c1.connector.v2.ResourcesServiceListResourcesResponse.annotations:type_name -> google.protobuf.Any - 22, // 49: c1.connector.v2.ResourceGetterServiceGetResourceRequest.resource_id:type_name -> c1.connector.v2.ResourceId - 22, // 50: c1.connector.v2.ResourceGetterServiceGetResourceRequest.parent_resource_id:type_name -> c1.connector.v2.ResourceId - 41, // 51: c1.connector.v2.ResourceGetterServiceGetResourceRequest.annotations:type_name -> google.protobuf.Any - 23, // 52: c1.connector.v2.ResourceGetterServiceGetResourceResponse.resource:type_name -> c1.connector.v2.Resource - 41, // 53: c1.connector.v2.ResourceGetterServiceGetResourceResponse.annotations:type_name -> google.protobuf.Any - 16, // 54: c1.connector.v2.CredentialOptions.RandomPassword.constraints:type_name -> c1.connector.v2.PasswordConstraint - 19, // 55: c1.connector.v2.CredentialOptions.EncryptedPassword.encrypted_passwords:type_name -> c1.connector.v2.EncryptedData - 16, // 56: c1.connector.v2.LocalCredentialOptions.RandomPassword.constraints:type_name -> c1.connector.v2.PasswordConstraint - 23, // 57: c1.connector.v2.CreateAccountResponse.SuccessResult.resource:type_name -> c1.connector.v2.Resource - 23, // 58: c1.connector.v2.CreateAccountResponse.ActionRequiredResult.resource:type_name -> c1.connector.v2.Resource - 3, // 59: c1.connector.v2.ResourceTypesService.ListResourceTypes:input_type -> c1.connector.v2.ResourceTypesServiceListResourceTypesRequest - 24, // 60: c1.connector.v2.ResourcesService.ListResources:input_type -> c1.connector.v2.ResourcesServiceListResourcesRequest - 26, // 61: c1.connector.v2.ResourceGetterService.GetResource:input_type -> c1.connector.v2.ResourceGetterServiceGetResourceRequest - 5, // 62: c1.connector.v2.ResourceManagerService.CreateResource:input_type -> c1.connector.v2.CreateResourceRequest - 7, // 63: c1.connector.v2.ResourceManagerService.DeleteResource:input_type -> c1.connector.v2.DeleteResourceRequest - 9, // 64: c1.connector.v2.ResourceDeleterService.DeleteResourceV2:input_type -> c1.connector.v2.DeleteResourceV2Request - 11, // 65: c1.connector.v2.CredentialManagerService.RotateCredential:input_type -> c1.connector.v2.RotateCredentialRequest - 17, // 66: c1.connector.v2.AccountManagerService.CreateAccount:input_type -> c1.connector.v2.CreateAccountRequest - 4, // 67: c1.connector.v2.ResourceTypesService.ListResourceTypes:output_type -> c1.connector.v2.ResourceTypesServiceListResourceTypesResponse - 25, // 68: c1.connector.v2.ResourcesService.ListResources:output_type -> c1.connector.v2.ResourcesServiceListResourcesResponse - 27, // 69: c1.connector.v2.ResourceGetterService.GetResource:output_type -> c1.connector.v2.ResourceGetterServiceGetResourceResponse - 6, // 70: c1.connector.v2.ResourceManagerService.CreateResource:output_type -> c1.connector.v2.CreateResourceResponse - 8, // 71: c1.connector.v2.ResourceManagerService.DeleteResource:output_type -> c1.connector.v2.DeleteResourceResponse - 10, // 72: c1.connector.v2.ResourceDeleterService.DeleteResourceV2:output_type -> c1.connector.v2.DeleteResourceV2Response - 12, // 73: c1.connector.v2.CredentialManagerService.RotateCredential:output_type -> c1.connector.v2.RotateCredentialResponse - 18, // 74: c1.connector.v2.AccountManagerService.CreateAccount:output_type -> c1.connector.v2.CreateAccountResponse - 67, // [67:75] is the sub-list for method output_type - 59, // [59:67] is the sub-list for method input_type - 59, // [59:59] is the sub-list for extension type_name - 59, // [59:59] is the sub-list for extension extendee - 0, // [0:59] is the sub-list for field type_name + 40, // 36: c1.connector.v2.CreateAccountResponse.already_exists:type_name -> c1.connector.v2.CreateAccountResponse.AlreadyExistsResult + 41, // 37: c1.connector.v2.CreateAccountResponse.in_progress:type_name -> c1.connector.v2.CreateAccountResponse.InProgressResult + 19, // 38: c1.connector.v2.CreateAccountResponse.encrypted_data:type_name -> c1.connector.v2.EncryptedData + 43, // 39: c1.connector.v2.CreateAccountResponse.annotations:type_name -> google.protobuf.Any + 23, // 40: c1.connector.v2.EncryptionConfig.principal:type_name -> c1.connector.v2.Resource + 42, // 41: c1.connector.v2.EncryptionConfig.jwk_public_key_config:type_name -> c1.connector.v2.EncryptionConfig.JWKPublicKeyConfig + 22, // 42: c1.connector.v2.Resource.id:type_name -> c1.connector.v2.ResourceId + 22, // 43: c1.connector.v2.Resource.parent_resource_id:type_name -> c1.connector.v2.ResourceId + 43, // 44: c1.connector.v2.Resource.annotations:type_name -> google.protobuf.Any + 28, // 45: c1.connector.v2.Resource.external_id:type_name -> c1.connector.v2.ExternalId + 1, // 46: c1.connector.v2.Resource.creation_source:type_name -> c1.connector.v2.Resource.CreationSource + 22, // 47: c1.connector.v2.ResourcesServiceListResourcesRequest.parent_resource_id:type_name -> c1.connector.v2.ResourceId + 43, // 48: c1.connector.v2.ResourcesServiceListResourcesRequest.annotations:type_name -> google.protobuf.Any + 23, // 49: c1.connector.v2.ResourcesServiceListResourcesResponse.list:type_name -> c1.connector.v2.Resource + 43, // 50: c1.connector.v2.ResourcesServiceListResourcesResponse.annotations:type_name -> google.protobuf.Any + 22, // 51: c1.connector.v2.ResourceGetterServiceGetResourceRequest.resource_id:type_name -> c1.connector.v2.ResourceId + 22, // 52: c1.connector.v2.ResourceGetterServiceGetResourceRequest.parent_resource_id:type_name -> c1.connector.v2.ResourceId + 43, // 53: c1.connector.v2.ResourceGetterServiceGetResourceRequest.annotations:type_name -> google.protobuf.Any + 23, // 54: c1.connector.v2.ResourceGetterServiceGetResourceResponse.resource:type_name -> c1.connector.v2.Resource + 43, // 55: c1.connector.v2.ResourceGetterServiceGetResourceResponse.annotations:type_name -> google.protobuf.Any + 16, // 56: c1.connector.v2.CredentialOptions.RandomPassword.constraints:type_name -> c1.connector.v2.PasswordConstraint + 19, // 57: c1.connector.v2.CredentialOptions.EncryptedPassword.encrypted_passwords:type_name -> c1.connector.v2.EncryptedData + 16, // 58: c1.connector.v2.LocalCredentialOptions.RandomPassword.constraints:type_name -> c1.connector.v2.PasswordConstraint + 23, // 59: c1.connector.v2.CreateAccountResponse.SuccessResult.resource:type_name -> c1.connector.v2.Resource + 23, // 60: c1.connector.v2.CreateAccountResponse.ActionRequiredResult.resource:type_name -> c1.connector.v2.Resource + 23, // 61: c1.connector.v2.CreateAccountResponse.AlreadyExistsResult.resource:type_name -> c1.connector.v2.Resource + 23, // 62: c1.connector.v2.CreateAccountResponse.InProgressResult.resource:type_name -> c1.connector.v2.Resource + 3, // 63: c1.connector.v2.ResourceTypesService.ListResourceTypes:input_type -> c1.connector.v2.ResourceTypesServiceListResourceTypesRequest + 24, // 64: c1.connector.v2.ResourcesService.ListResources:input_type -> c1.connector.v2.ResourcesServiceListResourcesRequest + 26, // 65: c1.connector.v2.ResourceGetterService.GetResource:input_type -> c1.connector.v2.ResourceGetterServiceGetResourceRequest + 5, // 66: c1.connector.v2.ResourceManagerService.CreateResource:input_type -> c1.connector.v2.CreateResourceRequest + 7, // 67: c1.connector.v2.ResourceManagerService.DeleteResource:input_type -> c1.connector.v2.DeleteResourceRequest + 9, // 68: c1.connector.v2.ResourceDeleterService.DeleteResourceV2:input_type -> c1.connector.v2.DeleteResourceV2Request + 11, // 69: c1.connector.v2.CredentialManagerService.RotateCredential:input_type -> c1.connector.v2.RotateCredentialRequest + 17, // 70: c1.connector.v2.AccountManagerService.CreateAccount:input_type -> c1.connector.v2.CreateAccountRequest + 4, // 71: c1.connector.v2.ResourceTypesService.ListResourceTypes:output_type -> c1.connector.v2.ResourceTypesServiceListResourceTypesResponse + 25, // 72: c1.connector.v2.ResourcesService.ListResources:output_type -> c1.connector.v2.ResourcesServiceListResourcesResponse + 27, // 73: c1.connector.v2.ResourceGetterService.GetResource:output_type -> c1.connector.v2.ResourceGetterServiceGetResourceResponse + 6, // 74: c1.connector.v2.ResourceManagerService.CreateResource:output_type -> c1.connector.v2.CreateResourceResponse + 8, // 75: c1.connector.v2.ResourceManagerService.DeleteResource:output_type -> c1.connector.v2.DeleteResourceResponse + 10, // 76: c1.connector.v2.ResourceDeleterService.DeleteResourceV2:output_type -> c1.connector.v2.DeleteResourceV2Response + 12, // 77: c1.connector.v2.CredentialManagerService.RotateCredential:output_type -> c1.connector.v2.RotateCredentialResponse + 18, // 78: c1.connector.v2.AccountManagerService.CreateAccount:output_type -> c1.connector.v2.CreateAccountResponse + 71, // [71:79] is the sub-list for method output_type + 63, // [63:71] is the sub-list for method input_type + 63, // [63:63] is the sub-list for extension type_name + 63, // [63:63] is the sub-list for extension extendee + 0, // [0:63] is the sub-list for field type_name } func init() { file_c1_connector_v2_resource_proto_init() } @@ -3253,6 +4834,8 @@ func file_c1_connector_v2_resource_proto_init() { file_c1_connector_v2_resource_proto_msgTypes[16].OneofWrappers = []any{ (*CreateAccountResponse_Success)(nil), (*CreateAccountResponse_ActionRequired)(nil), + (*CreateAccountResponse_AlreadyExists)(nil), + (*CreateAccountResponse_InProgress)(nil), } file_c1_connector_v2_resource_proto_msgTypes[19].OneofWrappers = []any{ (*EncryptionConfig_JwkPublicKeyConfig)(nil), @@ -3263,7 +4846,7 @@ func file_c1_connector_v2_resource_proto_init() { GoPackagePath: reflect.TypeOf(x{}).PkgPath(), RawDescriptor: unsafe.Slice(unsafe.StringData(file_c1_connector_v2_resource_proto_rawDesc), len(file_c1_connector_v2_resource_proto_rawDesc)), NumEnums: 2, - NumMessages: 39, + NumMessages: 41, NumExtensions: 0, NumServices: 7, }, diff --git a/vendor/github.com/conductorone/baton-sdk/pb/c1/connector/v2/resource.pb.validate.go b/vendor/github.com/conductorone/baton-sdk/pb/c1/connector/v2/resource.pb.validate.go index bd2901cb..1e2e556a 100644 --- a/vendor/github.com/conductorone/baton-sdk/pb/c1/connector/v2/resource.pb.validate.go +++ b/vendor/github.com/conductorone/baton-sdk/pb/c1/connector/v2/resource.pb.validate.go @@ -359,6 +359,21 @@ func (m *ResourceTypesServiceListResourceTypesRequest) validate(all bool) error } + if m.GetActiveSyncId() != "" { + + if l := len(m.GetActiveSyncId()); l < 1 || l > 1024 { + err := ResourceTypesServiceListResourceTypesRequestValidationError{ + field: "ActiveSyncId", + reason: "value length must be between 1 and 1024 bytes, inclusive", + } + if !all { + return err + } + errors = append(errors, err) + } + + } + if len(errors) > 0 { return ResourceTypesServiceListResourceTypesRequestMultiError(errors) } @@ -2845,6 +2860,21 @@ func (m *CreateAccountRequest) validate(all bool) error { } + if m.GetResourceTypeId() != "" { + + if l := len(m.GetResourceTypeId()); l < 1 || l > 1024 { + err := CreateAccountRequestValidationError{ + field: "ResourceTypeId", + reason: "value length must be between 1 and 1024 bytes, inclusive", + } + if !all { + return err + } + errors = append(errors, err) + } + + } + if len(errors) > 0 { return CreateAccountRequestMultiError(errors) } @@ -3098,6 +3128,88 @@ func (m *CreateAccountResponse) validate(all bool) error { } } + case *CreateAccountResponse_AlreadyExists: + if v == nil { + err := CreateAccountResponseValidationError{ + field: "Result", + reason: "oneof value cannot be a typed-nil", + } + if !all { + return err + } + errors = append(errors, err) + } + + if all { + switch v := interface{}(m.GetAlreadyExists()).(type) { + case interface{ ValidateAll() error }: + if err := v.ValidateAll(); err != nil { + errors = append(errors, CreateAccountResponseValidationError{ + field: "AlreadyExists", + reason: "embedded message failed validation", + cause: err, + }) + } + case interface{ Validate() error }: + if err := v.Validate(); err != nil { + errors = append(errors, CreateAccountResponseValidationError{ + field: "AlreadyExists", + reason: "embedded message failed validation", + cause: err, + }) + } + } + } else if v, ok := interface{}(m.GetAlreadyExists()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return CreateAccountResponseValidationError{ + field: "AlreadyExists", + reason: "embedded message failed validation", + cause: err, + } + } + } + + case *CreateAccountResponse_InProgress: + if v == nil { + err := CreateAccountResponseValidationError{ + field: "Result", + reason: "oneof value cannot be a typed-nil", + } + if !all { + return err + } + errors = append(errors, err) + } + + if all { + switch v := interface{}(m.GetInProgress()).(type) { + case interface{ ValidateAll() error }: + if err := v.ValidateAll(); err != nil { + errors = append(errors, CreateAccountResponseValidationError{ + field: "InProgress", + reason: "embedded message failed validation", + cause: err, + }) + } + case interface{ Validate() error }: + if err := v.Validate(); err != nil { + errors = append(errors, CreateAccountResponseValidationError{ + field: "InProgress", + reason: "embedded message failed validation", + cause: err, + }) + } + } + } else if v, ok := interface{}(m.GetInProgress()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return CreateAccountResponseValidationError{ + field: "InProgress", + reason: "embedded message failed validation", + cause: err, + } + } + } + default: _ = v // ensures v is used } @@ -4085,6 +4197,21 @@ func (m *ResourcesServiceListResourcesRequest) validate(all bool) error { } + if m.GetActiveSyncId() != "" { + + if l := len(m.GetActiveSyncId()); l < 1 || l > 1024 { + err := ResourcesServiceListResourcesRequestValidationError{ + field: "ActiveSyncId", + reason: "value length must be between 1 and 1024 bytes, inclusive", + } + if !all { + return err + } + errors = append(errors, err) + } + + } + if len(errors) > 0 { return ResourcesServiceListResourcesRequestMultiError(errors) } @@ -4471,6 +4598,21 @@ func (m *ResourceGetterServiceGetResourceRequest) validate(all bool) error { } + if m.GetActiveSyncId() != "" { + + if l := len(m.GetActiveSyncId()); l < 1 || l > 1024 { + err := ResourceGetterServiceGetResourceRequestValidationError{ + field: "ActiveSyncId", + reason: "value length must be between 1 and 1024 bytes, inclusive", + } + if !all { + return err + } + errors = append(errors, err) + } + + } + if len(errors) > 0 { return ResourceGetterServiceGetResourceRequestMultiError(errors) } @@ -6242,6 +6384,280 @@ var _ interface { ErrorName() string } = CreateAccountResponse_ActionRequiredResultValidationError{} +// Validate checks the field values on +// CreateAccountResponse_AlreadyExistsResult with the rules defined in the +// proto definition for this message. If any rules are violated, the first +// error encountered is returned, or nil if there are no violations. +func (m *CreateAccountResponse_AlreadyExistsResult) Validate() error { + return m.validate(false) +} + +// ValidateAll checks the field values on +// CreateAccountResponse_AlreadyExistsResult with the rules defined in the +// proto definition for this message. If any rules are violated, the result is +// a list of violation errors wrapped in +// CreateAccountResponse_AlreadyExistsResultMultiError, or nil if none found. +func (m *CreateAccountResponse_AlreadyExistsResult) ValidateAll() error { + return m.validate(true) +} + +func (m *CreateAccountResponse_AlreadyExistsResult) validate(all bool) error { + if m == nil { + return nil + } + + var errors []error + + if all { + switch v := interface{}(m.GetResource()).(type) { + case interface{ ValidateAll() error }: + if err := v.ValidateAll(); err != nil { + errors = append(errors, CreateAccountResponse_AlreadyExistsResultValidationError{ + field: "Resource", + reason: "embedded message failed validation", + cause: err, + }) + } + case interface{ Validate() error }: + if err := v.Validate(); err != nil { + errors = append(errors, CreateAccountResponse_AlreadyExistsResultValidationError{ + field: "Resource", + reason: "embedded message failed validation", + cause: err, + }) + } + } + } else if v, ok := interface{}(m.GetResource()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return CreateAccountResponse_AlreadyExistsResultValidationError{ + field: "Resource", + reason: "embedded message failed validation", + cause: err, + } + } + } + + // no validation rules for IsCreateAccountResult + + if len(errors) > 0 { + return CreateAccountResponse_AlreadyExistsResultMultiError(errors) + } + + return nil +} + +// CreateAccountResponse_AlreadyExistsResultMultiError is an error wrapping +// multiple validation errors returned by +// CreateAccountResponse_AlreadyExistsResult.ValidateAll() if the designated +// constraints aren't met. +type CreateAccountResponse_AlreadyExistsResultMultiError []error + +// Error returns a concatenation of all the error messages it wraps. +func (m CreateAccountResponse_AlreadyExistsResultMultiError) Error() string { + msgs := make([]string, 0, len(m)) + for _, err := range m { + msgs = append(msgs, err.Error()) + } + return strings.Join(msgs, "; ") +} + +// AllErrors returns a list of validation violation errors. +func (m CreateAccountResponse_AlreadyExistsResultMultiError) AllErrors() []error { return m } + +// CreateAccountResponse_AlreadyExistsResultValidationError is the validation +// error returned by CreateAccountResponse_AlreadyExistsResult.Validate if the +// designated constraints aren't met. +type CreateAccountResponse_AlreadyExistsResultValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e CreateAccountResponse_AlreadyExistsResultValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e CreateAccountResponse_AlreadyExistsResultValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e CreateAccountResponse_AlreadyExistsResultValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e CreateAccountResponse_AlreadyExistsResultValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e CreateAccountResponse_AlreadyExistsResultValidationError) ErrorName() string { + return "CreateAccountResponse_AlreadyExistsResultValidationError" +} + +// Error satisfies the builtin error interface +func (e CreateAccountResponse_AlreadyExistsResultValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sCreateAccountResponse_AlreadyExistsResult.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = CreateAccountResponse_AlreadyExistsResultValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = CreateAccountResponse_AlreadyExistsResultValidationError{} + +// Validate checks the field values on CreateAccountResponse_InProgressResult +// with the rules defined in the proto definition for this message. If any +// rules are violated, the first error encountered is returned, or nil if +// there are no violations. +func (m *CreateAccountResponse_InProgressResult) Validate() error { + return m.validate(false) +} + +// ValidateAll checks the field values on +// CreateAccountResponse_InProgressResult with the rules defined in the proto +// definition for this message. If any rules are violated, the result is a +// list of violation errors wrapped in +// CreateAccountResponse_InProgressResultMultiError, or nil if none found. +func (m *CreateAccountResponse_InProgressResult) ValidateAll() error { + return m.validate(true) +} + +func (m *CreateAccountResponse_InProgressResult) validate(all bool) error { + if m == nil { + return nil + } + + var errors []error + + if all { + switch v := interface{}(m.GetResource()).(type) { + case interface{ ValidateAll() error }: + if err := v.ValidateAll(); err != nil { + errors = append(errors, CreateAccountResponse_InProgressResultValidationError{ + field: "Resource", + reason: "embedded message failed validation", + cause: err, + }) + } + case interface{ Validate() error }: + if err := v.Validate(); err != nil { + errors = append(errors, CreateAccountResponse_InProgressResultValidationError{ + field: "Resource", + reason: "embedded message failed validation", + cause: err, + }) + } + } + } else if v, ok := interface{}(m.GetResource()).(interface{ Validate() error }); ok { + if err := v.Validate(); err != nil { + return CreateAccountResponse_InProgressResultValidationError{ + field: "Resource", + reason: "embedded message failed validation", + cause: err, + } + } + } + + // no validation rules for IsCreateAccountResult + + if len(errors) > 0 { + return CreateAccountResponse_InProgressResultMultiError(errors) + } + + return nil +} + +// CreateAccountResponse_InProgressResultMultiError is an error wrapping +// multiple validation errors returned by +// CreateAccountResponse_InProgressResult.ValidateAll() if the designated +// constraints aren't met. +type CreateAccountResponse_InProgressResultMultiError []error + +// Error returns a concatenation of all the error messages it wraps. +func (m CreateAccountResponse_InProgressResultMultiError) Error() string { + msgs := make([]string, 0, len(m)) + for _, err := range m { + msgs = append(msgs, err.Error()) + } + return strings.Join(msgs, "; ") +} + +// AllErrors returns a list of validation violation errors. +func (m CreateAccountResponse_InProgressResultMultiError) AllErrors() []error { return m } + +// CreateAccountResponse_InProgressResultValidationError is the validation +// error returned by CreateAccountResponse_InProgressResult.Validate if the +// designated constraints aren't met. +type CreateAccountResponse_InProgressResultValidationError struct { + field string + reason string + cause error + key bool +} + +// Field function returns field value. +func (e CreateAccountResponse_InProgressResultValidationError) Field() string { return e.field } + +// Reason function returns reason value. +func (e CreateAccountResponse_InProgressResultValidationError) Reason() string { return e.reason } + +// Cause function returns cause value. +func (e CreateAccountResponse_InProgressResultValidationError) Cause() error { return e.cause } + +// Key function returns key value. +func (e CreateAccountResponse_InProgressResultValidationError) Key() bool { return e.key } + +// ErrorName returns error name. +func (e CreateAccountResponse_InProgressResultValidationError) ErrorName() string { + return "CreateAccountResponse_InProgressResultValidationError" +} + +// Error satisfies the builtin error interface +func (e CreateAccountResponse_InProgressResultValidationError) Error() string { + cause := "" + if e.cause != nil { + cause = fmt.Sprintf(" | caused by: %v", e.cause) + } + + key := "" + if e.key { + key = "key for " + } + + return fmt.Sprintf( + "invalid %sCreateAccountResponse_InProgressResult.%s: %s%s", + key, + e.field, + e.reason, + cause) +} + +var _ error = CreateAccountResponse_InProgressResultValidationError{} + +var _ interface { + Field() string + Reason() string + Key() bool + Cause() error + ErrorName() string +} = CreateAccountResponse_InProgressResultValidationError{} + // Validate checks the field values on EncryptionConfig_JWKPublicKeyConfig with // the rules defined in the proto definition for this message. If any rules // are violated, the first error encountered is returned, or nil if there are diff --git a/vendor/github.com/conductorone/baton-sdk/pb/c1/connector/v2/resource_protoopaque.pb.go b/vendor/github.com/conductorone/baton-sdk/pb/c1/connector/v2/resource_protoopaque.pb.go new file mode 100644 index 00000000..c2093c67 --- /dev/null +++ b/vendor/github.com/conductorone/baton-sdk/pb/c1/connector/v2/resource_protoopaque.pb.go @@ -0,0 +1,4854 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.36.10 +// protoc (unknown) +// source: c1/connector/v2/resource.proto + +//go:build protoopaque + +package v2 + +import ( + _ "github.com/envoyproxy/protoc-gen-validate/validate" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + anypb "google.golang.org/protobuf/types/known/anypb" + structpb "google.golang.org/protobuf/types/known/structpb" + reflect "reflect" + 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 ResourceType_Trait int32 + +const ( + ResourceType_TRAIT_UNSPECIFIED ResourceType_Trait = 0 + ResourceType_TRAIT_USER ResourceType_Trait = 1 + ResourceType_TRAIT_GROUP ResourceType_Trait = 2 + ResourceType_TRAIT_ROLE ResourceType_Trait = 3 + ResourceType_TRAIT_APP ResourceType_Trait = 4 + ResourceType_TRAIT_SECRET ResourceType_Trait = 5 + ResourceType_TRAIT_SECURITY_INSIGHT ResourceType_Trait = 6 +) + +// Enum value maps for ResourceType_Trait. +var ( + ResourceType_Trait_name = map[int32]string{ + 0: "TRAIT_UNSPECIFIED", + 1: "TRAIT_USER", + 2: "TRAIT_GROUP", + 3: "TRAIT_ROLE", + 4: "TRAIT_APP", + 5: "TRAIT_SECRET", + 6: "TRAIT_SECURITY_INSIGHT", + } + ResourceType_Trait_value = map[string]int32{ + "TRAIT_UNSPECIFIED": 0, + "TRAIT_USER": 1, + "TRAIT_GROUP": 2, + "TRAIT_ROLE": 3, + "TRAIT_APP": 4, + "TRAIT_SECRET": 5, + "TRAIT_SECURITY_INSIGHT": 6, + } +) + +func (x ResourceType_Trait) Enum() *ResourceType_Trait { + p := new(ResourceType_Trait) + *p = x + return p +} + +func (x ResourceType_Trait) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (ResourceType_Trait) Descriptor() protoreflect.EnumDescriptor { + return file_c1_connector_v2_resource_proto_enumTypes[0].Descriptor() +} + +func (ResourceType_Trait) Type() protoreflect.EnumType { + return &file_c1_connector_v2_resource_proto_enumTypes[0] +} + +func (x ResourceType_Trait) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// FIXME(mstanbCO): call this something else? Should it just be a bool? Possibly just use an annotation? +type Resource_CreationSource int32 + +const ( + Resource_CREATION_SOURCE_UNSPECIFIED Resource_CreationSource = 0 + Resource_CREATION_SOURCE_CONNECTOR_LIST_RESOURCES Resource_CreationSource = 1 + Resource_CREATION_SOURCE_CONNECTOR_LIST_GRANTS_PRINCIPAL_JIT Resource_CreationSource = 2 +) + +// Enum value maps for Resource_CreationSource. +var ( + Resource_CreationSource_name = map[int32]string{ + 0: "CREATION_SOURCE_UNSPECIFIED", + 1: "CREATION_SOURCE_CONNECTOR_LIST_RESOURCES", + 2: "CREATION_SOURCE_CONNECTOR_LIST_GRANTS_PRINCIPAL_JIT", + } + Resource_CreationSource_value = map[string]int32{ + "CREATION_SOURCE_UNSPECIFIED": 0, + "CREATION_SOURCE_CONNECTOR_LIST_RESOURCES": 1, + "CREATION_SOURCE_CONNECTOR_LIST_GRANTS_PRINCIPAL_JIT": 2, + } +) + +func (x Resource_CreationSource) Enum() *Resource_CreationSource { + p := new(Resource_CreationSource) + *p = x + return p +} + +func (x Resource_CreationSource) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (Resource_CreationSource) Descriptor() protoreflect.EnumDescriptor { + return file_c1_connector_v2_resource_proto_enumTypes[1].Descriptor() +} + +func (Resource_CreationSource) Type() protoreflect.EnumType { + return &file_c1_connector_v2_resource_proto_enumTypes[1] +} + +func (x Resource_CreationSource) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +type ResourceType struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Id string `protobuf:"bytes,1,opt,name=id,proto3"` + xxx_hidden_DisplayName string `protobuf:"bytes,2,opt,name=display_name,json=displayName,proto3"` + xxx_hidden_Traits []ResourceType_Trait `protobuf:"varint,3,rep,packed,name=traits,proto3,enum=c1.connector.v2.ResourceType_Trait"` + xxx_hidden_Annotations *[]*anypb.Any `protobuf:"bytes,4,rep,name=annotations,proto3"` + xxx_hidden_Description string `protobuf:"bytes,5,opt,name=description,proto3"` + xxx_hidden_SourcedExternally bool `protobuf:"varint,6,opt,name=sourced_externally,json=sourcedExternally,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *ResourceType) Reset() { + *x = ResourceType{} + mi := &file_c1_connector_v2_resource_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *ResourceType) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ResourceType) ProtoMessage() {} + +func (x *ResourceType) ProtoReflect() protoreflect.Message { + mi := &file_c1_connector_v2_resource_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) +} + +func (x *ResourceType) GetId() string { + if x != nil { + return x.xxx_hidden_Id + } + return "" +} + +func (x *ResourceType) GetDisplayName() string { + if x != nil { + return x.xxx_hidden_DisplayName + } + return "" +} + +func (x *ResourceType) GetTraits() []ResourceType_Trait { + if x != nil { + return x.xxx_hidden_Traits + } + return nil +} + +func (x *ResourceType) GetAnnotations() []*anypb.Any { + if x != nil { + if x.xxx_hidden_Annotations != nil { + return *x.xxx_hidden_Annotations + } + } + return nil +} + +func (x *ResourceType) GetDescription() string { + if x != nil { + return x.xxx_hidden_Description + } + return "" +} + +func (x *ResourceType) GetSourcedExternally() bool { + if x != nil { + return x.xxx_hidden_SourcedExternally + } + return false +} + +func (x *ResourceType) SetId(v string) { + x.xxx_hidden_Id = v +} + +func (x *ResourceType) SetDisplayName(v string) { + x.xxx_hidden_DisplayName = v +} + +func (x *ResourceType) SetTraits(v []ResourceType_Trait) { + x.xxx_hidden_Traits = v +} + +func (x *ResourceType) SetAnnotations(v []*anypb.Any) { + x.xxx_hidden_Annotations = &v +} + +func (x *ResourceType) SetDescription(v string) { + x.xxx_hidden_Description = v +} + +func (x *ResourceType) SetSourcedExternally(v bool) { + x.xxx_hidden_SourcedExternally = v +} + +type ResourceType_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Id string + DisplayName string + Traits []ResourceType_Trait + Annotations []*anypb.Any + Description string + SourcedExternally bool +} + +func (b0 ResourceType_builder) Build() *ResourceType { + m0 := &ResourceType{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Id = b.Id + x.xxx_hidden_DisplayName = b.DisplayName + x.xxx_hidden_Traits = b.Traits + x.xxx_hidden_Annotations = &b.Annotations + x.xxx_hidden_Description = b.Description + x.xxx_hidden_SourcedExternally = b.SourcedExternally + return m0 +} + +type ResourceTypesServiceListResourceTypesRequest struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Parent *Resource `protobuf:"bytes,1,opt,name=parent,proto3"` + xxx_hidden_PageSize uint32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3"` + xxx_hidden_PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3"` + xxx_hidden_Annotations *[]*anypb.Any `protobuf:"bytes,4,rep,name=annotations,proto3"` + xxx_hidden_ActiveSyncId string `protobuf:"bytes,5,opt,name=active_sync_id,json=activeSyncId,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *ResourceTypesServiceListResourceTypesRequest) Reset() { + *x = ResourceTypesServiceListResourceTypesRequest{} + mi := &file_c1_connector_v2_resource_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *ResourceTypesServiceListResourceTypesRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ResourceTypesServiceListResourceTypesRequest) ProtoMessage() {} + +func (x *ResourceTypesServiceListResourceTypesRequest) ProtoReflect() protoreflect.Message { + mi := &file_c1_connector_v2_resource_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) +} + +func (x *ResourceTypesServiceListResourceTypesRequest) GetParent() *Resource { + if x != nil { + return x.xxx_hidden_Parent + } + return nil +} + +func (x *ResourceTypesServiceListResourceTypesRequest) GetPageSize() uint32 { + if x != nil { + return x.xxx_hidden_PageSize + } + return 0 +} + +func (x *ResourceTypesServiceListResourceTypesRequest) GetPageToken() string { + if x != nil { + return x.xxx_hidden_PageToken + } + return "" +} + +func (x *ResourceTypesServiceListResourceTypesRequest) GetAnnotations() []*anypb.Any { + if x != nil { + if x.xxx_hidden_Annotations != nil { + return *x.xxx_hidden_Annotations + } + } + return nil +} + +func (x *ResourceTypesServiceListResourceTypesRequest) GetActiveSyncId() string { + if x != nil { + return x.xxx_hidden_ActiveSyncId + } + return "" +} + +func (x *ResourceTypesServiceListResourceTypesRequest) SetParent(v *Resource) { + x.xxx_hidden_Parent = v +} + +func (x *ResourceTypesServiceListResourceTypesRequest) SetPageSize(v uint32) { + x.xxx_hidden_PageSize = v +} + +func (x *ResourceTypesServiceListResourceTypesRequest) SetPageToken(v string) { + x.xxx_hidden_PageToken = v +} + +func (x *ResourceTypesServiceListResourceTypesRequest) SetAnnotations(v []*anypb.Any) { + x.xxx_hidden_Annotations = &v +} + +func (x *ResourceTypesServiceListResourceTypesRequest) SetActiveSyncId(v string) { + x.xxx_hidden_ActiveSyncId = v +} + +func (x *ResourceTypesServiceListResourceTypesRequest) HasParent() bool { + if x == nil { + return false + } + return x.xxx_hidden_Parent != nil +} + +func (x *ResourceTypesServiceListResourceTypesRequest) ClearParent() { + x.xxx_hidden_Parent = nil +} + +type ResourceTypesServiceListResourceTypesRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Parent *Resource + PageSize uint32 + PageToken string + Annotations []*anypb.Any + ActiveSyncId string +} + +func (b0 ResourceTypesServiceListResourceTypesRequest_builder) Build() *ResourceTypesServiceListResourceTypesRequest { + m0 := &ResourceTypesServiceListResourceTypesRequest{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Parent = b.Parent + x.xxx_hidden_PageSize = b.PageSize + x.xxx_hidden_PageToken = b.PageToken + x.xxx_hidden_Annotations = &b.Annotations + x.xxx_hidden_ActiveSyncId = b.ActiveSyncId + return m0 +} + +type ResourceTypesServiceListResourceTypesResponse struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_List *[]*ResourceType `protobuf:"bytes,1,rep,name=list,proto3"` + xxx_hidden_NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3"` + xxx_hidden_Annotations *[]*anypb.Any `protobuf:"bytes,3,rep,name=annotations,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *ResourceTypesServiceListResourceTypesResponse) Reset() { + *x = ResourceTypesServiceListResourceTypesResponse{} + mi := &file_c1_connector_v2_resource_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *ResourceTypesServiceListResourceTypesResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ResourceTypesServiceListResourceTypesResponse) ProtoMessage() {} + +func (x *ResourceTypesServiceListResourceTypesResponse) ProtoReflect() protoreflect.Message { + mi := &file_c1_connector_v2_resource_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) +} + +func (x *ResourceTypesServiceListResourceTypesResponse) GetList() []*ResourceType { + if x != nil { + if x.xxx_hidden_List != nil { + return *x.xxx_hidden_List + } + } + return nil +} + +func (x *ResourceTypesServiceListResourceTypesResponse) GetNextPageToken() string { + if x != nil { + return x.xxx_hidden_NextPageToken + } + return "" +} + +func (x *ResourceTypesServiceListResourceTypesResponse) GetAnnotations() []*anypb.Any { + if x != nil { + if x.xxx_hidden_Annotations != nil { + return *x.xxx_hidden_Annotations + } + } + return nil +} + +func (x *ResourceTypesServiceListResourceTypesResponse) SetList(v []*ResourceType) { + x.xxx_hidden_List = &v +} + +func (x *ResourceTypesServiceListResourceTypesResponse) SetNextPageToken(v string) { + x.xxx_hidden_NextPageToken = v +} + +func (x *ResourceTypesServiceListResourceTypesResponse) SetAnnotations(v []*anypb.Any) { + x.xxx_hidden_Annotations = &v +} + +type ResourceTypesServiceListResourceTypesResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + List []*ResourceType + NextPageToken string + Annotations []*anypb.Any +} + +func (b0 ResourceTypesServiceListResourceTypesResponse_builder) Build() *ResourceTypesServiceListResourceTypesResponse { + m0 := &ResourceTypesServiceListResourceTypesResponse{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_List = &b.List + x.xxx_hidden_NextPageToken = b.NextPageToken + x.xxx_hidden_Annotations = &b.Annotations + return m0 +} + +type CreateResourceRequest struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Resource *Resource `protobuf:"bytes,1,opt,name=resource,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *CreateResourceRequest) Reset() { + *x = CreateResourceRequest{} + mi := &file_c1_connector_v2_resource_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *CreateResourceRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*CreateResourceRequest) ProtoMessage() {} + +func (x *CreateResourceRequest) ProtoReflect() protoreflect.Message { + mi := &file_c1_connector_v2_resource_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) +} + +func (x *CreateResourceRequest) GetResource() *Resource { + if x != nil { + return x.xxx_hidden_Resource + } + return nil +} + +func (x *CreateResourceRequest) SetResource(v *Resource) { + x.xxx_hidden_Resource = v +} + +func (x *CreateResourceRequest) HasResource() bool { + if x == nil { + return false + } + return x.xxx_hidden_Resource != nil +} + +func (x *CreateResourceRequest) ClearResource() { + x.xxx_hidden_Resource = nil +} + +type CreateResourceRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Resource *Resource +} + +func (b0 CreateResourceRequest_builder) Build() *CreateResourceRequest { + m0 := &CreateResourceRequest{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Resource = b.Resource + return m0 +} + +type CreateResourceResponse struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Created *Resource `protobuf:"bytes,1,opt,name=created,proto3"` + xxx_hidden_Annotations *[]*anypb.Any `protobuf:"bytes,2,rep,name=annotations,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *CreateResourceResponse) Reset() { + *x = CreateResourceResponse{} + mi := &file_c1_connector_v2_resource_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *CreateResourceResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*CreateResourceResponse) ProtoMessage() {} + +func (x *CreateResourceResponse) ProtoReflect() protoreflect.Message { + mi := &file_c1_connector_v2_resource_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) +} + +func (x *CreateResourceResponse) GetCreated() *Resource { + if x != nil { + return x.xxx_hidden_Created + } + return nil +} + +func (x *CreateResourceResponse) GetAnnotations() []*anypb.Any { + if x != nil { + if x.xxx_hidden_Annotations != nil { + return *x.xxx_hidden_Annotations + } + } + return nil +} + +func (x *CreateResourceResponse) SetCreated(v *Resource) { + x.xxx_hidden_Created = v +} + +func (x *CreateResourceResponse) SetAnnotations(v []*anypb.Any) { + x.xxx_hidden_Annotations = &v +} + +func (x *CreateResourceResponse) HasCreated() bool { + if x == nil { + return false + } + return x.xxx_hidden_Created != nil +} + +func (x *CreateResourceResponse) ClearCreated() { + x.xxx_hidden_Created = nil +} + +type CreateResourceResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Created *Resource + Annotations []*anypb.Any +} + +func (b0 CreateResourceResponse_builder) Build() *CreateResourceResponse { + m0 := &CreateResourceResponse{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Created = b.Created + x.xxx_hidden_Annotations = &b.Annotations + return m0 +} + +type DeleteResourceRequest struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_ResourceId *ResourceId `protobuf:"bytes,1,opt,name=resource_id,json=resourceId,proto3"` + xxx_hidden_ParentResourceId *ResourceId `protobuf:"bytes,2,opt,name=parent_resource_id,json=parentResourceId,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *DeleteResourceRequest) Reset() { + *x = DeleteResourceRequest{} + mi := &file_c1_connector_v2_resource_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *DeleteResourceRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*DeleteResourceRequest) ProtoMessage() {} + +func (x *DeleteResourceRequest) ProtoReflect() protoreflect.Message { + mi := &file_c1_connector_v2_resource_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) +} + +func (x *DeleteResourceRequest) GetResourceId() *ResourceId { + if x != nil { + return x.xxx_hidden_ResourceId + } + return nil +} + +func (x *DeleteResourceRequest) GetParentResourceId() *ResourceId { + if x != nil { + return x.xxx_hidden_ParentResourceId + } + return nil +} + +func (x *DeleteResourceRequest) SetResourceId(v *ResourceId) { + x.xxx_hidden_ResourceId = v +} + +func (x *DeleteResourceRequest) SetParentResourceId(v *ResourceId) { + x.xxx_hidden_ParentResourceId = v +} + +func (x *DeleteResourceRequest) HasResourceId() bool { + if x == nil { + return false + } + return x.xxx_hidden_ResourceId != nil +} + +func (x *DeleteResourceRequest) HasParentResourceId() bool { + if x == nil { + return false + } + return x.xxx_hidden_ParentResourceId != nil +} + +func (x *DeleteResourceRequest) ClearResourceId() { + x.xxx_hidden_ResourceId = nil +} + +func (x *DeleteResourceRequest) ClearParentResourceId() { + x.xxx_hidden_ParentResourceId = nil +} + +type DeleteResourceRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + ResourceId *ResourceId + ParentResourceId *ResourceId +} + +func (b0 DeleteResourceRequest_builder) Build() *DeleteResourceRequest { + m0 := &DeleteResourceRequest{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_ResourceId = b.ResourceId + x.xxx_hidden_ParentResourceId = b.ParentResourceId + return m0 +} + +type DeleteResourceResponse struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Annotations *[]*anypb.Any `protobuf:"bytes,1,rep,name=annotations,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *DeleteResourceResponse) Reset() { + *x = DeleteResourceResponse{} + mi := &file_c1_connector_v2_resource_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *DeleteResourceResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*DeleteResourceResponse) ProtoMessage() {} + +func (x *DeleteResourceResponse) ProtoReflect() protoreflect.Message { + mi := &file_c1_connector_v2_resource_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) +} + +func (x *DeleteResourceResponse) GetAnnotations() []*anypb.Any { + if x != nil { + if x.xxx_hidden_Annotations != nil { + return *x.xxx_hidden_Annotations + } + } + return nil +} + +func (x *DeleteResourceResponse) SetAnnotations(v []*anypb.Any) { + x.xxx_hidden_Annotations = &v +} + +type DeleteResourceResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Annotations []*anypb.Any +} + +func (b0 DeleteResourceResponse_builder) Build() *DeleteResourceResponse { + m0 := &DeleteResourceResponse{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Annotations = &b.Annotations + return m0 +} + +type DeleteResourceV2Request struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_ResourceId *ResourceId `protobuf:"bytes,1,opt,name=resource_id,json=resourceId,proto3"` + xxx_hidden_ParentResourceId *ResourceId `protobuf:"bytes,2,opt,name=parent_resource_id,json=parentResourceId,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *DeleteResourceV2Request) Reset() { + *x = DeleteResourceV2Request{} + mi := &file_c1_connector_v2_resource_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *DeleteResourceV2Request) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*DeleteResourceV2Request) ProtoMessage() {} + +func (x *DeleteResourceV2Request) ProtoReflect() protoreflect.Message { + mi := &file_c1_connector_v2_resource_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) +} + +func (x *DeleteResourceV2Request) GetResourceId() *ResourceId { + if x != nil { + return x.xxx_hidden_ResourceId + } + return nil +} + +func (x *DeleteResourceV2Request) GetParentResourceId() *ResourceId { + if x != nil { + return x.xxx_hidden_ParentResourceId + } + return nil +} + +func (x *DeleteResourceV2Request) SetResourceId(v *ResourceId) { + x.xxx_hidden_ResourceId = v +} + +func (x *DeleteResourceV2Request) SetParentResourceId(v *ResourceId) { + x.xxx_hidden_ParentResourceId = v +} + +func (x *DeleteResourceV2Request) HasResourceId() bool { + if x == nil { + return false + } + return x.xxx_hidden_ResourceId != nil +} + +func (x *DeleteResourceV2Request) HasParentResourceId() bool { + if x == nil { + return false + } + return x.xxx_hidden_ParentResourceId != nil +} + +func (x *DeleteResourceV2Request) ClearResourceId() { + x.xxx_hidden_ResourceId = nil +} + +func (x *DeleteResourceV2Request) ClearParentResourceId() { + x.xxx_hidden_ParentResourceId = nil +} + +type DeleteResourceV2Request_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + ResourceId *ResourceId + ParentResourceId *ResourceId +} + +func (b0 DeleteResourceV2Request_builder) Build() *DeleteResourceV2Request { + m0 := &DeleteResourceV2Request{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_ResourceId = b.ResourceId + x.xxx_hidden_ParentResourceId = b.ParentResourceId + return m0 +} + +type DeleteResourceV2Response struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Annotations *[]*anypb.Any `protobuf:"bytes,1,rep,name=annotations,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *DeleteResourceV2Response) Reset() { + *x = DeleteResourceV2Response{} + mi := &file_c1_connector_v2_resource_proto_msgTypes[8] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *DeleteResourceV2Response) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*DeleteResourceV2Response) ProtoMessage() {} + +func (x *DeleteResourceV2Response) ProtoReflect() protoreflect.Message { + mi := &file_c1_connector_v2_resource_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) +} + +func (x *DeleteResourceV2Response) GetAnnotations() []*anypb.Any { + if x != nil { + if x.xxx_hidden_Annotations != nil { + return *x.xxx_hidden_Annotations + } + } + return nil +} + +func (x *DeleteResourceV2Response) SetAnnotations(v []*anypb.Any) { + x.xxx_hidden_Annotations = &v +} + +type DeleteResourceV2Response_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Annotations []*anypb.Any +} + +func (b0 DeleteResourceV2Response_builder) Build() *DeleteResourceV2Response { + m0 := &DeleteResourceV2Response{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Annotations = &b.Annotations + return m0 +} + +type RotateCredentialRequest struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_ResourceId *ResourceId `protobuf:"bytes,1,opt,name=resource_id,json=resourceId,proto3"` + xxx_hidden_CredentialOptions *CredentialOptions `protobuf:"bytes,2,opt,name=credential_options,json=credentialOptions,proto3"` + xxx_hidden_EncryptionConfigs *[]*EncryptionConfig `protobuf:"bytes,3,rep,name=encryption_configs,json=encryptionConfigs,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *RotateCredentialRequest) Reset() { + *x = RotateCredentialRequest{} + mi := &file_c1_connector_v2_resource_proto_msgTypes[9] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *RotateCredentialRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*RotateCredentialRequest) ProtoMessage() {} + +func (x *RotateCredentialRequest) ProtoReflect() protoreflect.Message { + mi := &file_c1_connector_v2_resource_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) +} + +func (x *RotateCredentialRequest) GetResourceId() *ResourceId { + if x != nil { + return x.xxx_hidden_ResourceId + } + return nil +} + +func (x *RotateCredentialRequest) GetCredentialOptions() *CredentialOptions { + if x != nil { + return x.xxx_hidden_CredentialOptions + } + return nil +} + +func (x *RotateCredentialRequest) GetEncryptionConfigs() []*EncryptionConfig { + if x != nil { + if x.xxx_hidden_EncryptionConfigs != nil { + return *x.xxx_hidden_EncryptionConfigs + } + } + return nil +} + +func (x *RotateCredentialRequest) SetResourceId(v *ResourceId) { + x.xxx_hidden_ResourceId = v +} + +func (x *RotateCredentialRequest) SetCredentialOptions(v *CredentialOptions) { + x.xxx_hidden_CredentialOptions = v +} + +func (x *RotateCredentialRequest) SetEncryptionConfigs(v []*EncryptionConfig) { + x.xxx_hidden_EncryptionConfigs = &v +} + +func (x *RotateCredentialRequest) HasResourceId() bool { + if x == nil { + return false + } + return x.xxx_hidden_ResourceId != nil +} + +func (x *RotateCredentialRequest) HasCredentialOptions() bool { + if x == nil { + return false + } + return x.xxx_hidden_CredentialOptions != nil +} + +func (x *RotateCredentialRequest) ClearResourceId() { + x.xxx_hidden_ResourceId = nil +} + +func (x *RotateCredentialRequest) ClearCredentialOptions() { + x.xxx_hidden_CredentialOptions = nil +} + +type RotateCredentialRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + ResourceId *ResourceId + CredentialOptions *CredentialOptions + EncryptionConfigs []*EncryptionConfig +} + +func (b0 RotateCredentialRequest_builder) Build() *RotateCredentialRequest { + m0 := &RotateCredentialRequest{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_ResourceId = b.ResourceId + x.xxx_hidden_CredentialOptions = b.CredentialOptions + x.xxx_hidden_EncryptionConfigs = &b.EncryptionConfigs + return m0 +} + +type RotateCredentialResponse struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_EncryptedData *[]*EncryptedData `protobuf:"bytes,1,rep,name=encrypted_data,json=encryptedData,proto3"` + xxx_hidden_ResourceId *ResourceId `protobuf:"bytes,2,opt,name=resource_id,json=resourceId,proto3"` + xxx_hidden_Annotations *[]*anypb.Any `protobuf:"bytes,3,rep,name=annotations,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *RotateCredentialResponse) Reset() { + *x = RotateCredentialResponse{} + mi := &file_c1_connector_v2_resource_proto_msgTypes[10] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *RotateCredentialResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*RotateCredentialResponse) ProtoMessage() {} + +func (x *RotateCredentialResponse) ProtoReflect() protoreflect.Message { + mi := &file_c1_connector_v2_resource_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) +} + +func (x *RotateCredentialResponse) GetEncryptedData() []*EncryptedData { + if x != nil { + if x.xxx_hidden_EncryptedData != nil { + return *x.xxx_hidden_EncryptedData + } + } + return nil +} + +func (x *RotateCredentialResponse) GetResourceId() *ResourceId { + if x != nil { + return x.xxx_hidden_ResourceId + } + return nil +} + +func (x *RotateCredentialResponse) GetAnnotations() []*anypb.Any { + if x != nil { + if x.xxx_hidden_Annotations != nil { + return *x.xxx_hidden_Annotations + } + } + return nil +} + +func (x *RotateCredentialResponse) SetEncryptedData(v []*EncryptedData) { + x.xxx_hidden_EncryptedData = &v +} + +func (x *RotateCredentialResponse) SetResourceId(v *ResourceId) { + x.xxx_hidden_ResourceId = v +} + +func (x *RotateCredentialResponse) SetAnnotations(v []*anypb.Any) { + x.xxx_hidden_Annotations = &v +} + +func (x *RotateCredentialResponse) HasResourceId() bool { + if x == nil { + return false + } + return x.xxx_hidden_ResourceId != nil +} + +func (x *RotateCredentialResponse) ClearResourceId() { + x.xxx_hidden_ResourceId = nil +} + +type RotateCredentialResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + EncryptedData []*EncryptedData + ResourceId *ResourceId + Annotations []*anypb.Any +} + +func (b0 RotateCredentialResponse_builder) Build() *RotateCredentialResponse { + m0 := &RotateCredentialResponse{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_EncryptedData = &b.EncryptedData + x.xxx_hidden_ResourceId = b.ResourceId + x.xxx_hidden_Annotations = &b.Annotations + return m0 +} + +type AccountInfo struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Emails *[]*AccountInfo_Email `protobuf:"bytes,1,rep,name=emails,proto3"` + xxx_hidden_Login string `protobuf:"bytes,2,opt,name=login,proto3"` + xxx_hidden_LoginAliases []string `protobuf:"bytes,3,rep,name=login_aliases,json=loginAliases,proto3"` + xxx_hidden_Profile *structpb.Struct `protobuf:"bytes,4,opt,name=profile,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *AccountInfo) Reset() { + *x = AccountInfo{} + mi := &file_c1_connector_v2_resource_proto_msgTypes[11] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *AccountInfo) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*AccountInfo) ProtoMessage() {} + +func (x *AccountInfo) ProtoReflect() protoreflect.Message { + mi := &file_c1_connector_v2_resource_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) +} + +func (x *AccountInfo) GetEmails() []*AccountInfo_Email { + if x != nil { + if x.xxx_hidden_Emails != nil { + return *x.xxx_hidden_Emails + } + } + return nil +} + +func (x *AccountInfo) GetLogin() string { + if x != nil { + return x.xxx_hidden_Login + } + return "" +} + +func (x *AccountInfo) GetLoginAliases() []string { + if x != nil { + return x.xxx_hidden_LoginAliases + } + return nil +} + +func (x *AccountInfo) GetProfile() *structpb.Struct { + if x != nil { + return x.xxx_hidden_Profile + } + return nil +} + +func (x *AccountInfo) SetEmails(v []*AccountInfo_Email) { + x.xxx_hidden_Emails = &v +} + +func (x *AccountInfo) SetLogin(v string) { + x.xxx_hidden_Login = v +} + +func (x *AccountInfo) SetLoginAliases(v []string) { + x.xxx_hidden_LoginAliases = v +} + +func (x *AccountInfo) SetProfile(v *structpb.Struct) { + x.xxx_hidden_Profile = v +} + +func (x *AccountInfo) HasProfile() bool { + if x == nil { + return false + } + return x.xxx_hidden_Profile != nil +} + +func (x *AccountInfo) ClearProfile() { + x.xxx_hidden_Profile = nil +} + +type AccountInfo_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Emails []*AccountInfo_Email + // The user's login + Login string + // Any additional login aliases for the user + LoginAliases []string + Profile *structpb.Struct +} + +func (b0 AccountInfo_builder) Build() *AccountInfo { + m0 := &AccountInfo{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Emails = &b.Emails + x.xxx_hidden_Login = b.Login + x.xxx_hidden_LoginAliases = b.LoginAliases + x.xxx_hidden_Profile = b.Profile + return m0 +} + +type CredentialOptions struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Options isCredentialOptions_Options `protobuf_oneof:"options"` + xxx_hidden_ForceChangeAtNextLogin bool `protobuf:"varint,1,opt,name=force_change_at_next_login,json=forceChangeAtNextLogin,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *CredentialOptions) Reset() { + *x = CredentialOptions{} + mi := &file_c1_connector_v2_resource_proto_msgTypes[12] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *CredentialOptions) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*CredentialOptions) ProtoMessage() {} + +func (x *CredentialOptions) ProtoReflect() protoreflect.Message { + mi := &file_c1_connector_v2_resource_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) +} + +func (x *CredentialOptions) GetRandomPassword() *CredentialOptions_RandomPassword { + if x != nil { + if x, ok := x.xxx_hidden_Options.(*credentialOptions_RandomPassword_); ok { + return x.RandomPassword + } + } + return nil +} + +func (x *CredentialOptions) GetNoPassword() *CredentialOptions_NoPassword { + if x != nil { + if x, ok := x.xxx_hidden_Options.(*credentialOptions_NoPassword_); ok { + return x.NoPassword + } + } + return nil +} + +func (x *CredentialOptions) GetSso() *CredentialOptions_SSO { + if x != nil { + if x, ok := x.xxx_hidden_Options.(*credentialOptions_Sso); ok { + return x.Sso + } + } + return nil +} + +func (x *CredentialOptions) GetEncryptedPassword() *CredentialOptions_EncryptedPassword { + if x != nil { + if x, ok := x.xxx_hidden_Options.(*credentialOptions_EncryptedPassword_); ok { + return x.EncryptedPassword + } + } + return nil +} + +func (x *CredentialOptions) GetForceChangeAtNextLogin() bool { + if x != nil { + return x.xxx_hidden_ForceChangeAtNextLogin + } + return false +} + +func (x *CredentialOptions) SetRandomPassword(v *CredentialOptions_RandomPassword) { + if v == nil { + x.xxx_hidden_Options = nil + return + } + x.xxx_hidden_Options = &credentialOptions_RandomPassword_{v} +} + +func (x *CredentialOptions) SetNoPassword(v *CredentialOptions_NoPassword) { + if v == nil { + x.xxx_hidden_Options = nil + return + } + x.xxx_hidden_Options = &credentialOptions_NoPassword_{v} +} + +func (x *CredentialOptions) SetSso(v *CredentialOptions_SSO) { + if v == nil { + x.xxx_hidden_Options = nil + return + } + x.xxx_hidden_Options = &credentialOptions_Sso{v} +} + +func (x *CredentialOptions) SetEncryptedPassword(v *CredentialOptions_EncryptedPassword) { + if v == nil { + x.xxx_hidden_Options = nil + return + } + x.xxx_hidden_Options = &credentialOptions_EncryptedPassword_{v} +} + +func (x *CredentialOptions) SetForceChangeAtNextLogin(v bool) { + x.xxx_hidden_ForceChangeAtNextLogin = v +} + +func (x *CredentialOptions) HasOptions() bool { + if x == nil { + return false + } + return x.xxx_hidden_Options != nil +} + +func (x *CredentialOptions) HasRandomPassword() bool { + if x == nil { + return false + } + _, ok := x.xxx_hidden_Options.(*credentialOptions_RandomPassword_) + return ok +} + +func (x *CredentialOptions) HasNoPassword() bool { + if x == nil { + return false + } + _, ok := x.xxx_hidden_Options.(*credentialOptions_NoPassword_) + return ok +} + +func (x *CredentialOptions) HasSso() bool { + if x == nil { + return false + } + _, ok := x.xxx_hidden_Options.(*credentialOptions_Sso) + return ok +} + +func (x *CredentialOptions) HasEncryptedPassword() bool { + if x == nil { + return false + } + _, ok := x.xxx_hidden_Options.(*credentialOptions_EncryptedPassword_) + return ok +} + +func (x *CredentialOptions) ClearOptions() { + x.xxx_hidden_Options = nil +} + +func (x *CredentialOptions) ClearRandomPassword() { + if _, ok := x.xxx_hidden_Options.(*credentialOptions_RandomPassword_); ok { + x.xxx_hidden_Options = nil + } +} + +func (x *CredentialOptions) ClearNoPassword() { + if _, ok := x.xxx_hidden_Options.(*credentialOptions_NoPassword_); ok { + x.xxx_hidden_Options = nil + } +} + +func (x *CredentialOptions) ClearSso() { + if _, ok := x.xxx_hidden_Options.(*credentialOptions_Sso); ok { + x.xxx_hidden_Options = nil + } +} + +func (x *CredentialOptions) ClearEncryptedPassword() { + if _, ok := x.xxx_hidden_Options.(*credentialOptions_EncryptedPassword_); ok { + x.xxx_hidden_Options = nil + } +} + +const CredentialOptions_Options_not_set_case case_CredentialOptions_Options = 0 +const CredentialOptions_RandomPassword_case case_CredentialOptions_Options = 100 +const CredentialOptions_NoPassword_case case_CredentialOptions_Options = 101 +const CredentialOptions_Sso_case case_CredentialOptions_Options = 102 +const CredentialOptions_EncryptedPassword_case case_CredentialOptions_Options = 103 + +func (x *CredentialOptions) WhichOptions() case_CredentialOptions_Options { + if x == nil { + return CredentialOptions_Options_not_set_case + } + switch x.xxx_hidden_Options.(type) { + case *credentialOptions_RandomPassword_: + return CredentialOptions_RandomPassword_case + case *credentialOptions_NoPassword_: + return CredentialOptions_NoPassword_case + case *credentialOptions_Sso: + return CredentialOptions_Sso_case + case *credentialOptions_EncryptedPassword_: + return CredentialOptions_EncryptedPassword_case + default: + return CredentialOptions_Options_not_set_case + } +} + +type CredentialOptions_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Fields of oneof xxx_hidden_Options: + RandomPassword *CredentialOptions_RandomPassword + NoPassword *CredentialOptions_NoPassword + Sso *CredentialOptions_SSO + EncryptedPassword *CredentialOptions_EncryptedPassword + // -- end of xxx_hidden_Options + ForceChangeAtNextLogin bool +} + +func (b0 CredentialOptions_builder) Build() *CredentialOptions { + m0 := &CredentialOptions{} + b, x := &b0, m0 + _, _ = b, x + if b.RandomPassword != nil { + x.xxx_hidden_Options = &credentialOptions_RandomPassword_{b.RandomPassword} + } + if b.NoPassword != nil { + x.xxx_hidden_Options = &credentialOptions_NoPassword_{b.NoPassword} + } + if b.Sso != nil { + x.xxx_hidden_Options = &credentialOptions_Sso{b.Sso} + } + if b.EncryptedPassword != nil { + x.xxx_hidden_Options = &credentialOptions_EncryptedPassword_{b.EncryptedPassword} + } + x.xxx_hidden_ForceChangeAtNextLogin = b.ForceChangeAtNextLogin + return m0 +} + +type case_CredentialOptions_Options protoreflect.FieldNumber + +func (x case_CredentialOptions_Options) String() string { + md := file_c1_connector_v2_resource_proto_msgTypes[12].Descriptor() + if x == 0 { + return "not set" + } + return protoimpl.X.MessageFieldStringOf(md, protoreflect.FieldNumber(x)) +} + +type isCredentialOptions_Options interface { + isCredentialOptions_Options() +} + +type credentialOptions_RandomPassword_ struct { + RandomPassword *CredentialOptions_RandomPassword `protobuf:"bytes,100,opt,name=random_password,json=randomPassword,proto3,oneof"` +} + +type credentialOptions_NoPassword_ struct { + NoPassword *CredentialOptions_NoPassword `protobuf:"bytes,101,opt,name=no_password,json=noPassword,proto3,oneof"` +} + +type credentialOptions_Sso struct { + Sso *CredentialOptions_SSO `protobuf:"bytes,102,opt,name=sso,proto3,oneof"` +} + +type credentialOptions_EncryptedPassword_ struct { + EncryptedPassword *CredentialOptions_EncryptedPassword `protobuf:"bytes,103,opt,name=encrypted_password,json=encryptedPassword,proto3,oneof"` +} + +func (*credentialOptions_RandomPassword_) isCredentialOptions_Options() {} + +func (*credentialOptions_NoPassword_) isCredentialOptions_Options() {} + +func (*credentialOptions_Sso) isCredentialOptions_Options() {} + +func (*credentialOptions_EncryptedPassword_) isCredentialOptions_Options() {} + +// Do not use this in any RPC or any message that is in an RPC. +type LocalCredentialOptions struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Options isLocalCredentialOptions_Options `protobuf_oneof:"options"` + xxx_hidden_ForceChangeAtNextLogin bool `protobuf:"varint,1,opt,name=force_change_at_next_login,json=forceChangeAtNextLogin,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *LocalCredentialOptions) Reset() { + *x = LocalCredentialOptions{} + mi := &file_c1_connector_v2_resource_proto_msgTypes[13] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *LocalCredentialOptions) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*LocalCredentialOptions) ProtoMessage() {} + +func (x *LocalCredentialOptions) ProtoReflect() protoreflect.Message { + mi := &file_c1_connector_v2_resource_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) +} + +func (x *LocalCredentialOptions) GetRandomPassword() *LocalCredentialOptions_RandomPassword { + if x != nil { + if x, ok := x.xxx_hidden_Options.(*localCredentialOptions_RandomPassword_); ok { + return x.RandomPassword + } + } + return nil +} + +func (x *LocalCredentialOptions) GetNoPassword() *LocalCredentialOptions_NoPassword { + if x != nil { + if x, ok := x.xxx_hidden_Options.(*localCredentialOptions_NoPassword_); ok { + return x.NoPassword + } + } + return nil +} + +func (x *LocalCredentialOptions) GetSso() *LocalCredentialOptions_SSO { + if x != nil { + if x, ok := x.xxx_hidden_Options.(*localCredentialOptions_Sso); ok { + return x.Sso + } + } + return nil +} + +func (x *LocalCredentialOptions) GetPlaintextPassword() *LocalCredentialOptions_PlaintextPassword { + if x != nil { + if x, ok := x.xxx_hidden_Options.(*localCredentialOptions_PlaintextPassword_); ok { + return x.PlaintextPassword + } + } + return nil +} + +func (x *LocalCredentialOptions) GetForceChangeAtNextLogin() bool { + if x != nil { + return x.xxx_hidden_ForceChangeAtNextLogin + } + return false +} + +func (x *LocalCredentialOptions) SetRandomPassword(v *LocalCredentialOptions_RandomPassword) { + if v == nil { + x.xxx_hidden_Options = nil + return + } + x.xxx_hidden_Options = &localCredentialOptions_RandomPassword_{v} +} + +func (x *LocalCredentialOptions) SetNoPassword(v *LocalCredentialOptions_NoPassword) { + if v == nil { + x.xxx_hidden_Options = nil + return + } + x.xxx_hidden_Options = &localCredentialOptions_NoPassword_{v} +} + +func (x *LocalCredentialOptions) SetSso(v *LocalCredentialOptions_SSO) { + if v == nil { + x.xxx_hidden_Options = nil + return + } + x.xxx_hidden_Options = &localCredentialOptions_Sso{v} +} + +func (x *LocalCredentialOptions) SetPlaintextPassword(v *LocalCredentialOptions_PlaintextPassword) { + if v == nil { + x.xxx_hidden_Options = nil + return + } + x.xxx_hidden_Options = &localCredentialOptions_PlaintextPassword_{v} +} + +func (x *LocalCredentialOptions) SetForceChangeAtNextLogin(v bool) { + x.xxx_hidden_ForceChangeAtNextLogin = v +} + +func (x *LocalCredentialOptions) HasOptions() bool { + if x == nil { + return false + } + return x.xxx_hidden_Options != nil +} + +func (x *LocalCredentialOptions) HasRandomPassword() bool { + if x == nil { + return false + } + _, ok := x.xxx_hidden_Options.(*localCredentialOptions_RandomPassword_) + return ok +} + +func (x *LocalCredentialOptions) HasNoPassword() bool { + if x == nil { + return false + } + _, ok := x.xxx_hidden_Options.(*localCredentialOptions_NoPassword_) + return ok +} + +func (x *LocalCredentialOptions) HasSso() bool { + if x == nil { + return false + } + _, ok := x.xxx_hidden_Options.(*localCredentialOptions_Sso) + return ok +} + +func (x *LocalCredentialOptions) HasPlaintextPassword() bool { + if x == nil { + return false + } + _, ok := x.xxx_hidden_Options.(*localCredentialOptions_PlaintextPassword_) + return ok +} + +func (x *LocalCredentialOptions) ClearOptions() { + x.xxx_hidden_Options = nil +} + +func (x *LocalCredentialOptions) ClearRandomPassword() { + if _, ok := x.xxx_hidden_Options.(*localCredentialOptions_RandomPassword_); ok { + x.xxx_hidden_Options = nil + } +} + +func (x *LocalCredentialOptions) ClearNoPassword() { + if _, ok := x.xxx_hidden_Options.(*localCredentialOptions_NoPassword_); ok { + x.xxx_hidden_Options = nil + } +} + +func (x *LocalCredentialOptions) ClearSso() { + if _, ok := x.xxx_hidden_Options.(*localCredentialOptions_Sso); ok { + x.xxx_hidden_Options = nil + } +} + +func (x *LocalCredentialOptions) ClearPlaintextPassword() { + if _, ok := x.xxx_hidden_Options.(*localCredentialOptions_PlaintextPassword_); ok { + x.xxx_hidden_Options = nil + } +} + +const LocalCredentialOptions_Options_not_set_case case_LocalCredentialOptions_Options = 0 +const LocalCredentialOptions_RandomPassword_case case_LocalCredentialOptions_Options = 100 +const LocalCredentialOptions_NoPassword_case case_LocalCredentialOptions_Options = 101 +const LocalCredentialOptions_Sso_case case_LocalCredentialOptions_Options = 102 +const LocalCredentialOptions_PlaintextPassword_case case_LocalCredentialOptions_Options = 103 + +func (x *LocalCredentialOptions) WhichOptions() case_LocalCredentialOptions_Options { + if x == nil { + return LocalCredentialOptions_Options_not_set_case + } + switch x.xxx_hidden_Options.(type) { + case *localCredentialOptions_RandomPassword_: + return LocalCredentialOptions_RandomPassword_case + case *localCredentialOptions_NoPassword_: + return LocalCredentialOptions_NoPassword_case + case *localCredentialOptions_Sso: + return LocalCredentialOptions_Sso_case + case *localCredentialOptions_PlaintextPassword_: + return LocalCredentialOptions_PlaintextPassword_case + default: + return LocalCredentialOptions_Options_not_set_case + } +} + +type LocalCredentialOptions_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Fields of oneof xxx_hidden_Options: + RandomPassword *LocalCredentialOptions_RandomPassword + NoPassword *LocalCredentialOptions_NoPassword + Sso *LocalCredentialOptions_SSO + PlaintextPassword *LocalCredentialOptions_PlaintextPassword + // -- end of xxx_hidden_Options + ForceChangeAtNextLogin bool +} + +func (b0 LocalCredentialOptions_builder) Build() *LocalCredentialOptions { + m0 := &LocalCredentialOptions{} + b, x := &b0, m0 + _, _ = b, x + if b.RandomPassword != nil { + x.xxx_hidden_Options = &localCredentialOptions_RandomPassword_{b.RandomPassword} + } + if b.NoPassword != nil { + x.xxx_hidden_Options = &localCredentialOptions_NoPassword_{b.NoPassword} + } + if b.Sso != nil { + x.xxx_hidden_Options = &localCredentialOptions_Sso{b.Sso} + } + if b.PlaintextPassword != nil { + x.xxx_hidden_Options = &localCredentialOptions_PlaintextPassword_{b.PlaintextPassword} + } + x.xxx_hidden_ForceChangeAtNextLogin = b.ForceChangeAtNextLogin + return m0 +} + +type case_LocalCredentialOptions_Options protoreflect.FieldNumber + +func (x case_LocalCredentialOptions_Options) String() string { + md := file_c1_connector_v2_resource_proto_msgTypes[13].Descriptor() + if x == 0 { + return "not set" + } + return protoimpl.X.MessageFieldStringOf(md, protoreflect.FieldNumber(x)) +} + +type isLocalCredentialOptions_Options interface { + isLocalCredentialOptions_Options() +} + +type localCredentialOptions_RandomPassword_ struct { + RandomPassword *LocalCredentialOptions_RandomPassword `protobuf:"bytes,100,opt,name=random_password,json=randomPassword,proto3,oneof"` +} + +type localCredentialOptions_NoPassword_ struct { + NoPassword *LocalCredentialOptions_NoPassword `protobuf:"bytes,101,opt,name=no_password,json=noPassword,proto3,oneof"` +} + +type localCredentialOptions_Sso struct { + Sso *LocalCredentialOptions_SSO `protobuf:"bytes,102,opt,name=sso,proto3,oneof"` +} + +type localCredentialOptions_PlaintextPassword_ struct { + PlaintextPassword *LocalCredentialOptions_PlaintextPassword `protobuf:"bytes,103,opt,name=plaintext_password,json=plaintextPassword,proto3,oneof"` +} + +func (*localCredentialOptions_RandomPassword_) isLocalCredentialOptions_Options() {} + +func (*localCredentialOptions_NoPassword_) isLocalCredentialOptions_Options() {} + +func (*localCredentialOptions_Sso) isLocalCredentialOptions_Options() {} + +func (*localCredentialOptions_PlaintextPassword_) isLocalCredentialOptions_Options() {} + +type PasswordConstraint struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_CharSet string `protobuf:"bytes,1,opt,name=char_set,json=charSet,proto3"` + xxx_hidden_MinCount uint32 `protobuf:"varint,2,opt,name=min_count,json=minCount,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *PasswordConstraint) Reset() { + *x = PasswordConstraint{} + mi := &file_c1_connector_v2_resource_proto_msgTypes[14] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *PasswordConstraint) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*PasswordConstraint) ProtoMessage() {} + +func (x *PasswordConstraint) ProtoReflect() protoreflect.Message { + mi := &file_c1_connector_v2_resource_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) +} + +func (x *PasswordConstraint) GetCharSet() string { + if x != nil { + return x.xxx_hidden_CharSet + } + return "" +} + +func (x *PasswordConstraint) GetMinCount() uint32 { + if x != nil { + return x.xxx_hidden_MinCount + } + return 0 +} + +func (x *PasswordConstraint) SetCharSet(v string) { + x.xxx_hidden_CharSet = v +} + +func (x *PasswordConstraint) SetMinCount(v uint32) { + x.xxx_hidden_MinCount = v +} + +type PasswordConstraint_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + CharSet string + MinCount uint32 +} + +func (b0 PasswordConstraint_builder) Build() *PasswordConstraint { + m0 := &PasswordConstraint{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_CharSet = b.CharSet + x.xxx_hidden_MinCount = b.MinCount + return m0 +} + +type CreateAccountRequest struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_AccountInfo *AccountInfo `protobuf:"bytes,1,opt,name=account_info,json=accountInfo,proto3"` + xxx_hidden_CredentialOptions *CredentialOptions `protobuf:"bytes,2,opt,name=credential_options,json=credentialOptions,proto3"` + xxx_hidden_EncryptionConfigs *[]*EncryptionConfig `protobuf:"bytes,3,rep,name=encryption_configs,json=encryptionConfigs,proto3"` + xxx_hidden_ResourceTypeId string `protobuf:"bytes,4,opt,name=resource_type_id,json=resourceTypeId,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *CreateAccountRequest) Reset() { + *x = CreateAccountRequest{} + mi := &file_c1_connector_v2_resource_proto_msgTypes[15] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *CreateAccountRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*CreateAccountRequest) ProtoMessage() {} + +func (x *CreateAccountRequest) ProtoReflect() protoreflect.Message { + mi := &file_c1_connector_v2_resource_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) +} + +func (x *CreateAccountRequest) GetAccountInfo() *AccountInfo { + if x != nil { + return x.xxx_hidden_AccountInfo + } + return nil +} + +func (x *CreateAccountRequest) GetCredentialOptions() *CredentialOptions { + if x != nil { + return x.xxx_hidden_CredentialOptions + } + return nil +} + +func (x *CreateAccountRequest) GetEncryptionConfigs() []*EncryptionConfig { + if x != nil { + if x.xxx_hidden_EncryptionConfigs != nil { + return *x.xxx_hidden_EncryptionConfigs + } + } + return nil +} + +func (x *CreateAccountRequest) GetResourceTypeId() string { + if x != nil { + return x.xxx_hidden_ResourceTypeId + } + return "" +} + +func (x *CreateAccountRequest) SetAccountInfo(v *AccountInfo) { + x.xxx_hidden_AccountInfo = v +} + +func (x *CreateAccountRequest) SetCredentialOptions(v *CredentialOptions) { + x.xxx_hidden_CredentialOptions = v +} + +func (x *CreateAccountRequest) SetEncryptionConfigs(v []*EncryptionConfig) { + x.xxx_hidden_EncryptionConfigs = &v +} + +func (x *CreateAccountRequest) SetResourceTypeId(v string) { + x.xxx_hidden_ResourceTypeId = v +} + +func (x *CreateAccountRequest) HasAccountInfo() bool { + if x == nil { + return false + } + return x.xxx_hidden_AccountInfo != nil +} + +func (x *CreateAccountRequest) HasCredentialOptions() bool { + if x == nil { + return false + } + return x.xxx_hidden_CredentialOptions != nil +} + +func (x *CreateAccountRequest) ClearAccountInfo() { + x.xxx_hidden_AccountInfo = nil +} + +func (x *CreateAccountRequest) ClearCredentialOptions() { + x.xxx_hidden_CredentialOptions = nil +} + +type CreateAccountRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + AccountInfo *AccountInfo + CredentialOptions *CredentialOptions + EncryptionConfigs []*EncryptionConfig + ResourceTypeId string +} + +func (b0 CreateAccountRequest_builder) Build() *CreateAccountRequest { + m0 := &CreateAccountRequest{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_AccountInfo = b.AccountInfo + x.xxx_hidden_CredentialOptions = b.CredentialOptions + x.xxx_hidden_EncryptionConfigs = &b.EncryptionConfigs + x.xxx_hidden_ResourceTypeId = b.ResourceTypeId + return m0 +} + +type CreateAccountResponse struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Result isCreateAccountResponse_Result `protobuf_oneof:"result"` + xxx_hidden_EncryptedData *[]*EncryptedData `protobuf:"bytes,2,rep,name=encrypted_data,json=encryptedData,proto3"` + xxx_hidden_Annotations *[]*anypb.Any `protobuf:"bytes,3,rep,name=annotations,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *CreateAccountResponse) Reset() { + *x = CreateAccountResponse{} + mi := &file_c1_connector_v2_resource_proto_msgTypes[16] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *CreateAccountResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*CreateAccountResponse) ProtoMessage() {} + +func (x *CreateAccountResponse) ProtoReflect() protoreflect.Message { + mi := &file_c1_connector_v2_resource_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) +} + +func (x *CreateAccountResponse) GetSuccess() *CreateAccountResponse_SuccessResult { + if x != nil { + if x, ok := x.xxx_hidden_Result.(*createAccountResponse_Success); ok { + return x.Success + } + } + return nil +} + +func (x *CreateAccountResponse) GetActionRequired() *CreateAccountResponse_ActionRequiredResult { + if x != nil { + if x, ok := x.xxx_hidden_Result.(*createAccountResponse_ActionRequired); ok { + return x.ActionRequired + } + } + return nil +} + +func (x *CreateAccountResponse) GetAlreadyExists() *CreateAccountResponse_AlreadyExistsResult { + if x != nil { + if x, ok := x.xxx_hidden_Result.(*createAccountResponse_AlreadyExists); ok { + return x.AlreadyExists + } + } + return nil +} + +func (x *CreateAccountResponse) GetInProgress() *CreateAccountResponse_InProgressResult { + if x != nil { + if x, ok := x.xxx_hidden_Result.(*createAccountResponse_InProgress); ok { + return x.InProgress + } + } + return nil +} + +func (x *CreateAccountResponse) GetEncryptedData() []*EncryptedData { + if x != nil { + if x.xxx_hidden_EncryptedData != nil { + return *x.xxx_hidden_EncryptedData + } + } + return nil +} + +func (x *CreateAccountResponse) GetAnnotations() []*anypb.Any { + if x != nil { + if x.xxx_hidden_Annotations != nil { + return *x.xxx_hidden_Annotations + } + } + return nil +} + +func (x *CreateAccountResponse) SetSuccess(v *CreateAccountResponse_SuccessResult) { + if v == nil { + x.xxx_hidden_Result = nil + return + } + x.xxx_hidden_Result = &createAccountResponse_Success{v} +} + +func (x *CreateAccountResponse) SetActionRequired(v *CreateAccountResponse_ActionRequiredResult) { + if v == nil { + x.xxx_hidden_Result = nil + return + } + x.xxx_hidden_Result = &createAccountResponse_ActionRequired{v} +} + +func (x *CreateAccountResponse) SetAlreadyExists(v *CreateAccountResponse_AlreadyExistsResult) { + if v == nil { + x.xxx_hidden_Result = nil + return + } + x.xxx_hidden_Result = &createAccountResponse_AlreadyExists{v} +} + +func (x *CreateAccountResponse) SetInProgress(v *CreateAccountResponse_InProgressResult) { + if v == nil { + x.xxx_hidden_Result = nil + return + } + x.xxx_hidden_Result = &createAccountResponse_InProgress{v} +} + +func (x *CreateAccountResponse) SetEncryptedData(v []*EncryptedData) { + x.xxx_hidden_EncryptedData = &v +} + +func (x *CreateAccountResponse) SetAnnotations(v []*anypb.Any) { + x.xxx_hidden_Annotations = &v +} + +func (x *CreateAccountResponse) HasResult() bool { + if x == nil { + return false + } + return x.xxx_hidden_Result != nil +} + +func (x *CreateAccountResponse) HasSuccess() bool { + if x == nil { + return false + } + _, ok := x.xxx_hidden_Result.(*createAccountResponse_Success) + return ok +} + +func (x *CreateAccountResponse) HasActionRequired() bool { + if x == nil { + return false + } + _, ok := x.xxx_hidden_Result.(*createAccountResponse_ActionRequired) + return ok +} + +func (x *CreateAccountResponse) HasAlreadyExists() bool { + if x == nil { + return false + } + _, ok := x.xxx_hidden_Result.(*createAccountResponse_AlreadyExists) + return ok +} + +func (x *CreateAccountResponse) HasInProgress() bool { + if x == nil { + return false + } + _, ok := x.xxx_hidden_Result.(*createAccountResponse_InProgress) + return ok +} + +func (x *CreateAccountResponse) ClearResult() { + x.xxx_hidden_Result = nil +} + +func (x *CreateAccountResponse) ClearSuccess() { + if _, ok := x.xxx_hidden_Result.(*createAccountResponse_Success); ok { + x.xxx_hidden_Result = nil + } +} + +func (x *CreateAccountResponse) ClearActionRequired() { + if _, ok := x.xxx_hidden_Result.(*createAccountResponse_ActionRequired); ok { + x.xxx_hidden_Result = nil + } +} + +func (x *CreateAccountResponse) ClearAlreadyExists() { + if _, ok := x.xxx_hidden_Result.(*createAccountResponse_AlreadyExists); ok { + x.xxx_hidden_Result = nil + } +} + +func (x *CreateAccountResponse) ClearInProgress() { + if _, ok := x.xxx_hidden_Result.(*createAccountResponse_InProgress); ok { + x.xxx_hidden_Result = nil + } +} + +const CreateAccountResponse_Result_not_set_case case_CreateAccountResponse_Result = 0 +const CreateAccountResponse_Success_case case_CreateAccountResponse_Result = 100 +const CreateAccountResponse_ActionRequired_case case_CreateAccountResponse_Result = 101 +const CreateAccountResponse_AlreadyExists_case case_CreateAccountResponse_Result = 102 +const CreateAccountResponse_InProgress_case case_CreateAccountResponse_Result = 103 + +func (x *CreateAccountResponse) WhichResult() case_CreateAccountResponse_Result { + if x == nil { + return CreateAccountResponse_Result_not_set_case + } + switch x.xxx_hidden_Result.(type) { + case *createAccountResponse_Success: + return CreateAccountResponse_Success_case + case *createAccountResponse_ActionRequired: + return CreateAccountResponse_ActionRequired_case + case *createAccountResponse_AlreadyExists: + return CreateAccountResponse_AlreadyExists_case + case *createAccountResponse_InProgress: + return CreateAccountResponse_InProgress_case + default: + return CreateAccountResponse_Result_not_set_case + } +} + +type CreateAccountResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Fields of oneof xxx_hidden_Result: + Success *CreateAccountResponse_SuccessResult + ActionRequired *CreateAccountResponse_ActionRequiredResult + AlreadyExists *CreateAccountResponse_AlreadyExistsResult + InProgress *CreateAccountResponse_InProgressResult + // -- end of xxx_hidden_Result + EncryptedData []*EncryptedData + Annotations []*anypb.Any +} + +func (b0 CreateAccountResponse_builder) Build() *CreateAccountResponse { + m0 := &CreateAccountResponse{} + b, x := &b0, m0 + _, _ = b, x + if b.Success != nil { + x.xxx_hidden_Result = &createAccountResponse_Success{b.Success} + } + if b.ActionRequired != nil { + x.xxx_hidden_Result = &createAccountResponse_ActionRequired{b.ActionRequired} + } + if b.AlreadyExists != nil { + x.xxx_hidden_Result = &createAccountResponse_AlreadyExists{b.AlreadyExists} + } + if b.InProgress != nil { + x.xxx_hidden_Result = &createAccountResponse_InProgress{b.InProgress} + } + x.xxx_hidden_EncryptedData = &b.EncryptedData + x.xxx_hidden_Annotations = &b.Annotations + return m0 +} + +type case_CreateAccountResponse_Result protoreflect.FieldNumber + +func (x case_CreateAccountResponse_Result) String() string { + md := file_c1_connector_v2_resource_proto_msgTypes[16].Descriptor() + if x == 0 { + return "not set" + } + return protoimpl.X.MessageFieldStringOf(md, protoreflect.FieldNumber(x)) +} + +type isCreateAccountResponse_Result interface { + isCreateAccountResponse_Result() +} + +type createAccountResponse_Success struct { + Success *CreateAccountResponse_SuccessResult `protobuf:"bytes,100,opt,name=success,proto3,oneof"` +} + +type createAccountResponse_ActionRequired struct { + ActionRequired *CreateAccountResponse_ActionRequiredResult `protobuf:"bytes,101,opt,name=action_required,json=actionRequired,proto3,oneof"` +} + +type createAccountResponse_AlreadyExists struct { + AlreadyExists *CreateAccountResponse_AlreadyExistsResult `protobuf:"bytes,102,opt,name=already_exists,json=alreadyExists,proto3,oneof"` +} + +type createAccountResponse_InProgress struct { + InProgress *CreateAccountResponse_InProgressResult `protobuf:"bytes,103,opt,name=in_progress,json=inProgress,proto3,oneof"` +} + +func (*createAccountResponse_Success) isCreateAccountResponse_Result() {} + +func (*createAccountResponse_ActionRequired) isCreateAccountResponse_Result() {} + +func (*createAccountResponse_AlreadyExists) isCreateAccountResponse_Result() {} + +func (*createAccountResponse_InProgress) isCreateAccountResponse_Result() {} + +type EncryptedData struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Provider string `protobuf:"bytes,1,opt,name=provider,proto3"` + xxx_hidden_KeyId string `protobuf:"bytes,2,opt,name=key_id,json=keyId,proto3"` + xxx_hidden_Name string `protobuf:"bytes,3,opt,name=name,proto3"` + xxx_hidden_Description string `protobuf:"bytes,4,opt,name=description,proto3"` + xxx_hidden_Schema string `protobuf:"bytes,5,opt,name=schema,proto3"` + xxx_hidden_EncryptedBytes []byte `protobuf:"bytes,6,opt,name=encrypted_bytes,json=encryptedBytes,proto3"` + xxx_hidden_KeyIds []string `protobuf:"bytes,7,rep,name=key_ids,json=keyIds,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *EncryptedData) Reset() { + *x = EncryptedData{} + mi := &file_c1_connector_v2_resource_proto_msgTypes[17] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *EncryptedData) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*EncryptedData) ProtoMessage() {} + +func (x *EncryptedData) ProtoReflect() protoreflect.Message { + mi := &file_c1_connector_v2_resource_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) +} + +func (x *EncryptedData) GetProvider() string { + if x != nil { + return x.xxx_hidden_Provider + } + return "" +} + +// Deprecated: Marked as deprecated in c1/connector/v2/resource.proto. +func (x *EncryptedData) GetKeyId() string { + if x != nil { + return x.xxx_hidden_KeyId + } + return "" +} + +func (x *EncryptedData) GetName() string { + if x != nil { + return x.xxx_hidden_Name + } + return "" +} + +func (x *EncryptedData) GetDescription() string { + if x != nil { + return x.xxx_hidden_Description + } + return "" +} + +func (x *EncryptedData) GetSchema() string { + if x != nil { + return x.xxx_hidden_Schema + } + return "" +} + +func (x *EncryptedData) GetEncryptedBytes() []byte { + if x != nil { + return x.xxx_hidden_EncryptedBytes + } + return nil +} + +func (x *EncryptedData) GetKeyIds() []string { + if x != nil { + return x.xxx_hidden_KeyIds + } + return nil +} + +func (x *EncryptedData) SetProvider(v string) { + x.xxx_hidden_Provider = v +} + +// Deprecated: Marked as deprecated in c1/connector/v2/resource.proto. +func (x *EncryptedData) SetKeyId(v string) { + x.xxx_hidden_KeyId = v +} + +func (x *EncryptedData) SetName(v string) { + x.xxx_hidden_Name = v +} + +func (x *EncryptedData) SetDescription(v string) { + x.xxx_hidden_Description = v +} + +func (x *EncryptedData) SetSchema(v string) { + x.xxx_hidden_Schema = v +} + +func (x *EncryptedData) SetEncryptedBytes(v []byte) { + if v == nil { + v = []byte{} + } + x.xxx_hidden_EncryptedBytes = v +} + +func (x *EncryptedData) SetKeyIds(v []string) { + x.xxx_hidden_KeyIds = v +} + +type EncryptedData_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Provider string + // Deprecated: Marked as deprecated in c1/connector/v2/resource.proto. + KeyId string + Name string + Description string + Schema string + EncryptedBytes []byte + KeyIds []string +} + +func (b0 EncryptedData_builder) Build() *EncryptedData { + m0 := &EncryptedData{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Provider = b.Provider + x.xxx_hidden_KeyId = b.KeyId + x.xxx_hidden_Name = b.Name + x.xxx_hidden_Description = b.Description + x.xxx_hidden_Schema = b.Schema + x.xxx_hidden_EncryptedBytes = b.EncryptedBytes + x.xxx_hidden_KeyIds = b.KeyIds + return m0 +} + +type PlaintextData struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Name string `protobuf:"bytes,1,opt,name=name,proto3"` + xxx_hidden_Description string `protobuf:"bytes,2,opt,name=description,proto3"` + xxx_hidden_Schema string `protobuf:"bytes,3,opt,name=schema,proto3"` + xxx_hidden_Bytes []byte `protobuf:"bytes,4,opt,name=bytes,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *PlaintextData) Reset() { + *x = PlaintextData{} + mi := &file_c1_connector_v2_resource_proto_msgTypes[18] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *PlaintextData) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*PlaintextData) ProtoMessage() {} + +func (x *PlaintextData) ProtoReflect() protoreflect.Message { + mi := &file_c1_connector_v2_resource_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) +} + +func (x *PlaintextData) GetName() string { + if x != nil { + return x.xxx_hidden_Name + } + return "" +} + +func (x *PlaintextData) GetDescription() string { + if x != nil { + return x.xxx_hidden_Description + } + return "" +} + +func (x *PlaintextData) GetSchema() string { + if x != nil { + return x.xxx_hidden_Schema + } + return "" +} + +func (x *PlaintextData) GetBytes() []byte { + if x != nil { + return x.xxx_hidden_Bytes + } + return nil +} + +func (x *PlaintextData) SetName(v string) { + x.xxx_hidden_Name = v +} + +func (x *PlaintextData) SetDescription(v string) { + x.xxx_hidden_Description = v +} + +func (x *PlaintextData) SetSchema(v string) { + x.xxx_hidden_Schema = v +} + +func (x *PlaintextData) SetBytes(v []byte) { + if v == nil { + v = []byte{} + } + x.xxx_hidden_Bytes = v +} + +type PlaintextData_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Name string + Description string + Schema string + Bytes []byte +} + +func (b0 PlaintextData_builder) Build() *PlaintextData { + m0 := &PlaintextData{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Name = b.Name + x.xxx_hidden_Description = b.Description + x.xxx_hidden_Schema = b.Schema + x.xxx_hidden_Bytes = b.Bytes + return m0 +} + +type EncryptionConfig struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Principal *Resource `protobuf:"bytes,1,opt,name=principal,proto3"` + xxx_hidden_Provider string `protobuf:"bytes,2,opt,name=provider,proto3"` + xxx_hidden_KeyId string `protobuf:"bytes,3,opt,name=key_id,json=keyId,proto3"` + xxx_hidden_Config isEncryptionConfig_Config `protobuf_oneof:"config"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *EncryptionConfig) Reset() { + *x = EncryptionConfig{} + mi := &file_c1_connector_v2_resource_proto_msgTypes[19] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *EncryptionConfig) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*EncryptionConfig) ProtoMessage() {} + +func (x *EncryptionConfig) ProtoReflect() protoreflect.Message { + mi := &file_c1_connector_v2_resource_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) +} + +func (x *EncryptionConfig) GetPrincipal() *Resource { + if x != nil { + return x.xxx_hidden_Principal + } + return nil +} + +func (x *EncryptionConfig) GetProvider() string { + if x != nil { + return x.xxx_hidden_Provider + } + return "" +} + +func (x *EncryptionConfig) GetKeyId() string { + if x != nil { + return x.xxx_hidden_KeyId + } + return "" +} + +func (x *EncryptionConfig) GetJwkPublicKeyConfig() *EncryptionConfig_JWKPublicKeyConfig { + if x != nil { + if x, ok := x.xxx_hidden_Config.(*encryptionConfig_JwkPublicKeyConfig); ok { + return x.JwkPublicKeyConfig + } + } + return nil +} + +func (x *EncryptionConfig) SetPrincipal(v *Resource) { + x.xxx_hidden_Principal = v +} + +func (x *EncryptionConfig) SetProvider(v string) { + x.xxx_hidden_Provider = v +} + +func (x *EncryptionConfig) SetKeyId(v string) { + x.xxx_hidden_KeyId = v +} + +func (x *EncryptionConfig) SetJwkPublicKeyConfig(v *EncryptionConfig_JWKPublicKeyConfig) { + if v == nil { + x.xxx_hidden_Config = nil + return + } + x.xxx_hidden_Config = &encryptionConfig_JwkPublicKeyConfig{v} +} + +func (x *EncryptionConfig) HasPrincipal() bool { + if x == nil { + return false + } + return x.xxx_hidden_Principal != nil +} + +func (x *EncryptionConfig) HasConfig() bool { + if x == nil { + return false + } + return x.xxx_hidden_Config != nil +} + +func (x *EncryptionConfig) HasJwkPublicKeyConfig() bool { + if x == nil { + return false + } + _, ok := x.xxx_hidden_Config.(*encryptionConfig_JwkPublicKeyConfig) + return ok +} + +func (x *EncryptionConfig) ClearPrincipal() { + x.xxx_hidden_Principal = nil +} + +func (x *EncryptionConfig) ClearConfig() { + x.xxx_hidden_Config = nil +} + +func (x *EncryptionConfig) ClearJwkPublicKeyConfig() { + if _, ok := x.xxx_hidden_Config.(*encryptionConfig_JwkPublicKeyConfig); ok { + x.xxx_hidden_Config = nil + } +} + +const EncryptionConfig_Config_not_set_case case_EncryptionConfig_Config = 0 +const EncryptionConfig_JwkPublicKeyConfig_case case_EncryptionConfig_Config = 100 + +func (x *EncryptionConfig) WhichConfig() case_EncryptionConfig_Config { + if x == nil { + return EncryptionConfig_Config_not_set_case + } + switch x.xxx_hidden_Config.(type) { + case *encryptionConfig_JwkPublicKeyConfig: + return EncryptionConfig_JwkPublicKeyConfig_case + default: + return EncryptionConfig_Config_not_set_case + } +} + +type EncryptionConfig_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Principal *Resource + Provider string + KeyId string + // Fields of oneof xxx_hidden_Config: + JwkPublicKeyConfig *EncryptionConfig_JWKPublicKeyConfig + // -- end of xxx_hidden_Config +} + +func (b0 EncryptionConfig_builder) Build() *EncryptionConfig { + m0 := &EncryptionConfig{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Principal = b.Principal + x.xxx_hidden_Provider = b.Provider + x.xxx_hidden_KeyId = b.KeyId + if b.JwkPublicKeyConfig != nil { + x.xxx_hidden_Config = &encryptionConfig_JwkPublicKeyConfig{b.JwkPublicKeyConfig} + } + return m0 +} + +type case_EncryptionConfig_Config protoreflect.FieldNumber + +func (x case_EncryptionConfig_Config) String() string { + md := file_c1_connector_v2_resource_proto_msgTypes[19].Descriptor() + if x == 0 { + return "not set" + } + return protoimpl.X.MessageFieldStringOf(md, protoreflect.FieldNumber(x)) +} + +type isEncryptionConfig_Config interface { + isEncryptionConfig_Config() +} + +type encryptionConfig_JwkPublicKeyConfig struct { + JwkPublicKeyConfig *EncryptionConfig_JWKPublicKeyConfig `protobuf:"bytes,100,opt,name=jwk_public_key_config,json=jwkPublicKeyConfig,proto3,oneof"` +} + +func (*encryptionConfig_JwkPublicKeyConfig) isEncryptionConfig_Config() {} + +type ResourceId struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_ResourceType string `protobuf:"bytes,1,opt,name=resource_type,json=resourceType,proto3"` + xxx_hidden_Resource string `protobuf:"bytes,2,opt,name=resource,proto3"` + xxx_hidden_BatonResource bool `protobuf:"varint,3,opt,name=baton_resource,json=batonResource,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *ResourceId) Reset() { + *x = ResourceId{} + mi := &file_c1_connector_v2_resource_proto_msgTypes[20] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *ResourceId) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ResourceId) ProtoMessage() {} + +func (x *ResourceId) ProtoReflect() protoreflect.Message { + mi := &file_c1_connector_v2_resource_proto_msgTypes[20] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *ResourceId) GetResourceType() string { + if x != nil { + return x.xxx_hidden_ResourceType + } + return "" +} + +func (x *ResourceId) GetResource() string { + if x != nil { + return x.xxx_hidden_Resource + } + return "" +} + +func (x *ResourceId) GetBatonResource() bool { + if x != nil { + return x.xxx_hidden_BatonResource + } + return false +} + +func (x *ResourceId) SetResourceType(v string) { + x.xxx_hidden_ResourceType = v +} + +func (x *ResourceId) SetResource(v string) { + x.xxx_hidden_Resource = v +} + +func (x *ResourceId) SetBatonResource(v bool) { + x.xxx_hidden_BatonResource = v +} + +type ResourceId_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + ResourceType string + Resource string + BatonResource bool +} + +func (b0 ResourceId_builder) Build() *ResourceId { + m0 := &ResourceId{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_ResourceType = b.ResourceType + x.xxx_hidden_Resource = b.Resource + x.xxx_hidden_BatonResource = b.BatonResource + return m0 +} + +type Resource struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Id *ResourceId `protobuf:"bytes,1,opt,name=id,proto3"` + xxx_hidden_ParentResourceId *ResourceId `protobuf:"bytes,2,opt,name=parent_resource_id,json=parentResourceId,proto3"` + xxx_hidden_DisplayName string `protobuf:"bytes,3,opt,name=display_name,json=displayName,proto3"` + xxx_hidden_Annotations *[]*anypb.Any `protobuf:"bytes,4,rep,name=annotations,proto3"` + xxx_hidden_Description string `protobuf:"bytes,5,opt,name=description,proto3"` + xxx_hidden_BatonResource bool `protobuf:"varint,6,opt,name=baton_resource,json=batonResource,proto3"` + xxx_hidden_ExternalId *ExternalId `protobuf:"bytes,7,opt,name=external_id,json=externalId,proto3"` + xxx_hidden_CreationSource Resource_CreationSource `protobuf:"varint,8,opt,name=creation_source,json=creationSource,proto3,enum=c1.connector.v2.Resource_CreationSource"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *Resource) Reset() { + *x = Resource{} + mi := &file_c1_connector_v2_resource_proto_msgTypes[21] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *Resource) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Resource) ProtoMessage() {} + +func (x *Resource) ProtoReflect() protoreflect.Message { + mi := &file_c1_connector_v2_resource_proto_msgTypes[21] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *Resource) GetId() *ResourceId { + if x != nil { + return x.xxx_hidden_Id + } + return nil +} + +func (x *Resource) GetParentResourceId() *ResourceId { + if x != nil { + return x.xxx_hidden_ParentResourceId + } + return nil +} + +func (x *Resource) GetDisplayName() string { + if x != nil { + return x.xxx_hidden_DisplayName + } + return "" +} + +func (x *Resource) GetAnnotations() []*anypb.Any { + if x != nil { + if x.xxx_hidden_Annotations != nil { + return *x.xxx_hidden_Annotations + } + } + return nil +} + +func (x *Resource) GetDescription() string { + if x != nil { + return x.xxx_hidden_Description + } + return "" +} + +func (x *Resource) GetBatonResource() bool { + if x != nil { + return x.xxx_hidden_BatonResource + } + return false +} + +func (x *Resource) GetExternalId() *ExternalId { + if x != nil { + return x.xxx_hidden_ExternalId + } + return nil +} + +func (x *Resource) GetCreationSource() Resource_CreationSource { + if x != nil { + return x.xxx_hidden_CreationSource + } + return Resource_CREATION_SOURCE_UNSPECIFIED +} + +func (x *Resource) SetId(v *ResourceId) { + x.xxx_hidden_Id = v +} + +func (x *Resource) SetParentResourceId(v *ResourceId) { + x.xxx_hidden_ParentResourceId = v +} + +func (x *Resource) SetDisplayName(v string) { + x.xxx_hidden_DisplayName = v +} + +func (x *Resource) SetAnnotations(v []*anypb.Any) { + x.xxx_hidden_Annotations = &v +} + +func (x *Resource) SetDescription(v string) { + x.xxx_hidden_Description = v +} + +func (x *Resource) SetBatonResource(v bool) { + x.xxx_hidden_BatonResource = v +} + +func (x *Resource) SetExternalId(v *ExternalId) { + x.xxx_hidden_ExternalId = v +} + +func (x *Resource) SetCreationSource(v Resource_CreationSource) { + x.xxx_hidden_CreationSource = v +} + +func (x *Resource) HasId() bool { + if x == nil { + return false + } + return x.xxx_hidden_Id != nil +} + +func (x *Resource) HasParentResourceId() bool { + if x == nil { + return false + } + return x.xxx_hidden_ParentResourceId != nil +} + +func (x *Resource) HasExternalId() bool { + if x == nil { + return false + } + return x.xxx_hidden_ExternalId != nil +} + +func (x *Resource) ClearId() { + x.xxx_hidden_Id = nil +} + +func (x *Resource) ClearParentResourceId() { + x.xxx_hidden_ParentResourceId = nil +} + +func (x *Resource) ClearExternalId() { + x.xxx_hidden_ExternalId = nil +} + +type Resource_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Id *ResourceId + ParentResourceId *ResourceId + DisplayName string + Annotations []*anypb.Any + Description string + BatonResource bool + ExternalId *ExternalId + CreationSource Resource_CreationSource +} + +func (b0 Resource_builder) Build() *Resource { + m0 := &Resource{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Id = b.Id + x.xxx_hidden_ParentResourceId = b.ParentResourceId + x.xxx_hidden_DisplayName = b.DisplayName + x.xxx_hidden_Annotations = &b.Annotations + x.xxx_hidden_Description = b.Description + x.xxx_hidden_BatonResource = b.BatonResource + x.xxx_hidden_ExternalId = b.ExternalId + x.xxx_hidden_CreationSource = b.CreationSource + return m0 +} + +type ResourcesServiceListResourcesRequest struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_ResourceTypeId string `protobuf:"bytes,1,opt,name=resource_type_id,json=resourceTypeId,proto3"` + xxx_hidden_ParentResourceId *ResourceId `protobuf:"bytes,2,opt,name=parent_resource_id,json=parentResourceId,proto3"` + xxx_hidden_PageSize uint32 `protobuf:"varint,3,opt,name=page_size,json=pageSize,proto3"` + xxx_hidden_PageToken string `protobuf:"bytes,4,opt,name=page_token,json=pageToken,proto3"` + xxx_hidden_Annotations *[]*anypb.Any `protobuf:"bytes,5,rep,name=annotations,proto3"` + xxx_hidden_ActiveSyncId string `protobuf:"bytes,6,opt,name=active_sync_id,json=activeSyncId,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *ResourcesServiceListResourcesRequest) Reset() { + *x = ResourcesServiceListResourcesRequest{} + mi := &file_c1_connector_v2_resource_proto_msgTypes[22] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *ResourcesServiceListResourcesRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ResourcesServiceListResourcesRequest) ProtoMessage() {} + +func (x *ResourcesServiceListResourcesRequest) ProtoReflect() protoreflect.Message { + mi := &file_c1_connector_v2_resource_proto_msgTypes[22] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *ResourcesServiceListResourcesRequest) GetResourceTypeId() string { + if x != nil { + return x.xxx_hidden_ResourceTypeId + } + return "" +} + +func (x *ResourcesServiceListResourcesRequest) GetParentResourceId() *ResourceId { + if x != nil { + return x.xxx_hidden_ParentResourceId + } + return nil +} + +func (x *ResourcesServiceListResourcesRequest) GetPageSize() uint32 { + if x != nil { + return x.xxx_hidden_PageSize + } + return 0 +} + +func (x *ResourcesServiceListResourcesRequest) GetPageToken() string { + if x != nil { + return x.xxx_hidden_PageToken + } + return "" +} + +func (x *ResourcesServiceListResourcesRequest) GetAnnotations() []*anypb.Any { + if x != nil { + if x.xxx_hidden_Annotations != nil { + return *x.xxx_hidden_Annotations + } + } + return nil +} + +func (x *ResourcesServiceListResourcesRequest) GetActiveSyncId() string { + if x != nil { + return x.xxx_hidden_ActiveSyncId + } + return "" +} + +func (x *ResourcesServiceListResourcesRequest) SetResourceTypeId(v string) { + x.xxx_hidden_ResourceTypeId = v +} + +func (x *ResourcesServiceListResourcesRequest) SetParentResourceId(v *ResourceId) { + x.xxx_hidden_ParentResourceId = v +} + +func (x *ResourcesServiceListResourcesRequest) SetPageSize(v uint32) { + x.xxx_hidden_PageSize = v +} + +func (x *ResourcesServiceListResourcesRequest) SetPageToken(v string) { + x.xxx_hidden_PageToken = v +} + +func (x *ResourcesServiceListResourcesRequest) SetAnnotations(v []*anypb.Any) { + x.xxx_hidden_Annotations = &v +} + +func (x *ResourcesServiceListResourcesRequest) SetActiveSyncId(v string) { + x.xxx_hidden_ActiveSyncId = v +} + +func (x *ResourcesServiceListResourcesRequest) HasParentResourceId() bool { + if x == nil { + return false + } + return x.xxx_hidden_ParentResourceId != nil +} + +func (x *ResourcesServiceListResourcesRequest) ClearParentResourceId() { + x.xxx_hidden_ParentResourceId = nil +} + +type ResourcesServiceListResourcesRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + ResourceTypeId string + ParentResourceId *ResourceId + PageSize uint32 + PageToken string + Annotations []*anypb.Any + ActiveSyncId string +} + +func (b0 ResourcesServiceListResourcesRequest_builder) Build() *ResourcesServiceListResourcesRequest { + m0 := &ResourcesServiceListResourcesRequest{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_ResourceTypeId = b.ResourceTypeId + x.xxx_hidden_ParentResourceId = b.ParentResourceId + x.xxx_hidden_PageSize = b.PageSize + x.xxx_hidden_PageToken = b.PageToken + x.xxx_hidden_Annotations = &b.Annotations + x.xxx_hidden_ActiveSyncId = b.ActiveSyncId + return m0 +} + +type ResourcesServiceListResourcesResponse struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_List *[]*Resource `protobuf:"bytes,1,rep,name=list,proto3"` + xxx_hidden_NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3"` + xxx_hidden_Annotations *[]*anypb.Any `protobuf:"bytes,3,rep,name=annotations,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *ResourcesServiceListResourcesResponse) Reset() { + *x = ResourcesServiceListResourcesResponse{} + mi := &file_c1_connector_v2_resource_proto_msgTypes[23] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *ResourcesServiceListResourcesResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ResourcesServiceListResourcesResponse) ProtoMessage() {} + +func (x *ResourcesServiceListResourcesResponse) ProtoReflect() protoreflect.Message { + mi := &file_c1_connector_v2_resource_proto_msgTypes[23] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *ResourcesServiceListResourcesResponse) GetList() []*Resource { + if x != nil { + if x.xxx_hidden_List != nil { + return *x.xxx_hidden_List + } + } + return nil +} + +func (x *ResourcesServiceListResourcesResponse) GetNextPageToken() string { + if x != nil { + return x.xxx_hidden_NextPageToken + } + return "" +} + +func (x *ResourcesServiceListResourcesResponse) GetAnnotations() []*anypb.Any { + if x != nil { + if x.xxx_hidden_Annotations != nil { + return *x.xxx_hidden_Annotations + } + } + return nil +} + +func (x *ResourcesServiceListResourcesResponse) SetList(v []*Resource) { + x.xxx_hidden_List = &v +} + +func (x *ResourcesServiceListResourcesResponse) SetNextPageToken(v string) { + x.xxx_hidden_NextPageToken = v +} + +func (x *ResourcesServiceListResourcesResponse) SetAnnotations(v []*anypb.Any) { + x.xxx_hidden_Annotations = &v +} + +type ResourcesServiceListResourcesResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + List []*Resource + NextPageToken string + Annotations []*anypb.Any +} + +func (b0 ResourcesServiceListResourcesResponse_builder) Build() *ResourcesServiceListResourcesResponse { + m0 := &ResourcesServiceListResourcesResponse{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_List = &b.List + x.xxx_hidden_NextPageToken = b.NextPageToken + x.xxx_hidden_Annotations = &b.Annotations + return m0 +} + +type ResourceGetterServiceGetResourceRequest struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_ResourceId *ResourceId `protobuf:"bytes,1,opt,name=resource_id,json=resourceId,proto3"` + xxx_hidden_ParentResourceId *ResourceId `protobuf:"bytes,2,opt,name=parent_resource_id,json=parentResourceId,proto3"` + xxx_hidden_Annotations *[]*anypb.Any `protobuf:"bytes,3,rep,name=annotations,proto3"` + xxx_hidden_ActiveSyncId string `protobuf:"bytes,4,opt,name=active_sync_id,json=activeSyncId,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *ResourceGetterServiceGetResourceRequest) Reset() { + *x = ResourceGetterServiceGetResourceRequest{} + mi := &file_c1_connector_v2_resource_proto_msgTypes[24] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *ResourceGetterServiceGetResourceRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ResourceGetterServiceGetResourceRequest) ProtoMessage() {} + +func (x *ResourceGetterServiceGetResourceRequest) ProtoReflect() protoreflect.Message { + mi := &file_c1_connector_v2_resource_proto_msgTypes[24] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *ResourceGetterServiceGetResourceRequest) GetResourceId() *ResourceId { + if x != nil { + return x.xxx_hidden_ResourceId + } + return nil +} + +func (x *ResourceGetterServiceGetResourceRequest) GetParentResourceId() *ResourceId { + if x != nil { + return x.xxx_hidden_ParentResourceId + } + return nil +} + +func (x *ResourceGetterServiceGetResourceRequest) GetAnnotations() []*anypb.Any { + if x != nil { + if x.xxx_hidden_Annotations != nil { + return *x.xxx_hidden_Annotations + } + } + return nil +} + +func (x *ResourceGetterServiceGetResourceRequest) GetActiveSyncId() string { + if x != nil { + return x.xxx_hidden_ActiveSyncId + } + return "" +} + +func (x *ResourceGetterServiceGetResourceRequest) SetResourceId(v *ResourceId) { + x.xxx_hidden_ResourceId = v +} + +func (x *ResourceGetterServiceGetResourceRequest) SetParentResourceId(v *ResourceId) { + x.xxx_hidden_ParentResourceId = v +} + +func (x *ResourceGetterServiceGetResourceRequest) SetAnnotations(v []*anypb.Any) { + x.xxx_hidden_Annotations = &v +} + +func (x *ResourceGetterServiceGetResourceRequest) SetActiveSyncId(v string) { + x.xxx_hidden_ActiveSyncId = v +} + +func (x *ResourceGetterServiceGetResourceRequest) HasResourceId() bool { + if x == nil { + return false + } + return x.xxx_hidden_ResourceId != nil +} + +func (x *ResourceGetterServiceGetResourceRequest) HasParentResourceId() bool { + if x == nil { + return false + } + return x.xxx_hidden_ParentResourceId != nil +} + +func (x *ResourceGetterServiceGetResourceRequest) ClearResourceId() { + x.xxx_hidden_ResourceId = nil +} + +func (x *ResourceGetterServiceGetResourceRequest) ClearParentResourceId() { + x.xxx_hidden_ParentResourceId = nil +} + +type ResourceGetterServiceGetResourceRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + ResourceId *ResourceId + ParentResourceId *ResourceId + Annotations []*anypb.Any + ActiveSyncId string +} + +func (b0 ResourceGetterServiceGetResourceRequest_builder) Build() *ResourceGetterServiceGetResourceRequest { + m0 := &ResourceGetterServiceGetResourceRequest{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_ResourceId = b.ResourceId + x.xxx_hidden_ParentResourceId = b.ParentResourceId + x.xxx_hidden_Annotations = &b.Annotations + x.xxx_hidden_ActiveSyncId = b.ActiveSyncId + return m0 +} + +type ResourceGetterServiceGetResourceResponse struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Resource *Resource `protobuf:"bytes,1,opt,name=resource,proto3"` + xxx_hidden_Annotations *[]*anypb.Any `protobuf:"bytes,2,rep,name=annotations,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *ResourceGetterServiceGetResourceResponse) Reset() { + *x = ResourceGetterServiceGetResourceResponse{} + mi := &file_c1_connector_v2_resource_proto_msgTypes[25] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *ResourceGetterServiceGetResourceResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ResourceGetterServiceGetResourceResponse) ProtoMessage() {} + +func (x *ResourceGetterServiceGetResourceResponse) ProtoReflect() protoreflect.Message { + mi := &file_c1_connector_v2_resource_proto_msgTypes[25] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *ResourceGetterServiceGetResourceResponse) GetResource() *Resource { + if x != nil { + return x.xxx_hidden_Resource + } + return nil +} + +func (x *ResourceGetterServiceGetResourceResponse) GetAnnotations() []*anypb.Any { + if x != nil { + if x.xxx_hidden_Annotations != nil { + return *x.xxx_hidden_Annotations + } + } + return nil +} + +func (x *ResourceGetterServiceGetResourceResponse) SetResource(v *Resource) { + x.xxx_hidden_Resource = v +} + +func (x *ResourceGetterServiceGetResourceResponse) SetAnnotations(v []*anypb.Any) { + x.xxx_hidden_Annotations = &v +} + +func (x *ResourceGetterServiceGetResourceResponse) HasResource() bool { + if x == nil { + return false + } + return x.xxx_hidden_Resource != nil +} + +func (x *ResourceGetterServiceGetResourceResponse) ClearResource() { + x.xxx_hidden_Resource = nil +} + +type ResourceGetterServiceGetResourceResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Resource *Resource + Annotations []*anypb.Any +} + +func (b0 ResourceGetterServiceGetResourceResponse_builder) Build() *ResourceGetterServiceGetResourceResponse { + m0 := &ResourceGetterServiceGetResourceResponse{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Resource = b.Resource + x.xxx_hidden_Annotations = &b.Annotations + return m0 +} + +type ExternalId struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Id string `protobuf:"bytes,1,opt,name=id,proto3"` + xxx_hidden_Link string `protobuf:"bytes,2,opt,name=link,proto3"` + xxx_hidden_Description string `protobuf:"bytes,3,opt,name=description,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *ExternalId) Reset() { + *x = ExternalId{} + mi := &file_c1_connector_v2_resource_proto_msgTypes[26] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *ExternalId) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ExternalId) ProtoMessage() {} + +func (x *ExternalId) ProtoReflect() protoreflect.Message { + mi := &file_c1_connector_v2_resource_proto_msgTypes[26] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *ExternalId) GetId() string { + if x != nil { + return x.xxx_hidden_Id + } + return "" +} + +func (x *ExternalId) GetLink() string { + if x != nil { + return x.xxx_hidden_Link + } + return "" +} + +func (x *ExternalId) GetDescription() string { + if x != nil { + return x.xxx_hidden_Description + } + return "" +} + +func (x *ExternalId) SetId(v string) { + x.xxx_hidden_Id = v +} + +func (x *ExternalId) SetLink(v string) { + x.xxx_hidden_Link = v +} + +func (x *ExternalId) SetDescription(v string) { + x.xxx_hidden_Description = v +} + +type ExternalId_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Id string + Link string + Description string +} + +func (b0 ExternalId_builder) Build() *ExternalId { + m0 := &ExternalId{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Id = b.Id + x.xxx_hidden_Link = b.Link + x.xxx_hidden_Description = b.Description + return m0 +} + +type AccountInfo_Email struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Address string `protobuf:"bytes,1,opt,name=address,proto3"` + xxx_hidden_IsPrimary bool `protobuf:"varint,2,opt,name=is_primary,json=isPrimary,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *AccountInfo_Email) Reset() { + *x = AccountInfo_Email{} + mi := &file_c1_connector_v2_resource_proto_msgTypes[27] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *AccountInfo_Email) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*AccountInfo_Email) ProtoMessage() {} + +func (x *AccountInfo_Email) ProtoReflect() protoreflect.Message { + mi := &file_c1_connector_v2_resource_proto_msgTypes[27] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *AccountInfo_Email) GetAddress() string { + if x != nil { + return x.xxx_hidden_Address + } + return "" +} + +func (x *AccountInfo_Email) GetIsPrimary() bool { + if x != nil { + return x.xxx_hidden_IsPrimary + } + return false +} + +func (x *AccountInfo_Email) SetAddress(v string) { + x.xxx_hidden_Address = v +} + +func (x *AccountInfo_Email) SetIsPrimary(v bool) { + x.xxx_hidden_IsPrimary = v +} + +type AccountInfo_Email_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Address string + // Indicates if this is the user's primary email. Only one entry can be marked as primary. + IsPrimary bool +} + +func (b0 AccountInfo_Email_builder) Build() *AccountInfo_Email { + m0 := &AccountInfo_Email{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Address = b.Address + x.xxx_hidden_IsPrimary = b.IsPrimary + return m0 +} + +type CredentialOptions_RandomPassword struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Length int64 `protobuf:"varint,1,opt,name=length,proto3"` + xxx_hidden_Constraints *[]*PasswordConstraint `protobuf:"bytes,2,rep,name=constraints,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *CredentialOptions_RandomPassword) Reset() { + *x = CredentialOptions_RandomPassword{} + mi := &file_c1_connector_v2_resource_proto_msgTypes[28] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *CredentialOptions_RandomPassword) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*CredentialOptions_RandomPassword) ProtoMessage() {} + +func (x *CredentialOptions_RandomPassword) ProtoReflect() protoreflect.Message { + mi := &file_c1_connector_v2_resource_proto_msgTypes[28] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *CredentialOptions_RandomPassword) GetLength() int64 { + if x != nil { + return x.xxx_hidden_Length + } + return 0 +} + +func (x *CredentialOptions_RandomPassword) GetConstraints() []*PasswordConstraint { + if x != nil { + if x.xxx_hidden_Constraints != nil { + return *x.xxx_hidden_Constraints + } + } + return nil +} + +func (x *CredentialOptions_RandomPassword) SetLength(v int64) { + x.xxx_hidden_Length = v +} + +func (x *CredentialOptions_RandomPassword) SetConstraints(v []*PasswordConstraint) { + x.xxx_hidden_Constraints = &v +} + +type CredentialOptions_RandomPassword_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Length int64 + Constraints []*PasswordConstraint +} + +func (b0 CredentialOptions_RandomPassword_builder) Build() *CredentialOptions_RandomPassword { + m0 := &CredentialOptions_RandomPassword{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Length = b.Length + x.xxx_hidden_Constraints = &b.Constraints + return m0 +} + +type CredentialOptions_NoPassword struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *CredentialOptions_NoPassword) Reset() { + *x = CredentialOptions_NoPassword{} + mi := &file_c1_connector_v2_resource_proto_msgTypes[29] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *CredentialOptions_NoPassword) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*CredentialOptions_NoPassword) ProtoMessage() {} + +func (x *CredentialOptions_NoPassword) ProtoReflect() protoreflect.Message { + mi := &file_c1_connector_v2_resource_proto_msgTypes[29] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +type CredentialOptions_NoPassword_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + +} + +func (b0 CredentialOptions_NoPassword_builder) Build() *CredentialOptions_NoPassword { + m0 := &CredentialOptions_NoPassword{} + b, x := &b0, m0 + _, _ = b, x + return m0 +} + +type CredentialOptions_SSO struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_SsoProvider string `protobuf:"bytes,1,opt,name=sso_provider,json=ssoProvider,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *CredentialOptions_SSO) Reset() { + *x = CredentialOptions_SSO{} + mi := &file_c1_connector_v2_resource_proto_msgTypes[30] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *CredentialOptions_SSO) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*CredentialOptions_SSO) ProtoMessage() {} + +func (x *CredentialOptions_SSO) ProtoReflect() protoreflect.Message { + mi := &file_c1_connector_v2_resource_proto_msgTypes[30] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *CredentialOptions_SSO) GetSsoProvider() string { + if x != nil { + return x.xxx_hidden_SsoProvider + } + return "" +} + +func (x *CredentialOptions_SSO) SetSsoProvider(v string) { + x.xxx_hidden_SsoProvider = v +} + +type CredentialOptions_SSO_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + SsoProvider string +} + +func (b0 CredentialOptions_SSO_builder) Build() *CredentialOptions_SSO { + m0 := &CredentialOptions_SSO{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_SsoProvider = b.SsoProvider + return m0 +} + +type CredentialOptions_EncryptedPassword struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_EncryptedPasswords *[]*EncryptedData `protobuf:"bytes,1,rep,name=encrypted_passwords,json=encryptedPasswords,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *CredentialOptions_EncryptedPassword) Reset() { + *x = CredentialOptions_EncryptedPassword{} + mi := &file_c1_connector_v2_resource_proto_msgTypes[31] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *CredentialOptions_EncryptedPassword) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*CredentialOptions_EncryptedPassword) ProtoMessage() {} + +func (x *CredentialOptions_EncryptedPassword) ProtoReflect() protoreflect.Message { + mi := &file_c1_connector_v2_resource_proto_msgTypes[31] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *CredentialOptions_EncryptedPassword) GetEncryptedPasswords() []*EncryptedData { + if x != nil { + if x.xxx_hidden_EncryptedPasswords != nil { + return *x.xxx_hidden_EncryptedPasswords + } + } + return nil +} + +func (x *CredentialOptions_EncryptedPassword) SetEncryptedPasswords(v []*EncryptedData) { + x.xxx_hidden_EncryptedPasswords = &v +} + +type CredentialOptions_EncryptedPassword_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + EncryptedPasswords []*EncryptedData +} + +func (b0 CredentialOptions_EncryptedPassword_builder) Build() *CredentialOptions_EncryptedPassword { + m0 := &CredentialOptions_EncryptedPassword{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_EncryptedPasswords = &b.EncryptedPasswords + return m0 +} + +type LocalCredentialOptions_RandomPassword struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Length int64 `protobuf:"varint,1,opt,name=length,proto3"` + xxx_hidden_Constraints *[]*PasswordConstraint `protobuf:"bytes,2,rep,name=constraints,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *LocalCredentialOptions_RandomPassword) Reset() { + *x = LocalCredentialOptions_RandomPassword{} + mi := &file_c1_connector_v2_resource_proto_msgTypes[32] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *LocalCredentialOptions_RandomPassword) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*LocalCredentialOptions_RandomPassword) ProtoMessage() {} + +func (x *LocalCredentialOptions_RandomPassword) ProtoReflect() protoreflect.Message { + mi := &file_c1_connector_v2_resource_proto_msgTypes[32] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *LocalCredentialOptions_RandomPassword) GetLength() int64 { + if x != nil { + return x.xxx_hidden_Length + } + return 0 +} + +func (x *LocalCredentialOptions_RandomPassword) GetConstraints() []*PasswordConstraint { + if x != nil { + if x.xxx_hidden_Constraints != nil { + return *x.xxx_hidden_Constraints + } + } + return nil +} + +func (x *LocalCredentialOptions_RandomPassword) SetLength(v int64) { + x.xxx_hidden_Length = v +} + +func (x *LocalCredentialOptions_RandomPassword) SetConstraints(v []*PasswordConstraint) { + x.xxx_hidden_Constraints = &v +} + +type LocalCredentialOptions_RandomPassword_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Length int64 + Constraints []*PasswordConstraint +} + +func (b0 LocalCredentialOptions_RandomPassword_builder) Build() *LocalCredentialOptions_RandomPassword { + m0 := &LocalCredentialOptions_RandomPassword{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Length = b.Length + x.xxx_hidden_Constraints = &b.Constraints + return m0 +} + +type LocalCredentialOptions_NoPassword struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *LocalCredentialOptions_NoPassword) Reset() { + *x = LocalCredentialOptions_NoPassword{} + mi := &file_c1_connector_v2_resource_proto_msgTypes[33] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *LocalCredentialOptions_NoPassword) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*LocalCredentialOptions_NoPassword) ProtoMessage() {} + +func (x *LocalCredentialOptions_NoPassword) ProtoReflect() protoreflect.Message { + mi := &file_c1_connector_v2_resource_proto_msgTypes[33] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +type LocalCredentialOptions_NoPassword_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + +} + +func (b0 LocalCredentialOptions_NoPassword_builder) Build() *LocalCredentialOptions_NoPassword { + m0 := &LocalCredentialOptions_NoPassword{} + b, x := &b0, m0 + _, _ = b, x + return m0 +} + +type LocalCredentialOptions_SSO struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_SsoProvider string `protobuf:"bytes,1,opt,name=sso_provider,json=ssoProvider,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *LocalCredentialOptions_SSO) Reset() { + *x = LocalCredentialOptions_SSO{} + mi := &file_c1_connector_v2_resource_proto_msgTypes[34] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *LocalCredentialOptions_SSO) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*LocalCredentialOptions_SSO) ProtoMessage() {} + +func (x *LocalCredentialOptions_SSO) ProtoReflect() protoreflect.Message { + mi := &file_c1_connector_v2_resource_proto_msgTypes[34] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *LocalCredentialOptions_SSO) GetSsoProvider() string { + if x != nil { + return x.xxx_hidden_SsoProvider + } + return "" +} + +func (x *LocalCredentialOptions_SSO) SetSsoProvider(v string) { + x.xxx_hidden_SsoProvider = v +} + +type LocalCredentialOptions_SSO_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + SsoProvider string +} + +func (b0 LocalCredentialOptions_SSO_builder) Build() *LocalCredentialOptions_SSO { + m0 := &LocalCredentialOptions_SSO{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_SsoProvider = b.SsoProvider + return m0 +} + +type LocalCredentialOptions_PlaintextPassword struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_PlaintextPassword string `protobuf:"bytes,1,opt,name=plaintext_password,json=plaintextPassword,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *LocalCredentialOptions_PlaintextPassword) Reset() { + *x = LocalCredentialOptions_PlaintextPassword{} + mi := &file_c1_connector_v2_resource_proto_msgTypes[35] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *LocalCredentialOptions_PlaintextPassword) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*LocalCredentialOptions_PlaintextPassword) ProtoMessage() {} + +func (x *LocalCredentialOptions_PlaintextPassword) ProtoReflect() protoreflect.Message { + mi := &file_c1_connector_v2_resource_proto_msgTypes[35] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *LocalCredentialOptions_PlaintextPassword) GetPlaintextPassword() string { + if x != nil { + return x.xxx_hidden_PlaintextPassword + } + return "" +} + +func (x *LocalCredentialOptions_PlaintextPassword) SetPlaintextPassword(v string) { + x.xxx_hidden_PlaintextPassword = v +} + +type LocalCredentialOptions_PlaintextPassword_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + PlaintextPassword string +} + +func (b0 LocalCredentialOptions_PlaintextPassword_builder) Build() *LocalCredentialOptions_PlaintextPassword { + m0 := &LocalCredentialOptions_PlaintextPassword{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_PlaintextPassword = b.PlaintextPassword + return m0 +} + +type CreateAccountResponse_SuccessResult struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Resource *Resource `protobuf:"bytes,1,opt,name=resource,proto3"` + xxx_hidden_IsCreateAccountResult bool `protobuf:"varint,2,opt,name=is_create_account_result,json=isCreateAccountResult,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *CreateAccountResponse_SuccessResult) Reset() { + *x = CreateAccountResponse_SuccessResult{} + mi := &file_c1_connector_v2_resource_proto_msgTypes[36] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *CreateAccountResponse_SuccessResult) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*CreateAccountResponse_SuccessResult) ProtoMessage() {} + +func (x *CreateAccountResponse_SuccessResult) ProtoReflect() protoreflect.Message { + mi := &file_c1_connector_v2_resource_proto_msgTypes[36] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *CreateAccountResponse_SuccessResult) GetResource() *Resource { + if x != nil { + return x.xxx_hidden_Resource + } + return nil +} + +func (x *CreateAccountResponse_SuccessResult) GetIsCreateAccountResult() bool { + if x != nil { + return x.xxx_hidden_IsCreateAccountResult + } + return false +} + +func (x *CreateAccountResponse_SuccessResult) SetResource(v *Resource) { + x.xxx_hidden_Resource = v +} + +func (x *CreateAccountResponse_SuccessResult) SetIsCreateAccountResult(v bool) { + x.xxx_hidden_IsCreateAccountResult = v +} + +func (x *CreateAccountResponse_SuccessResult) HasResource() bool { + if x == nil { + return false + } + return x.xxx_hidden_Resource != nil +} + +func (x *CreateAccountResponse_SuccessResult) ClearResource() { + x.xxx_hidden_Resource = nil +} + +type CreateAccountResponse_SuccessResult_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Resource *Resource + IsCreateAccountResult bool +} + +func (b0 CreateAccountResponse_SuccessResult_builder) Build() *CreateAccountResponse_SuccessResult { + m0 := &CreateAccountResponse_SuccessResult{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Resource = b.Resource + x.xxx_hidden_IsCreateAccountResult = b.IsCreateAccountResult + return m0 +} + +type CreateAccountResponse_ActionRequiredResult struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Resource *Resource `protobuf:"bytes,1,opt,name=resource,proto3"` + xxx_hidden_Message string `protobuf:"bytes,2,opt,name=message,proto3"` + xxx_hidden_IsCreateAccountResult bool `protobuf:"varint,3,opt,name=is_create_account_result,json=isCreateAccountResult,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *CreateAccountResponse_ActionRequiredResult) Reset() { + *x = CreateAccountResponse_ActionRequiredResult{} + mi := &file_c1_connector_v2_resource_proto_msgTypes[37] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *CreateAccountResponse_ActionRequiredResult) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*CreateAccountResponse_ActionRequiredResult) ProtoMessage() {} + +func (x *CreateAccountResponse_ActionRequiredResult) ProtoReflect() protoreflect.Message { + mi := &file_c1_connector_v2_resource_proto_msgTypes[37] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *CreateAccountResponse_ActionRequiredResult) GetResource() *Resource { + if x != nil { + return x.xxx_hidden_Resource + } + return nil +} + +func (x *CreateAccountResponse_ActionRequiredResult) GetMessage() string { + if x != nil { + return x.xxx_hidden_Message + } + return "" +} + +func (x *CreateAccountResponse_ActionRequiredResult) GetIsCreateAccountResult() bool { + if x != nil { + return x.xxx_hidden_IsCreateAccountResult + } + return false +} + +func (x *CreateAccountResponse_ActionRequiredResult) SetResource(v *Resource) { + x.xxx_hidden_Resource = v +} + +func (x *CreateAccountResponse_ActionRequiredResult) SetMessage(v string) { + x.xxx_hidden_Message = v +} + +func (x *CreateAccountResponse_ActionRequiredResult) SetIsCreateAccountResult(v bool) { + x.xxx_hidden_IsCreateAccountResult = v +} + +func (x *CreateAccountResponse_ActionRequiredResult) HasResource() bool { + if x == nil { + return false + } + return x.xxx_hidden_Resource != nil +} + +func (x *CreateAccountResponse_ActionRequiredResult) ClearResource() { + x.xxx_hidden_Resource = nil +} + +type CreateAccountResponse_ActionRequiredResult_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Resource *Resource + Message string + IsCreateAccountResult bool +} + +func (b0 CreateAccountResponse_ActionRequiredResult_builder) Build() *CreateAccountResponse_ActionRequiredResult { + m0 := &CreateAccountResponse_ActionRequiredResult{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Resource = b.Resource + x.xxx_hidden_Message = b.Message + x.xxx_hidden_IsCreateAccountResult = b.IsCreateAccountResult + return m0 +} + +type CreateAccountResponse_AlreadyExistsResult struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Resource *Resource `protobuf:"bytes,1,opt,name=resource,proto3"` + xxx_hidden_IsCreateAccountResult bool `protobuf:"varint,2,opt,name=is_create_account_result,json=isCreateAccountResult,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *CreateAccountResponse_AlreadyExistsResult) Reset() { + *x = CreateAccountResponse_AlreadyExistsResult{} + mi := &file_c1_connector_v2_resource_proto_msgTypes[38] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *CreateAccountResponse_AlreadyExistsResult) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*CreateAccountResponse_AlreadyExistsResult) ProtoMessage() {} + +func (x *CreateAccountResponse_AlreadyExistsResult) ProtoReflect() protoreflect.Message { + mi := &file_c1_connector_v2_resource_proto_msgTypes[38] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *CreateAccountResponse_AlreadyExistsResult) GetResource() *Resource { + if x != nil { + return x.xxx_hidden_Resource + } + return nil +} + +func (x *CreateAccountResponse_AlreadyExistsResult) GetIsCreateAccountResult() bool { + if x != nil { + return x.xxx_hidden_IsCreateAccountResult + } + return false +} + +func (x *CreateAccountResponse_AlreadyExistsResult) SetResource(v *Resource) { + x.xxx_hidden_Resource = v +} + +func (x *CreateAccountResponse_AlreadyExistsResult) SetIsCreateAccountResult(v bool) { + x.xxx_hidden_IsCreateAccountResult = v +} + +func (x *CreateAccountResponse_AlreadyExistsResult) HasResource() bool { + if x == nil { + return false + } + return x.xxx_hidden_Resource != nil +} + +func (x *CreateAccountResponse_AlreadyExistsResult) ClearResource() { + x.xxx_hidden_Resource = nil +} + +type CreateAccountResponse_AlreadyExistsResult_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Resource *Resource + IsCreateAccountResult bool +} + +func (b0 CreateAccountResponse_AlreadyExistsResult_builder) Build() *CreateAccountResponse_AlreadyExistsResult { + m0 := &CreateAccountResponse_AlreadyExistsResult{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Resource = b.Resource + x.xxx_hidden_IsCreateAccountResult = b.IsCreateAccountResult + return m0 +} + +type CreateAccountResponse_InProgressResult struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Resource *Resource `protobuf:"bytes,1,opt,name=resource,proto3"` + xxx_hidden_IsCreateAccountResult bool `protobuf:"varint,2,opt,name=is_create_account_result,json=isCreateAccountResult,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *CreateAccountResponse_InProgressResult) Reset() { + *x = CreateAccountResponse_InProgressResult{} + mi := &file_c1_connector_v2_resource_proto_msgTypes[39] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *CreateAccountResponse_InProgressResult) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*CreateAccountResponse_InProgressResult) ProtoMessage() {} + +func (x *CreateAccountResponse_InProgressResult) ProtoReflect() protoreflect.Message { + mi := &file_c1_connector_v2_resource_proto_msgTypes[39] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *CreateAccountResponse_InProgressResult) GetResource() *Resource { + if x != nil { + return x.xxx_hidden_Resource + } + return nil +} + +func (x *CreateAccountResponse_InProgressResult) GetIsCreateAccountResult() bool { + if x != nil { + return x.xxx_hidden_IsCreateAccountResult + } + return false +} + +func (x *CreateAccountResponse_InProgressResult) SetResource(v *Resource) { + x.xxx_hidden_Resource = v +} + +func (x *CreateAccountResponse_InProgressResult) SetIsCreateAccountResult(v bool) { + x.xxx_hidden_IsCreateAccountResult = v +} + +func (x *CreateAccountResponse_InProgressResult) HasResource() bool { + if x == nil { + return false + } + return x.xxx_hidden_Resource != nil +} + +func (x *CreateAccountResponse_InProgressResult) ClearResource() { + x.xxx_hidden_Resource = nil +} + +type CreateAccountResponse_InProgressResult_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Resource *Resource + IsCreateAccountResult bool +} + +func (b0 CreateAccountResponse_InProgressResult_builder) Build() *CreateAccountResponse_InProgressResult { + m0 := &CreateAccountResponse_InProgressResult{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Resource = b.Resource + x.xxx_hidden_IsCreateAccountResult = b.IsCreateAccountResult + return m0 +} + +type EncryptionConfig_JWKPublicKeyConfig struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_PubKey []byte `protobuf:"bytes,1,opt,name=pub_key,json=pubKey,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *EncryptionConfig_JWKPublicKeyConfig) Reset() { + *x = EncryptionConfig_JWKPublicKeyConfig{} + mi := &file_c1_connector_v2_resource_proto_msgTypes[40] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *EncryptionConfig_JWKPublicKeyConfig) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*EncryptionConfig_JWKPublicKeyConfig) ProtoMessage() {} + +func (x *EncryptionConfig_JWKPublicKeyConfig) ProtoReflect() protoreflect.Message { + mi := &file_c1_connector_v2_resource_proto_msgTypes[40] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *EncryptionConfig_JWKPublicKeyConfig) GetPubKey() []byte { + if x != nil { + return x.xxx_hidden_PubKey + } + return nil +} + +func (x *EncryptionConfig_JWKPublicKeyConfig) SetPubKey(v []byte) { + if v == nil { + v = []byte{} + } + x.xxx_hidden_PubKey = v +} + +type EncryptionConfig_JWKPublicKeyConfig_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + PubKey []byte +} + +func (b0 EncryptionConfig_JWKPublicKeyConfig_builder) Build() *EncryptionConfig_JWKPublicKeyConfig { + m0 := &EncryptionConfig_JWKPublicKeyConfig{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_PubKey = b.PubKey + return m0 +} + +var File_c1_connector_v2_resource_proto protoreflect.FileDescriptor + +const file_c1_connector_v2_resource_proto_rawDesc = "" + + "\n" + + "\x1ec1/connector/v2/resource.proto\x12\x0fc1.connector.v2\x1a\x19google/protobuf/any.proto\x1a\x1cgoogle/protobuf/struct.proto\x1a\x17validate/validate.proto\"\xd1\x03\n" + + "\fResourceType\x12\x1a\n" + + "\x02id\x18\x01 \x01(\tB\n" + + "\xfaB\ar\x05 \x01(\x80\bR\x02id\x120\n" + + "\fdisplay_name\x18\x02 \x01(\tB\r\xfaB\n" + + "r\b \x01(\x80\b\xd0\x01\x01R\vdisplayName\x12L\n" + + "\x06traits\x18\x03 \x03(\x0e2#.c1.connector.v2.ResourceType.TraitB\x0f\xfaB\f\x92\x01\t\x18\x01\"\x05\x82\x01\x02\x10\x01R\x06traits\x126\n" + + "\vannotations\x18\x04 \x03(\v2\x14.google.protobuf.AnyR\vannotations\x12/\n" + + "\vdescription\x18\x05 \x01(\tB\r\xfaB\n" + + "r\b \x01(\x80 \xd0\x01\x01R\vdescription\x12-\n" + + "\x12sourced_externally\x18\x06 \x01(\bR\x11sourcedExternally\"\x8c\x01\n" + + "\x05Trait\x12\x15\n" + + "\x11TRAIT_UNSPECIFIED\x10\x00\x12\x0e\n" + + "\n" + + "TRAIT_USER\x10\x01\x12\x0f\n" + + "\vTRAIT_GROUP\x10\x02\x12\x0e\n" + + "\n" + + "TRAIT_ROLE\x10\x03\x12\r\n" + + "\tTRAIT_APP\x10\x04\x12\x10\n" + + "\fTRAIT_SECRET\x10\x05\x12\x1a\n" + + "\x16TRAIT_SECURITY_INSIGHT\x10\x06\"\xa6\x02\n" + + ",ResourceTypesServiceListResourceTypesRequest\x121\n" + + "\x06parent\x18\x01 \x01(\v2\x19.c1.connector.v2.ResourceR\x06parent\x12'\n" + + "\tpage_size\x18\x02 \x01(\rB\n" + + "\xfaB\a*\x05\x18\xfa\x01@\x01R\bpageSize\x12-\n" + + "\n" + + "page_token\x18\x03 \x01(\tB\x0e\xfaB\vr\t \x01(\x80\x80@\xd0\x01\x01R\tpageToken\x126\n" + + "\vannotations\x18\x04 \x03(\v2\x14.google.protobuf.AnyR\vannotations\x123\n" + + "\x0eactive_sync_id\x18\x05 \x01(\tB\r\xfaB\n" + + "r\b \x01(\x80\b\xd0\x01\x01R\factiveSyncId\"\xd2\x01\n" + + "-ResourceTypesServiceListResourceTypesResponse\x121\n" + + "\x04list\x18\x01 \x03(\v2\x1d.c1.connector.v2.ResourceTypeR\x04list\x126\n" + + "\x0fnext_page_token\x18\x02 \x01(\tB\x0e\xfaB\vr\t \x01(\x80\x80@\xd0\x01\x01R\rnextPageToken\x126\n" + + "\vannotations\x18\x03 \x03(\v2\x14.google.protobuf.AnyR\vannotations\"N\n" + + "\x15CreateResourceRequest\x125\n" + + "\bresource\x18\x01 \x01(\v2\x19.c1.connector.v2.ResourceR\bresource\"\x85\x01\n" + + "\x16CreateResourceResponse\x123\n" + + "\acreated\x18\x01 \x01(\v2\x19.c1.connector.v2.ResourceR\acreated\x126\n" + + "\vannotations\x18\x02 \x03(\v2\x14.google.protobuf.AnyR\vannotations\"\xa0\x01\n" + + "\x15DeleteResourceRequest\x12<\n" + + "\vresource_id\x18\x01 \x01(\v2\x1b.c1.connector.v2.ResourceIdR\n" + + "resourceId\x12I\n" + + "\x12parent_resource_id\x18\x02 \x01(\v2\x1b.c1.connector.v2.ResourceIdR\x10parentResourceId\"P\n" + + "\x16DeleteResourceResponse\x126\n" + + "\vannotations\x18\x01 \x03(\v2\x14.google.protobuf.AnyR\vannotations\"\xa2\x01\n" + + "\x17DeleteResourceV2Request\x12<\n" + + "\vresource_id\x18\x01 \x01(\v2\x1b.c1.connector.v2.ResourceIdR\n" + + "resourceId\x12I\n" + + "\x12parent_resource_id\x18\x02 \x01(\v2\x1b.c1.connector.v2.ResourceIdR\x10parentResourceId\"R\n" + + "\x18DeleteResourceV2Response\x126\n" + + "\vannotations\x18\x01 \x03(\v2\x14.google.protobuf.AnyR\vannotations\"\xfc\x01\n" + + "\x17RotateCredentialRequest\x12<\n" + + "\vresource_id\x18\x01 \x01(\v2\x1b.c1.connector.v2.ResourceIdR\n" + + "resourceId\x12Q\n" + + "\x12credential_options\x18\x02 \x01(\v2\".c1.connector.v2.CredentialOptionsR\x11credentialOptions\x12P\n" + + "\x12encryption_configs\x18\x03 \x03(\v2!.c1.connector.v2.EncryptionConfigR\x11encryptionConfigs\"\xd7\x01\n" + + "\x18RotateCredentialResponse\x12E\n" + + "\x0eencrypted_data\x18\x01 \x03(\v2\x1e.c1.connector.v2.EncryptedDataR\rencryptedData\x12<\n" + + "\vresource_id\x18\x02 \x01(\v2\x1b.c1.connector.v2.ResourceIdR\n" + + "resourceId\x126\n" + + "\vannotations\x18\x03 \x03(\v2\x14.google.protobuf.AnyR\vannotations\"\x82\x02\n" + + "\vAccountInfo\x12:\n" + + "\x06emails\x18\x01 \x03(\v2\".c1.connector.v2.AccountInfo.EmailR\x06emails\x12\x14\n" + + "\x05login\x18\x02 \x01(\tR\x05login\x12#\n" + + "\rlogin_aliases\x18\x03 \x03(\tR\floginAliases\x121\n" + + "\aprofile\x18\x04 \x01(\v2\x17.google.protobuf.StructR\aprofile\x1aI\n" + + "\x05Email\x12!\n" + + "\aaddress\x18\x01 \x01(\tB\a\xfaB\x04r\x02`\x01R\aaddress\x12\x1d\n" + + "\n" + + "is_primary\x18\x02 \x01(\bR\tisPrimary\"\xd1\x05\n" + + "\x11CredentialOptions\x12\\\n" + + "\x0frandom_password\x18d \x01(\v21.c1.connector.v2.CredentialOptions.RandomPasswordH\x00R\x0erandomPassword\x12P\n" + + "\vno_password\x18e \x01(\v2-.c1.connector.v2.CredentialOptions.NoPasswordH\x00R\n" + + "noPassword\x12:\n" + + "\x03sso\x18f \x01(\v2&.c1.connector.v2.CredentialOptions.SSOH\x00R\x03sso\x12e\n" + + "\x12encrypted_password\x18g \x01(\v24.c1.connector.v2.CredentialOptions.EncryptedPasswordH\x00R\x11encryptedPassword\x12:\n" + + "\x1aforce_change_at_next_login\x18\x01 \x01(\bR\x16forceChangeAtNextLogin\x1az\n" + + "\x0eRandomPassword\x12!\n" + + "\x06length\x18\x01 \x01(\x03B\t\xfaB\x06\"\x04\x18@(\bR\x06length\x12E\n" + + "\vconstraints\x18\x02 \x03(\v2#.c1.connector.v2.PasswordConstraintR\vconstraints\x1a\f\n" + + "\n" + + "NoPassword\x1a(\n" + + "\x03SSO\x12!\n" + + "\fsso_provider\x18\x01 \x01(\tR\vssoProvider\x1an\n" + + "\x11EncryptedPassword\x12Y\n" + + "\x13encrypted_passwords\x18\x01 \x03(\v2\x1e.c1.connector.v2.EncryptedDataB\b\xfaB\x05\x92\x01\x02\b\x01R\x12encryptedPasswordsB\t\n" + + "\aoptions\"\xbe\x05\n" + + "\x16LocalCredentialOptions\x12a\n" + + "\x0frandom_password\x18d \x01(\v26.c1.connector.v2.LocalCredentialOptions.RandomPasswordH\x00R\x0erandomPassword\x12U\n" + + "\vno_password\x18e \x01(\v22.c1.connector.v2.LocalCredentialOptions.NoPasswordH\x00R\n" + + "noPassword\x12?\n" + + "\x03sso\x18f \x01(\v2+.c1.connector.v2.LocalCredentialOptions.SSOH\x00R\x03sso\x12j\n" + + "\x12plaintext_password\x18g \x01(\v29.c1.connector.v2.LocalCredentialOptions.PlaintextPasswordH\x00R\x11plaintextPassword\x12:\n" + + "\x1aforce_change_at_next_login\x18\x01 \x01(\bR\x16forceChangeAtNextLogin\x1az\n" + + "\x0eRandomPassword\x12!\n" + + "\x06length\x18\x01 \x01(\x03B\t\xfaB\x06\"\x04\x18@(\bR\x06length\x12E\n" + + "\vconstraints\x18\x02 \x03(\v2#.c1.connector.v2.PasswordConstraintR\vconstraints\x1a\f\n" + + "\n" + + "NoPassword\x1a(\n" + + "\x03SSO\x12!\n" + + "\fsso_provider\x18\x01 \x01(\tR\vssoProvider\x1aB\n" + + "\x11PlaintextPassword\x12-\n" + + "\x12plaintext_password\x18\x01 \x01(\tR\x11plaintextPasswordB\t\n" + + "\aoptions\"L\n" + + "\x12PasswordConstraint\x12\x19\n" + + "\bchar_set\x18\x01 \x01(\tR\acharSet\x12\x1b\n" + + "\tmin_count\x18\x02 \x01(\rR\bminCount\"\xb5\x02\n" + + "\x14CreateAccountRequest\x12?\n" + + "\faccount_info\x18\x01 \x01(\v2\x1c.c1.connector.v2.AccountInfoR\vaccountInfo\x12Q\n" + + "\x12credential_options\x18\x02 \x01(\v2\".c1.connector.v2.CredentialOptionsR\x11credentialOptions\x12P\n" + + "\x12encryption_configs\x18\x03 \x03(\v2!.c1.connector.v2.EncryptionConfigR\x11encryptionConfigs\x127\n" + + "\x10resource_type_id\x18\x04 \x01(\tB\r\xfaB\n" + + "r\b \x01(\x80\b\xd0\x01\x01R\x0eresourceTypeId\"\xcc\b\n" + + "\x15CreateAccountResponse\x12P\n" + + "\asuccess\x18d \x01(\v24.c1.connector.v2.CreateAccountResponse.SuccessResultH\x00R\asuccess\x12f\n" + + "\x0faction_required\x18e \x01(\v2;.c1.connector.v2.CreateAccountResponse.ActionRequiredResultH\x00R\x0eactionRequired\x12c\n" + + "\x0ealready_exists\x18f \x01(\v2:.c1.connector.v2.CreateAccountResponse.AlreadyExistsResultH\x00R\ralreadyExists\x12Z\n" + + "\vin_progress\x18g \x01(\v27.c1.connector.v2.CreateAccountResponse.InProgressResultH\x00R\n" + + "inProgress\x12E\n" + + "\x0eencrypted_data\x18\x02 \x03(\v2\x1e.c1.connector.v2.EncryptedDataR\rencryptedData\x126\n" + + "\vannotations\x18\x03 \x03(\v2\x14.google.protobuf.AnyR\vannotations\x1a\x7f\n" + + "\rSuccessResult\x125\n" + + "\bresource\x18\x01 \x01(\v2\x19.c1.connector.v2.ResourceR\bresource\x127\n" + + "\x18is_create_account_result\x18\x02 \x01(\bR\x15isCreateAccountResult\x1a\xa0\x01\n" + + "\x14ActionRequiredResult\x125\n" + + "\bresource\x18\x01 \x01(\v2\x19.c1.connector.v2.ResourceR\bresource\x12\x18\n" + + "\amessage\x18\x02 \x01(\tR\amessage\x127\n" + + "\x18is_create_account_result\x18\x03 \x01(\bR\x15isCreateAccountResult\x1a\x85\x01\n" + + "\x13AlreadyExistsResult\x125\n" + + "\bresource\x18\x01 \x01(\v2\x19.c1.connector.v2.ResourceR\bresource\x127\n" + + "\x18is_create_account_result\x18\x02 \x01(\bR\x15isCreateAccountResult\x1a\x82\x01\n" + + "\x10InProgressResult\x125\n" + + "\bresource\x18\x01 \x01(\v2\x19.c1.connector.v2.ResourceR\bresource\x127\n" + + "\x18is_create_account_result\x18\x02 \x01(\bR\x15isCreateAccountResultB\b\n" + + "\x06result\"\xd6\x01\n" + + "\rEncryptedData\x12\x1a\n" + + "\bprovider\x18\x01 \x01(\tR\bprovider\x12\x19\n" + + "\x06key_id\x18\x02 \x01(\tB\x02\x18\x01R\x05keyId\x12\x12\n" + + "\x04name\x18\x03 \x01(\tR\x04name\x12 \n" + + "\vdescription\x18\x04 \x01(\tR\vdescription\x12\x16\n" + + "\x06schema\x18\x05 \x01(\tR\x06schema\x12'\n" + + "\x0fencrypted_bytes\x18\x06 \x01(\fR\x0eencryptedBytes\x12\x17\n" + + "\akey_ids\x18\a \x03(\tR\x06keyIds\"s\n" + + "\rPlaintextData\x12\x12\n" + + "\x04name\x18\x01 \x01(\tR\x04name\x12 \n" + + "\vdescription\x18\x02 \x01(\tR\vdescription\x12\x16\n" + + "\x06schema\x18\x03 \x01(\tR\x06schema\x12\x14\n" + + "\x05bytes\x18\x04 \x01(\fR\x05bytes\"\xa2\x02\n" + + "\x10EncryptionConfig\x127\n" + + "\tprincipal\x18\x01 \x01(\v2\x19.c1.connector.v2.ResourceR\tprincipal\x12\x1a\n" + + "\bprovider\x18\x02 \x01(\tR\bprovider\x12\x15\n" + + "\x06key_id\x18\x03 \x01(\tR\x05keyId\x12i\n" + + "\x15jwk_public_key_config\x18d \x01(\v24.c1.connector.v2.EncryptionConfig.JWKPublicKeyConfigH\x00R\x12jwkPublicKeyConfig\x1a-\n" + + "\x12JWKPublicKeyConfig\x12\x17\n" + + "\apub_key\x18\x01 \x01(\fR\x06pubKeyB\b\n" + + "\x06config\"\x8c\x01\n" + + "\n" + + "ResourceId\x12/\n" + + "\rresource_type\x18\x01 \x01(\tB\n" + + "\xfaB\ar\x05 \x01(\x80\bR\fresourceType\x12&\n" + + "\bresource\x18\x02 \x01(\tB\n" + + "\xfaB\ar\x05 \x01(\x80\bR\bresource\x12%\n" + + "\x0ebaton_resource\x18\x03 \x01(\bR\rbatonResource\"\xf0\x04\n" + + "\bResource\x12+\n" + + "\x02id\x18\x01 \x01(\v2\x1b.c1.connector.v2.ResourceIdR\x02id\x12I\n" + + "\x12parent_resource_id\x18\x02 \x01(\v2\x1b.c1.connector.v2.ResourceIdR\x10parentResourceId\x120\n" + + "\fdisplay_name\x18\x03 \x01(\tB\r\xfaB\n" + + "r\b \x01(\x80\b\xd0\x01\x01R\vdisplayName\x126\n" + + "\vannotations\x18\x04 \x03(\v2\x14.google.protobuf.AnyR\vannotations\x12/\n" + + "\vdescription\x18\x05 \x01(\tB\r\xfaB\n" + + "r\b \x01(\x80\x10\xd0\x01\x01R\vdescription\x12%\n" + + "\x0ebaton_resource\x18\x06 \x01(\bR\rbatonResource\x12<\n" + + "\vexternal_id\x18\a \x01(\v2\x1b.c1.connector.v2.ExternalIdR\n" + + "externalId\x12Q\n" + + "\x0fcreation_source\x18\b \x01(\x0e2(.c1.connector.v2.Resource.CreationSourceR\x0ecreationSource\"\x98\x01\n" + + "\x0eCreationSource\x12\x1f\n" + + "\x1bCREATION_SOURCE_UNSPECIFIED\x10\x00\x12,\n" + + "(CREATION_SOURCE_CONNECTOR_LIST_RESOURCES\x10\x01\x127\n" + + "3CREATION_SOURCE_CONNECTOR_LIST_GRANTS_PRINCIPAL_JIT\x10\x02\"\xf6\x02\n" + + "$ResourcesServiceListResourcesRequest\x124\n" + + "\x10resource_type_id\x18\x01 \x01(\tB\n" + + "\xfaB\ar\x05 \x01(\x80\bR\x0eresourceTypeId\x12S\n" + + "\x12parent_resource_id\x18\x02 \x01(\v2\x1b.c1.connector.v2.ResourceIdB\b\xfaB\x05\x8a\x01\x02\x10\x00R\x10parentResourceId\x12'\n" + + "\tpage_size\x18\x03 \x01(\rB\n" + + "\xfaB\a*\x05\x18\xfa\x01@\x01R\bpageSize\x12-\n" + + "\n" + + "page_token\x18\x04 \x01(\tB\x0e\xfaB\vr\t \x01(\x80\x80@\xd0\x01\x01R\tpageToken\x126\n" + + "\vannotations\x18\x05 \x03(\v2\x14.google.protobuf.AnyR\vannotations\x123\n" + + "\x0eactive_sync_id\x18\x06 \x01(\tB\r\xfaB\n" + + "r\b \x01(\x80\b\xd0\x01\x01R\factiveSyncId\"\xc6\x01\n" + + "%ResourcesServiceListResourcesResponse\x12-\n" + + "\x04list\x18\x01 \x03(\v2\x19.c1.connector.v2.ResourceR\x04list\x126\n" + + "\x0fnext_page_token\x18\x02 \x01(\tB\x0e\xfaB\vr\t \x01(\x80\x80@\xd0\x01\x01R\rnextPageToken\x126\n" + + "\vannotations\x18\x03 \x03(\v2\x14.google.protobuf.AnyR\vannotations\"\xa9\x02\n" + + "'ResourceGetterServiceGetResourceRequest\x12<\n" + + "\vresource_id\x18\x01 \x01(\v2\x1b.c1.connector.v2.ResourceIdR\n" + + "resourceId\x12S\n" + + "\x12parent_resource_id\x18\x02 \x01(\v2\x1b.c1.connector.v2.ResourceIdB\b\xfaB\x05\x8a\x01\x02\x10\x00R\x10parentResourceId\x126\n" + + "\vannotations\x18\x03 \x03(\v2\x14.google.protobuf.AnyR\vannotations\x123\n" + + "\x0eactive_sync_id\x18\x04 \x01(\tB\r\xfaB\n" + + "r\b \x01(\x80\b\xd0\x01\x01R\factiveSyncId\"\x99\x01\n" + + "(ResourceGetterServiceGetResourceResponse\x125\n" + + "\bresource\x18\x01 \x01(\v2\x19.c1.connector.v2.ResourceR\bresource\x126\n" + + "\vannotations\x18\x02 \x03(\v2\x14.google.protobuf.AnyR\vannotations\"R\n" + + "\n" + + "ExternalId\x12\x0e\n" + + "\x02id\x18\x01 \x01(\tR\x02id\x12\x12\n" + + "\x04link\x18\x02 \x01(\tR\x04link\x12 \n" + + "\vdescription\x18\x03 \x01(\tR\vdescription2\xab\x01\n" + + "\x14ResourceTypesService\x12\x92\x01\n" + + "\x11ListResourceTypes\x12=.c1.connector.v2.ResourceTypesServiceListResourceTypesRequest\x1a>.c1.connector.v2.ResourceTypesServiceListResourceTypesResponse2\x92\x01\n" + + "\x10ResourcesService\x12~\n" + + "\rListResources\x125.c1.connector.v2.ResourcesServiceListResourcesRequest\x1a6.c1.connector.v2.ResourcesServiceListResourcesResponse2\x9c\x01\n" + + "\x15ResourceGetterService\x12\x82\x01\n" + + "\vGetResource\x128.c1.connector.v2.ResourceGetterServiceGetResourceRequest\x1a9.c1.connector.v2.ResourceGetterServiceGetResourceResponse2\xde\x01\n" + + "\x16ResourceManagerService\x12a\n" + + "\x0eCreateResource\x12&.c1.connector.v2.CreateResourceRequest\x1a'.c1.connector.v2.CreateResourceResponse\x12a\n" + + "\x0eDeleteResource\x12&.c1.connector.v2.DeleteResourceRequest\x1a'.c1.connector.v2.DeleteResourceResponse2\x81\x01\n" + + "\x16ResourceDeleterService\x12g\n" + + "\x10DeleteResourceV2\x12(.c1.connector.v2.DeleteResourceV2Request\x1a).c1.connector.v2.DeleteResourceV2Response2\x83\x01\n" + + "\x18CredentialManagerService\x12g\n" + + "\x10RotateCredential\x12(.c1.connector.v2.RotateCredentialRequest\x1a).c1.connector.v2.RotateCredentialResponse2w\n" + + "\x15AccountManagerService\x12^\n" + + "\rCreateAccount\x12%.c1.connector.v2.CreateAccountRequest\x1a&.c1.connector.v2.CreateAccountResponseB6Z4github.com/conductorone/baton-sdk/pb/c1/connector/v2b\x06proto3" + +var file_c1_connector_v2_resource_proto_enumTypes = make([]protoimpl.EnumInfo, 2) +var file_c1_connector_v2_resource_proto_msgTypes = make([]protoimpl.MessageInfo, 41) +var file_c1_connector_v2_resource_proto_goTypes = []any{ + (ResourceType_Trait)(0), // 0: c1.connector.v2.ResourceType.Trait + (Resource_CreationSource)(0), // 1: c1.connector.v2.Resource.CreationSource + (*ResourceType)(nil), // 2: c1.connector.v2.ResourceType + (*ResourceTypesServiceListResourceTypesRequest)(nil), // 3: c1.connector.v2.ResourceTypesServiceListResourceTypesRequest + (*ResourceTypesServiceListResourceTypesResponse)(nil), // 4: c1.connector.v2.ResourceTypesServiceListResourceTypesResponse + (*CreateResourceRequest)(nil), // 5: c1.connector.v2.CreateResourceRequest + (*CreateResourceResponse)(nil), // 6: c1.connector.v2.CreateResourceResponse + (*DeleteResourceRequest)(nil), // 7: c1.connector.v2.DeleteResourceRequest + (*DeleteResourceResponse)(nil), // 8: c1.connector.v2.DeleteResourceResponse + (*DeleteResourceV2Request)(nil), // 9: c1.connector.v2.DeleteResourceV2Request + (*DeleteResourceV2Response)(nil), // 10: c1.connector.v2.DeleteResourceV2Response + (*RotateCredentialRequest)(nil), // 11: c1.connector.v2.RotateCredentialRequest + (*RotateCredentialResponse)(nil), // 12: c1.connector.v2.RotateCredentialResponse + (*AccountInfo)(nil), // 13: c1.connector.v2.AccountInfo + (*CredentialOptions)(nil), // 14: c1.connector.v2.CredentialOptions + (*LocalCredentialOptions)(nil), // 15: c1.connector.v2.LocalCredentialOptions + (*PasswordConstraint)(nil), // 16: c1.connector.v2.PasswordConstraint + (*CreateAccountRequest)(nil), // 17: c1.connector.v2.CreateAccountRequest + (*CreateAccountResponse)(nil), // 18: c1.connector.v2.CreateAccountResponse + (*EncryptedData)(nil), // 19: c1.connector.v2.EncryptedData + (*PlaintextData)(nil), // 20: c1.connector.v2.PlaintextData + (*EncryptionConfig)(nil), // 21: c1.connector.v2.EncryptionConfig + (*ResourceId)(nil), // 22: c1.connector.v2.ResourceId + (*Resource)(nil), // 23: c1.connector.v2.Resource + (*ResourcesServiceListResourcesRequest)(nil), // 24: c1.connector.v2.ResourcesServiceListResourcesRequest + (*ResourcesServiceListResourcesResponse)(nil), // 25: c1.connector.v2.ResourcesServiceListResourcesResponse + (*ResourceGetterServiceGetResourceRequest)(nil), // 26: c1.connector.v2.ResourceGetterServiceGetResourceRequest + (*ResourceGetterServiceGetResourceResponse)(nil), // 27: c1.connector.v2.ResourceGetterServiceGetResourceResponse + (*ExternalId)(nil), // 28: c1.connector.v2.ExternalId + (*AccountInfo_Email)(nil), // 29: c1.connector.v2.AccountInfo.Email + (*CredentialOptions_RandomPassword)(nil), // 30: c1.connector.v2.CredentialOptions.RandomPassword + (*CredentialOptions_NoPassword)(nil), // 31: c1.connector.v2.CredentialOptions.NoPassword + (*CredentialOptions_SSO)(nil), // 32: c1.connector.v2.CredentialOptions.SSO + (*CredentialOptions_EncryptedPassword)(nil), // 33: c1.connector.v2.CredentialOptions.EncryptedPassword + (*LocalCredentialOptions_RandomPassword)(nil), // 34: c1.connector.v2.LocalCredentialOptions.RandomPassword + (*LocalCredentialOptions_NoPassword)(nil), // 35: c1.connector.v2.LocalCredentialOptions.NoPassword + (*LocalCredentialOptions_SSO)(nil), // 36: c1.connector.v2.LocalCredentialOptions.SSO + (*LocalCredentialOptions_PlaintextPassword)(nil), // 37: c1.connector.v2.LocalCredentialOptions.PlaintextPassword + (*CreateAccountResponse_SuccessResult)(nil), // 38: c1.connector.v2.CreateAccountResponse.SuccessResult + (*CreateAccountResponse_ActionRequiredResult)(nil), // 39: c1.connector.v2.CreateAccountResponse.ActionRequiredResult + (*CreateAccountResponse_AlreadyExistsResult)(nil), // 40: c1.connector.v2.CreateAccountResponse.AlreadyExistsResult + (*CreateAccountResponse_InProgressResult)(nil), // 41: c1.connector.v2.CreateAccountResponse.InProgressResult + (*EncryptionConfig_JWKPublicKeyConfig)(nil), // 42: c1.connector.v2.EncryptionConfig.JWKPublicKeyConfig + (*anypb.Any)(nil), // 43: google.protobuf.Any + (*structpb.Struct)(nil), // 44: google.protobuf.Struct +} +var file_c1_connector_v2_resource_proto_depIdxs = []int32{ + 0, // 0: c1.connector.v2.ResourceType.traits:type_name -> c1.connector.v2.ResourceType.Trait + 43, // 1: c1.connector.v2.ResourceType.annotations:type_name -> google.protobuf.Any + 23, // 2: c1.connector.v2.ResourceTypesServiceListResourceTypesRequest.parent:type_name -> c1.connector.v2.Resource + 43, // 3: c1.connector.v2.ResourceTypesServiceListResourceTypesRequest.annotations:type_name -> google.protobuf.Any + 2, // 4: c1.connector.v2.ResourceTypesServiceListResourceTypesResponse.list:type_name -> c1.connector.v2.ResourceType + 43, // 5: c1.connector.v2.ResourceTypesServiceListResourceTypesResponse.annotations:type_name -> google.protobuf.Any + 23, // 6: c1.connector.v2.CreateResourceRequest.resource:type_name -> c1.connector.v2.Resource + 23, // 7: c1.connector.v2.CreateResourceResponse.created:type_name -> c1.connector.v2.Resource + 43, // 8: c1.connector.v2.CreateResourceResponse.annotations:type_name -> google.protobuf.Any + 22, // 9: c1.connector.v2.DeleteResourceRequest.resource_id:type_name -> c1.connector.v2.ResourceId + 22, // 10: c1.connector.v2.DeleteResourceRequest.parent_resource_id:type_name -> c1.connector.v2.ResourceId + 43, // 11: c1.connector.v2.DeleteResourceResponse.annotations:type_name -> google.protobuf.Any + 22, // 12: c1.connector.v2.DeleteResourceV2Request.resource_id:type_name -> c1.connector.v2.ResourceId + 22, // 13: c1.connector.v2.DeleteResourceV2Request.parent_resource_id:type_name -> c1.connector.v2.ResourceId + 43, // 14: c1.connector.v2.DeleteResourceV2Response.annotations:type_name -> google.protobuf.Any + 22, // 15: c1.connector.v2.RotateCredentialRequest.resource_id:type_name -> c1.connector.v2.ResourceId + 14, // 16: c1.connector.v2.RotateCredentialRequest.credential_options:type_name -> c1.connector.v2.CredentialOptions + 21, // 17: c1.connector.v2.RotateCredentialRequest.encryption_configs:type_name -> c1.connector.v2.EncryptionConfig + 19, // 18: c1.connector.v2.RotateCredentialResponse.encrypted_data:type_name -> c1.connector.v2.EncryptedData + 22, // 19: c1.connector.v2.RotateCredentialResponse.resource_id:type_name -> c1.connector.v2.ResourceId + 43, // 20: c1.connector.v2.RotateCredentialResponse.annotations:type_name -> google.protobuf.Any + 29, // 21: c1.connector.v2.AccountInfo.emails:type_name -> c1.connector.v2.AccountInfo.Email + 44, // 22: c1.connector.v2.AccountInfo.profile:type_name -> google.protobuf.Struct + 30, // 23: c1.connector.v2.CredentialOptions.random_password:type_name -> c1.connector.v2.CredentialOptions.RandomPassword + 31, // 24: c1.connector.v2.CredentialOptions.no_password:type_name -> c1.connector.v2.CredentialOptions.NoPassword + 32, // 25: c1.connector.v2.CredentialOptions.sso:type_name -> c1.connector.v2.CredentialOptions.SSO + 33, // 26: c1.connector.v2.CredentialOptions.encrypted_password:type_name -> c1.connector.v2.CredentialOptions.EncryptedPassword + 34, // 27: c1.connector.v2.LocalCredentialOptions.random_password:type_name -> c1.connector.v2.LocalCredentialOptions.RandomPassword + 35, // 28: c1.connector.v2.LocalCredentialOptions.no_password:type_name -> c1.connector.v2.LocalCredentialOptions.NoPassword + 36, // 29: c1.connector.v2.LocalCredentialOptions.sso:type_name -> c1.connector.v2.LocalCredentialOptions.SSO + 37, // 30: c1.connector.v2.LocalCredentialOptions.plaintext_password:type_name -> c1.connector.v2.LocalCredentialOptions.PlaintextPassword + 13, // 31: c1.connector.v2.CreateAccountRequest.account_info:type_name -> c1.connector.v2.AccountInfo + 14, // 32: c1.connector.v2.CreateAccountRequest.credential_options:type_name -> c1.connector.v2.CredentialOptions + 21, // 33: c1.connector.v2.CreateAccountRequest.encryption_configs:type_name -> c1.connector.v2.EncryptionConfig + 38, // 34: c1.connector.v2.CreateAccountResponse.success:type_name -> c1.connector.v2.CreateAccountResponse.SuccessResult + 39, // 35: c1.connector.v2.CreateAccountResponse.action_required:type_name -> c1.connector.v2.CreateAccountResponse.ActionRequiredResult + 40, // 36: c1.connector.v2.CreateAccountResponse.already_exists:type_name -> c1.connector.v2.CreateAccountResponse.AlreadyExistsResult + 41, // 37: c1.connector.v2.CreateAccountResponse.in_progress:type_name -> c1.connector.v2.CreateAccountResponse.InProgressResult + 19, // 38: c1.connector.v2.CreateAccountResponse.encrypted_data:type_name -> c1.connector.v2.EncryptedData + 43, // 39: c1.connector.v2.CreateAccountResponse.annotations:type_name -> google.protobuf.Any + 23, // 40: c1.connector.v2.EncryptionConfig.principal:type_name -> c1.connector.v2.Resource + 42, // 41: c1.connector.v2.EncryptionConfig.jwk_public_key_config:type_name -> c1.connector.v2.EncryptionConfig.JWKPublicKeyConfig + 22, // 42: c1.connector.v2.Resource.id:type_name -> c1.connector.v2.ResourceId + 22, // 43: c1.connector.v2.Resource.parent_resource_id:type_name -> c1.connector.v2.ResourceId + 43, // 44: c1.connector.v2.Resource.annotations:type_name -> google.protobuf.Any + 28, // 45: c1.connector.v2.Resource.external_id:type_name -> c1.connector.v2.ExternalId + 1, // 46: c1.connector.v2.Resource.creation_source:type_name -> c1.connector.v2.Resource.CreationSource + 22, // 47: c1.connector.v2.ResourcesServiceListResourcesRequest.parent_resource_id:type_name -> c1.connector.v2.ResourceId + 43, // 48: c1.connector.v2.ResourcesServiceListResourcesRequest.annotations:type_name -> google.protobuf.Any + 23, // 49: c1.connector.v2.ResourcesServiceListResourcesResponse.list:type_name -> c1.connector.v2.Resource + 43, // 50: c1.connector.v2.ResourcesServiceListResourcesResponse.annotations:type_name -> google.protobuf.Any + 22, // 51: c1.connector.v2.ResourceGetterServiceGetResourceRequest.resource_id:type_name -> c1.connector.v2.ResourceId + 22, // 52: c1.connector.v2.ResourceGetterServiceGetResourceRequest.parent_resource_id:type_name -> c1.connector.v2.ResourceId + 43, // 53: c1.connector.v2.ResourceGetterServiceGetResourceRequest.annotations:type_name -> google.protobuf.Any + 23, // 54: c1.connector.v2.ResourceGetterServiceGetResourceResponse.resource:type_name -> c1.connector.v2.Resource + 43, // 55: c1.connector.v2.ResourceGetterServiceGetResourceResponse.annotations:type_name -> google.protobuf.Any + 16, // 56: c1.connector.v2.CredentialOptions.RandomPassword.constraints:type_name -> c1.connector.v2.PasswordConstraint + 19, // 57: c1.connector.v2.CredentialOptions.EncryptedPassword.encrypted_passwords:type_name -> c1.connector.v2.EncryptedData + 16, // 58: c1.connector.v2.LocalCredentialOptions.RandomPassword.constraints:type_name -> c1.connector.v2.PasswordConstraint + 23, // 59: c1.connector.v2.CreateAccountResponse.SuccessResult.resource:type_name -> c1.connector.v2.Resource + 23, // 60: c1.connector.v2.CreateAccountResponse.ActionRequiredResult.resource:type_name -> c1.connector.v2.Resource + 23, // 61: c1.connector.v2.CreateAccountResponse.AlreadyExistsResult.resource:type_name -> c1.connector.v2.Resource + 23, // 62: c1.connector.v2.CreateAccountResponse.InProgressResult.resource:type_name -> c1.connector.v2.Resource + 3, // 63: c1.connector.v2.ResourceTypesService.ListResourceTypes:input_type -> c1.connector.v2.ResourceTypesServiceListResourceTypesRequest + 24, // 64: c1.connector.v2.ResourcesService.ListResources:input_type -> c1.connector.v2.ResourcesServiceListResourcesRequest + 26, // 65: c1.connector.v2.ResourceGetterService.GetResource:input_type -> c1.connector.v2.ResourceGetterServiceGetResourceRequest + 5, // 66: c1.connector.v2.ResourceManagerService.CreateResource:input_type -> c1.connector.v2.CreateResourceRequest + 7, // 67: c1.connector.v2.ResourceManagerService.DeleteResource:input_type -> c1.connector.v2.DeleteResourceRequest + 9, // 68: c1.connector.v2.ResourceDeleterService.DeleteResourceV2:input_type -> c1.connector.v2.DeleteResourceV2Request + 11, // 69: c1.connector.v2.CredentialManagerService.RotateCredential:input_type -> c1.connector.v2.RotateCredentialRequest + 17, // 70: c1.connector.v2.AccountManagerService.CreateAccount:input_type -> c1.connector.v2.CreateAccountRequest + 4, // 71: c1.connector.v2.ResourceTypesService.ListResourceTypes:output_type -> c1.connector.v2.ResourceTypesServiceListResourceTypesResponse + 25, // 72: c1.connector.v2.ResourcesService.ListResources:output_type -> c1.connector.v2.ResourcesServiceListResourcesResponse + 27, // 73: c1.connector.v2.ResourceGetterService.GetResource:output_type -> c1.connector.v2.ResourceGetterServiceGetResourceResponse + 6, // 74: c1.connector.v2.ResourceManagerService.CreateResource:output_type -> c1.connector.v2.CreateResourceResponse + 8, // 75: c1.connector.v2.ResourceManagerService.DeleteResource:output_type -> c1.connector.v2.DeleteResourceResponse + 10, // 76: c1.connector.v2.ResourceDeleterService.DeleteResourceV2:output_type -> c1.connector.v2.DeleteResourceV2Response + 12, // 77: c1.connector.v2.CredentialManagerService.RotateCredential:output_type -> c1.connector.v2.RotateCredentialResponse + 18, // 78: c1.connector.v2.AccountManagerService.CreateAccount:output_type -> c1.connector.v2.CreateAccountResponse + 71, // [71:79] is the sub-list for method output_type + 63, // [63:71] is the sub-list for method input_type + 63, // [63:63] is the sub-list for extension type_name + 63, // [63:63] is the sub-list for extension extendee + 0, // [0:63] is the sub-list for field type_name +} + +func init() { file_c1_connector_v2_resource_proto_init() } +func file_c1_connector_v2_resource_proto_init() { + if File_c1_connector_v2_resource_proto != nil { + return + } + file_c1_connector_v2_resource_proto_msgTypes[12].OneofWrappers = []any{ + (*credentialOptions_RandomPassword_)(nil), + (*credentialOptions_NoPassword_)(nil), + (*credentialOptions_Sso)(nil), + (*credentialOptions_EncryptedPassword_)(nil), + } + file_c1_connector_v2_resource_proto_msgTypes[13].OneofWrappers = []any{ + (*localCredentialOptions_RandomPassword_)(nil), + (*localCredentialOptions_NoPassword_)(nil), + (*localCredentialOptions_Sso)(nil), + (*localCredentialOptions_PlaintextPassword_)(nil), + } + file_c1_connector_v2_resource_proto_msgTypes[16].OneofWrappers = []any{ + (*createAccountResponse_Success)(nil), + (*createAccountResponse_ActionRequired)(nil), + (*createAccountResponse_AlreadyExists)(nil), + (*createAccountResponse_InProgress)(nil), + } + file_c1_connector_v2_resource_proto_msgTypes[19].OneofWrappers = []any{ + (*encryptionConfig_JwkPublicKeyConfig)(nil), + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: unsafe.Slice(unsafe.StringData(file_c1_connector_v2_resource_proto_rawDesc), len(file_c1_connector_v2_resource_proto_rawDesc)), + NumEnums: 2, + NumMessages: 41, + NumExtensions: 0, + NumServices: 7, + }, + GoTypes: file_c1_connector_v2_resource_proto_goTypes, + DependencyIndexes: file_c1_connector_v2_resource_proto_depIdxs, + EnumInfos: file_c1_connector_v2_resource_proto_enumTypes, + MessageInfos: file_c1_connector_v2_resource_proto_msgTypes, + }.Build() + File_c1_connector_v2_resource_proto = out.File + file_c1_connector_v2_resource_proto_goTypes = nil + file_c1_connector_v2_resource_proto_depIdxs = nil +} diff --git a/vendor/github.com/conductorone/baton-sdk/pb/c1/connector/v2/ticket.pb.go b/vendor/github.com/conductorone/baton-sdk/pb/c1/connector/v2/ticket.pb.go index f659e0d8..a13a28a6 100644 --- a/vendor/github.com/conductorone/baton-sdk/pb/c1/connector/v2/ticket.pb.go +++ b/vendor/github.com/conductorone/baton-sdk/pb/c1/connector/v2/ticket.pb.go @@ -1,9 +1,11 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.36.4 +// protoc-gen-go v1.36.10 // protoc (unknown) // source: c1/connector/v2/ticket.proto +//go:build !protoopaque + package v2 import ( @@ -14,7 +16,6 @@ import ( timestamppb "google.golang.org/protobuf/types/known/timestamppb" wrapperspb "google.golang.org/protobuf/types/known/wrapperspb" reflect "reflect" - sync "sync" unsafe "unsafe" ) @@ -26,7 +27,7 @@ const ( ) type TicketSchema struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` DisplayName string `protobuf:"bytes,2,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"` Types []*TicketType `protobuf:"bytes,3,rep,name=types,proto3" json:"types,omitempty"` @@ -62,11 +63,6 @@ func (x *TicketSchema) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use TicketSchema.ProtoReflect.Descriptor instead. -func (*TicketSchema) Descriptor() ([]byte, []int) { - return file_c1_connector_v2_ticket_proto_rawDescGZIP(), []int{0} -} - func (x *TicketSchema) GetId() string { if x != nil { return x.Id @@ -109,8 +105,56 @@ func (x *TicketSchema) GetAnnotations() []*anypb.Any { return nil } +func (x *TicketSchema) SetId(v string) { + x.Id = v +} + +func (x *TicketSchema) SetDisplayName(v string) { + x.DisplayName = v +} + +func (x *TicketSchema) SetTypes(v []*TicketType) { + x.Types = v +} + +func (x *TicketSchema) SetStatuses(v []*TicketStatus) { + x.Statuses = v +} + +func (x *TicketSchema) SetCustomFields(v map[string]*TicketCustomField) { + x.CustomFields = v +} + +func (x *TicketSchema) SetAnnotations(v []*anypb.Any) { + x.Annotations = v +} + +type TicketSchema_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Id string + DisplayName string + Types []*TicketType + Statuses []*TicketStatus + CustomFields map[string]*TicketCustomField + Annotations []*anypb.Any +} + +func (b0 TicketSchema_builder) Build() *TicketSchema { + m0 := &TicketSchema{} + b, x := &b0, m0 + _, _ = b, x + x.Id = b.Id + x.DisplayName = b.DisplayName + x.Types = b.Types + x.Statuses = b.Statuses + x.CustomFields = b.CustomFields + x.Annotations = b.Annotations + return m0 +} + type TicketCustomField struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` DisplayName string `protobuf:"bytes,2,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"` Required bool `protobuf:"varint,3,opt,name=required,proto3" json:"required,omitempty"` @@ -156,11 +200,6 @@ func (x *TicketCustomField) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use TicketCustomField.ProtoReflect.Descriptor instead. -func (*TicketCustomField) Descriptor() ([]byte, []int) { - return file_c1_connector_v2_ticket_proto_rawDescGZIP(), []int{1} -} - func (x *TicketCustomField) GetId() string { if x != nil { return x.Id @@ -277,6 +316,338 @@ func (x *TicketCustomField) GetAnnotations() []*anypb.Any { return nil } +func (x *TicketCustomField) SetId(v string) { + x.Id = v +} + +func (x *TicketCustomField) SetDisplayName(v string) { + x.DisplayName = v +} + +func (x *TicketCustomField) SetRequired(v bool) { + x.Required = v +} + +func (x *TicketCustomField) SetStringValue(v *TicketCustomFieldStringValue) { + if v == nil { + x.Value = nil + return + } + x.Value = &TicketCustomField_StringValue{v} +} + +func (x *TicketCustomField) SetStringValues(v *TicketCustomFieldStringValues) { + if v == nil { + x.Value = nil + return + } + x.Value = &TicketCustomField_StringValues{v} +} + +func (x *TicketCustomField) SetBoolValue(v *TicketCustomFieldBoolValue) { + if v == nil { + x.Value = nil + return + } + x.Value = &TicketCustomField_BoolValue{v} +} + +func (x *TicketCustomField) SetTimestampValue(v *TicketCustomFieldTimestampValue) { + if v == nil { + x.Value = nil + return + } + x.Value = &TicketCustomField_TimestampValue{v} +} + +func (x *TicketCustomField) SetPickStringValue(v *TicketCustomFieldPickStringValue) { + if v == nil { + x.Value = nil + return + } + x.Value = &TicketCustomField_PickStringValue{v} +} + +func (x *TicketCustomField) SetPickMultipleStringValues(v *TicketCustomFieldPickMultipleStringValues) { + if v == nil { + x.Value = nil + return + } + x.Value = &TicketCustomField_PickMultipleStringValues{v} +} + +func (x *TicketCustomField) SetPickObjectValue(v *TicketCustomFieldPickObjectValue) { + if v == nil { + x.Value = nil + return + } + x.Value = &TicketCustomField_PickObjectValue{v} +} + +func (x *TicketCustomField) SetPickMultipleObjectValues(v *TicketCustomFieldPickMultipleObjectValues) { + if v == nil { + x.Value = nil + return + } + x.Value = &TicketCustomField_PickMultipleObjectValues{v} +} + +func (x *TicketCustomField) SetNumberValue(v *TicketCustomFieldNumberValue) { + if v == nil { + x.Value = nil + return + } + x.Value = &TicketCustomField_NumberValue{v} +} + +func (x *TicketCustomField) SetAnnotations(v []*anypb.Any) { + x.Annotations = v +} + +func (x *TicketCustomField) HasValue() bool { + if x == nil { + return false + } + return x.Value != nil +} + +func (x *TicketCustomField) HasStringValue() bool { + if x == nil { + return false + } + _, ok := x.Value.(*TicketCustomField_StringValue) + return ok +} + +func (x *TicketCustomField) HasStringValues() bool { + if x == nil { + return false + } + _, ok := x.Value.(*TicketCustomField_StringValues) + return ok +} + +func (x *TicketCustomField) HasBoolValue() bool { + if x == nil { + return false + } + _, ok := x.Value.(*TicketCustomField_BoolValue) + return ok +} + +func (x *TicketCustomField) HasTimestampValue() bool { + if x == nil { + return false + } + _, ok := x.Value.(*TicketCustomField_TimestampValue) + return ok +} + +func (x *TicketCustomField) HasPickStringValue() bool { + if x == nil { + return false + } + _, ok := x.Value.(*TicketCustomField_PickStringValue) + return ok +} + +func (x *TicketCustomField) HasPickMultipleStringValues() bool { + if x == nil { + return false + } + _, ok := x.Value.(*TicketCustomField_PickMultipleStringValues) + return ok +} + +func (x *TicketCustomField) HasPickObjectValue() bool { + if x == nil { + return false + } + _, ok := x.Value.(*TicketCustomField_PickObjectValue) + return ok +} + +func (x *TicketCustomField) HasPickMultipleObjectValues() bool { + if x == nil { + return false + } + _, ok := x.Value.(*TicketCustomField_PickMultipleObjectValues) + return ok +} + +func (x *TicketCustomField) HasNumberValue() bool { + if x == nil { + return false + } + _, ok := x.Value.(*TicketCustomField_NumberValue) + return ok +} + +func (x *TicketCustomField) ClearValue() { + x.Value = nil +} + +func (x *TicketCustomField) ClearStringValue() { + if _, ok := x.Value.(*TicketCustomField_StringValue); ok { + x.Value = nil + } +} + +func (x *TicketCustomField) ClearStringValues() { + if _, ok := x.Value.(*TicketCustomField_StringValues); ok { + x.Value = nil + } +} + +func (x *TicketCustomField) ClearBoolValue() { + if _, ok := x.Value.(*TicketCustomField_BoolValue); ok { + x.Value = nil + } +} + +func (x *TicketCustomField) ClearTimestampValue() { + if _, ok := x.Value.(*TicketCustomField_TimestampValue); ok { + x.Value = nil + } +} + +func (x *TicketCustomField) ClearPickStringValue() { + if _, ok := x.Value.(*TicketCustomField_PickStringValue); ok { + x.Value = nil + } +} + +func (x *TicketCustomField) ClearPickMultipleStringValues() { + if _, ok := x.Value.(*TicketCustomField_PickMultipleStringValues); ok { + x.Value = nil + } +} + +func (x *TicketCustomField) ClearPickObjectValue() { + if _, ok := x.Value.(*TicketCustomField_PickObjectValue); ok { + x.Value = nil + } +} + +func (x *TicketCustomField) ClearPickMultipleObjectValues() { + if _, ok := x.Value.(*TicketCustomField_PickMultipleObjectValues); ok { + x.Value = nil + } +} + +func (x *TicketCustomField) ClearNumberValue() { + if _, ok := x.Value.(*TicketCustomField_NumberValue); ok { + x.Value = nil + } +} + +const TicketCustomField_Value_not_set_case case_TicketCustomField_Value = 0 +const TicketCustomField_StringValue_case case_TicketCustomField_Value = 100 +const TicketCustomField_StringValues_case case_TicketCustomField_Value = 101 +const TicketCustomField_BoolValue_case case_TicketCustomField_Value = 102 +const TicketCustomField_TimestampValue_case case_TicketCustomField_Value = 103 +const TicketCustomField_PickStringValue_case case_TicketCustomField_Value = 104 +const TicketCustomField_PickMultipleStringValues_case case_TicketCustomField_Value = 105 +const TicketCustomField_PickObjectValue_case case_TicketCustomField_Value = 106 +const TicketCustomField_PickMultipleObjectValues_case case_TicketCustomField_Value = 107 +const TicketCustomField_NumberValue_case case_TicketCustomField_Value = 108 + +func (x *TicketCustomField) WhichValue() case_TicketCustomField_Value { + if x == nil { + return TicketCustomField_Value_not_set_case + } + switch x.Value.(type) { + case *TicketCustomField_StringValue: + return TicketCustomField_StringValue_case + case *TicketCustomField_StringValues: + return TicketCustomField_StringValues_case + case *TicketCustomField_BoolValue: + return TicketCustomField_BoolValue_case + case *TicketCustomField_TimestampValue: + return TicketCustomField_TimestampValue_case + case *TicketCustomField_PickStringValue: + return TicketCustomField_PickStringValue_case + case *TicketCustomField_PickMultipleStringValues: + return TicketCustomField_PickMultipleStringValues_case + case *TicketCustomField_PickObjectValue: + return TicketCustomField_PickObjectValue_case + case *TicketCustomField_PickMultipleObjectValues: + return TicketCustomField_PickMultipleObjectValues_case + case *TicketCustomField_NumberValue: + return TicketCustomField_NumberValue_case + default: + return TicketCustomField_Value_not_set_case + } +} + +type TicketCustomField_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Id string + DisplayName string + Required bool + // Fields of oneof Value: + StringValue *TicketCustomFieldStringValue + StringValues *TicketCustomFieldStringValues + BoolValue *TicketCustomFieldBoolValue + TimestampValue *TicketCustomFieldTimestampValue + PickStringValue *TicketCustomFieldPickStringValue + PickMultipleStringValues *TicketCustomFieldPickMultipleStringValues + PickObjectValue *TicketCustomFieldPickObjectValue + PickMultipleObjectValues *TicketCustomFieldPickMultipleObjectValues + NumberValue *TicketCustomFieldNumberValue + // -- end of Value + Annotations []*anypb.Any +} + +func (b0 TicketCustomField_builder) Build() *TicketCustomField { + m0 := &TicketCustomField{} + b, x := &b0, m0 + _, _ = b, x + x.Id = b.Id + x.DisplayName = b.DisplayName + x.Required = b.Required + if b.StringValue != nil { + x.Value = &TicketCustomField_StringValue{b.StringValue} + } + if b.StringValues != nil { + x.Value = &TicketCustomField_StringValues{b.StringValues} + } + if b.BoolValue != nil { + x.Value = &TicketCustomField_BoolValue{b.BoolValue} + } + if b.TimestampValue != nil { + x.Value = &TicketCustomField_TimestampValue{b.TimestampValue} + } + if b.PickStringValue != nil { + x.Value = &TicketCustomField_PickStringValue{b.PickStringValue} + } + if b.PickMultipleStringValues != nil { + x.Value = &TicketCustomField_PickMultipleStringValues{b.PickMultipleStringValues} + } + if b.PickObjectValue != nil { + x.Value = &TicketCustomField_PickObjectValue{b.PickObjectValue} + } + if b.PickMultipleObjectValues != nil { + x.Value = &TicketCustomField_PickMultipleObjectValues{b.PickMultipleObjectValues} + } + if b.NumberValue != nil { + x.Value = &TicketCustomField_NumberValue{b.NumberValue} + } + x.Annotations = b.Annotations + return m0 +} + +type case_TicketCustomField_Value protoreflect.FieldNumber + +func (x case_TicketCustomField_Value) String() string { + md := file_c1_connector_v2_ticket_proto_msgTypes[1].Descriptor() + if x == 0 { + return "not set" + } + return protoimpl.X.MessageFieldStringOf(md, protoreflect.FieldNumber(x)) +} + type isTicketCustomField_Value interface { isTicketCustomField_Value() } @@ -336,7 +707,7 @@ func (*TicketCustomField_PickMultipleObjectValues) isTicketCustomField_Value() { func (*TicketCustomField_NumberValue) isTicketCustomField_Value() {} type TicketCustomFieldStringValue struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` Value string `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"` DefaultValue string `protobuf:"bytes,2,opt,name=default_value,json=defaultValue,proto3" json:"default_value,omitempty"` unknownFields protoimpl.UnknownFields @@ -368,11 +739,6 @@ func (x *TicketCustomFieldStringValue) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use TicketCustomFieldStringValue.ProtoReflect.Descriptor instead. -func (*TicketCustomFieldStringValue) Descriptor() ([]byte, []int) { - return file_c1_connector_v2_ticket_proto_rawDescGZIP(), []int{2} -} - func (x *TicketCustomFieldStringValue) GetValue() string { if x != nil { return x.Value @@ -387,8 +753,32 @@ func (x *TicketCustomFieldStringValue) GetDefaultValue() string { return "" } +func (x *TicketCustomFieldStringValue) SetValue(v string) { + x.Value = v +} + +func (x *TicketCustomFieldStringValue) SetDefaultValue(v string) { + x.DefaultValue = v +} + +type TicketCustomFieldStringValue_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Value string + DefaultValue string +} + +func (b0 TicketCustomFieldStringValue_builder) Build() *TicketCustomFieldStringValue { + m0 := &TicketCustomFieldStringValue{} + b, x := &b0, m0 + _, _ = b, x + x.Value = b.Value + x.DefaultValue = b.DefaultValue + return m0 +} + type TicketCustomFieldStringValues struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` Values []string `protobuf:"bytes,1,rep,name=values,proto3" json:"values,omitempty"` DefaultValues []string `protobuf:"bytes,2,rep,name=default_values,json=defaultValues,proto3" json:"default_values,omitempty"` unknownFields protoimpl.UnknownFields @@ -420,11 +810,6 @@ func (x *TicketCustomFieldStringValues) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use TicketCustomFieldStringValues.ProtoReflect.Descriptor instead. -func (*TicketCustomFieldStringValues) Descriptor() ([]byte, []int) { - return file_c1_connector_v2_ticket_proto_rawDescGZIP(), []int{3} -} - func (x *TicketCustomFieldStringValues) GetValues() []string { if x != nil { return x.Values @@ -439,8 +824,32 @@ func (x *TicketCustomFieldStringValues) GetDefaultValues() []string { return nil } +func (x *TicketCustomFieldStringValues) SetValues(v []string) { + x.Values = v +} + +func (x *TicketCustomFieldStringValues) SetDefaultValues(v []string) { + x.DefaultValues = v +} + +type TicketCustomFieldStringValues_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Values []string + DefaultValues []string +} + +func (b0 TicketCustomFieldStringValues_builder) Build() *TicketCustomFieldStringValues { + m0 := &TicketCustomFieldStringValues{} + b, x := &b0, m0 + _, _ = b, x + x.Values = b.Values + x.DefaultValues = b.DefaultValues + return m0 +} + type TicketCustomFieldBoolValue struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` Value bool `protobuf:"varint,1,opt,name=value,proto3" json:"value,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache @@ -471,11 +880,6 @@ func (x *TicketCustomFieldBoolValue) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use TicketCustomFieldBoolValue.ProtoReflect.Descriptor instead. -func (*TicketCustomFieldBoolValue) Descriptor() ([]byte, []int) { - return file_c1_connector_v2_ticket_proto_rawDescGZIP(), []int{4} -} - func (x *TicketCustomFieldBoolValue) GetValue() bool { if x != nil { return x.Value @@ -483,8 +887,26 @@ func (x *TicketCustomFieldBoolValue) GetValue() bool { return false } +func (x *TicketCustomFieldBoolValue) SetValue(v bool) { + x.Value = v +} + +type TicketCustomFieldBoolValue_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Value bool +} + +func (b0 TicketCustomFieldBoolValue_builder) Build() *TicketCustomFieldBoolValue { + m0 := &TicketCustomFieldBoolValue{} + b, x := &b0, m0 + _, _ = b, x + x.Value = b.Value + return m0 +} + type TicketCustomFieldNumberValue struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` Value *wrapperspb.FloatValue `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"` DefaultValue *wrapperspb.FloatValue `protobuf:"bytes,2,opt,name=default_value,json=defaultValue,proto3" json:"default_value,omitempty"` unknownFields protoimpl.UnknownFields @@ -516,11 +938,6 @@ func (x *TicketCustomFieldNumberValue) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use TicketCustomFieldNumberValue.ProtoReflect.Descriptor instead. -func (*TicketCustomFieldNumberValue) Descriptor() ([]byte, []int) { - return file_c1_connector_v2_ticket_proto_rawDescGZIP(), []int{5} -} - func (x *TicketCustomFieldNumberValue) GetValue() *wrapperspb.FloatValue { if x != nil { return x.Value @@ -535,8 +952,54 @@ func (x *TicketCustomFieldNumberValue) GetDefaultValue() *wrapperspb.FloatValue return nil } +func (x *TicketCustomFieldNumberValue) SetValue(v *wrapperspb.FloatValue) { + x.Value = v +} + +func (x *TicketCustomFieldNumberValue) SetDefaultValue(v *wrapperspb.FloatValue) { + x.DefaultValue = v +} + +func (x *TicketCustomFieldNumberValue) HasValue() bool { + if x == nil { + return false + } + return x.Value != nil +} + +func (x *TicketCustomFieldNumberValue) HasDefaultValue() bool { + if x == nil { + return false + } + return x.DefaultValue != nil +} + +func (x *TicketCustomFieldNumberValue) ClearValue() { + x.Value = nil +} + +func (x *TicketCustomFieldNumberValue) ClearDefaultValue() { + x.DefaultValue = nil +} + +type TicketCustomFieldNumberValue_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Value *wrapperspb.FloatValue + DefaultValue *wrapperspb.FloatValue +} + +func (b0 TicketCustomFieldNumberValue_builder) Build() *TicketCustomFieldNumberValue { + m0 := &TicketCustomFieldNumberValue{} + b, x := &b0, m0 + _, _ = b, x + x.Value = b.Value + x.DefaultValue = b.DefaultValue + return m0 +} + type TicketCustomFieldTimestampValue struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` Value *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"` DefaultValue *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=default_value,json=defaultValue,proto3" json:"default_value,omitempty"` unknownFields protoimpl.UnknownFields @@ -568,11 +1031,6 @@ func (x *TicketCustomFieldTimestampValue) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use TicketCustomFieldTimestampValue.ProtoReflect.Descriptor instead. -func (*TicketCustomFieldTimestampValue) Descriptor() ([]byte, []int) { - return file_c1_connector_v2_ticket_proto_rawDescGZIP(), []int{6} -} - func (x *TicketCustomFieldTimestampValue) GetValue() *timestamppb.Timestamp { if x != nil { return x.Value @@ -587,8 +1045,54 @@ func (x *TicketCustomFieldTimestampValue) GetDefaultValue() *timestamppb.Timesta return nil } +func (x *TicketCustomFieldTimestampValue) SetValue(v *timestamppb.Timestamp) { + x.Value = v +} + +func (x *TicketCustomFieldTimestampValue) SetDefaultValue(v *timestamppb.Timestamp) { + x.DefaultValue = v +} + +func (x *TicketCustomFieldTimestampValue) HasValue() bool { + if x == nil { + return false + } + return x.Value != nil +} + +func (x *TicketCustomFieldTimestampValue) HasDefaultValue() bool { + if x == nil { + return false + } + return x.DefaultValue != nil +} + +func (x *TicketCustomFieldTimestampValue) ClearValue() { + x.Value = nil +} + +func (x *TicketCustomFieldTimestampValue) ClearDefaultValue() { + x.DefaultValue = nil +} + +type TicketCustomFieldTimestampValue_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Value *timestamppb.Timestamp + DefaultValue *timestamppb.Timestamp +} + +func (b0 TicketCustomFieldTimestampValue_builder) Build() *TicketCustomFieldTimestampValue { + m0 := &TicketCustomFieldTimestampValue{} + b, x := &b0, m0 + _, _ = b, x + x.Value = b.Value + x.DefaultValue = b.DefaultValue + return m0 +} + type TicketCustomFieldPickStringValue struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` Value string `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"` AllowedValues []string `protobuf:"bytes,2,rep,name=allowed_values,json=allowedValues,proto3" json:"allowed_values,omitempty"` DefaultValue string `protobuf:"bytes,3,opt,name=default_value,json=defaultValue,proto3" json:"default_value,omitempty"` @@ -621,11 +1125,6 @@ func (x *TicketCustomFieldPickStringValue) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use TicketCustomFieldPickStringValue.ProtoReflect.Descriptor instead. -func (*TicketCustomFieldPickStringValue) Descriptor() ([]byte, []int) { - return file_c1_connector_v2_ticket_proto_rawDescGZIP(), []int{7} -} - func (x *TicketCustomFieldPickStringValue) GetValue() string { if x != nil { return x.Value @@ -647,8 +1146,38 @@ func (x *TicketCustomFieldPickStringValue) GetDefaultValue() string { return "" } +func (x *TicketCustomFieldPickStringValue) SetValue(v string) { + x.Value = v +} + +func (x *TicketCustomFieldPickStringValue) SetAllowedValues(v []string) { + x.AllowedValues = v +} + +func (x *TicketCustomFieldPickStringValue) SetDefaultValue(v string) { + x.DefaultValue = v +} + +type TicketCustomFieldPickStringValue_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Value string + AllowedValues []string + DefaultValue string +} + +func (b0 TicketCustomFieldPickStringValue_builder) Build() *TicketCustomFieldPickStringValue { + m0 := &TicketCustomFieldPickStringValue{} + b, x := &b0, m0 + _, _ = b, x + x.Value = b.Value + x.AllowedValues = b.AllowedValues + x.DefaultValue = b.DefaultValue + return m0 +} + type TicketCustomFieldPickMultipleStringValues struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` Values []string `protobuf:"bytes,1,rep,name=values,proto3" json:"values,omitempty"` AllowedValues []string `protobuf:"bytes,2,rep,name=allowed_values,json=allowedValues,proto3" json:"allowed_values,omitempty"` DefaultValues []string `protobuf:"bytes,3,rep,name=default_values,json=defaultValues,proto3" json:"default_values,omitempty"` @@ -681,11 +1210,6 @@ func (x *TicketCustomFieldPickMultipleStringValues) ProtoReflect() protoreflect. return mi.MessageOf(x) } -// Deprecated: Use TicketCustomFieldPickMultipleStringValues.ProtoReflect.Descriptor instead. -func (*TicketCustomFieldPickMultipleStringValues) Descriptor() ([]byte, []int) { - return file_c1_connector_v2_ticket_proto_rawDescGZIP(), []int{8} -} - func (x *TicketCustomFieldPickMultipleStringValues) GetValues() []string { if x != nil { return x.Values @@ -707,8 +1231,38 @@ func (x *TicketCustomFieldPickMultipleStringValues) GetDefaultValues() []string return nil } +func (x *TicketCustomFieldPickMultipleStringValues) SetValues(v []string) { + x.Values = v +} + +func (x *TicketCustomFieldPickMultipleStringValues) SetAllowedValues(v []string) { + x.AllowedValues = v +} + +func (x *TicketCustomFieldPickMultipleStringValues) SetDefaultValues(v []string) { + x.DefaultValues = v +} + +type TicketCustomFieldPickMultipleStringValues_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Values []string + AllowedValues []string + DefaultValues []string +} + +func (b0 TicketCustomFieldPickMultipleStringValues_builder) Build() *TicketCustomFieldPickMultipleStringValues { + m0 := &TicketCustomFieldPickMultipleStringValues{} + b, x := &b0, m0 + _, _ = b, x + x.Values = b.Values + x.AllowedValues = b.AllowedValues + x.DefaultValues = b.DefaultValues + return m0 +} + type TicketCustomFieldPickObjectValue struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` Value *TicketCustomFieldObjectValue `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"` AllowedValues []*TicketCustomFieldObjectValue `protobuf:"bytes,2,rep,name=allowed_values,json=allowedValues,proto3" json:"allowed_values,omitempty"` DefaultValue *TicketCustomFieldObjectValue `protobuf:"bytes,3,opt,name=default_value,json=defaultValue,proto3" json:"default_value,omitempty"` @@ -741,11 +1295,6 @@ func (x *TicketCustomFieldPickObjectValue) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use TicketCustomFieldPickObjectValue.ProtoReflect.Descriptor instead. -func (*TicketCustomFieldPickObjectValue) Descriptor() ([]byte, []int) { - return file_c1_connector_v2_ticket_proto_rawDescGZIP(), []int{9} -} - func (x *TicketCustomFieldPickObjectValue) GetValue() *TicketCustomFieldObjectValue { if x != nil { return x.Value @@ -767,8 +1316,60 @@ func (x *TicketCustomFieldPickObjectValue) GetDefaultValue() *TicketCustomFieldO return nil } +func (x *TicketCustomFieldPickObjectValue) SetValue(v *TicketCustomFieldObjectValue) { + x.Value = v +} + +func (x *TicketCustomFieldPickObjectValue) SetAllowedValues(v []*TicketCustomFieldObjectValue) { + x.AllowedValues = v +} + +func (x *TicketCustomFieldPickObjectValue) SetDefaultValue(v *TicketCustomFieldObjectValue) { + x.DefaultValue = v +} + +func (x *TicketCustomFieldPickObjectValue) HasValue() bool { + if x == nil { + return false + } + return x.Value != nil +} + +func (x *TicketCustomFieldPickObjectValue) HasDefaultValue() bool { + if x == nil { + return false + } + return x.DefaultValue != nil +} + +func (x *TicketCustomFieldPickObjectValue) ClearValue() { + x.Value = nil +} + +func (x *TicketCustomFieldPickObjectValue) ClearDefaultValue() { + x.DefaultValue = nil +} + +type TicketCustomFieldPickObjectValue_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Value *TicketCustomFieldObjectValue + AllowedValues []*TicketCustomFieldObjectValue + DefaultValue *TicketCustomFieldObjectValue +} + +func (b0 TicketCustomFieldPickObjectValue_builder) Build() *TicketCustomFieldPickObjectValue { + m0 := &TicketCustomFieldPickObjectValue{} + b, x := &b0, m0 + _, _ = b, x + x.Value = b.Value + x.AllowedValues = b.AllowedValues + x.DefaultValue = b.DefaultValue + return m0 +} + type TicketCustomFieldPickMultipleObjectValues struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` Values []*TicketCustomFieldObjectValue `protobuf:"bytes,1,rep,name=values,proto3" json:"values,omitempty"` AllowedValues []*TicketCustomFieldObjectValue `protobuf:"bytes,2,rep,name=allowed_values,json=allowedValues,proto3" json:"allowed_values,omitempty"` DefaultValues []*TicketCustomFieldObjectValue `protobuf:"bytes,3,rep,name=default_values,json=defaultValues,proto3" json:"default_values,omitempty"` @@ -801,11 +1402,6 @@ func (x *TicketCustomFieldPickMultipleObjectValues) ProtoReflect() protoreflect. return mi.MessageOf(x) } -// Deprecated: Use TicketCustomFieldPickMultipleObjectValues.ProtoReflect.Descriptor instead. -func (*TicketCustomFieldPickMultipleObjectValues) Descriptor() ([]byte, []int) { - return file_c1_connector_v2_ticket_proto_rawDescGZIP(), []int{10} -} - func (x *TicketCustomFieldPickMultipleObjectValues) GetValues() []*TicketCustomFieldObjectValue { if x != nil { return x.Values @@ -827,8 +1423,38 @@ func (x *TicketCustomFieldPickMultipleObjectValues) GetDefaultValues() []*Ticket return nil } +func (x *TicketCustomFieldPickMultipleObjectValues) SetValues(v []*TicketCustomFieldObjectValue) { + x.Values = v +} + +func (x *TicketCustomFieldPickMultipleObjectValues) SetAllowedValues(v []*TicketCustomFieldObjectValue) { + x.AllowedValues = v +} + +func (x *TicketCustomFieldPickMultipleObjectValues) SetDefaultValues(v []*TicketCustomFieldObjectValue) { + x.DefaultValues = v +} + +type TicketCustomFieldPickMultipleObjectValues_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Values []*TicketCustomFieldObjectValue + AllowedValues []*TicketCustomFieldObjectValue + DefaultValues []*TicketCustomFieldObjectValue +} + +func (b0 TicketCustomFieldPickMultipleObjectValues_builder) Build() *TicketCustomFieldPickMultipleObjectValues { + m0 := &TicketCustomFieldPickMultipleObjectValues{} + b, x := &b0, m0 + _, _ = b, x + x.Values = b.Values + x.AllowedValues = b.AllowedValues + x.DefaultValues = b.DefaultValues + return m0 +} + type TicketCustomFieldObjectValue struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` DisplayName string `protobuf:"bytes,2,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"` unknownFields protoimpl.UnknownFields @@ -860,11 +1486,6 @@ func (x *TicketCustomFieldObjectValue) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use TicketCustomFieldObjectValue.ProtoReflect.Descriptor instead. -func (*TicketCustomFieldObjectValue) Descriptor() ([]byte, []int) { - return file_c1_connector_v2_ticket_proto_rawDescGZIP(), []int{11} -} - func (x *TicketCustomFieldObjectValue) GetId() string { if x != nil { return x.Id @@ -879,8 +1500,32 @@ func (x *TicketCustomFieldObjectValue) GetDisplayName() string { return "" } +func (x *TicketCustomFieldObjectValue) SetId(v string) { + x.Id = v +} + +func (x *TicketCustomFieldObjectValue) SetDisplayName(v string) { + x.DisplayName = v +} + +type TicketCustomFieldObjectValue_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Id string + DisplayName string +} + +func (b0 TicketCustomFieldObjectValue_builder) Build() *TicketCustomFieldObjectValue { + m0 := &TicketCustomFieldObjectValue{} + b, x := &b0, m0 + _, _ = b, x + x.Id = b.Id + x.DisplayName = b.DisplayName + return m0 +} + type TicketStatus struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` DisplayName string `protobuf:"bytes,2,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"` unknownFields protoimpl.UnknownFields @@ -912,11 +1557,6 @@ func (x *TicketStatus) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use TicketStatus.ProtoReflect.Descriptor instead. -func (*TicketStatus) Descriptor() ([]byte, []int) { - return file_c1_connector_v2_ticket_proto_rawDescGZIP(), []int{12} -} - func (x *TicketStatus) GetId() string { if x != nil { return x.Id @@ -931,8 +1571,32 @@ func (x *TicketStatus) GetDisplayName() string { return "" } +func (x *TicketStatus) SetId(v string) { + x.Id = v +} + +func (x *TicketStatus) SetDisplayName(v string) { + x.DisplayName = v +} + +type TicketStatus_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Id string + DisplayName string +} + +func (b0 TicketStatus_builder) Build() *TicketStatus { + m0 := &TicketStatus{} + b, x := &b0, m0 + _, _ = b, x + x.Id = b.Id + x.DisplayName = b.DisplayName + return m0 +} + type TicketsServiceGetTicketSchemaRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Annotations []*anypb.Any `protobuf:"bytes,2,rep,name=annotations,proto3" json:"annotations,omitempty"` unknownFields protoimpl.UnknownFields @@ -964,11 +1628,6 @@ func (x *TicketsServiceGetTicketSchemaRequest) ProtoReflect() protoreflect.Messa return mi.MessageOf(x) } -// Deprecated: Use TicketsServiceGetTicketSchemaRequest.ProtoReflect.Descriptor instead. -func (*TicketsServiceGetTicketSchemaRequest) Descriptor() ([]byte, []int) { - return file_c1_connector_v2_ticket_proto_rawDescGZIP(), []int{13} -} - func (x *TicketsServiceGetTicketSchemaRequest) GetId() string { if x != nil { return x.Id @@ -983,8 +1642,32 @@ func (x *TicketsServiceGetTicketSchemaRequest) GetAnnotations() []*anypb.Any { return nil } +func (x *TicketsServiceGetTicketSchemaRequest) SetId(v string) { + x.Id = v +} + +func (x *TicketsServiceGetTicketSchemaRequest) SetAnnotations(v []*anypb.Any) { + x.Annotations = v +} + +type TicketsServiceGetTicketSchemaRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Id string + Annotations []*anypb.Any +} + +func (b0 TicketsServiceGetTicketSchemaRequest_builder) Build() *TicketsServiceGetTicketSchemaRequest { + m0 := &TicketsServiceGetTicketSchemaRequest{} + b, x := &b0, m0 + _, _ = b, x + x.Id = b.Id + x.Annotations = b.Annotations + return m0 +} + type TicketsServiceGetTicketSchemaResponse struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` Schema *TicketSchema `protobuf:"bytes,1,opt,name=schema,proto3" json:"schema,omitempty"` Annotations []*anypb.Any `protobuf:"bytes,2,rep,name=annotations,proto3" json:"annotations,omitempty"` unknownFields protoimpl.UnknownFields @@ -1016,11 +1699,6 @@ func (x *TicketsServiceGetTicketSchemaResponse) ProtoReflect() protoreflect.Mess return mi.MessageOf(x) } -// Deprecated: Use TicketsServiceGetTicketSchemaResponse.ProtoReflect.Descriptor instead. -func (*TicketsServiceGetTicketSchemaResponse) Descriptor() ([]byte, []int) { - return file_c1_connector_v2_ticket_proto_rawDescGZIP(), []int{14} -} - func (x *TicketsServiceGetTicketSchemaResponse) GetSchema() *TicketSchema { if x != nil { return x.Schema @@ -1028,15 +1706,50 @@ func (x *TicketsServiceGetTicketSchemaResponse) GetSchema() *TicketSchema { return nil } -func (x *TicketsServiceGetTicketSchemaResponse) GetAnnotations() []*anypb.Any { - if x != nil { - return x.Annotations - } - return nil +func (x *TicketsServiceGetTicketSchemaResponse) GetAnnotations() []*anypb.Any { + if x != nil { + return x.Annotations + } + return nil +} + +func (x *TicketsServiceGetTicketSchemaResponse) SetSchema(v *TicketSchema) { + x.Schema = v +} + +func (x *TicketsServiceGetTicketSchemaResponse) SetAnnotations(v []*anypb.Any) { + x.Annotations = v +} + +func (x *TicketsServiceGetTicketSchemaResponse) HasSchema() bool { + if x == nil { + return false + } + return x.Schema != nil +} + +func (x *TicketsServiceGetTicketSchemaResponse) ClearSchema() { + x.Schema = nil +} + +type TicketsServiceGetTicketSchemaResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Schema *TicketSchema + Annotations []*anypb.Any +} + +func (b0 TicketsServiceGetTicketSchemaResponse_builder) Build() *TicketsServiceGetTicketSchemaResponse { + m0 := &TicketsServiceGetTicketSchemaResponse{} + b, x := &b0, m0 + _, _ = b, x + x.Schema = b.Schema + x.Annotations = b.Annotations + return m0 } type TicketsServiceListTicketSchemasRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` PageSize uint32 `protobuf:"varint,1,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` PageToken string `protobuf:"bytes,2,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"` Annotations []*anypb.Any `protobuf:"bytes,3,rep,name=annotations,proto3" json:"annotations,omitempty"` @@ -1069,11 +1782,6 @@ func (x *TicketsServiceListTicketSchemasRequest) ProtoReflect() protoreflect.Mes return mi.MessageOf(x) } -// Deprecated: Use TicketsServiceListTicketSchemasRequest.ProtoReflect.Descriptor instead. -func (*TicketsServiceListTicketSchemasRequest) Descriptor() ([]byte, []int) { - return file_c1_connector_v2_ticket_proto_rawDescGZIP(), []int{15} -} - func (x *TicketsServiceListTicketSchemasRequest) GetPageSize() uint32 { if x != nil { return x.PageSize @@ -1095,8 +1803,38 @@ func (x *TicketsServiceListTicketSchemasRequest) GetAnnotations() []*anypb.Any { return nil } +func (x *TicketsServiceListTicketSchemasRequest) SetPageSize(v uint32) { + x.PageSize = v +} + +func (x *TicketsServiceListTicketSchemasRequest) SetPageToken(v string) { + x.PageToken = v +} + +func (x *TicketsServiceListTicketSchemasRequest) SetAnnotations(v []*anypb.Any) { + x.Annotations = v +} + +type TicketsServiceListTicketSchemasRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + PageSize uint32 + PageToken string + Annotations []*anypb.Any +} + +func (b0 TicketsServiceListTicketSchemasRequest_builder) Build() *TicketsServiceListTicketSchemasRequest { + m0 := &TicketsServiceListTicketSchemasRequest{} + b, x := &b0, m0 + _, _ = b, x + x.PageSize = b.PageSize + x.PageToken = b.PageToken + x.Annotations = b.Annotations + return m0 +} + type TicketsServiceListTicketSchemasResponse struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` List []*TicketSchema `protobuf:"bytes,1,rep,name=list,proto3" json:"list,omitempty"` NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` Annotations []*anypb.Any `protobuf:"bytes,3,rep,name=annotations,proto3" json:"annotations,omitempty"` @@ -1129,11 +1867,6 @@ func (x *TicketsServiceListTicketSchemasResponse) ProtoReflect() protoreflect.Me return mi.MessageOf(x) } -// Deprecated: Use TicketsServiceListTicketSchemasResponse.ProtoReflect.Descriptor instead. -func (*TicketsServiceListTicketSchemasResponse) Descriptor() ([]byte, []int) { - return file_c1_connector_v2_ticket_proto_rawDescGZIP(), []int{16} -} - func (x *TicketsServiceListTicketSchemasResponse) GetList() []*TicketSchema { if x != nil { return x.List @@ -1155,8 +1888,38 @@ func (x *TicketsServiceListTicketSchemasResponse) GetAnnotations() []*anypb.Any return nil } +func (x *TicketsServiceListTicketSchemasResponse) SetList(v []*TicketSchema) { + x.List = v +} + +func (x *TicketsServiceListTicketSchemasResponse) SetNextPageToken(v string) { + x.NextPageToken = v +} + +func (x *TicketsServiceListTicketSchemasResponse) SetAnnotations(v []*anypb.Any) { + x.Annotations = v +} + +type TicketsServiceListTicketSchemasResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + List []*TicketSchema + NextPageToken string + Annotations []*anypb.Any +} + +func (b0 TicketsServiceListTicketSchemasResponse_builder) Build() *TicketsServiceListTicketSchemasResponse { + m0 := &TicketsServiceListTicketSchemasResponse{} + b, x := &b0, m0 + _, _ = b, x + x.List = b.List + x.NextPageToken = b.NextPageToken + x.Annotations = b.Annotations + return m0 +} + type Ticket struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` DisplayName string `protobuf:"bytes,2,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"` Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"` @@ -1200,11 +1963,6 @@ func (x *Ticket) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use Ticket.ProtoReflect.Descriptor instead. -func (*Ticket) Descriptor() ([]byte, []int) { - return file_c1_connector_v2_ticket_proto_rawDescGZIP(), []int{17} -} - func (x *Ticket) GetId() string { if x != nil { return x.Id @@ -1303,8 +2061,181 @@ func (x *Ticket) GetRequestedFor() *Resource { return nil } +func (x *Ticket) SetId(v string) { + x.Id = v +} + +func (x *Ticket) SetDisplayName(v string) { + x.DisplayName = v +} + +func (x *Ticket) SetDescription(v string) { + x.Description = v +} + +func (x *Ticket) SetAssignees(v []*Resource) { + x.Assignees = v +} + +func (x *Ticket) SetReporter(v *Resource) { + x.Reporter = v +} + +func (x *Ticket) SetStatus(v *TicketStatus) { + x.Status = v +} + +func (x *Ticket) SetType(v *TicketType) { + x.Type = v +} + +func (x *Ticket) SetLabels(v []string) { + x.Labels = v +} + +func (x *Ticket) SetUrl(v string) { + x.Url = v +} + +func (x *Ticket) SetCustomFields(v map[string]*TicketCustomField) { + x.CustomFields = v +} + +func (x *Ticket) SetCreatedAt(v *timestamppb.Timestamp) { + x.CreatedAt = v +} + +func (x *Ticket) SetUpdatedAt(v *timestamppb.Timestamp) { + x.UpdatedAt = v +} + +func (x *Ticket) SetCompletedAt(v *timestamppb.Timestamp) { + x.CompletedAt = v +} + +func (x *Ticket) SetRequestedFor(v *Resource) { + x.RequestedFor = v +} + +func (x *Ticket) HasReporter() bool { + if x == nil { + return false + } + return x.Reporter != nil +} + +func (x *Ticket) HasStatus() bool { + if x == nil { + return false + } + return x.Status != nil +} + +func (x *Ticket) HasType() bool { + if x == nil { + return false + } + return x.Type != nil +} + +func (x *Ticket) HasCreatedAt() bool { + if x == nil { + return false + } + return x.CreatedAt != nil +} + +func (x *Ticket) HasUpdatedAt() bool { + if x == nil { + return false + } + return x.UpdatedAt != nil +} + +func (x *Ticket) HasCompletedAt() bool { + if x == nil { + return false + } + return x.CompletedAt != nil +} + +func (x *Ticket) HasRequestedFor() bool { + if x == nil { + return false + } + return x.RequestedFor != nil +} + +func (x *Ticket) ClearReporter() { + x.Reporter = nil +} + +func (x *Ticket) ClearStatus() { + x.Status = nil +} + +func (x *Ticket) ClearType() { + x.Type = nil +} + +func (x *Ticket) ClearCreatedAt() { + x.CreatedAt = nil +} + +func (x *Ticket) ClearUpdatedAt() { + x.UpdatedAt = nil +} + +func (x *Ticket) ClearCompletedAt() { + x.CompletedAt = nil +} + +func (x *Ticket) ClearRequestedFor() { + x.RequestedFor = nil +} + +type Ticket_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Id string + DisplayName string + Description string + Assignees []*Resource + Reporter *Resource + Status *TicketStatus + Type *TicketType + Labels []string + Url string + CustomFields map[string]*TicketCustomField + CreatedAt *timestamppb.Timestamp + UpdatedAt *timestamppb.Timestamp + CompletedAt *timestamppb.Timestamp + RequestedFor *Resource +} + +func (b0 Ticket_builder) Build() *Ticket { + m0 := &Ticket{} + b, x := &b0, m0 + _, _ = b, x + x.Id = b.Id + x.DisplayName = b.DisplayName + x.Description = b.Description + x.Assignees = b.Assignees + x.Reporter = b.Reporter + x.Status = b.Status + x.Type = b.Type + x.Labels = b.Labels + x.Url = b.Url + x.CustomFields = b.CustomFields + x.CreatedAt = b.CreatedAt + x.UpdatedAt = b.UpdatedAt + x.CompletedAt = b.CompletedAt + x.RequestedFor = b.RequestedFor + return m0 +} + type TicketType struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` DisplayName string `protobuf:"bytes,2,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"` unknownFields protoimpl.UnknownFields @@ -1336,11 +2267,6 @@ func (x *TicketType) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use TicketType.ProtoReflect.Descriptor instead. -func (*TicketType) Descriptor() ([]byte, []int) { - return file_c1_connector_v2_ticket_proto_rawDescGZIP(), []int{18} -} - func (x *TicketType) GetId() string { if x != nil { return x.Id @@ -1355,8 +2281,32 @@ func (x *TicketType) GetDisplayName() string { return "" } +func (x *TicketType) SetId(v string) { + x.Id = v +} + +func (x *TicketType) SetDisplayName(v string) { + x.DisplayName = v +} + +type TicketType_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Id string + DisplayName string +} + +func (b0 TicketType_builder) Build() *TicketType { + m0 := &TicketType{} + b, x := &b0, m0 + _, _ = b, x + x.Id = b.Id + x.DisplayName = b.DisplayName + return m0 +} + type TicketRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` DisplayName string `protobuf:"bytes,1,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"` Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` Status *TicketStatus `protobuf:"bytes,3,opt,name=status,proto3" json:"status,omitempty"` @@ -1393,11 +2343,6 @@ func (x *TicketRequest) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use TicketRequest.ProtoReflect.Descriptor instead. -func (*TicketRequest) Descriptor() ([]byte, []int) { - return file_c1_connector_v2_ticket_proto_rawDescGZIP(), []int{19} -} - func (x *TicketRequest) GetDisplayName() string { if x != nil { return x.DisplayName @@ -1447,8 +2392,95 @@ func (x *TicketRequest) GetRequestedFor() *Resource { return nil } +func (x *TicketRequest) SetDisplayName(v string) { + x.DisplayName = v +} + +func (x *TicketRequest) SetDescription(v string) { + x.Description = v +} + +func (x *TicketRequest) SetStatus(v *TicketStatus) { + x.Status = v +} + +func (x *TicketRequest) SetType(v *TicketType) { + x.Type = v +} + +func (x *TicketRequest) SetLabels(v []string) { + x.Labels = v +} + +func (x *TicketRequest) SetCustomFields(v map[string]*TicketCustomField) { + x.CustomFields = v +} + +func (x *TicketRequest) SetRequestedFor(v *Resource) { + x.RequestedFor = v +} + +func (x *TicketRequest) HasStatus() bool { + if x == nil { + return false + } + return x.Status != nil +} + +func (x *TicketRequest) HasType() bool { + if x == nil { + return false + } + return x.Type != nil +} + +func (x *TicketRequest) HasRequestedFor() bool { + if x == nil { + return false + } + return x.RequestedFor != nil +} + +func (x *TicketRequest) ClearStatus() { + x.Status = nil +} + +func (x *TicketRequest) ClearType() { + x.Type = nil +} + +func (x *TicketRequest) ClearRequestedFor() { + x.RequestedFor = nil +} + +type TicketRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + DisplayName string + Description string + Status *TicketStatus + Type *TicketType + Labels []string + CustomFields map[string]*TicketCustomField + RequestedFor *Resource +} + +func (b0 TicketRequest_builder) Build() *TicketRequest { + m0 := &TicketRequest{} + b, x := &b0, m0 + _, _ = b, x + x.DisplayName = b.DisplayName + x.Description = b.Description + x.Status = b.Status + x.Type = b.Type + x.Labels = b.Labels + x.CustomFields = b.CustomFields + x.RequestedFor = b.RequestedFor + return m0 +} + type TicketsServiceCreateTicketRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` Request *TicketRequest `protobuf:"bytes,1,opt,name=request,proto3" json:"request,omitempty"` Schema *TicketSchema `protobuf:"bytes,2,opt,name=schema,proto3" json:"schema,omitempty"` Annotations []*anypb.Any `protobuf:"bytes,8,rep,name=annotations,proto3" json:"annotations,omitempty"` @@ -1481,11 +2513,6 @@ func (x *TicketsServiceCreateTicketRequest) ProtoReflect() protoreflect.Message return mi.MessageOf(x) } -// Deprecated: Use TicketsServiceCreateTicketRequest.ProtoReflect.Descriptor instead. -func (*TicketsServiceCreateTicketRequest) Descriptor() ([]byte, []int) { - return file_c1_connector_v2_ticket_proto_rawDescGZIP(), []int{20} -} - func (x *TicketsServiceCreateTicketRequest) GetRequest() *TicketRequest { if x != nil { return x.Request @@ -1507,9 +2534,61 @@ func (x *TicketsServiceCreateTicketRequest) GetAnnotations() []*anypb.Any { return nil } +func (x *TicketsServiceCreateTicketRequest) SetRequest(v *TicketRequest) { + x.Request = v +} + +func (x *TicketsServiceCreateTicketRequest) SetSchema(v *TicketSchema) { + x.Schema = v +} + +func (x *TicketsServiceCreateTicketRequest) SetAnnotations(v []*anypb.Any) { + x.Annotations = v +} + +func (x *TicketsServiceCreateTicketRequest) HasRequest() bool { + if x == nil { + return false + } + return x.Request != nil +} + +func (x *TicketsServiceCreateTicketRequest) HasSchema() bool { + if x == nil { + return false + } + return x.Schema != nil +} + +func (x *TicketsServiceCreateTicketRequest) ClearRequest() { + x.Request = nil +} + +func (x *TicketsServiceCreateTicketRequest) ClearSchema() { + x.Schema = nil +} + +type TicketsServiceCreateTicketRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Request *TicketRequest + Schema *TicketSchema + Annotations []*anypb.Any +} + +func (b0 TicketsServiceCreateTicketRequest_builder) Build() *TicketsServiceCreateTicketRequest { + m0 := &TicketsServiceCreateTicketRequest{} + b, x := &b0, m0 + _, _ = b, x + x.Request = b.Request + x.Schema = b.Schema + x.Annotations = b.Annotations + return m0 +} + // TODO(lauren) maybe the error should be a separate proto so we can store retryable error type TicketsServiceCreateTicketResponse struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` Ticket *Ticket `protobuf:"bytes,1,opt,name=ticket,proto3" json:"ticket,omitempty"` Annotations []*anypb.Any `protobuf:"bytes,2,rep,name=annotations,proto3" json:"annotations,omitempty"` Error string `protobuf:"bytes,3,opt,name=error,proto3" json:"error,omitempty"` @@ -1542,11 +2621,6 @@ func (x *TicketsServiceCreateTicketResponse) ProtoReflect() protoreflect.Message return mi.MessageOf(x) } -// Deprecated: Use TicketsServiceCreateTicketResponse.ProtoReflect.Descriptor instead. -func (*TicketsServiceCreateTicketResponse) Descriptor() ([]byte, []int) { - return file_c1_connector_v2_ticket_proto_rawDescGZIP(), []int{21} -} - func (x *TicketsServiceCreateTicketResponse) GetTicket() *Ticket { if x != nil { return x.Ticket @@ -1568,8 +2642,49 @@ func (x *TicketsServiceCreateTicketResponse) GetError() string { return "" } +func (x *TicketsServiceCreateTicketResponse) SetTicket(v *Ticket) { + x.Ticket = v +} + +func (x *TicketsServiceCreateTicketResponse) SetAnnotations(v []*anypb.Any) { + x.Annotations = v +} + +func (x *TicketsServiceCreateTicketResponse) SetError(v string) { + x.Error = v +} + +func (x *TicketsServiceCreateTicketResponse) HasTicket() bool { + if x == nil { + return false + } + return x.Ticket != nil +} + +func (x *TicketsServiceCreateTicketResponse) ClearTicket() { + x.Ticket = nil +} + +type TicketsServiceCreateTicketResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Ticket *Ticket + Annotations []*anypb.Any + Error string +} + +func (b0 TicketsServiceCreateTicketResponse_builder) Build() *TicketsServiceCreateTicketResponse { + m0 := &TicketsServiceCreateTicketResponse{} + b, x := &b0, m0 + _, _ = b, x + x.Ticket = b.Ticket + x.Annotations = b.Annotations + x.Error = b.Error + return m0 +} + type TicketsServiceGetTicketRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Annotations []*anypb.Any `protobuf:"bytes,2,rep,name=annotations,proto3" json:"annotations,omitempty"` unknownFields protoimpl.UnknownFields @@ -1601,11 +2716,6 @@ func (x *TicketsServiceGetTicketRequest) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use TicketsServiceGetTicketRequest.ProtoReflect.Descriptor instead. -func (*TicketsServiceGetTicketRequest) Descriptor() ([]byte, []int) { - return file_c1_connector_v2_ticket_proto_rawDescGZIP(), []int{22} -} - func (x *TicketsServiceGetTicketRequest) GetId() string { if x != nil { return x.Id @@ -1620,8 +2730,32 @@ func (x *TicketsServiceGetTicketRequest) GetAnnotations() []*anypb.Any { return nil } +func (x *TicketsServiceGetTicketRequest) SetId(v string) { + x.Id = v +} + +func (x *TicketsServiceGetTicketRequest) SetAnnotations(v []*anypb.Any) { + x.Annotations = v +} + +type TicketsServiceGetTicketRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Id string + Annotations []*anypb.Any +} + +func (b0 TicketsServiceGetTicketRequest_builder) Build() *TicketsServiceGetTicketRequest { + m0 := &TicketsServiceGetTicketRequest{} + b, x := &b0, m0 + _, _ = b, x + x.Id = b.Id + x.Annotations = b.Annotations + return m0 +} + type TicketsServiceGetTicketResponse struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` Ticket *Ticket `protobuf:"bytes,1,opt,name=ticket,proto3" json:"ticket,omitempty"` Annotations []*anypb.Any `protobuf:"bytes,2,rep,name=annotations,proto3" json:"annotations,omitempty"` Error string `protobuf:"bytes,3,opt,name=error,proto3" json:"error,omitempty"` @@ -1654,11 +2788,6 @@ func (x *TicketsServiceGetTicketResponse) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use TicketsServiceGetTicketResponse.ProtoReflect.Descriptor instead. -func (*TicketsServiceGetTicketResponse) Descriptor() ([]byte, []int) { - return file_c1_connector_v2_ticket_proto_rawDescGZIP(), []int{23} -} - func (x *TicketsServiceGetTicketResponse) GetTicket() *Ticket { if x != nil { return x.Ticket @@ -1680,8 +2809,49 @@ func (x *TicketsServiceGetTicketResponse) GetError() string { return "" } +func (x *TicketsServiceGetTicketResponse) SetTicket(v *Ticket) { + x.Ticket = v +} + +func (x *TicketsServiceGetTicketResponse) SetAnnotations(v []*anypb.Any) { + x.Annotations = v +} + +func (x *TicketsServiceGetTicketResponse) SetError(v string) { + x.Error = v +} + +func (x *TicketsServiceGetTicketResponse) HasTicket() bool { + if x == nil { + return false + } + return x.Ticket != nil +} + +func (x *TicketsServiceGetTicketResponse) ClearTicket() { + x.Ticket = nil +} + +type TicketsServiceGetTicketResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Ticket *Ticket + Annotations []*anypb.Any + Error string +} + +func (b0 TicketsServiceGetTicketResponse_builder) Build() *TicketsServiceGetTicketResponse { + m0 := &TicketsServiceGetTicketResponse{} + b, x := &b0, m0 + _, _ = b, x + x.Ticket = b.Ticket + x.Annotations = b.Annotations + x.Error = b.Error + return m0 +} + type TicketsServiceBulkCreateTicketsRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` TicketRequests []*TicketsServiceCreateTicketRequest `protobuf:"bytes,1,rep,name=ticket_requests,json=ticketRequests,proto3" json:"ticket_requests,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache @@ -1712,11 +2882,6 @@ func (x *TicketsServiceBulkCreateTicketsRequest) ProtoReflect() protoreflect.Mes return mi.MessageOf(x) } -// Deprecated: Use TicketsServiceBulkCreateTicketsRequest.ProtoReflect.Descriptor instead. -func (*TicketsServiceBulkCreateTicketsRequest) Descriptor() ([]byte, []int) { - return file_c1_connector_v2_ticket_proto_rawDescGZIP(), []int{24} -} - func (x *TicketsServiceBulkCreateTicketsRequest) GetTicketRequests() []*TicketsServiceCreateTicketRequest { if x != nil { return x.TicketRequests @@ -1724,8 +2889,26 @@ func (x *TicketsServiceBulkCreateTicketsRequest) GetTicketRequests() []*TicketsS return nil } +func (x *TicketsServiceBulkCreateTicketsRequest) SetTicketRequests(v []*TicketsServiceCreateTicketRequest) { + x.TicketRequests = v +} + +type TicketsServiceBulkCreateTicketsRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + TicketRequests []*TicketsServiceCreateTicketRequest +} + +func (b0 TicketsServiceBulkCreateTicketsRequest_builder) Build() *TicketsServiceBulkCreateTicketsRequest { + m0 := &TicketsServiceBulkCreateTicketsRequest{} + b, x := &b0, m0 + _, _ = b, x + x.TicketRequests = b.TicketRequests + return m0 +} + type TicketsServiceBulkCreateTicketsResponse struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` Tickets []*TicketsServiceCreateTicketResponse `protobuf:"bytes,1,rep,name=tickets,proto3" json:"tickets,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache @@ -1756,11 +2939,6 @@ func (x *TicketsServiceBulkCreateTicketsResponse) ProtoReflect() protoreflect.Me return mi.MessageOf(x) } -// Deprecated: Use TicketsServiceBulkCreateTicketsResponse.ProtoReflect.Descriptor instead. -func (*TicketsServiceBulkCreateTicketsResponse) Descriptor() ([]byte, []int) { - return file_c1_connector_v2_ticket_proto_rawDescGZIP(), []int{25} -} - func (x *TicketsServiceBulkCreateTicketsResponse) GetTickets() []*TicketsServiceCreateTicketResponse { if x != nil { return x.Tickets @@ -1768,8 +2946,26 @@ func (x *TicketsServiceBulkCreateTicketsResponse) GetTickets() []*TicketsService return nil } +func (x *TicketsServiceBulkCreateTicketsResponse) SetTickets(v []*TicketsServiceCreateTicketResponse) { + x.Tickets = v +} + +type TicketsServiceBulkCreateTicketsResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Tickets []*TicketsServiceCreateTicketResponse +} + +func (b0 TicketsServiceBulkCreateTicketsResponse_builder) Build() *TicketsServiceBulkCreateTicketsResponse { + m0 := &TicketsServiceBulkCreateTicketsResponse{} + b, x := &b0, m0 + _, _ = b, x + x.Tickets = b.Tickets + return m0 +} + type TicketsServiceBulkGetTicketsRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` TicketRequests []*TicketsServiceGetTicketRequest `protobuf:"bytes,1,rep,name=ticket_requests,json=ticketRequests,proto3" json:"ticket_requests,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache @@ -1800,11 +2996,6 @@ func (x *TicketsServiceBulkGetTicketsRequest) ProtoReflect() protoreflect.Messag return mi.MessageOf(x) } -// Deprecated: Use TicketsServiceBulkGetTicketsRequest.ProtoReflect.Descriptor instead. -func (*TicketsServiceBulkGetTicketsRequest) Descriptor() ([]byte, []int) { - return file_c1_connector_v2_ticket_proto_rawDescGZIP(), []int{26} -} - func (x *TicketsServiceBulkGetTicketsRequest) GetTicketRequests() []*TicketsServiceGetTicketRequest { if x != nil { return x.TicketRequests @@ -1812,8 +3003,26 @@ func (x *TicketsServiceBulkGetTicketsRequest) GetTicketRequests() []*TicketsServ return nil } +func (x *TicketsServiceBulkGetTicketsRequest) SetTicketRequests(v []*TicketsServiceGetTicketRequest) { + x.TicketRequests = v +} + +type TicketsServiceBulkGetTicketsRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + TicketRequests []*TicketsServiceGetTicketRequest +} + +func (b0 TicketsServiceBulkGetTicketsRequest_builder) Build() *TicketsServiceBulkGetTicketsRequest { + m0 := &TicketsServiceBulkGetTicketsRequest{} + b, x := &b0, m0 + _, _ = b, x + x.TicketRequests = b.TicketRequests + return m0 +} + type TicketsServiceBulkGetTicketsResponse struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` Tickets []*TicketsServiceGetTicketResponse `protobuf:"bytes,1,rep,name=tickets,proto3" json:"tickets,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache @@ -1844,11 +3053,6 @@ func (x *TicketsServiceBulkGetTicketsResponse) ProtoReflect() protoreflect.Messa return mi.MessageOf(x) } -// Deprecated: Use TicketsServiceBulkGetTicketsResponse.ProtoReflect.Descriptor instead. -func (*TicketsServiceBulkGetTicketsResponse) Descriptor() ([]byte, []int) { - return file_c1_connector_v2_ticket_proto_rawDescGZIP(), []int{27} -} - func (x *TicketsServiceBulkGetTicketsResponse) GetTickets() []*TicketsServiceGetTicketResponse { if x != nil { return x.Tickets @@ -1856,471 +3060,176 @@ func (x *TicketsServiceBulkGetTicketsResponse) GetTickets() []*TicketsServiceGet return nil } -var File_c1_connector_v2_ticket_proto protoreflect.FileDescriptor +func (x *TicketsServiceBulkGetTicketsResponse) SetTickets(v []*TicketsServiceGetTicketResponse) { + x.Tickets = v +} -var file_c1_connector_v2_ticket_proto_rawDesc = string([]byte{ - 0x0a, 0x1c, 0x63, 0x31, 0x2f, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x2f, 0x76, - 0x32, 0x2f, 0x74, 0x69, 0x63, 0x6b, 0x65, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0f, - 0x63, 0x31, 0x2e, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x2e, 0x76, 0x32, 0x1a, - 0x1e, 0x63, 0x31, 0x2f, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x2f, 0x76, 0x32, - 0x2f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, - 0x19, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, - 0x2f, 0x61, 0x6e, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, - 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x74, 0x69, 0x6d, 0x65, - 0x73, 0x74, 0x61, 0x6d, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1e, 0x67, 0x6f, 0x6f, - 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x77, 0x72, 0x61, - 0x70, 0x70, 0x65, 0x72, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x17, 0x76, 0x61, 0x6c, - 0x69, 0x64, 0x61, 0x74, 0x65, 0x2f, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x2e, 0x70, - 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xa2, 0x03, 0x0a, 0x0c, 0x54, 0x69, 0x63, 0x6b, 0x65, 0x74, 0x53, - 0x63, 0x68, 0x65, 0x6d, 0x61, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x21, 0x0a, 0x0c, 0x64, 0x69, 0x73, 0x70, 0x6c, 0x61, 0x79, - 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x69, 0x73, - 0x70, 0x6c, 0x61, 0x79, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x31, 0x0a, 0x05, 0x74, 0x79, 0x70, 0x65, - 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x63, 0x31, 0x2e, 0x63, 0x6f, 0x6e, - 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x2e, 0x76, 0x32, 0x2e, 0x54, 0x69, 0x63, 0x6b, 0x65, 0x74, - 0x54, 0x79, 0x70, 0x65, 0x52, 0x05, 0x74, 0x79, 0x70, 0x65, 0x73, 0x12, 0x39, 0x0a, 0x08, 0x73, - 0x74, 0x61, 0x74, 0x75, 0x73, 0x65, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1d, 0x2e, - 0x63, 0x31, 0x2e, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x2e, 0x76, 0x32, 0x2e, - 0x54, 0x69, 0x63, 0x6b, 0x65, 0x74, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x08, 0x73, 0x74, - 0x61, 0x74, 0x75, 0x73, 0x65, 0x73, 0x12, 0x54, 0x0a, 0x0d, 0x63, 0x75, 0x73, 0x74, 0x6f, 0x6d, - 0x5f, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2f, 0x2e, - 0x63, 0x31, 0x2e, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x2e, 0x76, 0x32, 0x2e, - 0x54, 0x69, 0x63, 0x6b, 0x65, 0x74, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x2e, 0x43, 0x75, 0x73, - 0x74, 0x6f, 0x6d, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x0c, - 0x63, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x73, 0x12, 0x36, 0x0a, 0x0b, - 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x06, 0x20, 0x03, 0x28, - 0x0b, 0x32, 0x14, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, - 0x62, 0x75, 0x66, 0x2e, 0x41, 0x6e, 0x79, 0x52, 0x0b, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, - 0x69, 0x6f, 0x6e, 0x73, 0x1a, 0x63, 0x0a, 0x11, 0x43, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x46, 0x69, - 0x65, 0x6c, 0x64, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, - 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x38, 0x0a, 0x05, 0x76, - 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x63, 0x31, 0x2e, - 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x2e, 0x76, 0x32, 0x2e, 0x54, 0x69, 0x63, - 0x6b, 0x65, 0x74, 0x43, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x52, 0x05, - 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0x89, 0x08, 0x0a, 0x11, 0x54, 0x69, - 0x63, 0x6b, 0x65, 0x74, 0x43, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x12, - 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, - 0x21, 0x0a, 0x0c, 0x64, 0x69, 0x73, 0x70, 0x6c, 0x61, 0x79, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, - 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x69, 0x73, 0x70, 0x6c, 0x61, 0x79, 0x4e, 0x61, - 0x6d, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x72, 0x65, 0x71, 0x75, 0x69, 0x72, 0x65, 0x64, 0x18, 0x03, - 0x20, 0x01, 0x28, 0x08, 0x52, 0x08, 0x72, 0x65, 0x71, 0x75, 0x69, 0x72, 0x65, 0x64, 0x12, 0x52, - 0x0a, 0x0c, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x64, - 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2d, 0x2e, 0x63, 0x31, 0x2e, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, - 0x74, 0x6f, 0x72, 0x2e, 0x76, 0x32, 0x2e, 0x54, 0x69, 0x63, 0x6b, 0x65, 0x74, 0x43, 0x75, 0x73, - 0x74, 0x6f, 0x6d, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x56, 0x61, - 0x6c, 0x75, 0x65, 0x48, 0x00, 0x52, 0x0b, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x56, 0x61, 0x6c, - 0x75, 0x65, 0x12, 0x55, 0x0a, 0x0d, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x5f, 0x76, 0x61, 0x6c, - 0x75, 0x65, 0x73, 0x18, 0x65, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2e, 0x2e, 0x63, 0x31, 0x2e, 0x63, - 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x2e, 0x76, 0x32, 0x2e, 0x54, 0x69, 0x63, 0x6b, - 0x65, 0x74, 0x43, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x53, 0x74, 0x72, - 0x69, 0x6e, 0x67, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x48, 0x00, 0x52, 0x0c, 0x73, 0x74, 0x72, - 0x69, 0x6e, 0x67, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x12, 0x4c, 0x0a, 0x0a, 0x62, 0x6f, 0x6f, - 0x6c, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x66, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2b, 0x2e, - 0x63, 0x31, 0x2e, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x2e, 0x76, 0x32, 0x2e, - 0x54, 0x69, 0x63, 0x6b, 0x65, 0x74, 0x43, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x46, 0x69, 0x65, 0x6c, - 0x64, 0x42, 0x6f, 0x6f, 0x6c, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x48, 0x00, 0x52, 0x09, 0x62, 0x6f, - 0x6f, 0x6c, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x5b, 0x0a, 0x0f, 0x74, 0x69, 0x6d, 0x65, 0x73, - 0x74, 0x61, 0x6d, 0x70, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x67, 0x20, 0x01, 0x28, 0x0b, - 0x32, 0x30, 0x2e, 0x63, 0x31, 0x2e, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x2e, - 0x76, 0x32, 0x2e, 0x54, 0x69, 0x63, 0x6b, 0x65, 0x74, 0x43, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x46, - 0x69, 0x65, 0x6c, 0x64, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x56, 0x61, 0x6c, - 0x75, 0x65, 0x48, 0x00, 0x52, 0x0e, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x56, - 0x61, 0x6c, 0x75, 0x65, 0x12, 0x5f, 0x0a, 0x11, 0x70, 0x69, 0x63, 0x6b, 0x5f, 0x73, 0x74, 0x72, - 0x69, 0x6e, 0x67, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x68, 0x20, 0x01, 0x28, 0x0b, 0x32, - 0x31, 0x2e, 0x63, 0x31, 0x2e, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x2e, 0x76, - 0x32, 0x2e, 0x54, 0x69, 0x63, 0x6b, 0x65, 0x74, 0x43, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x46, 0x69, - 0x65, 0x6c, 0x64, 0x50, 0x69, 0x63, 0x6b, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x56, 0x61, 0x6c, - 0x75, 0x65, 0x48, 0x00, 0x52, 0x0f, 0x70, 0x69, 0x63, 0x6b, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, - 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x7b, 0x0a, 0x1b, 0x70, 0x69, 0x63, 0x6b, 0x5f, 0x6d, 0x75, - 0x6c, 0x74, 0x69, 0x70, 0x6c, 0x65, 0x5f, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x5f, 0x76, 0x61, - 0x6c, 0x75, 0x65, 0x73, 0x18, 0x69, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x3a, 0x2e, 0x63, 0x31, 0x2e, - 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x2e, 0x76, 0x32, 0x2e, 0x54, 0x69, 0x63, - 0x6b, 0x65, 0x74, 0x43, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x50, 0x69, - 0x63, 0x6b, 0x4d, 0x75, 0x6c, 0x74, 0x69, 0x70, 0x6c, 0x65, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, - 0x56, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x48, 0x00, 0x52, 0x18, 0x70, 0x69, 0x63, 0x6b, 0x4d, 0x75, - 0x6c, 0x74, 0x69, 0x70, 0x6c, 0x65, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x56, 0x61, 0x6c, 0x75, - 0x65, 0x73, 0x12, 0x5f, 0x0a, 0x11, 0x70, 0x69, 0x63, 0x6b, 0x5f, 0x6f, 0x62, 0x6a, 0x65, 0x63, - 0x74, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x6a, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x31, 0x2e, - 0x63, 0x31, 0x2e, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x2e, 0x76, 0x32, 0x2e, - 0x54, 0x69, 0x63, 0x6b, 0x65, 0x74, 0x43, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x46, 0x69, 0x65, 0x6c, - 0x64, 0x50, 0x69, 0x63, 0x6b, 0x4f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x56, 0x61, 0x6c, 0x75, 0x65, - 0x48, 0x00, 0x52, 0x0f, 0x70, 0x69, 0x63, 0x6b, 0x4f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x56, 0x61, - 0x6c, 0x75, 0x65, 0x12, 0x7b, 0x0a, 0x1b, 0x70, 0x69, 0x63, 0x6b, 0x5f, 0x6d, 0x75, 0x6c, 0x74, - 0x69, 0x70, 0x6c, 0x65, 0x5f, 0x6f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x5f, 0x76, 0x61, 0x6c, 0x75, - 0x65, 0x73, 0x18, 0x6b, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x3a, 0x2e, 0x63, 0x31, 0x2e, 0x63, 0x6f, - 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x2e, 0x76, 0x32, 0x2e, 0x54, 0x69, 0x63, 0x6b, 0x65, - 0x74, 0x43, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x50, 0x69, 0x63, 0x6b, - 0x4d, 0x75, 0x6c, 0x74, 0x69, 0x70, 0x6c, 0x65, 0x4f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x56, 0x61, - 0x6c, 0x75, 0x65, 0x73, 0x48, 0x00, 0x52, 0x18, 0x70, 0x69, 0x63, 0x6b, 0x4d, 0x75, 0x6c, 0x74, - 0x69, 0x70, 0x6c, 0x65, 0x4f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x73, - 0x12, 0x52, 0x0a, 0x0c, 0x6e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, - 0x18, 0x6c, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2d, 0x2e, 0x63, 0x31, 0x2e, 0x63, 0x6f, 0x6e, 0x6e, - 0x65, 0x63, 0x74, 0x6f, 0x72, 0x2e, 0x76, 0x32, 0x2e, 0x54, 0x69, 0x63, 0x6b, 0x65, 0x74, 0x43, - 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x4e, 0x75, 0x6d, 0x62, 0x65, 0x72, - 0x56, 0x61, 0x6c, 0x75, 0x65, 0x48, 0x00, 0x52, 0x0b, 0x6e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x56, - 0x61, 0x6c, 0x75, 0x65, 0x12, 0x36, 0x0a, 0x0b, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, - 0x6f, 0x6e, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x67, 0x6f, 0x6f, 0x67, - 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x41, 0x6e, 0x79, 0x52, - 0x0b, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x42, 0x07, 0x0a, 0x05, - 0x76, 0x61, 0x6c, 0x75, 0x65, 0x22, 0x59, 0x0a, 0x1c, 0x54, 0x69, 0x63, 0x6b, 0x65, 0x74, 0x43, - 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, - 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x23, 0x0a, 0x0d, 0x64, - 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x0c, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x56, 0x61, 0x6c, 0x75, 0x65, - 0x22, 0x5e, 0x0a, 0x1d, 0x54, 0x69, 0x63, 0x6b, 0x65, 0x74, 0x43, 0x75, 0x73, 0x74, 0x6f, 0x6d, - 0x46, 0x69, 0x65, 0x6c, 0x64, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x56, 0x61, 0x6c, 0x75, 0x65, - 0x73, 0x12, 0x16, 0x0a, 0x06, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, - 0x09, 0x52, 0x06, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x12, 0x25, 0x0a, 0x0e, 0x64, 0x65, 0x66, - 0x61, 0x75, 0x6c, 0x74, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, - 0x09, 0x52, 0x0d, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x73, - 0x22, 0x32, 0x0a, 0x1a, 0x54, 0x69, 0x63, 0x6b, 0x65, 0x74, 0x43, 0x75, 0x73, 0x74, 0x6f, 0x6d, - 0x46, 0x69, 0x65, 0x6c, 0x64, 0x42, 0x6f, 0x6f, 0x6c, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x14, - 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x05, 0x76, - 0x61, 0x6c, 0x75, 0x65, 0x22, 0x93, 0x01, 0x0a, 0x1c, 0x54, 0x69, 0x63, 0x6b, 0x65, 0x74, 0x43, - 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x4e, 0x75, 0x6d, 0x62, 0x65, 0x72, - 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x31, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, - 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x46, 0x6c, 0x6f, 0x61, 0x74, 0x56, 0x61, 0x6c, 0x75, - 0x65, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x40, 0x0a, 0x0d, 0x64, 0x65, 0x66, 0x61, - 0x75, 0x6c, 0x74, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, - 0x1b, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, - 0x66, 0x2e, 0x46, 0x6c, 0x6f, 0x61, 0x74, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x0c, 0x64, 0x65, - 0x66, 0x61, 0x75, 0x6c, 0x74, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x22, 0x94, 0x01, 0x0a, 0x1f, 0x54, - 0x69, 0x63, 0x6b, 0x65, 0x74, 0x43, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x46, 0x69, 0x65, 0x6c, 0x64, - 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x30, - 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, - 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, - 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, - 0x12, 0x3f, 0x0a, 0x0d, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x5f, 0x76, 0x61, 0x6c, 0x75, - 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, - 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, - 0x61, 0x6d, 0x70, 0x52, 0x0c, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x56, 0x61, 0x6c, 0x75, - 0x65, 0x22, 0x84, 0x01, 0x0a, 0x20, 0x54, 0x69, 0x63, 0x6b, 0x65, 0x74, 0x43, 0x75, 0x73, 0x74, - 0x6f, 0x6d, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x50, 0x69, 0x63, 0x6b, 0x53, 0x74, 0x72, 0x69, 0x6e, - 0x67, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x25, 0x0a, 0x0e, - 0x61, 0x6c, 0x6c, 0x6f, 0x77, 0x65, 0x64, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x18, 0x02, - 0x20, 0x03, 0x28, 0x09, 0x52, 0x0d, 0x61, 0x6c, 0x6c, 0x6f, 0x77, 0x65, 0x64, 0x56, 0x61, 0x6c, - 0x75, 0x65, 0x73, 0x12, 0x23, 0x0a, 0x0d, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x5f, 0x76, - 0x61, 0x6c, 0x75, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x64, 0x65, 0x66, 0x61, - 0x75, 0x6c, 0x74, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x22, 0x91, 0x01, 0x0a, 0x29, 0x54, 0x69, 0x63, - 0x6b, 0x65, 0x74, 0x43, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x50, 0x69, - 0x63, 0x6b, 0x4d, 0x75, 0x6c, 0x74, 0x69, 0x70, 0x6c, 0x65, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, - 0x56, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x12, 0x16, 0x0a, 0x06, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, - 0x18, 0x01, 0x20, 0x03, 0x28, 0x09, 0x52, 0x06, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x12, 0x25, - 0x0a, 0x0e, 0x61, 0x6c, 0x6c, 0x6f, 0x77, 0x65, 0x64, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, - 0x18, 0x02, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0d, 0x61, 0x6c, 0x6c, 0x6f, 0x77, 0x65, 0x64, 0x56, - 0x61, 0x6c, 0x75, 0x65, 0x73, 0x12, 0x25, 0x0a, 0x0e, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, - 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0d, 0x64, - 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x22, 0x91, 0x02, 0x0a, - 0x20, 0x54, 0x69, 0x63, 0x6b, 0x65, 0x74, 0x43, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x46, 0x69, 0x65, - 0x6c, 0x64, 0x50, 0x69, 0x63, 0x6b, 0x4f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x56, 0x61, 0x6c, 0x75, - 0x65, 0x12, 0x43, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, - 0x32, 0x2d, 0x2e, 0x63, 0x31, 0x2e, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x2e, - 0x76, 0x32, 0x2e, 0x54, 0x69, 0x63, 0x6b, 0x65, 0x74, 0x43, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x46, - 0x69, 0x65, 0x6c, 0x64, 0x4f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, - 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x54, 0x0a, 0x0e, 0x61, 0x6c, 0x6c, 0x6f, 0x77, 0x65, - 0x64, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2d, - 0x2e, 0x63, 0x31, 0x2e, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x2e, 0x76, 0x32, - 0x2e, 0x54, 0x69, 0x63, 0x6b, 0x65, 0x74, 0x43, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x46, 0x69, 0x65, - 0x6c, 0x64, 0x4f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x0d, 0x61, - 0x6c, 0x6c, 0x6f, 0x77, 0x65, 0x64, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x12, 0x52, 0x0a, 0x0d, - 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x03, 0x20, - 0x01, 0x28, 0x0b, 0x32, 0x2d, 0x2e, 0x63, 0x31, 0x2e, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, - 0x6f, 0x72, 0x2e, 0x76, 0x32, 0x2e, 0x54, 0x69, 0x63, 0x6b, 0x65, 0x74, 0x43, 0x75, 0x73, 0x74, - 0x6f, 0x6d, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x4f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x56, 0x61, 0x6c, - 0x75, 0x65, 0x52, 0x0c, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x56, 0x61, 0x6c, 0x75, 0x65, - 0x22, 0x9e, 0x02, 0x0a, 0x29, 0x54, 0x69, 0x63, 0x6b, 0x65, 0x74, 0x43, 0x75, 0x73, 0x74, 0x6f, - 0x6d, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x50, 0x69, 0x63, 0x6b, 0x4d, 0x75, 0x6c, 0x74, 0x69, 0x70, - 0x6c, 0x65, 0x4f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x12, 0x45, - 0x0a, 0x06, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2d, - 0x2e, 0x63, 0x31, 0x2e, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x2e, 0x76, 0x32, - 0x2e, 0x54, 0x69, 0x63, 0x6b, 0x65, 0x74, 0x43, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x46, 0x69, 0x65, - 0x6c, 0x64, 0x4f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x06, 0x76, - 0x61, 0x6c, 0x75, 0x65, 0x73, 0x12, 0x54, 0x0a, 0x0e, 0x61, 0x6c, 0x6c, 0x6f, 0x77, 0x65, 0x64, - 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2d, 0x2e, - 0x63, 0x31, 0x2e, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x2e, 0x76, 0x32, 0x2e, - 0x54, 0x69, 0x63, 0x6b, 0x65, 0x74, 0x43, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x46, 0x69, 0x65, 0x6c, - 0x64, 0x4f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x0d, 0x61, 0x6c, - 0x6c, 0x6f, 0x77, 0x65, 0x64, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x12, 0x54, 0x0a, 0x0e, 0x64, - 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x18, 0x03, 0x20, - 0x03, 0x28, 0x0b, 0x32, 0x2d, 0x2e, 0x63, 0x31, 0x2e, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, - 0x6f, 0x72, 0x2e, 0x76, 0x32, 0x2e, 0x54, 0x69, 0x63, 0x6b, 0x65, 0x74, 0x43, 0x75, 0x73, 0x74, - 0x6f, 0x6d, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x4f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x56, 0x61, 0x6c, - 0x75, 0x65, 0x52, 0x0d, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x56, 0x61, 0x6c, 0x75, 0x65, - 0x73, 0x22, 0x51, 0x0a, 0x1c, 0x54, 0x69, 0x63, 0x6b, 0x65, 0x74, 0x43, 0x75, 0x73, 0x74, 0x6f, - 0x6d, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x4f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x56, 0x61, 0x6c, 0x75, - 0x65, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, - 0x64, 0x12, 0x21, 0x0a, 0x0c, 0x64, 0x69, 0x73, 0x70, 0x6c, 0x61, 0x79, 0x5f, 0x6e, 0x61, 0x6d, - 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x69, 0x73, 0x70, 0x6c, 0x61, 0x79, - 0x4e, 0x61, 0x6d, 0x65, 0x22, 0x41, 0x0a, 0x0c, 0x54, 0x69, 0x63, 0x6b, 0x65, 0x74, 0x53, 0x74, - 0x61, 0x74, 0x75, 0x73, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x02, 0x69, 0x64, 0x12, 0x21, 0x0a, 0x0c, 0x64, 0x69, 0x73, 0x70, 0x6c, 0x61, 0x79, 0x5f, - 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x69, 0x73, 0x70, - 0x6c, 0x61, 0x79, 0x4e, 0x61, 0x6d, 0x65, 0x22, 0x6e, 0x0a, 0x24, 0x54, 0x69, 0x63, 0x6b, 0x65, - 0x74, 0x73, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x47, 0x65, 0x74, 0x54, 0x69, 0x63, 0x6b, - 0x65, 0x74, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, - 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, - 0x36, 0x0a, 0x0b, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x02, - 0x20, 0x03, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, - 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x41, 0x6e, 0x79, 0x52, 0x0b, 0x61, 0x6e, 0x6e, 0x6f, - 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x22, 0x96, 0x01, 0x0a, 0x25, 0x54, 0x69, 0x63, 0x6b, - 0x65, 0x74, 0x73, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x47, 0x65, 0x74, 0x54, 0x69, 0x63, - 0x6b, 0x65, 0x74, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, - 0x65, 0x12, 0x35, 0x0a, 0x06, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x0b, 0x32, 0x1d, 0x2e, 0x63, 0x31, 0x2e, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, - 0x2e, 0x76, 0x32, 0x2e, 0x54, 0x69, 0x63, 0x6b, 0x65, 0x74, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, - 0x52, 0x06, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x12, 0x36, 0x0a, 0x0b, 0x61, 0x6e, 0x6e, 0x6f, - 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x14, 0x2e, - 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, - 0x41, 0x6e, 0x79, 0x52, 0x0b, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, - 0x22, 0xb7, 0x01, 0x0a, 0x26, 0x54, 0x69, 0x63, 0x6b, 0x65, 0x74, 0x73, 0x53, 0x65, 0x72, 0x76, - 0x69, 0x63, 0x65, 0x4c, 0x69, 0x73, 0x74, 0x54, 0x69, 0x63, 0x6b, 0x65, 0x74, 0x53, 0x63, 0x68, - 0x65, 0x6d, 0x61, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x27, 0x0a, 0x09, 0x70, - 0x61, 0x67, 0x65, 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x42, 0x0a, - 0xfa, 0x42, 0x07, 0x2a, 0x05, 0x18, 0xfa, 0x01, 0x40, 0x01, 0x52, 0x08, 0x70, 0x61, 0x67, 0x65, - 0x53, 0x69, 0x7a, 0x65, 0x12, 0x2c, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x6f, 0x6b, - 0x65, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x0d, 0xfa, 0x42, 0x0a, 0x72, 0x08, 0x20, - 0x01, 0x28, 0x80, 0x20, 0xd0, 0x01, 0x01, 0x52, 0x09, 0x70, 0x61, 0x67, 0x65, 0x54, 0x6f, 0x6b, - 0x65, 0x6e, 0x12, 0x36, 0x0a, 0x0b, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, - 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, - 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x41, 0x6e, 0x79, 0x52, 0x0b, 0x61, - 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x22, 0xcb, 0x01, 0x0a, 0x27, 0x54, - 0x69, 0x63, 0x6b, 0x65, 0x74, 0x73, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x4c, 0x69, 0x73, - 0x74, 0x54, 0x69, 0x63, 0x6b, 0x65, 0x74, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x73, 0x52, 0x65, - 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x31, 0x0a, 0x04, 0x6c, 0x69, 0x73, 0x74, 0x18, 0x01, - 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x63, 0x31, 0x2e, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, - 0x74, 0x6f, 0x72, 0x2e, 0x76, 0x32, 0x2e, 0x54, 0x69, 0x63, 0x6b, 0x65, 0x74, 0x53, 0x63, 0x68, - 0x65, 0x6d, 0x61, 0x52, 0x04, 0x6c, 0x69, 0x73, 0x74, 0x12, 0x35, 0x0a, 0x0f, 0x6e, 0x65, 0x78, - 0x74, 0x5f, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x02, 0x20, 0x01, - 0x28, 0x09, 0x42, 0x0d, 0xfa, 0x42, 0x0a, 0x72, 0x08, 0x20, 0x01, 0x28, 0x80, 0x20, 0xd0, 0x01, - 0x01, 0x52, 0x0d, 0x6e, 0x65, 0x78, 0x74, 0x50, 0x61, 0x67, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, - 0x12, 0x36, 0x0a, 0x0b, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, - 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, - 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x41, 0x6e, 0x79, 0x52, 0x0b, 0x61, 0x6e, 0x6e, - 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x22, 0x89, 0x06, 0x0a, 0x06, 0x54, 0x69, 0x63, - 0x6b, 0x65, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x02, 0x69, 0x64, 0x12, 0x21, 0x0a, 0x0c, 0x64, 0x69, 0x73, 0x70, 0x6c, 0x61, 0x79, 0x5f, 0x6e, - 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x69, 0x73, 0x70, 0x6c, - 0x61, 0x79, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x20, 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, - 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x65, 0x73, - 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x37, 0x0a, 0x09, 0x61, 0x73, 0x73, 0x69, - 0x67, 0x6e, 0x65, 0x65, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x63, 0x31, - 0x2e, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x2e, 0x76, 0x32, 0x2e, 0x52, 0x65, - 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x52, 0x09, 0x61, 0x73, 0x73, 0x69, 0x67, 0x6e, 0x65, 0x65, - 0x73, 0x12, 0x35, 0x0a, 0x08, 0x72, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x72, 0x18, 0x05, 0x20, - 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x63, 0x31, 0x2e, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, - 0x6f, 0x72, 0x2e, 0x76, 0x32, 0x2e, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x52, 0x08, - 0x72, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x72, 0x12, 0x35, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, - 0x75, 0x73, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x63, 0x31, 0x2e, 0x63, 0x6f, - 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x2e, 0x76, 0x32, 0x2e, 0x54, 0x69, 0x63, 0x6b, 0x65, - 0x74, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, - 0x2f, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, - 0x63, 0x31, 0x2e, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x2e, 0x76, 0x32, 0x2e, - 0x54, 0x69, 0x63, 0x6b, 0x65, 0x74, 0x54, 0x79, 0x70, 0x65, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, - 0x12, 0x16, 0x0a, 0x06, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x18, 0x09, 0x20, 0x03, 0x28, 0x09, - 0x52, 0x06, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x12, 0x10, 0x0a, 0x03, 0x75, 0x72, 0x6c, 0x18, - 0x0a, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x75, 0x72, 0x6c, 0x12, 0x4e, 0x0a, 0x0d, 0x63, 0x75, - 0x73, 0x74, 0x6f, 0x6d, 0x5f, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x73, 0x18, 0x0b, 0x20, 0x03, 0x28, - 0x0b, 0x32, 0x29, 0x2e, 0x63, 0x31, 0x2e, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, - 0x2e, 0x76, 0x32, 0x2e, 0x54, 0x69, 0x63, 0x6b, 0x65, 0x74, 0x2e, 0x43, 0x75, 0x73, 0x74, 0x6f, - 0x6d, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x0c, 0x63, 0x75, - 0x73, 0x74, 0x6f, 0x6d, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x73, 0x12, 0x39, 0x0a, 0x0a, 0x63, 0x72, - 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x61, 0x74, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, - 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, - 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x09, 0x63, 0x72, 0x65, 0x61, - 0x74, 0x65, 0x64, 0x41, 0x74, 0x12, 0x39, 0x0a, 0x0a, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x64, - 0x5f, 0x61, 0x74, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, - 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, - 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x09, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x64, 0x41, 0x74, - 0x12, 0x3d, 0x0a, 0x0c, 0x63, 0x6f, 0x6d, 0x70, 0x6c, 0x65, 0x74, 0x65, 0x64, 0x5f, 0x61, 0x74, - 0x18, 0x0e, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, - 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, - 0x6d, 0x70, 0x52, 0x0b, 0x63, 0x6f, 0x6d, 0x70, 0x6c, 0x65, 0x74, 0x65, 0x64, 0x41, 0x74, 0x12, - 0x3e, 0x0a, 0x0d, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x65, 0x64, 0x5f, 0x66, 0x6f, 0x72, - 0x18, 0x0f, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x63, 0x31, 0x2e, 0x63, 0x6f, 0x6e, 0x6e, - 0x65, 0x63, 0x74, 0x6f, 0x72, 0x2e, 0x76, 0x32, 0x2e, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, - 0x65, 0x52, 0x0c, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x65, 0x64, 0x46, 0x6f, 0x72, 0x1a, - 0x63, 0x0a, 0x11, 0x43, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x73, 0x45, - 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x38, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, - 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x63, 0x31, 0x2e, 0x63, 0x6f, 0x6e, 0x6e, 0x65, - 0x63, 0x74, 0x6f, 0x72, 0x2e, 0x76, 0x32, 0x2e, 0x54, 0x69, 0x63, 0x6b, 0x65, 0x74, 0x43, 0x75, - 0x73, 0x74, 0x6f, 0x6d, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, - 0x3a, 0x02, 0x38, 0x01, 0x22, 0x3f, 0x0a, 0x0a, 0x54, 0x69, 0x63, 0x6b, 0x65, 0x74, 0x54, 0x79, - 0x70, 0x65, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, - 0x69, 0x64, 0x12, 0x21, 0x0a, 0x0c, 0x64, 0x69, 0x73, 0x70, 0x6c, 0x61, 0x79, 0x5f, 0x6e, 0x61, - 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x69, 0x73, 0x70, 0x6c, 0x61, - 0x79, 0x4e, 0x61, 0x6d, 0x65, 0x22, 0xd0, 0x03, 0x0a, 0x0d, 0x54, 0x69, 0x63, 0x6b, 0x65, 0x74, - 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x21, 0x0a, 0x0c, 0x64, 0x69, 0x73, 0x70, 0x6c, - 0x61, 0x79, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, - 0x69, 0x73, 0x70, 0x6c, 0x61, 0x79, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x20, 0x0a, 0x0b, 0x64, 0x65, - 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x35, 0x0a, 0x06, - 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x63, - 0x31, 0x2e, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x2e, 0x76, 0x32, 0x2e, 0x54, - 0x69, 0x63, 0x6b, 0x65, 0x74, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x06, 0x73, 0x74, 0x61, - 0x74, 0x75, 0x73, 0x12, 0x2f, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, - 0x0b, 0x32, 0x1b, 0x2e, 0x63, 0x31, 0x2e, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, - 0x2e, 0x76, 0x32, 0x2e, 0x54, 0x69, 0x63, 0x6b, 0x65, 0x74, 0x54, 0x79, 0x70, 0x65, 0x52, 0x04, - 0x74, 0x79, 0x70, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x18, 0x05, - 0x20, 0x03, 0x28, 0x09, 0x52, 0x06, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x12, 0x55, 0x0a, 0x0d, - 0x63, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x5f, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x73, 0x18, 0x06, 0x20, - 0x03, 0x28, 0x0b, 0x32, 0x30, 0x2e, 0x63, 0x31, 0x2e, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, - 0x6f, 0x72, 0x2e, 0x76, 0x32, 0x2e, 0x54, 0x69, 0x63, 0x6b, 0x65, 0x74, 0x52, 0x65, 0x71, 0x75, - 0x65, 0x73, 0x74, 0x2e, 0x43, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x73, - 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x0c, 0x63, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x46, 0x69, 0x65, - 0x6c, 0x64, 0x73, 0x12, 0x3e, 0x0a, 0x0d, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x65, 0x64, - 0x5f, 0x66, 0x6f, 0x72, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x63, 0x31, 0x2e, - 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x2e, 0x76, 0x32, 0x2e, 0x52, 0x65, 0x73, - 0x6f, 0x75, 0x72, 0x63, 0x65, 0x52, 0x0c, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x65, 0x64, - 0x46, 0x6f, 0x72, 0x1a, 0x63, 0x0a, 0x11, 0x43, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x46, 0x69, 0x65, - 0x6c, 0x64, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x38, 0x0a, 0x05, 0x76, 0x61, - 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x63, 0x31, 0x2e, 0x63, - 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x2e, 0x76, 0x32, 0x2e, 0x54, 0x69, 0x63, 0x6b, - 0x65, 0x74, 0x43, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x52, 0x05, 0x76, - 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0xcc, 0x01, 0x0a, 0x21, 0x54, 0x69, 0x63, - 0x6b, 0x65, 0x74, 0x73, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x43, 0x72, 0x65, 0x61, 0x74, - 0x65, 0x54, 0x69, 0x63, 0x6b, 0x65, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x38, - 0x0a, 0x07, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, - 0x1e, 0x2e, 0x63, 0x31, 0x2e, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x2e, 0x76, - 0x32, 0x2e, 0x54, 0x69, 0x63, 0x6b, 0x65, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x52, - 0x07, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x35, 0x0a, 0x06, 0x73, 0x63, 0x68, 0x65, - 0x6d, 0x61, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x63, 0x31, 0x2e, 0x63, 0x6f, - 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x2e, 0x76, 0x32, 0x2e, 0x54, 0x69, 0x63, 0x6b, 0x65, - 0x74, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x52, 0x06, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x12, - 0x36, 0x0a, 0x0b, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x08, - 0x20, 0x03, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, - 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x41, 0x6e, 0x79, 0x52, 0x0b, 0x61, 0x6e, 0x6e, 0x6f, - 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x22, 0xa3, 0x01, 0x0a, 0x22, 0x54, 0x69, 0x63, 0x6b, - 0x65, 0x74, 0x73, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, - 0x54, 0x69, 0x63, 0x6b, 0x65, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2f, - 0x0a, 0x06, 0x74, 0x69, 0x63, 0x6b, 0x65, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, - 0x2e, 0x63, 0x31, 0x2e, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x2e, 0x76, 0x32, - 0x2e, 0x54, 0x69, 0x63, 0x6b, 0x65, 0x74, 0x52, 0x06, 0x74, 0x69, 0x63, 0x6b, 0x65, 0x74, 0x12, - 0x36, 0x0a, 0x0b, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x02, - 0x20, 0x03, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, - 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x41, 0x6e, 0x79, 0x52, 0x0b, 0x61, 0x6e, 0x6e, 0x6f, - 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x14, 0x0a, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, - 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x22, 0x68, 0x0a, - 0x1e, 0x54, 0x69, 0x63, 0x6b, 0x65, 0x74, 0x73, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x47, - 0x65, 0x74, 0x54, 0x69, 0x63, 0x6b, 0x65, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, - 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, - 0x36, 0x0a, 0x0b, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x02, - 0x20, 0x03, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, - 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x41, 0x6e, 0x79, 0x52, 0x0b, 0x61, 0x6e, 0x6e, 0x6f, - 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x22, 0xa0, 0x01, 0x0a, 0x1f, 0x54, 0x69, 0x63, 0x6b, - 0x65, 0x74, 0x73, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x47, 0x65, 0x74, 0x54, 0x69, 0x63, - 0x6b, 0x65, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2f, 0x0a, 0x06, 0x74, - 0x69, 0x63, 0x6b, 0x65, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x63, 0x31, - 0x2e, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x2e, 0x76, 0x32, 0x2e, 0x54, 0x69, - 0x63, 0x6b, 0x65, 0x74, 0x52, 0x06, 0x74, 0x69, 0x63, 0x6b, 0x65, 0x74, 0x12, 0x36, 0x0a, 0x0b, - 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, - 0x0b, 0x32, 0x14, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, - 0x62, 0x75, 0x66, 0x2e, 0x41, 0x6e, 0x79, 0x52, 0x0b, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, - 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x14, 0x0a, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x18, 0x03, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x22, 0x85, 0x01, 0x0a, 0x26, 0x54, - 0x69, 0x63, 0x6b, 0x65, 0x74, 0x73, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x42, 0x75, 0x6c, - 0x6b, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x54, 0x69, 0x63, 0x6b, 0x65, 0x74, 0x73, 0x52, 0x65, - 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x5b, 0x0a, 0x0f, 0x74, 0x69, 0x63, 0x6b, 0x65, 0x74, 0x5f, - 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x32, - 0x2e, 0x63, 0x31, 0x2e, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x2e, 0x76, 0x32, - 0x2e, 0x54, 0x69, 0x63, 0x6b, 0x65, 0x74, 0x73, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x43, - 0x72, 0x65, 0x61, 0x74, 0x65, 0x54, 0x69, 0x63, 0x6b, 0x65, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, - 0x73, 0x74, 0x52, 0x0e, 0x74, 0x69, 0x63, 0x6b, 0x65, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x73, 0x22, 0x78, 0x0a, 0x27, 0x54, 0x69, 0x63, 0x6b, 0x65, 0x74, 0x73, 0x53, 0x65, 0x72, - 0x76, 0x69, 0x63, 0x65, 0x42, 0x75, 0x6c, 0x6b, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x54, 0x69, - 0x63, 0x6b, 0x65, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x4d, 0x0a, - 0x07, 0x74, 0x69, 0x63, 0x6b, 0x65, 0x74, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x33, - 0x2e, 0x63, 0x31, 0x2e, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x2e, 0x76, 0x32, - 0x2e, 0x54, 0x69, 0x63, 0x6b, 0x65, 0x74, 0x73, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x43, - 0x72, 0x65, 0x61, 0x74, 0x65, 0x54, 0x69, 0x63, 0x6b, 0x65, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, - 0x6e, 0x73, 0x65, 0x52, 0x07, 0x74, 0x69, 0x63, 0x6b, 0x65, 0x74, 0x73, 0x22, 0x7f, 0x0a, 0x23, - 0x54, 0x69, 0x63, 0x6b, 0x65, 0x74, 0x73, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x42, 0x75, - 0x6c, 0x6b, 0x47, 0x65, 0x74, 0x54, 0x69, 0x63, 0x6b, 0x65, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, - 0x65, 0x73, 0x74, 0x12, 0x58, 0x0a, 0x0f, 0x74, 0x69, 0x63, 0x6b, 0x65, 0x74, 0x5f, 0x72, 0x65, - 0x71, 0x75, 0x65, 0x73, 0x74, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2f, 0x2e, 0x63, - 0x31, 0x2e, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x2e, 0x76, 0x32, 0x2e, 0x54, - 0x69, 0x63, 0x6b, 0x65, 0x74, 0x73, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x47, 0x65, 0x74, - 0x54, 0x69, 0x63, 0x6b, 0x65, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x52, 0x0e, 0x74, - 0x69, 0x63, 0x6b, 0x65, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x73, 0x22, 0x72, 0x0a, - 0x24, 0x54, 0x69, 0x63, 0x6b, 0x65, 0x74, 0x73, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x42, - 0x75, 0x6c, 0x6b, 0x47, 0x65, 0x74, 0x54, 0x69, 0x63, 0x6b, 0x65, 0x74, 0x73, 0x52, 0x65, 0x73, - 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x4a, 0x0a, 0x07, 0x74, 0x69, 0x63, 0x6b, 0x65, 0x74, 0x73, - 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x30, 0x2e, 0x63, 0x31, 0x2e, 0x63, 0x6f, 0x6e, 0x6e, - 0x65, 0x63, 0x74, 0x6f, 0x72, 0x2e, 0x76, 0x32, 0x2e, 0x54, 0x69, 0x63, 0x6b, 0x65, 0x74, 0x73, - 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x47, 0x65, 0x74, 0x54, 0x69, 0x63, 0x6b, 0x65, 0x74, - 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x52, 0x07, 0x74, 0x69, 0x63, 0x6b, 0x65, 0x74, - 0x73, 0x32, 0x8d, 0x06, 0x0a, 0x0e, 0x54, 0x69, 0x63, 0x6b, 0x65, 0x74, 0x73, 0x53, 0x65, 0x72, - 0x76, 0x69, 0x63, 0x65, 0x12, 0x77, 0x0a, 0x0c, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x54, 0x69, - 0x63, 0x6b, 0x65, 0x74, 0x12, 0x32, 0x2e, 0x63, 0x31, 0x2e, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, - 0x74, 0x6f, 0x72, 0x2e, 0x76, 0x32, 0x2e, 0x54, 0x69, 0x63, 0x6b, 0x65, 0x74, 0x73, 0x53, 0x65, - 0x72, 0x76, 0x69, 0x63, 0x65, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x54, 0x69, 0x63, 0x6b, 0x65, - 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x33, 0x2e, 0x63, 0x31, 0x2e, 0x63, 0x6f, - 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x2e, 0x76, 0x32, 0x2e, 0x54, 0x69, 0x63, 0x6b, 0x65, - 0x74, 0x73, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x54, - 0x69, 0x63, 0x6b, 0x65, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x6e, 0x0a, - 0x09, 0x47, 0x65, 0x74, 0x54, 0x69, 0x63, 0x6b, 0x65, 0x74, 0x12, 0x2f, 0x2e, 0x63, 0x31, 0x2e, - 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x2e, 0x76, 0x32, 0x2e, 0x54, 0x69, 0x63, - 0x6b, 0x65, 0x74, 0x73, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x47, 0x65, 0x74, 0x54, 0x69, - 0x63, 0x6b, 0x65, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x30, 0x2e, 0x63, 0x31, - 0x2e, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x2e, 0x76, 0x32, 0x2e, 0x54, 0x69, - 0x63, 0x6b, 0x65, 0x74, 0x73, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x47, 0x65, 0x74, 0x54, - 0x69, 0x63, 0x6b, 0x65, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x86, 0x01, - 0x0a, 0x11, 0x4c, 0x69, 0x73, 0x74, 0x54, 0x69, 0x63, 0x6b, 0x65, 0x74, 0x53, 0x63, 0x68, 0x65, - 0x6d, 0x61, 0x73, 0x12, 0x37, 0x2e, 0x63, 0x31, 0x2e, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, - 0x6f, 0x72, 0x2e, 0x76, 0x32, 0x2e, 0x54, 0x69, 0x63, 0x6b, 0x65, 0x74, 0x73, 0x53, 0x65, 0x72, - 0x76, 0x69, 0x63, 0x65, 0x4c, 0x69, 0x73, 0x74, 0x54, 0x69, 0x63, 0x6b, 0x65, 0x74, 0x53, 0x63, - 0x68, 0x65, 0x6d, 0x61, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x38, 0x2e, 0x63, - 0x31, 0x2e, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x2e, 0x76, 0x32, 0x2e, 0x54, - 0x69, 0x63, 0x6b, 0x65, 0x74, 0x73, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x4c, 0x69, 0x73, - 0x74, 0x54, 0x69, 0x63, 0x6b, 0x65, 0x74, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x73, 0x52, 0x65, - 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x80, 0x01, 0x0a, 0x0f, 0x47, 0x65, 0x74, 0x54, 0x69, - 0x63, 0x6b, 0x65, 0x74, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x12, 0x35, 0x2e, 0x63, 0x31, 0x2e, - 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x2e, 0x76, 0x32, 0x2e, 0x54, 0x69, 0x63, - 0x6b, 0x65, 0x74, 0x73, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x47, 0x65, 0x74, 0x54, 0x69, - 0x63, 0x6b, 0x65, 0x74, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x1a, 0x36, 0x2e, 0x63, 0x31, 0x2e, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, - 0x2e, 0x76, 0x32, 0x2e, 0x54, 0x69, 0x63, 0x6b, 0x65, 0x74, 0x73, 0x53, 0x65, 0x72, 0x76, 0x69, - 0x63, 0x65, 0x47, 0x65, 0x74, 0x54, 0x69, 0x63, 0x6b, 0x65, 0x74, 0x53, 0x63, 0x68, 0x65, 0x6d, - 0x61, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x86, 0x01, 0x0a, 0x11, 0x42, 0x75, - 0x6c, 0x6b, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x54, 0x69, 0x63, 0x6b, 0x65, 0x74, 0x73, 0x12, - 0x37, 0x2e, 0x63, 0x31, 0x2e, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x2e, 0x76, - 0x32, 0x2e, 0x54, 0x69, 0x63, 0x6b, 0x65, 0x74, 0x73, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, - 0x42, 0x75, 0x6c, 0x6b, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x54, 0x69, 0x63, 0x6b, 0x65, 0x74, - 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x38, 0x2e, 0x63, 0x31, 0x2e, 0x63, 0x6f, - 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x2e, 0x76, 0x32, 0x2e, 0x54, 0x69, 0x63, 0x6b, 0x65, - 0x74, 0x73, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x42, 0x75, 0x6c, 0x6b, 0x43, 0x72, 0x65, - 0x61, 0x74, 0x65, 0x54, 0x69, 0x63, 0x6b, 0x65, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, - 0x73, 0x65, 0x12, 0x7d, 0x0a, 0x0e, 0x42, 0x75, 0x6c, 0x6b, 0x47, 0x65, 0x74, 0x54, 0x69, 0x63, - 0x6b, 0x65, 0x74, 0x73, 0x12, 0x34, 0x2e, 0x63, 0x31, 0x2e, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, - 0x74, 0x6f, 0x72, 0x2e, 0x76, 0x32, 0x2e, 0x54, 0x69, 0x63, 0x6b, 0x65, 0x74, 0x73, 0x53, 0x65, - 0x72, 0x76, 0x69, 0x63, 0x65, 0x42, 0x75, 0x6c, 0x6b, 0x47, 0x65, 0x74, 0x54, 0x69, 0x63, 0x6b, - 0x65, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x35, 0x2e, 0x63, 0x31, 0x2e, - 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x2e, 0x76, 0x32, 0x2e, 0x54, 0x69, 0x63, - 0x6b, 0x65, 0x74, 0x73, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x42, 0x75, 0x6c, 0x6b, 0x47, - 0x65, 0x74, 0x54, 0x69, 0x63, 0x6b, 0x65, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, - 0x65, 0x42, 0x36, 0x5a, 0x34, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, - 0x63, 0x6f, 0x6e, 0x64, 0x75, 0x63, 0x74, 0x6f, 0x72, 0x6f, 0x6e, 0x65, 0x2f, 0x62, 0x61, 0x74, - 0x6f, 0x6e, 0x2d, 0x73, 0x64, 0x6b, 0x2f, 0x70, 0x62, 0x2f, 0x63, 0x31, 0x2f, 0x63, 0x6f, 0x6e, - 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x2f, 0x76, 0x32, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, - 0x33, -}) - -var ( - file_c1_connector_v2_ticket_proto_rawDescOnce sync.Once - file_c1_connector_v2_ticket_proto_rawDescData []byte -) +type TicketsServiceBulkGetTicketsResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Tickets []*TicketsServiceGetTicketResponse +} -func file_c1_connector_v2_ticket_proto_rawDescGZIP() []byte { - file_c1_connector_v2_ticket_proto_rawDescOnce.Do(func() { - file_c1_connector_v2_ticket_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_c1_connector_v2_ticket_proto_rawDesc), len(file_c1_connector_v2_ticket_proto_rawDesc))) - }) - return file_c1_connector_v2_ticket_proto_rawDescData +func (b0 TicketsServiceBulkGetTicketsResponse_builder) Build() *TicketsServiceBulkGetTicketsResponse { + m0 := &TicketsServiceBulkGetTicketsResponse{} + b, x := &b0, m0 + _, _ = b, x + x.Tickets = b.Tickets + return m0 } +var File_c1_connector_v2_ticket_proto protoreflect.FileDescriptor + +const file_c1_connector_v2_ticket_proto_rawDesc = "" + + "\n" + + "\x1cc1/connector/v2/ticket.proto\x12\x0fc1.connector.v2\x1a\x1ec1/connector/v2/resource.proto\x1a\x19google/protobuf/any.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x1egoogle/protobuf/wrappers.proto\x1a\x17validate/validate.proto\"\xa2\x03\n" + + "\fTicketSchema\x12\x0e\n" + + "\x02id\x18\x01 \x01(\tR\x02id\x12!\n" + + "\fdisplay_name\x18\x02 \x01(\tR\vdisplayName\x121\n" + + "\x05types\x18\x03 \x03(\v2\x1b.c1.connector.v2.TicketTypeR\x05types\x129\n" + + "\bstatuses\x18\x04 \x03(\v2\x1d.c1.connector.v2.TicketStatusR\bstatuses\x12T\n" + + "\rcustom_fields\x18\x05 \x03(\v2/.c1.connector.v2.TicketSchema.CustomFieldsEntryR\fcustomFields\x126\n" + + "\vannotations\x18\x06 \x03(\v2\x14.google.protobuf.AnyR\vannotations\x1ac\n" + + "\x11CustomFieldsEntry\x12\x10\n" + + "\x03key\x18\x01 \x01(\tR\x03key\x128\n" + + "\x05value\x18\x02 \x01(\v2\".c1.connector.v2.TicketCustomFieldR\x05value:\x028\x01\"\x89\b\n" + + "\x11TicketCustomField\x12\x0e\n" + + "\x02id\x18\x01 \x01(\tR\x02id\x12!\n" + + "\fdisplay_name\x18\x02 \x01(\tR\vdisplayName\x12\x1a\n" + + "\brequired\x18\x03 \x01(\bR\brequired\x12R\n" + + "\fstring_value\x18d \x01(\v2-.c1.connector.v2.TicketCustomFieldStringValueH\x00R\vstringValue\x12U\n" + + "\rstring_values\x18e \x01(\v2..c1.connector.v2.TicketCustomFieldStringValuesH\x00R\fstringValues\x12L\n" + + "\n" + + "bool_value\x18f \x01(\v2+.c1.connector.v2.TicketCustomFieldBoolValueH\x00R\tboolValue\x12[\n" + + "\x0ftimestamp_value\x18g \x01(\v20.c1.connector.v2.TicketCustomFieldTimestampValueH\x00R\x0etimestampValue\x12_\n" + + "\x11pick_string_value\x18h \x01(\v21.c1.connector.v2.TicketCustomFieldPickStringValueH\x00R\x0fpickStringValue\x12{\n" + + "\x1bpick_multiple_string_values\x18i \x01(\v2:.c1.connector.v2.TicketCustomFieldPickMultipleStringValuesH\x00R\x18pickMultipleStringValues\x12_\n" + + "\x11pick_object_value\x18j \x01(\v21.c1.connector.v2.TicketCustomFieldPickObjectValueH\x00R\x0fpickObjectValue\x12{\n" + + "\x1bpick_multiple_object_values\x18k \x01(\v2:.c1.connector.v2.TicketCustomFieldPickMultipleObjectValuesH\x00R\x18pickMultipleObjectValues\x12R\n" + + "\fnumber_value\x18l \x01(\v2-.c1.connector.v2.TicketCustomFieldNumberValueH\x00R\vnumberValue\x126\n" + + "\vannotations\x18\x04 \x03(\v2\x14.google.protobuf.AnyR\vannotationsB\a\n" + + "\x05value\"Y\n" + + "\x1cTicketCustomFieldStringValue\x12\x14\n" + + "\x05value\x18\x01 \x01(\tR\x05value\x12#\n" + + "\rdefault_value\x18\x02 \x01(\tR\fdefaultValue\"^\n" + + "\x1dTicketCustomFieldStringValues\x12\x16\n" + + "\x06values\x18\x01 \x03(\tR\x06values\x12%\n" + + "\x0edefault_values\x18\x02 \x03(\tR\rdefaultValues\"2\n" + + "\x1aTicketCustomFieldBoolValue\x12\x14\n" + + "\x05value\x18\x01 \x01(\bR\x05value\"\x93\x01\n" + + "\x1cTicketCustomFieldNumberValue\x121\n" + + "\x05value\x18\x01 \x01(\v2\x1b.google.protobuf.FloatValueR\x05value\x12@\n" + + "\rdefault_value\x18\x02 \x01(\v2\x1b.google.protobuf.FloatValueR\fdefaultValue\"\x94\x01\n" + + "\x1fTicketCustomFieldTimestampValue\x120\n" + + "\x05value\x18\x01 \x01(\v2\x1a.google.protobuf.TimestampR\x05value\x12?\n" + + "\rdefault_value\x18\x02 \x01(\v2\x1a.google.protobuf.TimestampR\fdefaultValue\"\x84\x01\n" + + " TicketCustomFieldPickStringValue\x12\x14\n" + + "\x05value\x18\x01 \x01(\tR\x05value\x12%\n" + + "\x0eallowed_values\x18\x02 \x03(\tR\rallowedValues\x12#\n" + + "\rdefault_value\x18\x03 \x01(\tR\fdefaultValue\"\x91\x01\n" + + ")TicketCustomFieldPickMultipleStringValues\x12\x16\n" + + "\x06values\x18\x01 \x03(\tR\x06values\x12%\n" + + "\x0eallowed_values\x18\x02 \x03(\tR\rallowedValues\x12%\n" + + "\x0edefault_values\x18\x03 \x03(\tR\rdefaultValues\"\x91\x02\n" + + " TicketCustomFieldPickObjectValue\x12C\n" + + "\x05value\x18\x01 \x01(\v2-.c1.connector.v2.TicketCustomFieldObjectValueR\x05value\x12T\n" + + "\x0eallowed_values\x18\x02 \x03(\v2-.c1.connector.v2.TicketCustomFieldObjectValueR\rallowedValues\x12R\n" + + "\rdefault_value\x18\x03 \x01(\v2-.c1.connector.v2.TicketCustomFieldObjectValueR\fdefaultValue\"\x9e\x02\n" + + ")TicketCustomFieldPickMultipleObjectValues\x12E\n" + + "\x06values\x18\x01 \x03(\v2-.c1.connector.v2.TicketCustomFieldObjectValueR\x06values\x12T\n" + + "\x0eallowed_values\x18\x02 \x03(\v2-.c1.connector.v2.TicketCustomFieldObjectValueR\rallowedValues\x12T\n" + + "\x0edefault_values\x18\x03 \x03(\v2-.c1.connector.v2.TicketCustomFieldObjectValueR\rdefaultValues\"Q\n" + + "\x1cTicketCustomFieldObjectValue\x12\x0e\n" + + "\x02id\x18\x01 \x01(\tR\x02id\x12!\n" + + "\fdisplay_name\x18\x02 \x01(\tR\vdisplayName\"A\n" + + "\fTicketStatus\x12\x0e\n" + + "\x02id\x18\x01 \x01(\tR\x02id\x12!\n" + + "\fdisplay_name\x18\x02 \x01(\tR\vdisplayName\"n\n" + + "$TicketsServiceGetTicketSchemaRequest\x12\x0e\n" + + "\x02id\x18\x01 \x01(\tR\x02id\x126\n" + + "\vannotations\x18\x02 \x03(\v2\x14.google.protobuf.AnyR\vannotations\"\x96\x01\n" + + "%TicketsServiceGetTicketSchemaResponse\x125\n" + + "\x06schema\x18\x01 \x01(\v2\x1d.c1.connector.v2.TicketSchemaR\x06schema\x126\n" + + "\vannotations\x18\x02 \x03(\v2\x14.google.protobuf.AnyR\vannotations\"\xb7\x01\n" + + "&TicketsServiceListTicketSchemasRequest\x12'\n" + + "\tpage_size\x18\x01 \x01(\rB\n" + + "\xfaB\a*\x05\x18\xfa\x01@\x01R\bpageSize\x12,\n" + + "\n" + + "page_token\x18\x02 \x01(\tB\r\xfaB\n" + + "r\b \x01(\x80 \xd0\x01\x01R\tpageToken\x126\n" + + "\vannotations\x18\x03 \x03(\v2\x14.google.protobuf.AnyR\vannotations\"\xcb\x01\n" + + "'TicketsServiceListTicketSchemasResponse\x121\n" + + "\x04list\x18\x01 \x03(\v2\x1d.c1.connector.v2.TicketSchemaR\x04list\x125\n" + + "\x0fnext_page_token\x18\x02 \x01(\tB\r\xfaB\n" + + "r\b \x01(\x80 \xd0\x01\x01R\rnextPageToken\x126\n" + + "\vannotations\x18\x03 \x03(\v2\x14.google.protobuf.AnyR\vannotations\"\x89\x06\n" + + "\x06Ticket\x12\x0e\n" + + "\x02id\x18\x01 \x01(\tR\x02id\x12!\n" + + "\fdisplay_name\x18\x02 \x01(\tR\vdisplayName\x12 \n" + + "\vdescription\x18\x03 \x01(\tR\vdescription\x127\n" + + "\tassignees\x18\x04 \x03(\v2\x19.c1.connector.v2.ResourceR\tassignees\x125\n" + + "\breporter\x18\x05 \x01(\v2\x19.c1.connector.v2.ResourceR\breporter\x125\n" + + "\x06status\x18\a \x01(\v2\x1d.c1.connector.v2.TicketStatusR\x06status\x12/\n" + + "\x04type\x18\b \x01(\v2\x1b.c1.connector.v2.TicketTypeR\x04type\x12\x16\n" + + "\x06labels\x18\t \x03(\tR\x06labels\x12\x10\n" + + "\x03url\x18\n" + + " \x01(\tR\x03url\x12N\n" + + "\rcustom_fields\x18\v \x03(\v2).c1.connector.v2.Ticket.CustomFieldsEntryR\fcustomFields\x129\n" + + "\n" + + "created_at\x18\f \x01(\v2\x1a.google.protobuf.TimestampR\tcreatedAt\x129\n" + + "\n" + + "updated_at\x18\r \x01(\v2\x1a.google.protobuf.TimestampR\tupdatedAt\x12=\n" + + "\fcompleted_at\x18\x0e \x01(\v2\x1a.google.protobuf.TimestampR\vcompletedAt\x12>\n" + + "\rrequested_for\x18\x0f \x01(\v2\x19.c1.connector.v2.ResourceR\frequestedFor\x1ac\n" + + "\x11CustomFieldsEntry\x12\x10\n" + + "\x03key\x18\x01 \x01(\tR\x03key\x128\n" + + "\x05value\x18\x02 \x01(\v2\".c1.connector.v2.TicketCustomFieldR\x05value:\x028\x01\"?\n" + + "\n" + + "TicketType\x12\x0e\n" + + "\x02id\x18\x01 \x01(\tR\x02id\x12!\n" + + "\fdisplay_name\x18\x02 \x01(\tR\vdisplayName\"\xd0\x03\n" + + "\rTicketRequest\x12!\n" + + "\fdisplay_name\x18\x01 \x01(\tR\vdisplayName\x12 \n" + + "\vdescription\x18\x02 \x01(\tR\vdescription\x125\n" + + "\x06status\x18\x03 \x01(\v2\x1d.c1.connector.v2.TicketStatusR\x06status\x12/\n" + + "\x04type\x18\x04 \x01(\v2\x1b.c1.connector.v2.TicketTypeR\x04type\x12\x16\n" + + "\x06labels\x18\x05 \x03(\tR\x06labels\x12U\n" + + "\rcustom_fields\x18\x06 \x03(\v20.c1.connector.v2.TicketRequest.CustomFieldsEntryR\fcustomFields\x12>\n" + + "\rrequested_for\x18\a \x01(\v2\x19.c1.connector.v2.ResourceR\frequestedFor\x1ac\n" + + "\x11CustomFieldsEntry\x12\x10\n" + + "\x03key\x18\x01 \x01(\tR\x03key\x128\n" + + "\x05value\x18\x02 \x01(\v2\".c1.connector.v2.TicketCustomFieldR\x05value:\x028\x01\"\xcc\x01\n" + + "!TicketsServiceCreateTicketRequest\x128\n" + + "\arequest\x18\x01 \x01(\v2\x1e.c1.connector.v2.TicketRequestR\arequest\x125\n" + + "\x06schema\x18\x02 \x01(\v2\x1d.c1.connector.v2.TicketSchemaR\x06schema\x126\n" + + "\vannotations\x18\b \x03(\v2\x14.google.protobuf.AnyR\vannotations\"\xa3\x01\n" + + "\"TicketsServiceCreateTicketResponse\x12/\n" + + "\x06ticket\x18\x01 \x01(\v2\x17.c1.connector.v2.TicketR\x06ticket\x126\n" + + "\vannotations\x18\x02 \x03(\v2\x14.google.protobuf.AnyR\vannotations\x12\x14\n" + + "\x05error\x18\x03 \x01(\tR\x05error\"h\n" + + "\x1eTicketsServiceGetTicketRequest\x12\x0e\n" + + "\x02id\x18\x01 \x01(\tR\x02id\x126\n" + + "\vannotations\x18\x02 \x03(\v2\x14.google.protobuf.AnyR\vannotations\"\xa0\x01\n" + + "\x1fTicketsServiceGetTicketResponse\x12/\n" + + "\x06ticket\x18\x01 \x01(\v2\x17.c1.connector.v2.TicketR\x06ticket\x126\n" + + "\vannotations\x18\x02 \x03(\v2\x14.google.protobuf.AnyR\vannotations\x12\x14\n" + + "\x05error\x18\x03 \x01(\tR\x05error\"\x85\x01\n" + + "&TicketsServiceBulkCreateTicketsRequest\x12[\n" + + "\x0fticket_requests\x18\x01 \x03(\v22.c1.connector.v2.TicketsServiceCreateTicketRequestR\x0eticketRequests\"x\n" + + "'TicketsServiceBulkCreateTicketsResponse\x12M\n" + + "\atickets\x18\x01 \x03(\v23.c1.connector.v2.TicketsServiceCreateTicketResponseR\atickets\"\x7f\n" + + "#TicketsServiceBulkGetTicketsRequest\x12X\n" + + "\x0fticket_requests\x18\x01 \x03(\v2/.c1.connector.v2.TicketsServiceGetTicketRequestR\x0eticketRequests\"r\n" + + "$TicketsServiceBulkGetTicketsResponse\x12J\n" + + "\atickets\x18\x01 \x03(\v20.c1.connector.v2.TicketsServiceGetTicketResponseR\atickets2\x8d\x06\n" + + "\x0eTicketsService\x12w\n" + + "\fCreateTicket\x122.c1.connector.v2.TicketsServiceCreateTicketRequest\x1a3.c1.connector.v2.TicketsServiceCreateTicketResponse\x12n\n" + + "\tGetTicket\x12/.c1.connector.v2.TicketsServiceGetTicketRequest\x1a0.c1.connector.v2.TicketsServiceGetTicketResponse\x12\x86\x01\n" + + "\x11ListTicketSchemas\x127.c1.connector.v2.TicketsServiceListTicketSchemasRequest\x1a8.c1.connector.v2.TicketsServiceListTicketSchemasResponse\x12\x80\x01\n" + + "\x0fGetTicketSchema\x125.c1.connector.v2.TicketsServiceGetTicketSchemaRequest\x1a6.c1.connector.v2.TicketsServiceGetTicketSchemaResponse\x12\x86\x01\n" + + "\x11BulkCreateTickets\x127.c1.connector.v2.TicketsServiceBulkCreateTicketsRequest\x1a8.c1.connector.v2.TicketsServiceBulkCreateTicketsResponse\x12}\n" + + "\x0eBulkGetTickets\x124.c1.connector.v2.TicketsServiceBulkGetTicketsRequest\x1a5.c1.connector.v2.TicketsServiceBulkGetTicketsResponseB6Z4github.com/conductorone/baton-sdk/pb/c1/connector/v2b\x06proto3" + var file_c1_connector_v2_ticket_proto_msgTypes = make([]protoimpl.MessageInfo, 31) var file_c1_connector_v2_ticket_proto_goTypes = []any{ (*TicketSchema)(nil), // 0: c1.connector.v2.TicketSchema diff --git a/vendor/github.com/conductorone/baton-sdk/pb/c1/connector/v2/ticket_protoopaque.pb.go b/vendor/github.com/conductorone/baton-sdk/pb/c1/connector/v2/ticket_protoopaque.pb.go new file mode 100644 index 00000000..e1916abf --- /dev/null +++ b/vendor/github.com/conductorone/baton-sdk/pb/c1/connector/v2/ticket_protoopaque.pb.go @@ -0,0 +1,3409 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.36.10 +// protoc (unknown) +// source: c1/connector/v2/ticket.proto + +//go:build protoopaque + +package v2 + +import ( + _ "github.com/envoyproxy/protoc-gen-validate/validate" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + anypb "google.golang.org/protobuf/types/known/anypb" + timestamppb "google.golang.org/protobuf/types/known/timestamppb" + wrapperspb "google.golang.org/protobuf/types/known/wrapperspb" + reflect "reflect" + 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 TicketSchema struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Id string `protobuf:"bytes,1,opt,name=id,proto3"` + xxx_hidden_DisplayName string `protobuf:"bytes,2,opt,name=display_name,json=displayName,proto3"` + xxx_hidden_Types *[]*TicketType `protobuf:"bytes,3,rep,name=types,proto3"` + xxx_hidden_Statuses *[]*TicketStatus `protobuf:"bytes,4,rep,name=statuses,proto3"` + xxx_hidden_CustomFields map[string]*TicketCustomField `protobuf:"bytes,5,rep,name=custom_fields,json=customFields,proto3" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"` + xxx_hidden_Annotations *[]*anypb.Any `protobuf:"bytes,6,rep,name=annotations,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *TicketSchema) Reset() { + *x = TicketSchema{} + mi := &file_c1_connector_v2_ticket_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *TicketSchema) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*TicketSchema) ProtoMessage() {} + +func (x *TicketSchema) ProtoReflect() protoreflect.Message { + mi := &file_c1_connector_v2_ticket_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) +} + +func (x *TicketSchema) GetId() string { + if x != nil { + return x.xxx_hidden_Id + } + return "" +} + +func (x *TicketSchema) GetDisplayName() string { + if x != nil { + return x.xxx_hidden_DisplayName + } + return "" +} + +func (x *TicketSchema) GetTypes() []*TicketType { + if x != nil { + if x.xxx_hidden_Types != nil { + return *x.xxx_hidden_Types + } + } + return nil +} + +func (x *TicketSchema) GetStatuses() []*TicketStatus { + if x != nil { + if x.xxx_hidden_Statuses != nil { + return *x.xxx_hidden_Statuses + } + } + return nil +} + +func (x *TicketSchema) GetCustomFields() map[string]*TicketCustomField { + if x != nil { + return x.xxx_hidden_CustomFields + } + return nil +} + +func (x *TicketSchema) GetAnnotations() []*anypb.Any { + if x != nil { + if x.xxx_hidden_Annotations != nil { + return *x.xxx_hidden_Annotations + } + } + return nil +} + +func (x *TicketSchema) SetId(v string) { + x.xxx_hidden_Id = v +} + +func (x *TicketSchema) SetDisplayName(v string) { + x.xxx_hidden_DisplayName = v +} + +func (x *TicketSchema) SetTypes(v []*TicketType) { + x.xxx_hidden_Types = &v +} + +func (x *TicketSchema) SetStatuses(v []*TicketStatus) { + x.xxx_hidden_Statuses = &v +} + +func (x *TicketSchema) SetCustomFields(v map[string]*TicketCustomField) { + x.xxx_hidden_CustomFields = v +} + +func (x *TicketSchema) SetAnnotations(v []*anypb.Any) { + x.xxx_hidden_Annotations = &v +} + +type TicketSchema_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Id string + DisplayName string + Types []*TicketType + Statuses []*TicketStatus + CustomFields map[string]*TicketCustomField + Annotations []*anypb.Any +} + +func (b0 TicketSchema_builder) Build() *TicketSchema { + m0 := &TicketSchema{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Id = b.Id + x.xxx_hidden_DisplayName = b.DisplayName + x.xxx_hidden_Types = &b.Types + x.xxx_hidden_Statuses = &b.Statuses + x.xxx_hidden_CustomFields = b.CustomFields + x.xxx_hidden_Annotations = &b.Annotations + return m0 +} + +type TicketCustomField struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Id string `protobuf:"bytes,1,opt,name=id,proto3"` + xxx_hidden_DisplayName string `protobuf:"bytes,2,opt,name=display_name,json=displayName,proto3"` + xxx_hidden_Required bool `protobuf:"varint,3,opt,name=required,proto3"` + xxx_hidden_Value isTicketCustomField_Value `protobuf_oneof:"value"` + xxx_hidden_Annotations *[]*anypb.Any `protobuf:"bytes,4,rep,name=annotations,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *TicketCustomField) Reset() { + *x = TicketCustomField{} + mi := &file_c1_connector_v2_ticket_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *TicketCustomField) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*TicketCustomField) ProtoMessage() {} + +func (x *TicketCustomField) ProtoReflect() protoreflect.Message { + mi := &file_c1_connector_v2_ticket_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) +} + +func (x *TicketCustomField) GetId() string { + if x != nil { + return x.xxx_hidden_Id + } + return "" +} + +func (x *TicketCustomField) GetDisplayName() string { + if x != nil { + return x.xxx_hidden_DisplayName + } + return "" +} + +func (x *TicketCustomField) GetRequired() bool { + if x != nil { + return x.xxx_hidden_Required + } + return false +} + +func (x *TicketCustomField) GetStringValue() *TicketCustomFieldStringValue { + if x != nil { + if x, ok := x.xxx_hidden_Value.(*ticketCustomField_StringValue); ok { + return x.StringValue + } + } + return nil +} + +func (x *TicketCustomField) GetStringValues() *TicketCustomFieldStringValues { + if x != nil { + if x, ok := x.xxx_hidden_Value.(*ticketCustomField_StringValues); ok { + return x.StringValues + } + } + return nil +} + +func (x *TicketCustomField) GetBoolValue() *TicketCustomFieldBoolValue { + if x != nil { + if x, ok := x.xxx_hidden_Value.(*ticketCustomField_BoolValue); ok { + return x.BoolValue + } + } + return nil +} + +func (x *TicketCustomField) GetTimestampValue() *TicketCustomFieldTimestampValue { + if x != nil { + if x, ok := x.xxx_hidden_Value.(*ticketCustomField_TimestampValue); ok { + return x.TimestampValue + } + } + return nil +} + +func (x *TicketCustomField) GetPickStringValue() *TicketCustomFieldPickStringValue { + if x != nil { + if x, ok := x.xxx_hidden_Value.(*ticketCustomField_PickStringValue); ok { + return x.PickStringValue + } + } + return nil +} + +func (x *TicketCustomField) GetPickMultipleStringValues() *TicketCustomFieldPickMultipleStringValues { + if x != nil { + if x, ok := x.xxx_hidden_Value.(*ticketCustomField_PickMultipleStringValues); ok { + return x.PickMultipleStringValues + } + } + return nil +} + +func (x *TicketCustomField) GetPickObjectValue() *TicketCustomFieldPickObjectValue { + if x != nil { + if x, ok := x.xxx_hidden_Value.(*ticketCustomField_PickObjectValue); ok { + return x.PickObjectValue + } + } + return nil +} + +func (x *TicketCustomField) GetPickMultipleObjectValues() *TicketCustomFieldPickMultipleObjectValues { + if x != nil { + if x, ok := x.xxx_hidden_Value.(*ticketCustomField_PickMultipleObjectValues); ok { + return x.PickMultipleObjectValues + } + } + return nil +} + +func (x *TicketCustomField) GetNumberValue() *TicketCustomFieldNumberValue { + if x != nil { + if x, ok := x.xxx_hidden_Value.(*ticketCustomField_NumberValue); ok { + return x.NumberValue + } + } + return nil +} + +func (x *TicketCustomField) GetAnnotations() []*anypb.Any { + if x != nil { + if x.xxx_hidden_Annotations != nil { + return *x.xxx_hidden_Annotations + } + } + return nil +} + +func (x *TicketCustomField) SetId(v string) { + x.xxx_hidden_Id = v +} + +func (x *TicketCustomField) SetDisplayName(v string) { + x.xxx_hidden_DisplayName = v +} + +func (x *TicketCustomField) SetRequired(v bool) { + x.xxx_hidden_Required = v +} + +func (x *TicketCustomField) SetStringValue(v *TicketCustomFieldStringValue) { + if v == nil { + x.xxx_hidden_Value = nil + return + } + x.xxx_hidden_Value = &ticketCustomField_StringValue{v} +} + +func (x *TicketCustomField) SetStringValues(v *TicketCustomFieldStringValues) { + if v == nil { + x.xxx_hidden_Value = nil + return + } + x.xxx_hidden_Value = &ticketCustomField_StringValues{v} +} + +func (x *TicketCustomField) SetBoolValue(v *TicketCustomFieldBoolValue) { + if v == nil { + x.xxx_hidden_Value = nil + return + } + x.xxx_hidden_Value = &ticketCustomField_BoolValue{v} +} + +func (x *TicketCustomField) SetTimestampValue(v *TicketCustomFieldTimestampValue) { + if v == nil { + x.xxx_hidden_Value = nil + return + } + x.xxx_hidden_Value = &ticketCustomField_TimestampValue{v} +} + +func (x *TicketCustomField) SetPickStringValue(v *TicketCustomFieldPickStringValue) { + if v == nil { + x.xxx_hidden_Value = nil + return + } + x.xxx_hidden_Value = &ticketCustomField_PickStringValue{v} +} + +func (x *TicketCustomField) SetPickMultipleStringValues(v *TicketCustomFieldPickMultipleStringValues) { + if v == nil { + x.xxx_hidden_Value = nil + return + } + x.xxx_hidden_Value = &ticketCustomField_PickMultipleStringValues{v} +} + +func (x *TicketCustomField) SetPickObjectValue(v *TicketCustomFieldPickObjectValue) { + if v == nil { + x.xxx_hidden_Value = nil + return + } + x.xxx_hidden_Value = &ticketCustomField_PickObjectValue{v} +} + +func (x *TicketCustomField) SetPickMultipleObjectValues(v *TicketCustomFieldPickMultipleObjectValues) { + if v == nil { + x.xxx_hidden_Value = nil + return + } + x.xxx_hidden_Value = &ticketCustomField_PickMultipleObjectValues{v} +} + +func (x *TicketCustomField) SetNumberValue(v *TicketCustomFieldNumberValue) { + if v == nil { + x.xxx_hidden_Value = nil + return + } + x.xxx_hidden_Value = &ticketCustomField_NumberValue{v} +} + +func (x *TicketCustomField) SetAnnotations(v []*anypb.Any) { + x.xxx_hidden_Annotations = &v +} + +func (x *TicketCustomField) HasValue() bool { + if x == nil { + return false + } + return x.xxx_hidden_Value != nil +} + +func (x *TicketCustomField) HasStringValue() bool { + if x == nil { + return false + } + _, ok := x.xxx_hidden_Value.(*ticketCustomField_StringValue) + return ok +} + +func (x *TicketCustomField) HasStringValues() bool { + if x == nil { + return false + } + _, ok := x.xxx_hidden_Value.(*ticketCustomField_StringValues) + return ok +} + +func (x *TicketCustomField) HasBoolValue() bool { + if x == nil { + return false + } + _, ok := x.xxx_hidden_Value.(*ticketCustomField_BoolValue) + return ok +} + +func (x *TicketCustomField) HasTimestampValue() bool { + if x == nil { + return false + } + _, ok := x.xxx_hidden_Value.(*ticketCustomField_TimestampValue) + return ok +} + +func (x *TicketCustomField) HasPickStringValue() bool { + if x == nil { + return false + } + _, ok := x.xxx_hidden_Value.(*ticketCustomField_PickStringValue) + return ok +} + +func (x *TicketCustomField) HasPickMultipleStringValues() bool { + if x == nil { + return false + } + _, ok := x.xxx_hidden_Value.(*ticketCustomField_PickMultipleStringValues) + return ok +} + +func (x *TicketCustomField) HasPickObjectValue() bool { + if x == nil { + return false + } + _, ok := x.xxx_hidden_Value.(*ticketCustomField_PickObjectValue) + return ok +} + +func (x *TicketCustomField) HasPickMultipleObjectValues() bool { + if x == nil { + return false + } + _, ok := x.xxx_hidden_Value.(*ticketCustomField_PickMultipleObjectValues) + return ok +} + +func (x *TicketCustomField) HasNumberValue() bool { + if x == nil { + return false + } + _, ok := x.xxx_hidden_Value.(*ticketCustomField_NumberValue) + return ok +} + +func (x *TicketCustomField) ClearValue() { + x.xxx_hidden_Value = nil +} + +func (x *TicketCustomField) ClearStringValue() { + if _, ok := x.xxx_hidden_Value.(*ticketCustomField_StringValue); ok { + x.xxx_hidden_Value = nil + } +} + +func (x *TicketCustomField) ClearStringValues() { + if _, ok := x.xxx_hidden_Value.(*ticketCustomField_StringValues); ok { + x.xxx_hidden_Value = nil + } +} + +func (x *TicketCustomField) ClearBoolValue() { + if _, ok := x.xxx_hidden_Value.(*ticketCustomField_BoolValue); ok { + x.xxx_hidden_Value = nil + } +} + +func (x *TicketCustomField) ClearTimestampValue() { + if _, ok := x.xxx_hidden_Value.(*ticketCustomField_TimestampValue); ok { + x.xxx_hidden_Value = nil + } +} + +func (x *TicketCustomField) ClearPickStringValue() { + if _, ok := x.xxx_hidden_Value.(*ticketCustomField_PickStringValue); ok { + x.xxx_hidden_Value = nil + } +} + +func (x *TicketCustomField) ClearPickMultipleStringValues() { + if _, ok := x.xxx_hidden_Value.(*ticketCustomField_PickMultipleStringValues); ok { + x.xxx_hidden_Value = nil + } +} + +func (x *TicketCustomField) ClearPickObjectValue() { + if _, ok := x.xxx_hidden_Value.(*ticketCustomField_PickObjectValue); ok { + x.xxx_hidden_Value = nil + } +} + +func (x *TicketCustomField) ClearPickMultipleObjectValues() { + if _, ok := x.xxx_hidden_Value.(*ticketCustomField_PickMultipleObjectValues); ok { + x.xxx_hidden_Value = nil + } +} + +func (x *TicketCustomField) ClearNumberValue() { + if _, ok := x.xxx_hidden_Value.(*ticketCustomField_NumberValue); ok { + x.xxx_hidden_Value = nil + } +} + +const TicketCustomField_Value_not_set_case case_TicketCustomField_Value = 0 +const TicketCustomField_StringValue_case case_TicketCustomField_Value = 100 +const TicketCustomField_StringValues_case case_TicketCustomField_Value = 101 +const TicketCustomField_BoolValue_case case_TicketCustomField_Value = 102 +const TicketCustomField_TimestampValue_case case_TicketCustomField_Value = 103 +const TicketCustomField_PickStringValue_case case_TicketCustomField_Value = 104 +const TicketCustomField_PickMultipleStringValues_case case_TicketCustomField_Value = 105 +const TicketCustomField_PickObjectValue_case case_TicketCustomField_Value = 106 +const TicketCustomField_PickMultipleObjectValues_case case_TicketCustomField_Value = 107 +const TicketCustomField_NumberValue_case case_TicketCustomField_Value = 108 + +func (x *TicketCustomField) WhichValue() case_TicketCustomField_Value { + if x == nil { + return TicketCustomField_Value_not_set_case + } + switch x.xxx_hidden_Value.(type) { + case *ticketCustomField_StringValue: + return TicketCustomField_StringValue_case + case *ticketCustomField_StringValues: + return TicketCustomField_StringValues_case + case *ticketCustomField_BoolValue: + return TicketCustomField_BoolValue_case + case *ticketCustomField_TimestampValue: + return TicketCustomField_TimestampValue_case + case *ticketCustomField_PickStringValue: + return TicketCustomField_PickStringValue_case + case *ticketCustomField_PickMultipleStringValues: + return TicketCustomField_PickMultipleStringValues_case + case *ticketCustomField_PickObjectValue: + return TicketCustomField_PickObjectValue_case + case *ticketCustomField_PickMultipleObjectValues: + return TicketCustomField_PickMultipleObjectValues_case + case *ticketCustomField_NumberValue: + return TicketCustomField_NumberValue_case + default: + return TicketCustomField_Value_not_set_case + } +} + +type TicketCustomField_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Id string + DisplayName string + Required bool + // Fields of oneof xxx_hidden_Value: + StringValue *TicketCustomFieldStringValue + StringValues *TicketCustomFieldStringValues + BoolValue *TicketCustomFieldBoolValue + TimestampValue *TicketCustomFieldTimestampValue + PickStringValue *TicketCustomFieldPickStringValue + PickMultipleStringValues *TicketCustomFieldPickMultipleStringValues + PickObjectValue *TicketCustomFieldPickObjectValue + PickMultipleObjectValues *TicketCustomFieldPickMultipleObjectValues + NumberValue *TicketCustomFieldNumberValue + // -- end of xxx_hidden_Value + Annotations []*anypb.Any +} + +func (b0 TicketCustomField_builder) Build() *TicketCustomField { + m0 := &TicketCustomField{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Id = b.Id + x.xxx_hidden_DisplayName = b.DisplayName + x.xxx_hidden_Required = b.Required + if b.StringValue != nil { + x.xxx_hidden_Value = &ticketCustomField_StringValue{b.StringValue} + } + if b.StringValues != nil { + x.xxx_hidden_Value = &ticketCustomField_StringValues{b.StringValues} + } + if b.BoolValue != nil { + x.xxx_hidden_Value = &ticketCustomField_BoolValue{b.BoolValue} + } + if b.TimestampValue != nil { + x.xxx_hidden_Value = &ticketCustomField_TimestampValue{b.TimestampValue} + } + if b.PickStringValue != nil { + x.xxx_hidden_Value = &ticketCustomField_PickStringValue{b.PickStringValue} + } + if b.PickMultipleStringValues != nil { + x.xxx_hidden_Value = &ticketCustomField_PickMultipleStringValues{b.PickMultipleStringValues} + } + if b.PickObjectValue != nil { + x.xxx_hidden_Value = &ticketCustomField_PickObjectValue{b.PickObjectValue} + } + if b.PickMultipleObjectValues != nil { + x.xxx_hidden_Value = &ticketCustomField_PickMultipleObjectValues{b.PickMultipleObjectValues} + } + if b.NumberValue != nil { + x.xxx_hidden_Value = &ticketCustomField_NumberValue{b.NumberValue} + } + x.xxx_hidden_Annotations = &b.Annotations + return m0 +} + +type case_TicketCustomField_Value protoreflect.FieldNumber + +func (x case_TicketCustomField_Value) String() string { + md := file_c1_connector_v2_ticket_proto_msgTypes[1].Descriptor() + if x == 0 { + return "not set" + } + return protoimpl.X.MessageFieldStringOf(md, protoreflect.FieldNumber(x)) +} + +type isTicketCustomField_Value interface { + isTicketCustomField_Value() +} + +type ticketCustomField_StringValue struct { + StringValue *TicketCustomFieldStringValue `protobuf:"bytes,100,opt,name=string_value,json=stringValue,proto3,oneof"` +} + +type ticketCustomField_StringValues struct { + StringValues *TicketCustomFieldStringValues `protobuf:"bytes,101,opt,name=string_values,json=stringValues,proto3,oneof"` +} + +type ticketCustomField_BoolValue struct { + BoolValue *TicketCustomFieldBoolValue `protobuf:"bytes,102,opt,name=bool_value,json=boolValue,proto3,oneof"` +} + +type ticketCustomField_TimestampValue struct { + TimestampValue *TicketCustomFieldTimestampValue `protobuf:"bytes,103,opt,name=timestamp_value,json=timestampValue,proto3,oneof"` +} + +type ticketCustomField_PickStringValue struct { + PickStringValue *TicketCustomFieldPickStringValue `protobuf:"bytes,104,opt,name=pick_string_value,json=pickStringValue,proto3,oneof"` +} + +type ticketCustomField_PickMultipleStringValues struct { + PickMultipleStringValues *TicketCustomFieldPickMultipleStringValues `protobuf:"bytes,105,opt,name=pick_multiple_string_values,json=pickMultipleStringValues,proto3,oneof"` +} + +type ticketCustomField_PickObjectValue struct { + PickObjectValue *TicketCustomFieldPickObjectValue `protobuf:"bytes,106,opt,name=pick_object_value,json=pickObjectValue,proto3,oneof"` +} + +type ticketCustomField_PickMultipleObjectValues struct { + PickMultipleObjectValues *TicketCustomFieldPickMultipleObjectValues `protobuf:"bytes,107,opt,name=pick_multiple_object_values,json=pickMultipleObjectValues,proto3,oneof"` +} + +type ticketCustomField_NumberValue struct { + NumberValue *TicketCustomFieldNumberValue `protobuf:"bytes,108,opt,name=number_value,json=numberValue,proto3,oneof"` +} + +func (*ticketCustomField_StringValue) isTicketCustomField_Value() {} + +func (*ticketCustomField_StringValues) isTicketCustomField_Value() {} + +func (*ticketCustomField_BoolValue) isTicketCustomField_Value() {} + +func (*ticketCustomField_TimestampValue) isTicketCustomField_Value() {} + +func (*ticketCustomField_PickStringValue) isTicketCustomField_Value() {} + +func (*ticketCustomField_PickMultipleStringValues) isTicketCustomField_Value() {} + +func (*ticketCustomField_PickObjectValue) isTicketCustomField_Value() {} + +func (*ticketCustomField_PickMultipleObjectValues) isTicketCustomField_Value() {} + +func (*ticketCustomField_NumberValue) isTicketCustomField_Value() {} + +type TicketCustomFieldStringValue struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Value string `protobuf:"bytes,1,opt,name=value,proto3"` + xxx_hidden_DefaultValue string `protobuf:"bytes,2,opt,name=default_value,json=defaultValue,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *TicketCustomFieldStringValue) Reset() { + *x = TicketCustomFieldStringValue{} + mi := &file_c1_connector_v2_ticket_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *TicketCustomFieldStringValue) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*TicketCustomFieldStringValue) ProtoMessage() {} + +func (x *TicketCustomFieldStringValue) ProtoReflect() protoreflect.Message { + mi := &file_c1_connector_v2_ticket_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) +} + +func (x *TicketCustomFieldStringValue) GetValue() string { + if x != nil { + return x.xxx_hidden_Value + } + return "" +} + +func (x *TicketCustomFieldStringValue) GetDefaultValue() string { + if x != nil { + return x.xxx_hidden_DefaultValue + } + return "" +} + +func (x *TicketCustomFieldStringValue) SetValue(v string) { + x.xxx_hidden_Value = v +} + +func (x *TicketCustomFieldStringValue) SetDefaultValue(v string) { + x.xxx_hidden_DefaultValue = v +} + +type TicketCustomFieldStringValue_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Value string + DefaultValue string +} + +func (b0 TicketCustomFieldStringValue_builder) Build() *TicketCustomFieldStringValue { + m0 := &TicketCustomFieldStringValue{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Value = b.Value + x.xxx_hidden_DefaultValue = b.DefaultValue + return m0 +} + +type TicketCustomFieldStringValues struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Values []string `protobuf:"bytes,1,rep,name=values,proto3"` + xxx_hidden_DefaultValues []string `protobuf:"bytes,2,rep,name=default_values,json=defaultValues,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *TicketCustomFieldStringValues) Reset() { + *x = TicketCustomFieldStringValues{} + mi := &file_c1_connector_v2_ticket_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *TicketCustomFieldStringValues) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*TicketCustomFieldStringValues) ProtoMessage() {} + +func (x *TicketCustomFieldStringValues) ProtoReflect() protoreflect.Message { + mi := &file_c1_connector_v2_ticket_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) +} + +func (x *TicketCustomFieldStringValues) GetValues() []string { + if x != nil { + return x.xxx_hidden_Values + } + return nil +} + +func (x *TicketCustomFieldStringValues) GetDefaultValues() []string { + if x != nil { + return x.xxx_hidden_DefaultValues + } + return nil +} + +func (x *TicketCustomFieldStringValues) SetValues(v []string) { + x.xxx_hidden_Values = v +} + +func (x *TicketCustomFieldStringValues) SetDefaultValues(v []string) { + x.xxx_hidden_DefaultValues = v +} + +type TicketCustomFieldStringValues_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Values []string + DefaultValues []string +} + +func (b0 TicketCustomFieldStringValues_builder) Build() *TicketCustomFieldStringValues { + m0 := &TicketCustomFieldStringValues{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Values = b.Values + x.xxx_hidden_DefaultValues = b.DefaultValues + return m0 +} + +type TicketCustomFieldBoolValue struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Value bool `protobuf:"varint,1,opt,name=value,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *TicketCustomFieldBoolValue) Reset() { + *x = TicketCustomFieldBoolValue{} + mi := &file_c1_connector_v2_ticket_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *TicketCustomFieldBoolValue) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*TicketCustomFieldBoolValue) ProtoMessage() {} + +func (x *TicketCustomFieldBoolValue) ProtoReflect() protoreflect.Message { + mi := &file_c1_connector_v2_ticket_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) +} + +func (x *TicketCustomFieldBoolValue) GetValue() bool { + if x != nil { + return x.xxx_hidden_Value + } + return false +} + +func (x *TicketCustomFieldBoolValue) SetValue(v bool) { + x.xxx_hidden_Value = v +} + +type TicketCustomFieldBoolValue_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Value bool +} + +func (b0 TicketCustomFieldBoolValue_builder) Build() *TicketCustomFieldBoolValue { + m0 := &TicketCustomFieldBoolValue{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Value = b.Value + return m0 +} + +type TicketCustomFieldNumberValue struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Value *wrapperspb.FloatValue `protobuf:"bytes,1,opt,name=value,proto3"` + xxx_hidden_DefaultValue *wrapperspb.FloatValue `protobuf:"bytes,2,opt,name=default_value,json=defaultValue,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *TicketCustomFieldNumberValue) Reset() { + *x = TicketCustomFieldNumberValue{} + mi := &file_c1_connector_v2_ticket_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *TicketCustomFieldNumberValue) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*TicketCustomFieldNumberValue) ProtoMessage() {} + +func (x *TicketCustomFieldNumberValue) ProtoReflect() protoreflect.Message { + mi := &file_c1_connector_v2_ticket_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) +} + +func (x *TicketCustomFieldNumberValue) GetValue() *wrapperspb.FloatValue { + if x != nil { + return x.xxx_hidden_Value + } + return nil +} + +func (x *TicketCustomFieldNumberValue) GetDefaultValue() *wrapperspb.FloatValue { + if x != nil { + return x.xxx_hidden_DefaultValue + } + return nil +} + +func (x *TicketCustomFieldNumberValue) SetValue(v *wrapperspb.FloatValue) { + x.xxx_hidden_Value = v +} + +func (x *TicketCustomFieldNumberValue) SetDefaultValue(v *wrapperspb.FloatValue) { + x.xxx_hidden_DefaultValue = v +} + +func (x *TicketCustomFieldNumberValue) HasValue() bool { + if x == nil { + return false + } + return x.xxx_hidden_Value != nil +} + +func (x *TicketCustomFieldNumberValue) HasDefaultValue() bool { + if x == nil { + return false + } + return x.xxx_hidden_DefaultValue != nil +} + +func (x *TicketCustomFieldNumberValue) ClearValue() { + x.xxx_hidden_Value = nil +} + +func (x *TicketCustomFieldNumberValue) ClearDefaultValue() { + x.xxx_hidden_DefaultValue = nil +} + +type TicketCustomFieldNumberValue_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Value *wrapperspb.FloatValue + DefaultValue *wrapperspb.FloatValue +} + +func (b0 TicketCustomFieldNumberValue_builder) Build() *TicketCustomFieldNumberValue { + m0 := &TicketCustomFieldNumberValue{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Value = b.Value + x.xxx_hidden_DefaultValue = b.DefaultValue + return m0 +} + +type TicketCustomFieldTimestampValue struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Value *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=value,proto3"` + xxx_hidden_DefaultValue *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=default_value,json=defaultValue,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *TicketCustomFieldTimestampValue) Reset() { + *x = TicketCustomFieldTimestampValue{} + mi := &file_c1_connector_v2_ticket_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *TicketCustomFieldTimestampValue) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*TicketCustomFieldTimestampValue) ProtoMessage() {} + +func (x *TicketCustomFieldTimestampValue) ProtoReflect() protoreflect.Message { + mi := &file_c1_connector_v2_ticket_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) +} + +func (x *TicketCustomFieldTimestampValue) GetValue() *timestamppb.Timestamp { + if x != nil { + return x.xxx_hidden_Value + } + return nil +} + +func (x *TicketCustomFieldTimestampValue) GetDefaultValue() *timestamppb.Timestamp { + if x != nil { + return x.xxx_hidden_DefaultValue + } + return nil +} + +func (x *TicketCustomFieldTimestampValue) SetValue(v *timestamppb.Timestamp) { + x.xxx_hidden_Value = v +} + +func (x *TicketCustomFieldTimestampValue) SetDefaultValue(v *timestamppb.Timestamp) { + x.xxx_hidden_DefaultValue = v +} + +func (x *TicketCustomFieldTimestampValue) HasValue() bool { + if x == nil { + return false + } + return x.xxx_hidden_Value != nil +} + +func (x *TicketCustomFieldTimestampValue) HasDefaultValue() bool { + if x == nil { + return false + } + return x.xxx_hidden_DefaultValue != nil +} + +func (x *TicketCustomFieldTimestampValue) ClearValue() { + x.xxx_hidden_Value = nil +} + +func (x *TicketCustomFieldTimestampValue) ClearDefaultValue() { + x.xxx_hidden_DefaultValue = nil +} + +type TicketCustomFieldTimestampValue_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Value *timestamppb.Timestamp + DefaultValue *timestamppb.Timestamp +} + +func (b0 TicketCustomFieldTimestampValue_builder) Build() *TicketCustomFieldTimestampValue { + m0 := &TicketCustomFieldTimestampValue{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Value = b.Value + x.xxx_hidden_DefaultValue = b.DefaultValue + return m0 +} + +type TicketCustomFieldPickStringValue struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Value string `protobuf:"bytes,1,opt,name=value,proto3"` + xxx_hidden_AllowedValues []string `protobuf:"bytes,2,rep,name=allowed_values,json=allowedValues,proto3"` + xxx_hidden_DefaultValue string `protobuf:"bytes,3,opt,name=default_value,json=defaultValue,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *TicketCustomFieldPickStringValue) Reset() { + *x = TicketCustomFieldPickStringValue{} + mi := &file_c1_connector_v2_ticket_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *TicketCustomFieldPickStringValue) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*TicketCustomFieldPickStringValue) ProtoMessage() {} + +func (x *TicketCustomFieldPickStringValue) ProtoReflect() protoreflect.Message { + mi := &file_c1_connector_v2_ticket_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) +} + +func (x *TicketCustomFieldPickStringValue) GetValue() string { + if x != nil { + return x.xxx_hidden_Value + } + return "" +} + +func (x *TicketCustomFieldPickStringValue) GetAllowedValues() []string { + if x != nil { + return x.xxx_hidden_AllowedValues + } + return nil +} + +func (x *TicketCustomFieldPickStringValue) GetDefaultValue() string { + if x != nil { + return x.xxx_hidden_DefaultValue + } + return "" +} + +func (x *TicketCustomFieldPickStringValue) SetValue(v string) { + x.xxx_hidden_Value = v +} + +func (x *TicketCustomFieldPickStringValue) SetAllowedValues(v []string) { + x.xxx_hidden_AllowedValues = v +} + +func (x *TicketCustomFieldPickStringValue) SetDefaultValue(v string) { + x.xxx_hidden_DefaultValue = v +} + +type TicketCustomFieldPickStringValue_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Value string + AllowedValues []string + DefaultValue string +} + +func (b0 TicketCustomFieldPickStringValue_builder) Build() *TicketCustomFieldPickStringValue { + m0 := &TicketCustomFieldPickStringValue{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Value = b.Value + x.xxx_hidden_AllowedValues = b.AllowedValues + x.xxx_hidden_DefaultValue = b.DefaultValue + return m0 +} + +type TicketCustomFieldPickMultipleStringValues struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Values []string `protobuf:"bytes,1,rep,name=values,proto3"` + xxx_hidden_AllowedValues []string `protobuf:"bytes,2,rep,name=allowed_values,json=allowedValues,proto3"` + xxx_hidden_DefaultValues []string `protobuf:"bytes,3,rep,name=default_values,json=defaultValues,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *TicketCustomFieldPickMultipleStringValues) Reset() { + *x = TicketCustomFieldPickMultipleStringValues{} + mi := &file_c1_connector_v2_ticket_proto_msgTypes[8] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *TicketCustomFieldPickMultipleStringValues) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*TicketCustomFieldPickMultipleStringValues) ProtoMessage() {} + +func (x *TicketCustomFieldPickMultipleStringValues) ProtoReflect() protoreflect.Message { + mi := &file_c1_connector_v2_ticket_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) +} + +func (x *TicketCustomFieldPickMultipleStringValues) GetValues() []string { + if x != nil { + return x.xxx_hidden_Values + } + return nil +} + +func (x *TicketCustomFieldPickMultipleStringValues) GetAllowedValues() []string { + if x != nil { + return x.xxx_hidden_AllowedValues + } + return nil +} + +func (x *TicketCustomFieldPickMultipleStringValues) GetDefaultValues() []string { + if x != nil { + return x.xxx_hidden_DefaultValues + } + return nil +} + +func (x *TicketCustomFieldPickMultipleStringValues) SetValues(v []string) { + x.xxx_hidden_Values = v +} + +func (x *TicketCustomFieldPickMultipleStringValues) SetAllowedValues(v []string) { + x.xxx_hidden_AllowedValues = v +} + +func (x *TicketCustomFieldPickMultipleStringValues) SetDefaultValues(v []string) { + x.xxx_hidden_DefaultValues = v +} + +type TicketCustomFieldPickMultipleStringValues_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Values []string + AllowedValues []string + DefaultValues []string +} + +func (b0 TicketCustomFieldPickMultipleStringValues_builder) Build() *TicketCustomFieldPickMultipleStringValues { + m0 := &TicketCustomFieldPickMultipleStringValues{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Values = b.Values + x.xxx_hidden_AllowedValues = b.AllowedValues + x.xxx_hidden_DefaultValues = b.DefaultValues + return m0 +} + +type TicketCustomFieldPickObjectValue struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Value *TicketCustomFieldObjectValue `protobuf:"bytes,1,opt,name=value,proto3"` + xxx_hidden_AllowedValues *[]*TicketCustomFieldObjectValue `protobuf:"bytes,2,rep,name=allowed_values,json=allowedValues,proto3"` + xxx_hidden_DefaultValue *TicketCustomFieldObjectValue `protobuf:"bytes,3,opt,name=default_value,json=defaultValue,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *TicketCustomFieldPickObjectValue) Reset() { + *x = TicketCustomFieldPickObjectValue{} + mi := &file_c1_connector_v2_ticket_proto_msgTypes[9] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *TicketCustomFieldPickObjectValue) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*TicketCustomFieldPickObjectValue) ProtoMessage() {} + +func (x *TicketCustomFieldPickObjectValue) ProtoReflect() protoreflect.Message { + mi := &file_c1_connector_v2_ticket_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) +} + +func (x *TicketCustomFieldPickObjectValue) GetValue() *TicketCustomFieldObjectValue { + if x != nil { + return x.xxx_hidden_Value + } + return nil +} + +func (x *TicketCustomFieldPickObjectValue) GetAllowedValues() []*TicketCustomFieldObjectValue { + if x != nil { + if x.xxx_hidden_AllowedValues != nil { + return *x.xxx_hidden_AllowedValues + } + } + return nil +} + +func (x *TicketCustomFieldPickObjectValue) GetDefaultValue() *TicketCustomFieldObjectValue { + if x != nil { + return x.xxx_hidden_DefaultValue + } + return nil +} + +func (x *TicketCustomFieldPickObjectValue) SetValue(v *TicketCustomFieldObjectValue) { + x.xxx_hidden_Value = v +} + +func (x *TicketCustomFieldPickObjectValue) SetAllowedValues(v []*TicketCustomFieldObjectValue) { + x.xxx_hidden_AllowedValues = &v +} + +func (x *TicketCustomFieldPickObjectValue) SetDefaultValue(v *TicketCustomFieldObjectValue) { + x.xxx_hidden_DefaultValue = v +} + +func (x *TicketCustomFieldPickObjectValue) HasValue() bool { + if x == nil { + return false + } + return x.xxx_hidden_Value != nil +} + +func (x *TicketCustomFieldPickObjectValue) HasDefaultValue() bool { + if x == nil { + return false + } + return x.xxx_hidden_DefaultValue != nil +} + +func (x *TicketCustomFieldPickObjectValue) ClearValue() { + x.xxx_hidden_Value = nil +} + +func (x *TicketCustomFieldPickObjectValue) ClearDefaultValue() { + x.xxx_hidden_DefaultValue = nil +} + +type TicketCustomFieldPickObjectValue_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Value *TicketCustomFieldObjectValue + AllowedValues []*TicketCustomFieldObjectValue + DefaultValue *TicketCustomFieldObjectValue +} + +func (b0 TicketCustomFieldPickObjectValue_builder) Build() *TicketCustomFieldPickObjectValue { + m0 := &TicketCustomFieldPickObjectValue{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Value = b.Value + x.xxx_hidden_AllowedValues = &b.AllowedValues + x.xxx_hidden_DefaultValue = b.DefaultValue + return m0 +} + +type TicketCustomFieldPickMultipleObjectValues struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Values *[]*TicketCustomFieldObjectValue `protobuf:"bytes,1,rep,name=values,proto3"` + xxx_hidden_AllowedValues *[]*TicketCustomFieldObjectValue `protobuf:"bytes,2,rep,name=allowed_values,json=allowedValues,proto3"` + xxx_hidden_DefaultValues *[]*TicketCustomFieldObjectValue `protobuf:"bytes,3,rep,name=default_values,json=defaultValues,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *TicketCustomFieldPickMultipleObjectValues) Reset() { + *x = TicketCustomFieldPickMultipleObjectValues{} + mi := &file_c1_connector_v2_ticket_proto_msgTypes[10] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *TicketCustomFieldPickMultipleObjectValues) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*TicketCustomFieldPickMultipleObjectValues) ProtoMessage() {} + +func (x *TicketCustomFieldPickMultipleObjectValues) ProtoReflect() protoreflect.Message { + mi := &file_c1_connector_v2_ticket_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) +} + +func (x *TicketCustomFieldPickMultipleObjectValues) GetValues() []*TicketCustomFieldObjectValue { + if x != nil { + if x.xxx_hidden_Values != nil { + return *x.xxx_hidden_Values + } + } + return nil +} + +func (x *TicketCustomFieldPickMultipleObjectValues) GetAllowedValues() []*TicketCustomFieldObjectValue { + if x != nil { + if x.xxx_hidden_AllowedValues != nil { + return *x.xxx_hidden_AllowedValues + } + } + return nil +} + +func (x *TicketCustomFieldPickMultipleObjectValues) GetDefaultValues() []*TicketCustomFieldObjectValue { + if x != nil { + if x.xxx_hidden_DefaultValues != nil { + return *x.xxx_hidden_DefaultValues + } + } + return nil +} + +func (x *TicketCustomFieldPickMultipleObjectValues) SetValues(v []*TicketCustomFieldObjectValue) { + x.xxx_hidden_Values = &v +} + +func (x *TicketCustomFieldPickMultipleObjectValues) SetAllowedValues(v []*TicketCustomFieldObjectValue) { + x.xxx_hidden_AllowedValues = &v +} + +func (x *TicketCustomFieldPickMultipleObjectValues) SetDefaultValues(v []*TicketCustomFieldObjectValue) { + x.xxx_hidden_DefaultValues = &v +} + +type TicketCustomFieldPickMultipleObjectValues_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Values []*TicketCustomFieldObjectValue + AllowedValues []*TicketCustomFieldObjectValue + DefaultValues []*TicketCustomFieldObjectValue +} + +func (b0 TicketCustomFieldPickMultipleObjectValues_builder) Build() *TicketCustomFieldPickMultipleObjectValues { + m0 := &TicketCustomFieldPickMultipleObjectValues{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Values = &b.Values + x.xxx_hidden_AllowedValues = &b.AllowedValues + x.xxx_hidden_DefaultValues = &b.DefaultValues + return m0 +} + +type TicketCustomFieldObjectValue struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Id string `protobuf:"bytes,1,opt,name=id,proto3"` + xxx_hidden_DisplayName string `protobuf:"bytes,2,opt,name=display_name,json=displayName,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *TicketCustomFieldObjectValue) Reset() { + *x = TicketCustomFieldObjectValue{} + mi := &file_c1_connector_v2_ticket_proto_msgTypes[11] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *TicketCustomFieldObjectValue) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*TicketCustomFieldObjectValue) ProtoMessage() {} + +func (x *TicketCustomFieldObjectValue) ProtoReflect() protoreflect.Message { + mi := &file_c1_connector_v2_ticket_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) +} + +func (x *TicketCustomFieldObjectValue) GetId() string { + if x != nil { + return x.xxx_hidden_Id + } + return "" +} + +func (x *TicketCustomFieldObjectValue) GetDisplayName() string { + if x != nil { + return x.xxx_hidden_DisplayName + } + return "" +} + +func (x *TicketCustomFieldObjectValue) SetId(v string) { + x.xxx_hidden_Id = v +} + +func (x *TicketCustomFieldObjectValue) SetDisplayName(v string) { + x.xxx_hidden_DisplayName = v +} + +type TicketCustomFieldObjectValue_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Id string + DisplayName string +} + +func (b0 TicketCustomFieldObjectValue_builder) Build() *TicketCustomFieldObjectValue { + m0 := &TicketCustomFieldObjectValue{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Id = b.Id + x.xxx_hidden_DisplayName = b.DisplayName + return m0 +} + +type TicketStatus struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Id string `protobuf:"bytes,1,opt,name=id,proto3"` + xxx_hidden_DisplayName string `protobuf:"bytes,2,opt,name=display_name,json=displayName,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *TicketStatus) Reset() { + *x = TicketStatus{} + mi := &file_c1_connector_v2_ticket_proto_msgTypes[12] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *TicketStatus) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*TicketStatus) ProtoMessage() {} + +func (x *TicketStatus) ProtoReflect() protoreflect.Message { + mi := &file_c1_connector_v2_ticket_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) +} + +func (x *TicketStatus) GetId() string { + if x != nil { + return x.xxx_hidden_Id + } + return "" +} + +func (x *TicketStatus) GetDisplayName() string { + if x != nil { + return x.xxx_hidden_DisplayName + } + return "" +} + +func (x *TicketStatus) SetId(v string) { + x.xxx_hidden_Id = v +} + +func (x *TicketStatus) SetDisplayName(v string) { + x.xxx_hidden_DisplayName = v +} + +type TicketStatus_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Id string + DisplayName string +} + +func (b0 TicketStatus_builder) Build() *TicketStatus { + m0 := &TicketStatus{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Id = b.Id + x.xxx_hidden_DisplayName = b.DisplayName + return m0 +} + +type TicketsServiceGetTicketSchemaRequest struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Id string `protobuf:"bytes,1,opt,name=id,proto3"` + xxx_hidden_Annotations *[]*anypb.Any `protobuf:"bytes,2,rep,name=annotations,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *TicketsServiceGetTicketSchemaRequest) Reset() { + *x = TicketsServiceGetTicketSchemaRequest{} + mi := &file_c1_connector_v2_ticket_proto_msgTypes[13] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *TicketsServiceGetTicketSchemaRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*TicketsServiceGetTicketSchemaRequest) ProtoMessage() {} + +func (x *TicketsServiceGetTicketSchemaRequest) ProtoReflect() protoreflect.Message { + mi := &file_c1_connector_v2_ticket_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) +} + +func (x *TicketsServiceGetTicketSchemaRequest) GetId() string { + if x != nil { + return x.xxx_hidden_Id + } + return "" +} + +func (x *TicketsServiceGetTicketSchemaRequest) GetAnnotations() []*anypb.Any { + if x != nil { + if x.xxx_hidden_Annotations != nil { + return *x.xxx_hidden_Annotations + } + } + return nil +} + +func (x *TicketsServiceGetTicketSchemaRequest) SetId(v string) { + x.xxx_hidden_Id = v +} + +func (x *TicketsServiceGetTicketSchemaRequest) SetAnnotations(v []*anypb.Any) { + x.xxx_hidden_Annotations = &v +} + +type TicketsServiceGetTicketSchemaRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Id string + Annotations []*anypb.Any +} + +func (b0 TicketsServiceGetTicketSchemaRequest_builder) Build() *TicketsServiceGetTicketSchemaRequest { + m0 := &TicketsServiceGetTicketSchemaRequest{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Id = b.Id + x.xxx_hidden_Annotations = &b.Annotations + return m0 +} + +type TicketsServiceGetTicketSchemaResponse struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Schema *TicketSchema `protobuf:"bytes,1,opt,name=schema,proto3"` + xxx_hidden_Annotations *[]*anypb.Any `protobuf:"bytes,2,rep,name=annotations,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *TicketsServiceGetTicketSchemaResponse) Reset() { + *x = TicketsServiceGetTicketSchemaResponse{} + mi := &file_c1_connector_v2_ticket_proto_msgTypes[14] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *TicketsServiceGetTicketSchemaResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*TicketsServiceGetTicketSchemaResponse) ProtoMessage() {} + +func (x *TicketsServiceGetTicketSchemaResponse) ProtoReflect() protoreflect.Message { + mi := &file_c1_connector_v2_ticket_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) +} + +func (x *TicketsServiceGetTicketSchemaResponse) GetSchema() *TicketSchema { + if x != nil { + return x.xxx_hidden_Schema + } + return nil +} + +func (x *TicketsServiceGetTicketSchemaResponse) GetAnnotations() []*anypb.Any { + if x != nil { + if x.xxx_hidden_Annotations != nil { + return *x.xxx_hidden_Annotations + } + } + return nil +} + +func (x *TicketsServiceGetTicketSchemaResponse) SetSchema(v *TicketSchema) { + x.xxx_hidden_Schema = v +} + +func (x *TicketsServiceGetTicketSchemaResponse) SetAnnotations(v []*anypb.Any) { + x.xxx_hidden_Annotations = &v +} + +func (x *TicketsServiceGetTicketSchemaResponse) HasSchema() bool { + if x == nil { + return false + } + return x.xxx_hidden_Schema != nil +} + +func (x *TicketsServiceGetTicketSchemaResponse) ClearSchema() { + x.xxx_hidden_Schema = nil +} + +type TicketsServiceGetTicketSchemaResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Schema *TicketSchema + Annotations []*anypb.Any +} + +func (b0 TicketsServiceGetTicketSchemaResponse_builder) Build() *TicketsServiceGetTicketSchemaResponse { + m0 := &TicketsServiceGetTicketSchemaResponse{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Schema = b.Schema + x.xxx_hidden_Annotations = &b.Annotations + return m0 +} + +type TicketsServiceListTicketSchemasRequest struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_PageSize uint32 `protobuf:"varint,1,opt,name=page_size,json=pageSize,proto3"` + xxx_hidden_PageToken string `protobuf:"bytes,2,opt,name=page_token,json=pageToken,proto3"` + xxx_hidden_Annotations *[]*anypb.Any `protobuf:"bytes,3,rep,name=annotations,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *TicketsServiceListTicketSchemasRequest) Reset() { + *x = TicketsServiceListTicketSchemasRequest{} + mi := &file_c1_connector_v2_ticket_proto_msgTypes[15] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *TicketsServiceListTicketSchemasRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*TicketsServiceListTicketSchemasRequest) ProtoMessage() {} + +func (x *TicketsServiceListTicketSchemasRequest) ProtoReflect() protoreflect.Message { + mi := &file_c1_connector_v2_ticket_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) +} + +func (x *TicketsServiceListTicketSchemasRequest) GetPageSize() uint32 { + if x != nil { + return x.xxx_hidden_PageSize + } + return 0 +} + +func (x *TicketsServiceListTicketSchemasRequest) GetPageToken() string { + if x != nil { + return x.xxx_hidden_PageToken + } + return "" +} + +func (x *TicketsServiceListTicketSchemasRequest) GetAnnotations() []*anypb.Any { + if x != nil { + if x.xxx_hidden_Annotations != nil { + return *x.xxx_hidden_Annotations + } + } + return nil +} + +func (x *TicketsServiceListTicketSchemasRequest) SetPageSize(v uint32) { + x.xxx_hidden_PageSize = v +} + +func (x *TicketsServiceListTicketSchemasRequest) SetPageToken(v string) { + x.xxx_hidden_PageToken = v +} + +func (x *TicketsServiceListTicketSchemasRequest) SetAnnotations(v []*anypb.Any) { + x.xxx_hidden_Annotations = &v +} + +type TicketsServiceListTicketSchemasRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + PageSize uint32 + PageToken string + Annotations []*anypb.Any +} + +func (b0 TicketsServiceListTicketSchemasRequest_builder) Build() *TicketsServiceListTicketSchemasRequest { + m0 := &TicketsServiceListTicketSchemasRequest{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_PageSize = b.PageSize + x.xxx_hidden_PageToken = b.PageToken + x.xxx_hidden_Annotations = &b.Annotations + return m0 +} + +type TicketsServiceListTicketSchemasResponse struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_List *[]*TicketSchema `protobuf:"bytes,1,rep,name=list,proto3"` + xxx_hidden_NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3"` + xxx_hidden_Annotations *[]*anypb.Any `protobuf:"bytes,3,rep,name=annotations,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *TicketsServiceListTicketSchemasResponse) Reset() { + *x = TicketsServiceListTicketSchemasResponse{} + mi := &file_c1_connector_v2_ticket_proto_msgTypes[16] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *TicketsServiceListTicketSchemasResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*TicketsServiceListTicketSchemasResponse) ProtoMessage() {} + +func (x *TicketsServiceListTicketSchemasResponse) ProtoReflect() protoreflect.Message { + mi := &file_c1_connector_v2_ticket_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) +} + +func (x *TicketsServiceListTicketSchemasResponse) GetList() []*TicketSchema { + if x != nil { + if x.xxx_hidden_List != nil { + return *x.xxx_hidden_List + } + } + return nil +} + +func (x *TicketsServiceListTicketSchemasResponse) GetNextPageToken() string { + if x != nil { + return x.xxx_hidden_NextPageToken + } + return "" +} + +func (x *TicketsServiceListTicketSchemasResponse) GetAnnotations() []*anypb.Any { + if x != nil { + if x.xxx_hidden_Annotations != nil { + return *x.xxx_hidden_Annotations + } + } + return nil +} + +func (x *TicketsServiceListTicketSchemasResponse) SetList(v []*TicketSchema) { + x.xxx_hidden_List = &v +} + +func (x *TicketsServiceListTicketSchemasResponse) SetNextPageToken(v string) { + x.xxx_hidden_NextPageToken = v +} + +func (x *TicketsServiceListTicketSchemasResponse) SetAnnotations(v []*anypb.Any) { + x.xxx_hidden_Annotations = &v +} + +type TicketsServiceListTicketSchemasResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + List []*TicketSchema + NextPageToken string + Annotations []*anypb.Any +} + +func (b0 TicketsServiceListTicketSchemasResponse_builder) Build() *TicketsServiceListTicketSchemasResponse { + m0 := &TicketsServiceListTicketSchemasResponse{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_List = &b.List + x.xxx_hidden_NextPageToken = b.NextPageToken + x.xxx_hidden_Annotations = &b.Annotations + return m0 +} + +type Ticket struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Id string `protobuf:"bytes,1,opt,name=id,proto3"` + xxx_hidden_DisplayName string `protobuf:"bytes,2,opt,name=display_name,json=displayName,proto3"` + xxx_hidden_Description string `protobuf:"bytes,3,opt,name=description,proto3"` + xxx_hidden_Assignees *[]*Resource `protobuf:"bytes,4,rep,name=assignees,proto3"` + xxx_hidden_Reporter *Resource `protobuf:"bytes,5,opt,name=reporter,proto3"` + xxx_hidden_Status *TicketStatus `protobuf:"bytes,7,opt,name=status,proto3"` + xxx_hidden_Type *TicketType `protobuf:"bytes,8,opt,name=type,proto3"` + xxx_hidden_Labels []string `protobuf:"bytes,9,rep,name=labels,proto3"` + xxx_hidden_Url string `protobuf:"bytes,10,opt,name=url,proto3"` + xxx_hidden_CustomFields map[string]*TicketCustomField `protobuf:"bytes,11,rep,name=custom_fields,json=customFields,proto3" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"` + xxx_hidden_CreatedAt *timestamppb.Timestamp `protobuf:"bytes,12,opt,name=created_at,json=createdAt,proto3"` + xxx_hidden_UpdatedAt *timestamppb.Timestamp `protobuf:"bytes,13,opt,name=updated_at,json=updatedAt,proto3"` + xxx_hidden_CompletedAt *timestamppb.Timestamp `protobuf:"bytes,14,opt,name=completed_at,json=completedAt,proto3"` + xxx_hidden_RequestedFor *Resource `protobuf:"bytes,15,opt,name=requested_for,json=requestedFor,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *Ticket) Reset() { + *x = Ticket{} + mi := &file_c1_connector_v2_ticket_proto_msgTypes[17] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *Ticket) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Ticket) ProtoMessage() {} + +func (x *Ticket) ProtoReflect() protoreflect.Message { + mi := &file_c1_connector_v2_ticket_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) +} + +func (x *Ticket) GetId() string { + if x != nil { + return x.xxx_hidden_Id + } + return "" +} + +func (x *Ticket) GetDisplayName() string { + if x != nil { + return x.xxx_hidden_DisplayName + } + return "" +} + +func (x *Ticket) GetDescription() string { + if x != nil { + return x.xxx_hidden_Description + } + return "" +} + +func (x *Ticket) GetAssignees() []*Resource { + if x != nil { + if x.xxx_hidden_Assignees != nil { + return *x.xxx_hidden_Assignees + } + } + return nil +} + +func (x *Ticket) GetReporter() *Resource { + if x != nil { + return x.xxx_hidden_Reporter + } + return nil +} + +func (x *Ticket) GetStatus() *TicketStatus { + if x != nil { + return x.xxx_hidden_Status + } + return nil +} + +func (x *Ticket) GetType() *TicketType { + if x != nil { + return x.xxx_hidden_Type + } + return nil +} + +func (x *Ticket) GetLabels() []string { + if x != nil { + return x.xxx_hidden_Labels + } + return nil +} + +func (x *Ticket) GetUrl() string { + if x != nil { + return x.xxx_hidden_Url + } + return "" +} + +func (x *Ticket) GetCustomFields() map[string]*TicketCustomField { + if x != nil { + return x.xxx_hidden_CustomFields + } + return nil +} + +func (x *Ticket) GetCreatedAt() *timestamppb.Timestamp { + if x != nil { + return x.xxx_hidden_CreatedAt + } + return nil +} + +func (x *Ticket) GetUpdatedAt() *timestamppb.Timestamp { + if x != nil { + return x.xxx_hidden_UpdatedAt + } + return nil +} + +func (x *Ticket) GetCompletedAt() *timestamppb.Timestamp { + if x != nil { + return x.xxx_hidden_CompletedAt + } + return nil +} + +func (x *Ticket) GetRequestedFor() *Resource { + if x != nil { + return x.xxx_hidden_RequestedFor + } + return nil +} + +func (x *Ticket) SetId(v string) { + x.xxx_hidden_Id = v +} + +func (x *Ticket) SetDisplayName(v string) { + x.xxx_hidden_DisplayName = v +} + +func (x *Ticket) SetDescription(v string) { + x.xxx_hidden_Description = v +} + +func (x *Ticket) SetAssignees(v []*Resource) { + x.xxx_hidden_Assignees = &v +} + +func (x *Ticket) SetReporter(v *Resource) { + x.xxx_hidden_Reporter = v +} + +func (x *Ticket) SetStatus(v *TicketStatus) { + x.xxx_hidden_Status = v +} + +func (x *Ticket) SetType(v *TicketType) { + x.xxx_hidden_Type = v +} + +func (x *Ticket) SetLabels(v []string) { + x.xxx_hidden_Labels = v +} + +func (x *Ticket) SetUrl(v string) { + x.xxx_hidden_Url = v +} + +func (x *Ticket) SetCustomFields(v map[string]*TicketCustomField) { + x.xxx_hidden_CustomFields = v +} + +func (x *Ticket) SetCreatedAt(v *timestamppb.Timestamp) { + x.xxx_hidden_CreatedAt = v +} + +func (x *Ticket) SetUpdatedAt(v *timestamppb.Timestamp) { + x.xxx_hidden_UpdatedAt = v +} + +func (x *Ticket) SetCompletedAt(v *timestamppb.Timestamp) { + x.xxx_hidden_CompletedAt = v +} + +func (x *Ticket) SetRequestedFor(v *Resource) { + x.xxx_hidden_RequestedFor = v +} + +func (x *Ticket) HasReporter() bool { + if x == nil { + return false + } + return x.xxx_hidden_Reporter != nil +} + +func (x *Ticket) HasStatus() bool { + if x == nil { + return false + } + return x.xxx_hidden_Status != nil +} + +func (x *Ticket) HasType() bool { + if x == nil { + return false + } + return x.xxx_hidden_Type != nil +} + +func (x *Ticket) HasCreatedAt() bool { + if x == nil { + return false + } + return x.xxx_hidden_CreatedAt != nil +} + +func (x *Ticket) HasUpdatedAt() bool { + if x == nil { + return false + } + return x.xxx_hidden_UpdatedAt != nil +} + +func (x *Ticket) HasCompletedAt() bool { + if x == nil { + return false + } + return x.xxx_hidden_CompletedAt != nil +} + +func (x *Ticket) HasRequestedFor() bool { + if x == nil { + return false + } + return x.xxx_hidden_RequestedFor != nil +} + +func (x *Ticket) ClearReporter() { + x.xxx_hidden_Reporter = nil +} + +func (x *Ticket) ClearStatus() { + x.xxx_hidden_Status = nil +} + +func (x *Ticket) ClearType() { + x.xxx_hidden_Type = nil +} + +func (x *Ticket) ClearCreatedAt() { + x.xxx_hidden_CreatedAt = nil +} + +func (x *Ticket) ClearUpdatedAt() { + x.xxx_hidden_UpdatedAt = nil +} + +func (x *Ticket) ClearCompletedAt() { + x.xxx_hidden_CompletedAt = nil +} + +func (x *Ticket) ClearRequestedFor() { + x.xxx_hidden_RequestedFor = nil +} + +type Ticket_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Id string + DisplayName string + Description string + Assignees []*Resource + Reporter *Resource + Status *TicketStatus + Type *TicketType + Labels []string + Url string + CustomFields map[string]*TicketCustomField + CreatedAt *timestamppb.Timestamp + UpdatedAt *timestamppb.Timestamp + CompletedAt *timestamppb.Timestamp + RequestedFor *Resource +} + +func (b0 Ticket_builder) Build() *Ticket { + m0 := &Ticket{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Id = b.Id + x.xxx_hidden_DisplayName = b.DisplayName + x.xxx_hidden_Description = b.Description + x.xxx_hidden_Assignees = &b.Assignees + x.xxx_hidden_Reporter = b.Reporter + x.xxx_hidden_Status = b.Status + x.xxx_hidden_Type = b.Type + x.xxx_hidden_Labels = b.Labels + x.xxx_hidden_Url = b.Url + x.xxx_hidden_CustomFields = b.CustomFields + x.xxx_hidden_CreatedAt = b.CreatedAt + x.xxx_hidden_UpdatedAt = b.UpdatedAt + x.xxx_hidden_CompletedAt = b.CompletedAt + x.xxx_hidden_RequestedFor = b.RequestedFor + return m0 +} + +type TicketType struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Id string `protobuf:"bytes,1,opt,name=id,proto3"` + xxx_hidden_DisplayName string `protobuf:"bytes,2,opt,name=display_name,json=displayName,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *TicketType) Reset() { + *x = TicketType{} + mi := &file_c1_connector_v2_ticket_proto_msgTypes[18] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *TicketType) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*TicketType) ProtoMessage() {} + +func (x *TicketType) ProtoReflect() protoreflect.Message { + mi := &file_c1_connector_v2_ticket_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) +} + +func (x *TicketType) GetId() string { + if x != nil { + return x.xxx_hidden_Id + } + return "" +} + +func (x *TicketType) GetDisplayName() string { + if x != nil { + return x.xxx_hidden_DisplayName + } + return "" +} + +func (x *TicketType) SetId(v string) { + x.xxx_hidden_Id = v +} + +func (x *TicketType) SetDisplayName(v string) { + x.xxx_hidden_DisplayName = v +} + +type TicketType_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Id string + DisplayName string +} + +func (b0 TicketType_builder) Build() *TicketType { + m0 := &TicketType{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Id = b.Id + x.xxx_hidden_DisplayName = b.DisplayName + return m0 +} + +type TicketRequest struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_DisplayName string `protobuf:"bytes,1,opt,name=display_name,json=displayName,proto3"` + xxx_hidden_Description string `protobuf:"bytes,2,opt,name=description,proto3"` + xxx_hidden_Status *TicketStatus `protobuf:"bytes,3,opt,name=status,proto3"` + xxx_hidden_Type *TicketType `protobuf:"bytes,4,opt,name=type,proto3"` + xxx_hidden_Labels []string `protobuf:"bytes,5,rep,name=labels,proto3"` + xxx_hidden_CustomFields map[string]*TicketCustomField `protobuf:"bytes,6,rep,name=custom_fields,json=customFields,proto3" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"` + xxx_hidden_RequestedFor *Resource `protobuf:"bytes,7,opt,name=requested_for,json=requestedFor,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *TicketRequest) Reset() { + *x = TicketRequest{} + mi := &file_c1_connector_v2_ticket_proto_msgTypes[19] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *TicketRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*TicketRequest) ProtoMessage() {} + +func (x *TicketRequest) ProtoReflect() protoreflect.Message { + mi := &file_c1_connector_v2_ticket_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) +} + +func (x *TicketRequest) GetDisplayName() string { + if x != nil { + return x.xxx_hidden_DisplayName + } + return "" +} + +func (x *TicketRequest) GetDescription() string { + if x != nil { + return x.xxx_hidden_Description + } + return "" +} + +func (x *TicketRequest) GetStatus() *TicketStatus { + if x != nil { + return x.xxx_hidden_Status + } + return nil +} + +func (x *TicketRequest) GetType() *TicketType { + if x != nil { + return x.xxx_hidden_Type + } + return nil +} + +func (x *TicketRequest) GetLabels() []string { + if x != nil { + return x.xxx_hidden_Labels + } + return nil +} + +func (x *TicketRequest) GetCustomFields() map[string]*TicketCustomField { + if x != nil { + return x.xxx_hidden_CustomFields + } + return nil +} + +func (x *TicketRequest) GetRequestedFor() *Resource { + if x != nil { + return x.xxx_hidden_RequestedFor + } + return nil +} + +func (x *TicketRequest) SetDisplayName(v string) { + x.xxx_hidden_DisplayName = v +} + +func (x *TicketRequest) SetDescription(v string) { + x.xxx_hidden_Description = v +} + +func (x *TicketRequest) SetStatus(v *TicketStatus) { + x.xxx_hidden_Status = v +} + +func (x *TicketRequest) SetType(v *TicketType) { + x.xxx_hidden_Type = v +} + +func (x *TicketRequest) SetLabels(v []string) { + x.xxx_hidden_Labels = v +} + +func (x *TicketRequest) SetCustomFields(v map[string]*TicketCustomField) { + x.xxx_hidden_CustomFields = v +} + +func (x *TicketRequest) SetRequestedFor(v *Resource) { + x.xxx_hidden_RequestedFor = v +} + +func (x *TicketRequest) HasStatus() bool { + if x == nil { + return false + } + return x.xxx_hidden_Status != nil +} + +func (x *TicketRequest) HasType() bool { + if x == nil { + return false + } + return x.xxx_hidden_Type != nil +} + +func (x *TicketRequest) HasRequestedFor() bool { + if x == nil { + return false + } + return x.xxx_hidden_RequestedFor != nil +} + +func (x *TicketRequest) ClearStatus() { + x.xxx_hidden_Status = nil +} + +func (x *TicketRequest) ClearType() { + x.xxx_hidden_Type = nil +} + +func (x *TicketRequest) ClearRequestedFor() { + x.xxx_hidden_RequestedFor = nil +} + +type TicketRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + DisplayName string + Description string + Status *TicketStatus + Type *TicketType + Labels []string + CustomFields map[string]*TicketCustomField + RequestedFor *Resource +} + +func (b0 TicketRequest_builder) Build() *TicketRequest { + m0 := &TicketRequest{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_DisplayName = b.DisplayName + x.xxx_hidden_Description = b.Description + x.xxx_hidden_Status = b.Status + x.xxx_hidden_Type = b.Type + x.xxx_hidden_Labels = b.Labels + x.xxx_hidden_CustomFields = b.CustomFields + x.xxx_hidden_RequestedFor = b.RequestedFor + return m0 +} + +type TicketsServiceCreateTicketRequest struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Request *TicketRequest `protobuf:"bytes,1,opt,name=request,proto3"` + xxx_hidden_Schema *TicketSchema `protobuf:"bytes,2,opt,name=schema,proto3"` + xxx_hidden_Annotations *[]*anypb.Any `protobuf:"bytes,8,rep,name=annotations,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *TicketsServiceCreateTicketRequest) Reset() { + *x = TicketsServiceCreateTicketRequest{} + mi := &file_c1_connector_v2_ticket_proto_msgTypes[20] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *TicketsServiceCreateTicketRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*TicketsServiceCreateTicketRequest) ProtoMessage() {} + +func (x *TicketsServiceCreateTicketRequest) ProtoReflect() protoreflect.Message { + mi := &file_c1_connector_v2_ticket_proto_msgTypes[20] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *TicketsServiceCreateTicketRequest) GetRequest() *TicketRequest { + if x != nil { + return x.xxx_hidden_Request + } + return nil +} + +func (x *TicketsServiceCreateTicketRequest) GetSchema() *TicketSchema { + if x != nil { + return x.xxx_hidden_Schema + } + return nil +} + +func (x *TicketsServiceCreateTicketRequest) GetAnnotations() []*anypb.Any { + if x != nil { + if x.xxx_hidden_Annotations != nil { + return *x.xxx_hidden_Annotations + } + } + return nil +} + +func (x *TicketsServiceCreateTicketRequest) SetRequest(v *TicketRequest) { + x.xxx_hidden_Request = v +} + +func (x *TicketsServiceCreateTicketRequest) SetSchema(v *TicketSchema) { + x.xxx_hidden_Schema = v +} + +func (x *TicketsServiceCreateTicketRequest) SetAnnotations(v []*anypb.Any) { + x.xxx_hidden_Annotations = &v +} + +func (x *TicketsServiceCreateTicketRequest) HasRequest() bool { + if x == nil { + return false + } + return x.xxx_hidden_Request != nil +} + +func (x *TicketsServiceCreateTicketRequest) HasSchema() bool { + if x == nil { + return false + } + return x.xxx_hidden_Schema != nil +} + +func (x *TicketsServiceCreateTicketRequest) ClearRequest() { + x.xxx_hidden_Request = nil +} + +func (x *TicketsServiceCreateTicketRequest) ClearSchema() { + x.xxx_hidden_Schema = nil +} + +type TicketsServiceCreateTicketRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Request *TicketRequest + Schema *TicketSchema + Annotations []*anypb.Any +} + +func (b0 TicketsServiceCreateTicketRequest_builder) Build() *TicketsServiceCreateTicketRequest { + m0 := &TicketsServiceCreateTicketRequest{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Request = b.Request + x.xxx_hidden_Schema = b.Schema + x.xxx_hidden_Annotations = &b.Annotations + return m0 +} + +// TODO(lauren) maybe the error should be a separate proto so we can store retryable error +type TicketsServiceCreateTicketResponse struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Ticket *Ticket `protobuf:"bytes,1,opt,name=ticket,proto3"` + xxx_hidden_Annotations *[]*anypb.Any `protobuf:"bytes,2,rep,name=annotations,proto3"` + xxx_hidden_Error string `protobuf:"bytes,3,opt,name=error,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *TicketsServiceCreateTicketResponse) Reset() { + *x = TicketsServiceCreateTicketResponse{} + mi := &file_c1_connector_v2_ticket_proto_msgTypes[21] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *TicketsServiceCreateTicketResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*TicketsServiceCreateTicketResponse) ProtoMessage() {} + +func (x *TicketsServiceCreateTicketResponse) ProtoReflect() protoreflect.Message { + mi := &file_c1_connector_v2_ticket_proto_msgTypes[21] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *TicketsServiceCreateTicketResponse) GetTicket() *Ticket { + if x != nil { + return x.xxx_hidden_Ticket + } + return nil +} + +func (x *TicketsServiceCreateTicketResponse) GetAnnotations() []*anypb.Any { + if x != nil { + if x.xxx_hidden_Annotations != nil { + return *x.xxx_hidden_Annotations + } + } + return nil +} + +func (x *TicketsServiceCreateTicketResponse) GetError() string { + if x != nil { + return x.xxx_hidden_Error + } + return "" +} + +func (x *TicketsServiceCreateTicketResponse) SetTicket(v *Ticket) { + x.xxx_hidden_Ticket = v +} + +func (x *TicketsServiceCreateTicketResponse) SetAnnotations(v []*anypb.Any) { + x.xxx_hidden_Annotations = &v +} + +func (x *TicketsServiceCreateTicketResponse) SetError(v string) { + x.xxx_hidden_Error = v +} + +func (x *TicketsServiceCreateTicketResponse) HasTicket() bool { + if x == nil { + return false + } + return x.xxx_hidden_Ticket != nil +} + +func (x *TicketsServiceCreateTicketResponse) ClearTicket() { + x.xxx_hidden_Ticket = nil +} + +type TicketsServiceCreateTicketResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Ticket *Ticket + Annotations []*anypb.Any + Error string +} + +func (b0 TicketsServiceCreateTicketResponse_builder) Build() *TicketsServiceCreateTicketResponse { + m0 := &TicketsServiceCreateTicketResponse{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Ticket = b.Ticket + x.xxx_hidden_Annotations = &b.Annotations + x.xxx_hidden_Error = b.Error + return m0 +} + +type TicketsServiceGetTicketRequest struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Id string `protobuf:"bytes,1,opt,name=id,proto3"` + xxx_hidden_Annotations *[]*anypb.Any `protobuf:"bytes,2,rep,name=annotations,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *TicketsServiceGetTicketRequest) Reset() { + *x = TicketsServiceGetTicketRequest{} + mi := &file_c1_connector_v2_ticket_proto_msgTypes[22] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *TicketsServiceGetTicketRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*TicketsServiceGetTicketRequest) ProtoMessage() {} + +func (x *TicketsServiceGetTicketRequest) ProtoReflect() protoreflect.Message { + mi := &file_c1_connector_v2_ticket_proto_msgTypes[22] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *TicketsServiceGetTicketRequest) GetId() string { + if x != nil { + return x.xxx_hidden_Id + } + return "" +} + +func (x *TicketsServiceGetTicketRequest) GetAnnotations() []*anypb.Any { + if x != nil { + if x.xxx_hidden_Annotations != nil { + return *x.xxx_hidden_Annotations + } + } + return nil +} + +func (x *TicketsServiceGetTicketRequest) SetId(v string) { + x.xxx_hidden_Id = v +} + +func (x *TicketsServiceGetTicketRequest) SetAnnotations(v []*anypb.Any) { + x.xxx_hidden_Annotations = &v +} + +type TicketsServiceGetTicketRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Id string + Annotations []*anypb.Any +} + +func (b0 TicketsServiceGetTicketRequest_builder) Build() *TicketsServiceGetTicketRequest { + m0 := &TicketsServiceGetTicketRequest{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Id = b.Id + x.xxx_hidden_Annotations = &b.Annotations + return m0 +} + +type TicketsServiceGetTicketResponse struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Ticket *Ticket `protobuf:"bytes,1,opt,name=ticket,proto3"` + xxx_hidden_Annotations *[]*anypb.Any `protobuf:"bytes,2,rep,name=annotations,proto3"` + xxx_hidden_Error string `protobuf:"bytes,3,opt,name=error,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *TicketsServiceGetTicketResponse) Reset() { + *x = TicketsServiceGetTicketResponse{} + mi := &file_c1_connector_v2_ticket_proto_msgTypes[23] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *TicketsServiceGetTicketResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*TicketsServiceGetTicketResponse) ProtoMessage() {} + +func (x *TicketsServiceGetTicketResponse) ProtoReflect() protoreflect.Message { + mi := &file_c1_connector_v2_ticket_proto_msgTypes[23] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *TicketsServiceGetTicketResponse) GetTicket() *Ticket { + if x != nil { + return x.xxx_hidden_Ticket + } + return nil +} + +func (x *TicketsServiceGetTicketResponse) GetAnnotations() []*anypb.Any { + if x != nil { + if x.xxx_hidden_Annotations != nil { + return *x.xxx_hidden_Annotations + } + } + return nil +} + +func (x *TicketsServiceGetTicketResponse) GetError() string { + if x != nil { + return x.xxx_hidden_Error + } + return "" +} + +func (x *TicketsServiceGetTicketResponse) SetTicket(v *Ticket) { + x.xxx_hidden_Ticket = v +} + +func (x *TicketsServiceGetTicketResponse) SetAnnotations(v []*anypb.Any) { + x.xxx_hidden_Annotations = &v +} + +func (x *TicketsServiceGetTicketResponse) SetError(v string) { + x.xxx_hidden_Error = v +} + +func (x *TicketsServiceGetTicketResponse) HasTicket() bool { + if x == nil { + return false + } + return x.xxx_hidden_Ticket != nil +} + +func (x *TicketsServiceGetTicketResponse) ClearTicket() { + x.xxx_hidden_Ticket = nil +} + +type TicketsServiceGetTicketResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Ticket *Ticket + Annotations []*anypb.Any + Error string +} + +func (b0 TicketsServiceGetTicketResponse_builder) Build() *TicketsServiceGetTicketResponse { + m0 := &TicketsServiceGetTicketResponse{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Ticket = b.Ticket + x.xxx_hidden_Annotations = &b.Annotations + x.xxx_hidden_Error = b.Error + return m0 +} + +type TicketsServiceBulkCreateTicketsRequest struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_TicketRequests *[]*TicketsServiceCreateTicketRequest `protobuf:"bytes,1,rep,name=ticket_requests,json=ticketRequests,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *TicketsServiceBulkCreateTicketsRequest) Reset() { + *x = TicketsServiceBulkCreateTicketsRequest{} + mi := &file_c1_connector_v2_ticket_proto_msgTypes[24] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *TicketsServiceBulkCreateTicketsRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*TicketsServiceBulkCreateTicketsRequest) ProtoMessage() {} + +func (x *TicketsServiceBulkCreateTicketsRequest) ProtoReflect() protoreflect.Message { + mi := &file_c1_connector_v2_ticket_proto_msgTypes[24] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *TicketsServiceBulkCreateTicketsRequest) GetTicketRequests() []*TicketsServiceCreateTicketRequest { + if x != nil { + if x.xxx_hidden_TicketRequests != nil { + return *x.xxx_hidden_TicketRequests + } + } + return nil +} + +func (x *TicketsServiceBulkCreateTicketsRequest) SetTicketRequests(v []*TicketsServiceCreateTicketRequest) { + x.xxx_hidden_TicketRequests = &v +} + +type TicketsServiceBulkCreateTicketsRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + TicketRequests []*TicketsServiceCreateTicketRequest +} + +func (b0 TicketsServiceBulkCreateTicketsRequest_builder) Build() *TicketsServiceBulkCreateTicketsRequest { + m0 := &TicketsServiceBulkCreateTicketsRequest{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_TicketRequests = &b.TicketRequests + return m0 +} + +type TicketsServiceBulkCreateTicketsResponse struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Tickets *[]*TicketsServiceCreateTicketResponse `protobuf:"bytes,1,rep,name=tickets,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *TicketsServiceBulkCreateTicketsResponse) Reset() { + *x = TicketsServiceBulkCreateTicketsResponse{} + mi := &file_c1_connector_v2_ticket_proto_msgTypes[25] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *TicketsServiceBulkCreateTicketsResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*TicketsServiceBulkCreateTicketsResponse) ProtoMessage() {} + +func (x *TicketsServiceBulkCreateTicketsResponse) ProtoReflect() protoreflect.Message { + mi := &file_c1_connector_v2_ticket_proto_msgTypes[25] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *TicketsServiceBulkCreateTicketsResponse) GetTickets() []*TicketsServiceCreateTicketResponse { + if x != nil { + if x.xxx_hidden_Tickets != nil { + return *x.xxx_hidden_Tickets + } + } + return nil +} + +func (x *TicketsServiceBulkCreateTicketsResponse) SetTickets(v []*TicketsServiceCreateTicketResponse) { + x.xxx_hidden_Tickets = &v +} + +type TicketsServiceBulkCreateTicketsResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Tickets []*TicketsServiceCreateTicketResponse +} + +func (b0 TicketsServiceBulkCreateTicketsResponse_builder) Build() *TicketsServiceBulkCreateTicketsResponse { + m0 := &TicketsServiceBulkCreateTicketsResponse{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Tickets = &b.Tickets + return m0 +} + +type TicketsServiceBulkGetTicketsRequest struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_TicketRequests *[]*TicketsServiceGetTicketRequest `protobuf:"bytes,1,rep,name=ticket_requests,json=ticketRequests,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *TicketsServiceBulkGetTicketsRequest) Reset() { + *x = TicketsServiceBulkGetTicketsRequest{} + mi := &file_c1_connector_v2_ticket_proto_msgTypes[26] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *TicketsServiceBulkGetTicketsRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*TicketsServiceBulkGetTicketsRequest) ProtoMessage() {} + +func (x *TicketsServiceBulkGetTicketsRequest) ProtoReflect() protoreflect.Message { + mi := &file_c1_connector_v2_ticket_proto_msgTypes[26] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *TicketsServiceBulkGetTicketsRequest) GetTicketRequests() []*TicketsServiceGetTicketRequest { + if x != nil { + if x.xxx_hidden_TicketRequests != nil { + return *x.xxx_hidden_TicketRequests + } + } + return nil +} + +func (x *TicketsServiceBulkGetTicketsRequest) SetTicketRequests(v []*TicketsServiceGetTicketRequest) { + x.xxx_hidden_TicketRequests = &v +} + +type TicketsServiceBulkGetTicketsRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + TicketRequests []*TicketsServiceGetTicketRequest +} + +func (b0 TicketsServiceBulkGetTicketsRequest_builder) Build() *TicketsServiceBulkGetTicketsRequest { + m0 := &TicketsServiceBulkGetTicketsRequest{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_TicketRequests = &b.TicketRequests + return m0 +} + +type TicketsServiceBulkGetTicketsResponse struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Tickets *[]*TicketsServiceGetTicketResponse `protobuf:"bytes,1,rep,name=tickets,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *TicketsServiceBulkGetTicketsResponse) Reset() { + *x = TicketsServiceBulkGetTicketsResponse{} + mi := &file_c1_connector_v2_ticket_proto_msgTypes[27] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *TicketsServiceBulkGetTicketsResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*TicketsServiceBulkGetTicketsResponse) ProtoMessage() {} + +func (x *TicketsServiceBulkGetTicketsResponse) ProtoReflect() protoreflect.Message { + mi := &file_c1_connector_v2_ticket_proto_msgTypes[27] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +func (x *TicketsServiceBulkGetTicketsResponse) GetTickets() []*TicketsServiceGetTicketResponse { + if x != nil { + if x.xxx_hidden_Tickets != nil { + return *x.xxx_hidden_Tickets + } + } + return nil +} + +func (x *TicketsServiceBulkGetTicketsResponse) SetTickets(v []*TicketsServiceGetTicketResponse) { + x.xxx_hidden_Tickets = &v +} + +type TicketsServiceBulkGetTicketsResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Tickets []*TicketsServiceGetTicketResponse +} + +func (b0 TicketsServiceBulkGetTicketsResponse_builder) Build() *TicketsServiceBulkGetTicketsResponse { + m0 := &TicketsServiceBulkGetTicketsResponse{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Tickets = &b.Tickets + return m0 +} + +var File_c1_connector_v2_ticket_proto protoreflect.FileDescriptor + +const file_c1_connector_v2_ticket_proto_rawDesc = "" + + "\n" + + "\x1cc1/connector/v2/ticket.proto\x12\x0fc1.connector.v2\x1a\x1ec1/connector/v2/resource.proto\x1a\x19google/protobuf/any.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x1egoogle/protobuf/wrappers.proto\x1a\x17validate/validate.proto\"\xa2\x03\n" + + "\fTicketSchema\x12\x0e\n" + + "\x02id\x18\x01 \x01(\tR\x02id\x12!\n" + + "\fdisplay_name\x18\x02 \x01(\tR\vdisplayName\x121\n" + + "\x05types\x18\x03 \x03(\v2\x1b.c1.connector.v2.TicketTypeR\x05types\x129\n" + + "\bstatuses\x18\x04 \x03(\v2\x1d.c1.connector.v2.TicketStatusR\bstatuses\x12T\n" + + "\rcustom_fields\x18\x05 \x03(\v2/.c1.connector.v2.TicketSchema.CustomFieldsEntryR\fcustomFields\x126\n" + + "\vannotations\x18\x06 \x03(\v2\x14.google.protobuf.AnyR\vannotations\x1ac\n" + + "\x11CustomFieldsEntry\x12\x10\n" + + "\x03key\x18\x01 \x01(\tR\x03key\x128\n" + + "\x05value\x18\x02 \x01(\v2\".c1.connector.v2.TicketCustomFieldR\x05value:\x028\x01\"\x89\b\n" + + "\x11TicketCustomField\x12\x0e\n" + + "\x02id\x18\x01 \x01(\tR\x02id\x12!\n" + + "\fdisplay_name\x18\x02 \x01(\tR\vdisplayName\x12\x1a\n" + + "\brequired\x18\x03 \x01(\bR\brequired\x12R\n" + + "\fstring_value\x18d \x01(\v2-.c1.connector.v2.TicketCustomFieldStringValueH\x00R\vstringValue\x12U\n" + + "\rstring_values\x18e \x01(\v2..c1.connector.v2.TicketCustomFieldStringValuesH\x00R\fstringValues\x12L\n" + + "\n" + + "bool_value\x18f \x01(\v2+.c1.connector.v2.TicketCustomFieldBoolValueH\x00R\tboolValue\x12[\n" + + "\x0ftimestamp_value\x18g \x01(\v20.c1.connector.v2.TicketCustomFieldTimestampValueH\x00R\x0etimestampValue\x12_\n" + + "\x11pick_string_value\x18h \x01(\v21.c1.connector.v2.TicketCustomFieldPickStringValueH\x00R\x0fpickStringValue\x12{\n" + + "\x1bpick_multiple_string_values\x18i \x01(\v2:.c1.connector.v2.TicketCustomFieldPickMultipleStringValuesH\x00R\x18pickMultipleStringValues\x12_\n" + + "\x11pick_object_value\x18j \x01(\v21.c1.connector.v2.TicketCustomFieldPickObjectValueH\x00R\x0fpickObjectValue\x12{\n" + + "\x1bpick_multiple_object_values\x18k \x01(\v2:.c1.connector.v2.TicketCustomFieldPickMultipleObjectValuesH\x00R\x18pickMultipleObjectValues\x12R\n" + + "\fnumber_value\x18l \x01(\v2-.c1.connector.v2.TicketCustomFieldNumberValueH\x00R\vnumberValue\x126\n" + + "\vannotations\x18\x04 \x03(\v2\x14.google.protobuf.AnyR\vannotationsB\a\n" + + "\x05value\"Y\n" + + "\x1cTicketCustomFieldStringValue\x12\x14\n" + + "\x05value\x18\x01 \x01(\tR\x05value\x12#\n" + + "\rdefault_value\x18\x02 \x01(\tR\fdefaultValue\"^\n" + + "\x1dTicketCustomFieldStringValues\x12\x16\n" + + "\x06values\x18\x01 \x03(\tR\x06values\x12%\n" + + "\x0edefault_values\x18\x02 \x03(\tR\rdefaultValues\"2\n" + + "\x1aTicketCustomFieldBoolValue\x12\x14\n" + + "\x05value\x18\x01 \x01(\bR\x05value\"\x93\x01\n" + + "\x1cTicketCustomFieldNumberValue\x121\n" + + "\x05value\x18\x01 \x01(\v2\x1b.google.protobuf.FloatValueR\x05value\x12@\n" + + "\rdefault_value\x18\x02 \x01(\v2\x1b.google.protobuf.FloatValueR\fdefaultValue\"\x94\x01\n" + + "\x1fTicketCustomFieldTimestampValue\x120\n" + + "\x05value\x18\x01 \x01(\v2\x1a.google.protobuf.TimestampR\x05value\x12?\n" + + "\rdefault_value\x18\x02 \x01(\v2\x1a.google.protobuf.TimestampR\fdefaultValue\"\x84\x01\n" + + " TicketCustomFieldPickStringValue\x12\x14\n" + + "\x05value\x18\x01 \x01(\tR\x05value\x12%\n" + + "\x0eallowed_values\x18\x02 \x03(\tR\rallowedValues\x12#\n" + + "\rdefault_value\x18\x03 \x01(\tR\fdefaultValue\"\x91\x01\n" + + ")TicketCustomFieldPickMultipleStringValues\x12\x16\n" + + "\x06values\x18\x01 \x03(\tR\x06values\x12%\n" + + "\x0eallowed_values\x18\x02 \x03(\tR\rallowedValues\x12%\n" + + "\x0edefault_values\x18\x03 \x03(\tR\rdefaultValues\"\x91\x02\n" + + " TicketCustomFieldPickObjectValue\x12C\n" + + "\x05value\x18\x01 \x01(\v2-.c1.connector.v2.TicketCustomFieldObjectValueR\x05value\x12T\n" + + "\x0eallowed_values\x18\x02 \x03(\v2-.c1.connector.v2.TicketCustomFieldObjectValueR\rallowedValues\x12R\n" + + "\rdefault_value\x18\x03 \x01(\v2-.c1.connector.v2.TicketCustomFieldObjectValueR\fdefaultValue\"\x9e\x02\n" + + ")TicketCustomFieldPickMultipleObjectValues\x12E\n" + + "\x06values\x18\x01 \x03(\v2-.c1.connector.v2.TicketCustomFieldObjectValueR\x06values\x12T\n" + + "\x0eallowed_values\x18\x02 \x03(\v2-.c1.connector.v2.TicketCustomFieldObjectValueR\rallowedValues\x12T\n" + + "\x0edefault_values\x18\x03 \x03(\v2-.c1.connector.v2.TicketCustomFieldObjectValueR\rdefaultValues\"Q\n" + + "\x1cTicketCustomFieldObjectValue\x12\x0e\n" + + "\x02id\x18\x01 \x01(\tR\x02id\x12!\n" + + "\fdisplay_name\x18\x02 \x01(\tR\vdisplayName\"A\n" + + "\fTicketStatus\x12\x0e\n" + + "\x02id\x18\x01 \x01(\tR\x02id\x12!\n" + + "\fdisplay_name\x18\x02 \x01(\tR\vdisplayName\"n\n" + + "$TicketsServiceGetTicketSchemaRequest\x12\x0e\n" + + "\x02id\x18\x01 \x01(\tR\x02id\x126\n" + + "\vannotations\x18\x02 \x03(\v2\x14.google.protobuf.AnyR\vannotations\"\x96\x01\n" + + "%TicketsServiceGetTicketSchemaResponse\x125\n" + + "\x06schema\x18\x01 \x01(\v2\x1d.c1.connector.v2.TicketSchemaR\x06schema\x126\n" + + "\vannotations\x18\x02 \x03(\v2\x14.google.protobuf.AnyR\vannotations\"\xb7\x01\n" + + "&TicketsServiceListTicketSchemasRequest\x12'\n" + + "\tpage_size\x18\x01 \x01(\rB\n" + + "\xfaB\a*\x05\x18\xfa\x01@\x01R\bpageSize\x12,\n" + + "\n" + + "page_token\x18\x02 \x01(\tB\r\xfaB\n" + + "r\b \x01(\x80 \xd0\x01\x01R\tpageToken\x126\n" + + "\vannotations\x18\x03 \x03(\v2\x14.google.protobuf.AnyR\vannotations\"\xcb\x01\n" + + "'TicketsServiceListTicketSchemasResponse\x121\n" + + "\x04list\x18\x01 \x03(\v2\x1d.c1.connector.v2.TicketSchemaR\x04list\x125\n" + + "\x0fnext_page_token\x18\x02 \x01(\tB\r\xfaB\n" + + "r\b \x01(\x80 \xd0\x01\x01R\rnextPageToken\x126\n" + + "\vannotations\x18\x03 \x03(\v2\x14.google.protobuf.AnyR\vannotations\"\x89\x06\n" + + "\x06Ticket\x12\x0e\n" + + "\x02id\x18\x01 \x01(\tR\x02id\x12!\n" + + "\fdisplay_name\x18\x02 \x01(\tR\vdisplayName\x12 \n" + + "\vdescription\x18\x03 \x01(\tR\vdescription\x127\n" + + "\tassignees\x18\x04 \x03(\v2\x19.c1.connector.v2.ResourceR\tassignees\x125\n" + + "\breporter\x18\x05 \x01(\v2\x19.c1.connector.v2.ResourceR\breporter\x125\n" + + "\x06status\x18\a \x01(\v2\x1d.c1.connector.v2.TicketStatusR\x06status\x12/\n" + + "\x04type\x18\b \x01(\v2\x1b.c1.connector.v2.TicketTypeR\x04type\x12\x16\n" + + "\x06labels\x18\t \x03(\tR\x06labels\x12\x10\n" + + "\x03url\x18\n" + + " \x01(\tR\x03url\x12N\n" + + "\rcustom_fields\x18\v \x03(\v2).c1.connector.v2.Ticket.CustomFieldsEntryR\fcustomFields\x129\n" + + "\n" + + "created_at\x18\f \x01(\v2\x1a.google.protobuf.TimestampR\tcreatedAt\x129\n" + + "\n" + + "updated_at\x18\r \x01(\v2\x1a.google.protobuf.TimestampR\tupdatedAt\x12=\n" + + "\fcompleted_at\x18\x0e \x01(\v2\x1a.google.protobuf.TimestampR\vcompletedAt\x12>\n" + + "\rrequested_for\x18\x0f \x01(\v2\x19.c1.connector.v2.ResourceR\frequestedFor\x1ac\n" + + "\x11CustomFieldsEntry\x12\x10\n" + + "\x03key\x18\x01 \x01(\tR\x03key\x128\n" + + "\x05value\x18\x02 \x01(\v2\".c1.connector.v2.TicketCustomFieldR\x05value:\x028\x01\"?\n" + + "\n" + + "TicketType\x12\x0e\n" + + "\x02id\x18\x01 \x01(\tR\x02id\x12!\n" + + "\fdisplay_name\x18\x02 \x01(\tR\vdisplayName\"\xd0\x03\n" + + "\rTicketRequest\x12!\n" + + "\fdisplay_name\x18\x01 \x01(\tR\vdisplayName\x12 \n" + + "\vdescription\x18\x02 \x01(\tR\vdescription\x125\n" + + "\x06status\x18\x03 \x01(\v2\x1d.c1.connector.v2.TicketStatusR\x06status\x12/\n" + + "\x04type\x18\x04 \x01(\v2\x1b.c1.connector.v2.TicketTypeR\x04type\x12\x16\n" + + "\x06labels\x18\x05 \x03(\tR\x06labels\x12U\n" + + "\rcustom_fields\x18\x06 \x03(\v20.c1.connector.v2.TicketRequest.CustomFieldsEntryR\fcustomFields\x12>\n" + + "\rrequested_for\x18\a \x01(\v2\x19.c1.connector.v2.ResourceR\frequestedFor\x1ac\n" + + "\x11CustomFieldsEntry\x12\x10\n" + + "\x03key\x18\x01 \x01(\tR\x03key\x128\n" + + "\x05value\x18\x02 \x01(\v2\".c1.connector.v2.TicketCustomFieldR\x05value:\x028\x01\"\xcc\x01\n" + + "!TicketsServiceCreateTicketRequest\x128\n" + + "\arequest\x18\x01 \x01(\v2\x1e.c1.connector.v2.TicketRequestR\arequest\x125\n" + + "\x06schema\x18\x02 \x01(\v2\x1d.c1.connector.v2.TicketSchemaR\x06schema\x126\n" + + "\vannotations\x18\b \x03(\v2\x14.google.protobuf.AnyR\vannotations\"\xa3\x01\n" + + "\"TicketsServiceCreateTicketResponse\x12/\n" + + "\x06ticket\x18\x01 \x01(\v2\x17.c1.connector.v2.TicketR\x06ticket\x126\n" + + "\vannotations\x18\x02 \x03(\v2\x14.google.protobuf.AnyR\vannotations\x12\x14\n" + + "\x05error\x18\x03 \x01(\tR\x05error\"h\n" + + "\x1eTicketsServiceGetTicketRequest\x12\x0e\n" + + "\x02id\x18\x01 \x01(\tR\x02id\x126\n" + + "\vannotations\x18\x02 \x03(\v2\x14.google.protobuf.AnyR\vannotations\"\xa0\x01\n" + + "\x1fTicketsServiceGetTicketResponse\x12/\n" + + "\x06ticket\x18\x01 \x01(\v2\x17.c1.connector.v2.TicketR\x06ticket\x126\n" + + "\vannotations\x18\x02 \x03(\v2\x14.google.protobuf.AnyR\vannotations\x12\x14\n" + + "\x05error\x18\x03 \x01(\tR\x05error\"\x85\x01\n" + + "&TicketsServiceBulkCreateTicketsRequest\x12[\n" + + "\x0fticket_requests\x18\x01 \x03(\v22.c1.connector.v2.TicketsServiceCreateTicketRequestR\x0eticketRequests\"x\n" + + "'TicketsServiceBulkCreateTicketsResponse\x12M\n" + + "\atickets\x18\x01 \x03(\v23.c1.connector.v2.TicketsServiceCreateTicketResponseR\atickets\"\x7f\n" + + "#TicketsServiceBulkGetTicketsRequest\x12X\n" + + "\x0fticket_requests\x18\x01 \x03(\v2/.c1.connector.v2.TicketsServiceGetTicketRequestR\x0eticketRequests\"r\n" + + "$TicketsServiceBulkGetTicketsResponse\x12J\n" + + "\atickets\x18\x01 \x03(\v20.c1.connector.v2.TicketsServiceGetTicketResponseR\atickets2\x8d\x06\n" + + "\x0eTicketsService\x12w\n" + + "\fCreateTicket\x122.c1.connector.v2.TicketsServiceCreateTicketRequest\x1a3.c1.connector.v2.TicketsServiceCreateTicketResponse\x12n\n" + + "\tGetTicket\x12/.c1.connector.v2.TicketsServiceGetTicketRequest\x1a0.c1.connector.v2.TicketsServiceGetTicketResponse\x12\x86\x01\n" + + "\x11ListTicketSchemas\x127.c1.connector.v2.TicketsServiceListTicketSchemasRequest\x1a8.c1.connector.v2.TicketsServiceListTicketSchemasResponse\x12\x80\x01\n" + + "\x0fGetTicketSchema\x125.c1.connector.v2.TicketsServiceGetTicketSchemaRequest\x1a6.c1.connector.v2.TicketsServiceGetTicketSchemaResponse\x12\x86\x01\n" + + "\x11BulkCreateTickets\x127.c1.connector.v2.TicketsServiceBulkCreateTicketsRequest\x1a8.c1.connector.v2.TicketsServiceBulkCreateTicketsResponse\x12}\n" + + "\x0eBulkGetTickets\x124.c1.connector.v2.TicketsServiceBulkGetTicketsRequest\x1a5.c1.connector.v2.TicketsServiceBulkGetTicketsResponseB6Z4github.com/conductorone/baton-sdk/pb/c1/connector/v2b\x06proto3" + +var file_c1_connector_v2_ticket_proto_msgTypes = make([]protoimpl.MessageInfo, 31) +var file_c1_connector_v2_ticket_proto_goTypes = []any{ + (*TicketSchema)(nil), // 0: c1.connector.v2.TicketSchema + (*TicketCustomField)(nil), // 1: c1.connector.v2.TicketCustomField + (*TicketCustomFieldStringValue)(nil), // 2: c1.connector.v2.TicketCustomFieldStringValue + (*TicketCustomFieldStringValues)(nil), // 3: c1.connector.v2.TicketCustomFieldStringValues + (*TicketCustomFieldBoolValue)(nil), // 4: c1.connector.v2.TicketCustomFieldBoolValue + (*TicketCustomFieldNumberValue)(nil), // 5: c1.connector.v2.TicketCustomFieldNumberValue + (*TicketCustomFieldTimestampValue)(nil), // 6: c1.connector.v2.TicketCustomFieldTimestampValue + (*TicketCustomFieldPickStringValue)(nil), // 7: c1.connector.v2.TicketCustomFieldPickStringValue + (*TicketCustomFieldPickMultipleStringValues)(nil), // 8: c1.connector.v2.TicketCustomFieldPickMultipleStringValues + (*TicketCustomFieldPickObjectValue)(nil), // 9: c1.connector.v2.TicketCustomFieldPickObjectValue + (*TicketCustomFieldPickMultipleObjectValues)(nil), // 10: c1.connector.v2.TicketCustomFieldPickMultipleObjectValues + (*TicketCustomFieldObjectValue)(nil), // 11: c1.connector.v2.TicketCustomFieldObjectValue + (*TicketStatus)(nil), // 12: c1.connector.v2.TicketStatus + (*TicketsServiceGetTicketSchemaRequest)(nil), // 13: c1.connector.v2.TicketsServiceGetTicketSchemaRequest + (*TicketsServiceGetTicketSchemaResponse)(nil), // 14: c1.connector.v2.TicketsServiceGetTicketSchemaResponse + (*TicketsServiceListTicketSchemasRequest)(nil), // 15: c1.connector.v2.TicketsServiceListTicketSchemasRequest + (*TicketsServiceListTicketSchemasResponse)(nil), // 16: c1.connector.v2.TicketsServiceListTicketSchemasResponse + (*Ticket)(nil), // 17: c1.connector.v2.Ticket + (*TicketType)(nil), // 18: c1.connector.v2.TicketType + (*TicketRequest)(nil), // 19: c1.connector.v2.TicketRequest + (*TicketsServiceCreateTicketRequest)(nil), // 20: c1.connector.v2.TicketsServiceCreateTicketRequest + (*TicketsServiceCreateTicketResponse)(nil), // 21: c1.connector.v2.TicketsServiceCreateTicketResponse + (*TicketsServiceGetTicketRequest)(nil), // 22: c1.connector.v2.TicketsServiceGetTicketRequest + (*TicketsServiceGetTicketResponse)(nil), // 23: c1.connector.v2.TicketsServiceGetTicketResponse + (*TicketsServiceBulkCreateTicketsRequest)(nil), // 24: c1.connector.v2.TicketsServiceBulkCreateTicketsRequest + (*TicketsServiceBulkCreateTicketsResponse)(nil), // 25: c1.connector.v2.TicketsServiceBulkCreateTicketsResponse + (*TicketsServiceBulkGetTicketsRequest)(nil), // 26: c1.connector.v2.TicketsServiceBulkGetTicketsRequest + (*TicketsServiceBulkGetTicketsResponse)(nil), // 27: c1.connector.v2.TicketsServiceBulkGetTicketsResponse + nil, // 28: c1.connector.v2.TicketSchema.CustomFieldsEntry + nil, // 29: c1.connector.v2.Ticket.CustomFieldsEntry + nil, // 30: c1.connector.v2.TicketRequest.CustomFieldsEntry + (*anypb.Any)(nil), // 31: google.protobuf.Any + (*wrapperspb.FloatValue)(nil), // 32: google.protobuf.FloatValue + (*timestamppb.Timestamp)(nil), // 33: google.protobuf.Timestamp + (*Resource)(nil), // 34: c1.connector.v2.Resource +} +var file_c1_connector_v2_ticket_proto_depIdxs = []int32{ + 18, // 0: c1.connector.v2.TicketSchema.types:type_name -> c1.connector.v2.TicketType + 12, // 1: c1.connector.v2.TicketSchema.statuses:type_name -> c1.connector.v2.TicketStatus + 28, // 2: c1.connector.v2.TicketSchema.custom_fields:type_name -> c1.connector.v2.TicketSchema.CustomFieldsEntry + 31, // 3: c1.connector.v2.TicketSchema.annotations:type_name -> google.protobuf.Any + 2, // 4: c1.connector.v2.TicketCustomField.string_value:type_name -> c1.connector.v2.TicketCustomFieldStringValue + 3, // 5: c1.connector.v2.TicketCustomField.string_values:type_name -> c1.connector.v2.TicketCustomFieldStringValues + 4, // 6: c1.connector.v2.TicketCustomField.bool_value:type_name -> c1.connector.v2.TicketCustomFieldBoolValue + 6, // 7: c1.connector.v2.TicketCustomField.timestamp_value:type_name -> c1.connector.v2.TicketCustomFieldTimestampValue + 7, // 8: c1.connector.v2.TicketCustomField.pick_string_value:type_name -> c1.connector.v2.TicketCustomFieldPickStringValue + 8, // 9: c1.connector.v2.TicketCustomField.pick_multiple_string_values:type_name -> c1.connector.v2.TicketCustomFieldPickMultipleStringValues + 9, // 10: c1.connector.v2.TicketCustomField.pick_object_value:type_name -> c1.connector.v2.TicketCustomFieldPickObjectValue + 10, // 11: c1.connector.v2.TicketCustomField.pick_multiple_object_values:type_name -> c1.connector.v2.TicketCustomFieldPickMultipleObjectValues + 5, // 12: c1.connector.v2.TicketCustomField.number_value:type_name -> c1.connector.v2.TicketCustomFieldNumberValue + 31, // 13: c1.connector.v2.TicketCustomField.annotations:type_name -> google.protobuf.Any + 32, // 14: c1.connector.v2.TicketCustomFieldNumberValue.value:type_name -> google.protobuf.FloatValue + 32, // 15: c1.connector.v2.TicketCustomFieldNumberValue.default_value:type_name -> google.protobuf.FloatValue + 33, // 16: c1.connector.v2.TicketCustomFieldTimestampValue.value:type_name -> google.protobuf.Timestamp + 33, // 17: c1.connector.v2.TicketCustomFieldTimestampValue.default_value:type_name -> google.protobuf.Timestamp + 11, // 18: c1.connector.v2.TicketCustomFieldPickObjectValue.value:type_name -> c1.connector.v2.TicketCustomFieldObjectValue + 11, // 19: c1.connector.v2.TicketCustomFieldPickObjectValue.allowed_values:type_name -> c1.connector.v2.TicketCustomFieldObjectValue + 11, // 20: c1.connector.v2.TicketCustomFieldPickObjectValue.default_value:type_name -> c1.connector.v2.TicketCustomFieldObjectValue + 11, // 21: c1.connector.v2.TicketCustomFieldPickMultipleObjectValues.values:type_name -> c1.connector.v2.TicketCustomFieldObjectValue + 11, // 22: c1.connector.v2.TicketCustomFieldPickMultipleObjectValues.allowed_values:type_name -> c1.connector.v2.TicketCustomFieldObjectValue + 11, // 23: c1.connector.v2.TicketCustomFieldPickMultipleObjectValues.default_values:type_name -> c1.connector.v2.TicketCustomFieldObjectValue + 31, // 24: c1.connector.v2.TicketsServiceGetTicketSchemaRequest.annotations:type_name -> google.protobuf.Any + 0, // 25: c1.connector.v2.TicketsServiceGetTicketSchemaResponse.schema:type_name -> c1.connector.v2.TicketSchema + 31, // 26: c1.connector.v2.TicketsServiceGetTicketSchemaResponse.annotations:type_name -> google.protobuf.Any + 31, // 27: c1.connector.v2.TicketsServiceListTicketSchemasRequest.annotations:type_name -> google.protobuf.Any + 0, // 28: c1.connector.v2.TicketsServiceListTicketSchemasResponse.list:type_name -> c1.connector.v2.TicketSchema + 31, // 29: c1.connector.v2.TicketsServiceListTicketSchemasResponse.annotations:type_name -> google.protobuf.Any + 34, // 30: c1.connector.v2.Ticket.assignees:type_name -> c1.connector.v2.Resource + 34, // 31: c1.connector.v2.Ticket.reporter:type_name -> c1.connector.v2.Resource + 12, // 32: c1.connector.v2.Ticket.status:type_name -> c1.connector.v2.TicketStatus + 18, // 33: c1.connector.v2.Ticket.type:type_name -> c1.connector.v2.TicketType + 29, // 34: c1.connector.v2.Ticket.custom_fields:type_name -> c1.connector.v2.Ticket.CustomFieldsEntry + 33, // 35: c1.connector.v2.Ticket.created_at:type_name -> google.protobuf.Timestamp + 33, // 36: c1.connector.v2.Ticket.updated_at:type_name -> google.protobuf.Timestamp + 33, // 37: c1.connector.v2.Ticket.completed_at:type_name -> google.protobuf.Timestamp + 34, // 38: c1.connector.v2.Ticket.requested_for:type_name -> c1.connector.v2.Resource + 12, // 39: c1.connector.v2.TicketRequest.status:type_name -> c1.connector.v2.TicketStatus + 18, // 40: c1.connector.v2.TicketRequest.type:type_name -> c1.connector.v2.TicketType + 30, // 41: c1.connector.v2.TicketRequest.custom_fields:type_name -> c1.connector.v2.TicketRequest.CustomFieldsEntry + 34, // 42: c1.connector.v2.TicketRequest.requested_for:type_name -> c1.connector.v2.Resource + 19, // 43: c1.connector.v2.TicketsServiceCreateTicketRequest.request:type_name -> c1.connector.v2.TicketRequest + 0, // 44: c1.connector.v2.TicketsServiceCreateTicketRequest.schema:type_name -> c1.connector.v2.TicketSchema + 31, // 45: c1.connector.v2.TicketsServiceCreateTicketRequest.annotations:type_name -> google.protobuf.Any + 17, // 46: c1.connector.v2.TicketsServiceCreateTicketResponse.ticket:type_name -> c1.connector.v2.Ticket + 31, // 47: c1.connector.v2.TicketsServiceCreateTicketResponse.annotations:type_name -> google.protobuf.Any + 31, // 48: c1.connector.v2.TicketsServiceGetTicketRequest.annotations:type_name -> google.protobuf.Any + 17, // 49: c1.connector.v2.TicketsServiceGetTicketResponse.ticket:type_name -> c1.connector.v2.Ticket + 31, // 50: c1.connector.v2.TicketsServiceGetTicketResponse.annotations:type_name -> google.protobuf.Any + 20, // 51: c1.connector.v2.TicketsServiceBulkCreateTicketsRequest.ticket_requests:type_name -> c1.connector.v2.TicketsServiceCreateTicketRequest + 21, // 52: c1.connector.v2.TicketsServiceBulkCreateTicketsResponse.tickets:type_name -> c1.connector.v2.TicketsServiceCreateTicketResponse + 22, // 53: c1.connector.v2.TicketsServiceBulkGetTicketsRequest.ticket_requests:type_name -> c1.connector.v2.TicketsServiceGetTicketRequest + 23, // 54: c1.connector.v2.TicketsServiceBulkGetTicketsResponse.tickets:type_name -> c1.connector.v2.TicketsServiceGetTicketResponse + 1, // 55: c1.connector.v2.TicketSchema.CustomFieldsEntry.value:type_name -> c1.connector.v2.TicketCustomField + 1, // 56: c1.connector.v2.Ticket.CustomFieldsEntry.value:type_name -> c1.connector.v2.TicketCustomField + 1, // 57: c1.connector.v2.TicketRequest.CustomFieldsEntry.value:type_name -> c1.connector.v2.TicketCustomField + 20, // 58: c1.connector.v2.TicketsService.CreateTicket:input_type -> c1.connector.v2.TicketsServiceCreateTicketRequest + 22, // 59: c1.connector.v2.TicketsService.GetTicket:input_type -> c1.connector.v2.TicketsServiceGetTicketRequest + 15, // 60: c1.connector.v2.TicketsService.ListTicketSchemas:input_type -> c1.connector.v2.TicketsServiceListTicketSchemasRequest + 13, // 61: c1.connector.v2.TicketsService.GetTicketSchema:input_type -> c1.connector.v2.TicketsServiceGetTicketSchemaRequest + 24, // 62: c1.connector.v2.TicketsService.BulkCreateTickets:input_type -> c1.connector.v2.TicketsServiceBulkCreateTicketsRequest + 26, // 63: c1.connector.v2.TicketsService.BulkGetTickets:input_type -> c1.connector.v2.TicketsServiceBulkGetTicketsRequest + 21, // 64: c1.connector.v2.TicketsService.CreateTicket:output_type -> c1.connector.v2.TicketsServiceCreateTicketResponse + 23, // 65: c1.connector.v2.TicketsService.GetTicket:output_type -> c1.connector.v2.TicketsServiceGetTicketResponse + 16, // 66: c1.connector.v2.TicketsService.ListTicketSchemas:output_type -> c1.connector.v2.TicketsServiceListTicketSchemasResponse + 14, // 67: c1.connector.v2.TicketsService.GetTicketSchema:output_type -> c1.connector.v2.TicketsServiceGetTicketSchemaResponse + 25, // 68: c1.connector.v2.TicketsService.BulkCreateTickets:output_type -> c1.connector.v2.TicketsServiceBulkCreateTicketsResponse + 27, // 69: c1.connector.v2.TicketsService.BulkGetTickets:output_type -> c1.connector.v2.TicketsServiceBulkGetTicketsResponse + 64, // [64:70] is the sub-list for method output_type + 58, // [58:64] is the sub-list for method input_type + 58, // [58:58] is the sub-list for extension type_name + 58, // [58:58] is the sub-list for extension extendee + 0, // [0:58] is the sub-list for field type_name +} + +func init() { file_c1_connector_v2_ticket_proto_init() } +func file_c1_connector_v2_ticket_proto_init() { + if File_c1_connector_v2_ticket_proto != nil { + return + } + file_c1_connector_v2_resource_proto_init() + file_c1_connector_v2_ticket_proto_msgTypes[1].OneofWrappers = []any{ + (*ticketCustomField_StringValue)(nil), + (*ticketCustomField_StringValues)(nil), + (*ticketCustomField_BoolValue)(nil), + (*ticketCustomField_TimestampValue)(nil), + (*ticketCustomField_PickStringValue)(nil), + (*ticketCustomField_PickMultipleStringValues)(nil), + (*ticketCustomField_PickObjectValue)(nil), + (*ticketCustomField_PickMultipleObjectValues)(nil), + (*ticketCustomField_NumberValue)(nil), + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: unsafe.Slice(unsafe.StringData(file_c1_connector_v2_ticket_proto_rawDesc), len(file_c1_connector_v2_ticket_proto_rawDesc)), + NumEnums: 0, + NumMessages: 31, + NumExtensions: 0, + NumServices: 1, + }, + GoTypes: file_c1_connector_v2_ticket_proto_goTypes, + DependencyIndexes: file_c1_connector_v2_ticket_proto_depIdxs, + MessageInfos: file_c1_connector_v2_ticket_proto_msgTypes, + }.Build() + File_c1_connector_v2_ticket_proto = out.File + file_c1_connector_v2_ticket_proto_goTypes = nil + file_c1_connector_v2_ticket_proto_depIdxs = nil +} diff --git a/vendor/github.com/conductorone/baton-sdk/pb/c1/ratelimit/v1/ratelimit.pb.go b/vendor/github.com/conductorone/baton-sdk/pb/c1/ratelimit/v1/ratelimit.pb.go index 664980eb..7e91231d 100644 --- a/vendor/github.com/conductorone/baton-sdk/pb/c1/ratelimit/v1/ratelimit.pb.go +++ b/vendor/github.com/conductorone/baton-sdk/pb/c1/ratelimit/v1/ratelimit.pb.go @@ -1,9 +1,11 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.36.4 +// protoc-gen-go v1.36.10 // protoc (unknown) // source: c1/ratelimit/v1/ratelimit.proto +//go:build !protoopaque + package v1 import ( @@ -13,7 +15,6 @@ import ( durationpb "google.golang.org/protobuf/types/known/durationpb" timestamppb "google.golang.org/protobuf/types/known/timestamppb" reflect "reflect" - sync "sync" unsafe "unsafe" ) @@ -74,15 +75,10 @@ func (x RateLimitDescription_Status) Number() protoreflect.EnumNumber { return protoreflect.EnumNumber(x) } -// Deprecated: Use RateLimitDescription_Status.Descriptor instead. -func (RateLimitDescription_Status) EnumDescriptor() ([]byte, []int) { - return file_c1_ratelimit_v1_ratelimit_proto_rawDescGZIP(), []int{0, 0} -} - // https://tools.ietf.org/html/draft-ietf-httpapi-ratelimit-headers-00#section-1.1 // RateLimitDescription is a minimal representation of a rate limit. type RateLimitDescription struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` Status RateLimitDescription_Status `protobuf:"varint,1,opt,name=status,proto3,enum=c1.ratelimit.v1.RateLimitDescription_Status" json:"status,omitempty"` Limit int64 `protobuf:"varint,2,opt,name=limit,proto3" json:"limit,omitempty"` Remaining int64 `protobuf:"varint,3,opt,name=remaining,proto3" json:"remaining,omitempty"` @@ -117,11 +113,6 @@ func (x *RateLimitDescription) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use RateLimitDescription.ProtoReflect.Descriptor instead. -func (*RateLimitDescription) Descriptor() ([]byte, []int) { - return file_c1_ratelimit_v1_ratelimit_proto_rawDescGZIP(), []int{0} -} - func (x *RateLimitDescription) GetStatus() RateLimitDescription_Status { if x != nil { return x.Status @@ -157,8 +148,61 @@ func (x *RateLimitDescription) GetResetAt() *timestamppb.Timestamp { return nil } +func (x *RateLimitDescription) SetStatus(v RateLimitDescription_Status) { + x.Status = v +} + +func (x *RateLimitDescription) SetLimit(v int64) { + x.Limit = v +} + +func (x *RateLimitDescription) SetRemaining(v int64) { + x.Remaining = v +} + +func (x *RateLimitDescription) SetCount(v int64) { + x.Count = v +} + +func (x *RateLimitDescription) SetResetAt(v *timestamppb.Timestamp) { + x.ResetAt = v +} + +func (x *RateLimitDescription) HasResetAt() bool { + if x == nil { + return false + } + return x.ResetAt != nil +} + +func (x *RateLimitDescription) ClearResetAt() { + x.ResetAt = nil +} + +type RateLimitDescription_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Status RateLimitDescription_Status + Limit int64 + Remaining int64 + Count int64 + ResetAt *timestamppb.Timestamp +} + +func (b0 RateLimitDescription_builder) Build() *RateLimitDescription { + m0 := &RateLimitDescription{} + b, x := &b0, m0 + _, _ = b, x + x.Status = b.Status + x.Limit = b.Limit + x.Remaining = b.Remaining + x.Count = b.Count + x.ResetAt = b.ResetAt + return m0 +} + type ReportRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` RequestToken string `protobuf:"bytes,1,opt,name=request_token,json=requestToken,proto3" json:"request_token,omitempty"` Description *RateLimitDescription `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` Service string `protobuf:"bytes,3,opt,name=service,proto3" json:"service,omitempty"` @@ -192,11 +236,6 @@ func (x *ReportRequest) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use ReportRequest.ProtoReflect.Descriptor instead. -func (*ReportRequest) Descriptor() ([]byte, []int) { - return file_c1_ratelimit_v1_ratelimit_proto_rawDescGZIP(), []int{1} -} - func (x *ReportRequest) GetRequestToken() string { if x != nil { return x.RequestToken @@ -225,8 +264,66 @@ func (x *ReportRequest) GetDescriptors() *RateLimitDescriptors { return nil } +func (x *ReportRequest) SetRequestToken(v string) { + x.RequestToken = v +} + +func (x *ReportRequest) SetDescription(v *RateLimitDescription) { + x.Description = v +} + +func (x *ReportRequest) SetService(v string) { + x.Service = v +} + +func (x *ReportRequest) SetDescriptors(v *RateLimitDescriptors) { + x.Descriptors = v +} + +func (x *ReportRequest) HasDescription() bool { + if x == nil { + return false + } + return x.Description != nil +} + +func (x *ReportRequest) HasDescriptors() bool { + if x == nil { + return false + } + return x.Descriptors != nil +} + +func (x *ReportRequest) ClearDescription() { + x.Description = nil +} + +func (x *ReportRequest) ClearDescriptors() { + x.Descriptors = nil +} + +type ReportRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + RequestToken string + Description *RateLimitDescription + Service string + Descriptors *RateLimitDescriptors +} + +func (b0 ReportRequest_builder) Build() *ReportRequest { + m0 := &ReportRequest{} + b, x := &b0, m0 + _, _ = b, x + x.RequestToken = b.RequestToken + x.Description = b.Description + x.Service = b.Service + x.Descriptors = b.Descriptors + return m0 +} + type ReportResponse struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } @@ -256,13 +353,20 @@ func (x *ReportResponse) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use ReportResponse.ProtoReflect.Descriptor instead. -func (*ReportResponse) Descriptor() ([]byte, []int) { - return file_c1_ratelimit_v1_ratelimit_proto_rawDescGZIP(), []int{2} +type ReportResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + +} + +func (b0 ReportResponse_builder) Build() *ReportResponse { + m0 := &ReportResponse{} + b, x := &b0, m0 + _, _ = b, x + return m0 } type RateLimitDescriptors struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` Entries []*RateLimitDescriptors_Entry `protobuf:"bytes,1,rep,name=entries,proto3" json:"entries,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache @@ -293,11 +397,6 @@ func (x *RateLimitDescriptors) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use RateLimitDescriptors.ProtoReflect.Descriptor instead. -func (*RateLimitDescriptors) Descriptor() ([]byte, []int) { - return file_c1_ratelimit_v1_ratelimit_proto_rawDescGZIP(), []int{3} -} - func (x *RateLimitDescriptors) GetEntries() []*RateLimitDescriptors_Entry { if x != nil { return x.Entries @@ -305,8 +404,26 @@ func (x *RateLimitDescriptors) GetEntries() []*RateLimitDescriptors_Entry { return nil } +func (x *RateLimitDescriptors) SetEntries(v []*RateLimitDescriptors_Entry) { + x.Entries = v +} + +type RateLimitDescriptors_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Entries []*RateLimitDescriptors_Entry +} + +func (b0 RateLimitDescriptors_builder) Build() *RateLimitDescriptors { + m0 := &RateLimitDescriptors{} + b, x := &b0, m0 + _, _ = b, x + x.Entries = b.Entries + return m0 +} + type DoRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` RequestToken string `protobuf:"bytes,1,opt,name=request_token,json=requestToken,proto3" json:"request_token,omitempty"` Service string `protobuf:"bytes,2,opt,name=service,proto3" json:"service,omitempty"` Descriptors *RateLimitDescriptors `protobuf:"bytes,3,opt,name=descriptors,proto3" json:"descriptors,omitempty"` @@ -339,11 +456,6 @@ func (x *DoRequest) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use DoRequest.ProtoReflect.Descriptor instead. -func (*DoRequest) Descriptor() ([]byte, []int) { - return file_c1_ratelimit_v1_ratelimit_proto_rawDescGZIP(), []int{4} -} - func (x *DoRequest) GetRequestToken() string { if x != nil { return x.RequestToken @@ -365,8 +477,49 @@ func (x *DoRequest) GetDescriptors() *RateLimitDescriptors { return nil } +func (x *DoRequest) SetRequestToken(v string) { + x.RequestToken = v +} + +func (x *DoRequest) SetService(v string) { + x.Service = v +} + +func (x *DoRequest) SetDescriptors(v *RateLimitDescriptors) { + x.Descriptors = v +} + +func (x *DoRequest) HasDescriptors() bool { + if x == nil { + return false + } + return x.Descriptors != nil +} + +func (x *DoRequest) ClearDescriptors() { + x.Descriptors = nil +} + +type DoRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + RequestToken string + Service string + Descriptors *RateLimitDescriptors +} + +func (b0 DoRequest_builder) Build() *DoRequest { + m0 := &DoRequest{} + b, x := &b0, m0 + _, _ = b, x + x.RequestToken = b.RequestToken + x.Service = b.Service + x.Descriptors = b.Descriptors + return m0 +} + type DoResponse struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` RequestToken string `protobuf:"bytes,1,opt,name=request_token,json=requestToken,proto3" json:"request_token,omitempty"` Description *RateLimitDescription `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` unknownFields protoimpl.UnknownFields @@ -398,11 +551,6 @@ func (x *DoResponse) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use DoResponse.ProtoReflect.Descriptor instead. -func (*DoResponse) Descriptor() ([]byte, []int) { - return file_c1_ratelimit_v1_ratelimit_proto_rawDescGZIP(), []int{5} -} - func (x *DoResponse) GetRequestToken() string { if x != nil { return x.RequestToken @@ -417,8 +565,43 @@ func (x *DoResponse) GetDescription() *RateLimitDescription { return nil } +func (x *DoResponse) SetRequestToken(v string) { + x.RequestToken = v +} + +func (x *DoResponse) SetDescription(v *RateLimitDescription) { + x.Description = v +} + +func (x *DoResponse) HasDescription() bool { + if x == nil { + return false + } + return x.Description != nil +} + +func (x *DoResponse) ClearDescription() { + x.Description = nil +} + +type DoResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + RequestToken string + Description *RateLimitDescription +} + +func (b0 DoResponse_builder) Build() *DoResponse { + m0 := &DoResponse{} + b, x := &b0, m0 + _, _ = b, x + x.RequestToken = b.RequestToken + x.Description = b.Description + return m0 +} + type DisabledLimiter struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } @@ -448,13 +631,20 @@ func (x *DisabledLimiter) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use DisabledLimiter.ProtoReflect.Descriptor instead. -func (*DisabledLimiter) Descriptor() ([]byte, []int) { - return file_c1_ratelimit_v1_ratelimit_proto_rawDescGZIP(), []int{6} +type DisabledLimiter_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + +} + +func (b0 DisabledLimiter_builder) Build() *DisabledLimiter { + m0 := &DisabledLimiter{} + b, x := &b0, m0 + _, _ = b, x + return m0 } type SlidingMemoryLimiter struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` UsePercent float64 `protobuf:"fixed64,1,opt,name=use_percent,json=usePercent,proto3" json:"use_percent,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache @@ -485,11 +675,6 @@ func (x *SlidingMemoryLimiter) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use SlidingMemoryLimiter.ProtoReflect.Descriptor instead. -func (*SlidingMemoryLimiter) Descriptor() ([]byte, []int) { - return file_c1_ratelimit_v1_ratelimit_proto_rawDescGZIP(), []int{7} -} - func (x *SlidingMemoryLimiter) GetUsePercent() float64 { if x != nil { return x.UsePercent @@ -497,8 +682,26 @@ func (x *SlidingMemoryLimiter) GetUsePercent() float64 { return 0 } +func (x *SlidingMemoryLimiter) SetUsePercent(v float64) { + x.UsePercent = v +} + +type SlidingMemoryLimiter_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + UsePercent float64 +} + +func (b0 SlidingMemoryLimiter_builder) Build() *SlidingMemoryLimiter { + m0 := &SlidingMemoryLimiter{} + b, x := &b0, m0 + _, _ = b, x + x.UsePercent = b.UsePercent + return m0 +} + type FixedMemoryLimiter struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` Rate int64 `protobuf:"varint,1,opt,name=rate,proto3" json:"rate,omitempty"` Period *durationpb.Duration `protobuf:"bytes,2,opt,name=period,proto3" json:"period,omitempty"` unknownFields protoimpl.UnknownFields @@ -530,11 +733,6 @@ func (x *FixedMemoryLimiter) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use FixedMemoryLimiter.ProtoReflect.Descriptor instead. -func (*FixedMemoryLimiter) Descriptor() ([]byte, []int) { - return file_c1_ratelimit_v1_ratelimit_proto_rawDescGZIP(), []int{8} -} - func (x *FixedMemoryLimiter) GetRate() int64 { if x != nil { return x.Rate @@ -549,8 +747,43 @@ func (x *FixedMemoryLimiter) GetPeriod() *durationpb.Duration { return nil } +func (x *FixedMemoryLimiter) SetRate(v int64) { + x.Rate = v +} + +func (x *FixedMemoryLimiter) SetPeriod(v *durationpb.Duration) { + x.Period = v +} + +func (x *FixedMemoryLimiter) HasPeriod() bool { + if x == nil { + return false + } + return x.Period != nil +} + +func (x *FixedMemoryLimiter) ClearPeriod() { + x.Period = nil +} + +type FixedMemoryLimiter_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Rate int64 + Period *durationpb.Duration +} + +func (b0 FixedMemoryLimiter_builder) Build() *FixedMemoryLimiter { + m0 := &FixedMemoryLimiter{} + b, x := &b0, m0 + _, _ = b, x + x.Rate = b.Rate + x.Period = b.Period + return m0 +} + type ExternalLimiter struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` Address string `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"` Options map[string]string `protobuf:"bytes,1,rep,name=options,proto3" json:"options,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"` unknownFields protoimpl.UnknownFields @@ -582,11 +815,6 @@ func (x *ExternalLimiter) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use ExternalLimiter.ProtoReflect.Descriptor instead. -func (*ExternalLimiter) Descriptor() ([]byte, []int) { - return file_c1_ratelimit_v1_ratelimit_proto_rawDescGZIP(), []int{9} -} - func (x *ExternalLimiter) GetAddress() string { if x != nil { return x.Address @@ -601,8 +829,32 @@ func (x *ExternalLimiter) GetOptions() map[string]string { return nil } +func (x *ExternalLimiter) SetAddress(v string) { + x.Address = v +} + +func (x *ExternalLimiter) SetOptions(v map[string]string) { + x.Options = v +} + +type ExternalLimiter_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Address string + Options map[string]string +} + +func (b0 ExternalLimiter_builder) Build() *ExternalLimiter { + m0 := &ExternalLimiter{} + b, x := &b0, m0 + _, _ = b, x + x.Address = b.Address + x.Options = b.Options + return m0 +} + type RateLimiterConfig struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` // Types that are valid to be assigned to Type: // // *RateLimiterConfig_Disabled @@ -639,11 +891,6 @@ func (x *RateLimiterConfig) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use RateLimiterConfig.ProtoReflect.Descriptor instead. -func (*RateLimiterConfig) Descriptor() ([]byte, []int) { - return file_c1_ratelimit_v1_ratelimit_proto_rawDescGZIP(), []int{10} -} - func (x *RateLimiterConfig) GetType() isRateLimiterConfig_Type { if x != nil { return x.Type @@ -687,6 +934,169 @@ func (x *RateLimiterConfig) GetExternal() *ExternalLimiter { return nil } +func (x *RateLimiterConfig) SetDisabled(v *DisabledLimiter) { + if v == nil { + x.Type = nil + return + } + x.Type = &RateLimiterConfig_Disabled{v} +} + +func (x *RateLimiterConfig) SetSlidingMem(v *SlidingMemoryLimiter) { + if v == nil { + x.Type = nil + return + } + x.Type = &RateLimiterConfig_SlidingMem{v} +} + +func (x *RateLimiterConfig) SetFixedMem(v *FixedMemoryLimiter) { + if v == nil { + x.Type = nil + return + } + x.Type = &RateLimiterConfig_FixedMem{v} +} + +func (x *RateLimiterConfig) SetExternal(v *ExternalLimiter) { + if v == nil { + x.Type = nil + return + } + x.Type = &RateLimiterConfig_External{v} +} + +func (x *RateLimiterConfig) HasType() bool { + if x == nil { + return false + } + return x.Type != nil +} + +func (x *RateLimiterConfig) HasDisabled() bool { + if x == nil { + return false + } + _, ok := x.Type.(*RateLimiterConfig_Disabled) + return ok +} + +func (x *RateLimiterConfig) HasSlidingMem() bool { + if x == nil { + return false + } + _, ok := x.Type.(*RateLimiterConfig_SlidingMem) + return ok +} + +func (x *RateLimiterConfig) HasFixedMem() bool { + if x == nil { + return false + } + _, ok := x.Type.(*RateLimiterConfig_FixedMem) + return ok +} + +func (x *RateLimiterConfig) HasExternal() bool { + if x == nil { + return false + } + _, ok := x.Type.(*RateLimiterConfig_External) + return ok +} + +func (x *RateLimiterConfig) ClearType() { + x.Type = nil +} + +func (x *RateLimiterConfig) ClearDisabled() { + if _, ok := x.Type.(*RateLimiterConfig_Disabled); ok { + x.Type = nil + } +} + +func (x *RateLimiterConfig) ClearSlidingMem() { + if _, ok := x.Type.(*RateLimiterConfig_SlidingMem); ok { + x.Type = nil + } +} + +func (x *RateLimiterConfig) ClearFixedMem() { + if _, ok := x.Type.(*RateLimiterConfig_FixedMem); ok { + x.Type = nil + } +} + +func (x *RateLimiterConfig) ClearExternal() { + if _, ok := x.Type.(*RateLimiterConfig_External); ok { + x.Type = nil + } +} + +const RateLimiterConfig_Type_not_set_case case_RateLimiterConfig_Type = 0 +const RateLimiterConfig_Disabled_case case_RateLimiterConfig_Type = 100 +const RateLimiterConfig_SlidingMem_case case_RateLimiterConfig_Type = 101 +const RateLimiterConfig_FixedMem_case case_RateLimiterConfig_Type = 102 +const RateLimiterConfig_External_case case_RateLimiterConfig_Type = 103 + +func (x *RateLimiterConfig) WhichType() case_RateLimiterConfig_Type { + if x == nil { + return RateLimiterConfig_Type_not_set_case + } + switch x.Type.(type) { + case *RateLimiterConfig_Disabled: + return RateLimiterConfig_Disabled_case + case *RateLimiterConfig_SlidingMem: + return RateLimiterConfig_SlidingMem_case + case *RateLimiterConfig_FixedMem: + return RateLimiterConfig_FixedMem_case + case *RateLimiterConfig_External: + return RateLimiterConfig_External_case + default: + return RateLimiterConfig_Type_not_set_case + } +} + +type RateLimiterConfig_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Fields of oneof Type: + Disabled *DisabledLimiter + SlidingMem *SlidingMemoryLimiter + FixedMem *FixedMemoryLimiter + External *ExternalLimiter + // -- end of Type +} + +func (b0 RateLimiterConfig_builder) Build() *RateLimiterConfig { + m0 := &RateLimiterConfig{} + b, x := &b0, m0 + _, _ = b, x + if b.Disabled != nil { + x.Type = &RateLimiterConfig_Disabled{b.Disabled} + } + if b.SlidingMem != nil { + x.Type = &RateLimiterConfig_SlidingMem{b.SlidingMem} + } + if b.FixedMem != nil { + x.Type = &RateLimiterConfig_FixedMem{b.FixedMem} + } + if b.External != nil { + x.Type = &RateLimiterConfig_External{b.External} + } + return m0 +} + +type case_RateLimiterConfig_Type protoreflect.FieldNumber + +func (x case_RateLimiterConfig_Type) String() string { + md := file_c1_ratelimit_v1_ratelimit_proto_msgTypes[10].Descriptor() + if x == 0 { + return "not set" + } + return protoimpl.X.MessageFieldStringOf(md, protoreflect.FieldNumber(x)) +} + type isRateLimiterConfig_Type interface { isRateLimiterConfig_Type() } @@ -716,7 +1126,7 @@ func (*RateLimiterConfig_FixedMem) isRateLimiterConfig_Type() {} func (*RateLimiterConfig_External) isRateLimiterConfig_Type() {} type RateLimitDescriptors_Entry struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` unknownFields protoimpl.UnknownFields @@ -748,11 +1158,6 @@ func (x *RateLimitDescriptors_Entry) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use RateLimitDescriptors_Entry.ProtoReflect.Descriptor instead. -func (*RateLimitDescriptors_Entry) Descriptor() ([]byte, []int) { - return file_c1_ratelimit_v1_ratelimit_proto_rawDescGZIP(), []int{3, 0} -} - func (x *RateLimitDescriptors_Entry) GetKey() string { if x != nil { return x.Key @@ -767,151 +1172,90 @@ func (x *RateLimitDescriptors_Entry) GetValue() string { return "" } -var File_c1_ratelimit_v1_ratelimit_proto protoreflect.FileDescriptor +func (x *RateLimitDescriptors_Entry) SetKey(v string) { + x.Key = v +} -var file_c1_ratelimit_v1_ratelimit_proto_rawDesc = string([]byte{ - 0x0a, 0x1f, 0x63, 0x31, 0x2f, 0x72, 0x61, 0x74, 0x65, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x2f, 0x76, - 0x31, 0x2f, 0x72, 0x61, 0x74, 0x65, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x12, 0x0f, 0x63, 0x31, 0x2e, 0x72, 0x61, 0x74, 0x65, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x2e, - 0x76, 0x31, 0x1a, 0x1e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, - 0x62, 0x75, 0x66, 0x2f, 0x64, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, - 0x74, 0x6f, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, - 0x62, 0x75, 0x66, 0x2f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x2e, 0x70, 0x72, - 0x6f, 0x74, 0x6f, 0x1a, 0x17, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x2f, 0x76, 0x61, - 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xc8, 0x02, 0x0a, - 0x14, 0x52, 0x61, 0x74, 0x65, 0x4c, 0x69, 0x6d, 0x69, 0x74, 0x44, 0x65, 0x73, 0x63, 0x72, 0x69, - 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x44, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x2c, 0x2e, 0x63, 0x31, 0x2e, 0x72, 0x61, 0x74, 0x65, 0x6c, - 0x69, 0x6d, 0x69, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x61, 0x74, 0x65, 0x4c, 0x69, 0x6d, 0x69, - 0x74, 0x44, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x53, 0x74, 0x61, - 0x74, 0x75, 0x73, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x14, 0x0a, 0x05, 0x6c, - 0x69, 0x6d, 0x69, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x05, 0x6c, 0x69, 0x6d, 0x69, - 0x74, 0x12, 0x1c, 0x0a, 0x09, 0x72, 0x65, 0x6d, 0x61, 0x69, 0x6e, 0x69, 0x6e, 0x67, 0x18, 0x03, - 0x20, 0x01, 0x28, 0x03, 0x52, 0x09, 0x72, 0x65, 0x6d, 0x61, 0x69, 0x6e, 0x69, 0x6e, 0x67, 0x12, - 0x14, 0x0a, 0x05, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x03, 0x52, 0x05, - 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x35, 0x0a, 0x08, 0x72, 0x65, 0x73, 0x65, 0x74, 0x5f, 0x61, - 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, - 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, - 0x61, 0x6d, 0x70, 0x52, 0x07, 0x72, 0x65, 0x73, 0x65, 0x74, 0x41, 0x74, 0x22, 0x69, 0x0a, 0x06, - 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x16, 0x0a, 0x12, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, - 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x0d, - 0x0a, 0x09, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, 0x4f, 0x4b, 0x10, 0x01, 0x12, 0x14, 0x0a, - 0x10, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, 0x4f, 0x56, 0x45, 0x52, 0x4c, 0x49, 0x4d, 0x49, - 0x54, 0x10, 0x02, 0x12, 0x10, 0x0a, 0x0c, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, 0x45, 0x52, - 0x52, 0x4f, 0x52, 0x10, 0x03, 0x12, 0x10, 0x0a, 0x0c, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, - 0x45, 0x4d, 0x50, 0x54, 0x59, 0x10, 0x04, 0x22, 0xe0, 0x01, 0x0a, 0x0d, 0x52, 0x65, 0x70, 0x6f, - 0x72, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x23, 0x0a, 0x0d, 0x72, 0x65, 0x71, - 0x75, 0x65, 0x73, 0x74, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x0c, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x47, - 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, - 0x01, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x63, 0x31, 0x2e, 0x72, 0x61, 0x74, 0x65, 0x6c, 0x69, 0x6d, - 0x69, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x61, 0x74, 0x65, 0x4c, 0x69, 0x6d, 0x69, 0x74, 0x44, - 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x0b, 0x64, 0x65, 0x73, 0x63, - 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x18, 0x0a, 0x07, 0x73, 0x65, 0x72, 0x76, 0x69, - 0x63, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, - 0x65, 0x12, 0x47, 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x6f, 0x72, 0x73, - 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x63, 0x31, 0x2e, 0x72, 0x61, 0x74, 0x65, - 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x61, 0x74, 0x65, 0x4c, 0x69, 0x6d, - 0x69, 0x74, 0x44, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x6f, 0x72, 0x73, 0x52, 0x0b, 0x64, - 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x6f, 0x72, 0x73, 0x22, 0x10, 0x0a, 0x0e, 0x52, 0x65, - 0x70, 0x6f, 0x72, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0xaa, 0x01, 0x0a, - 0x14, 0x52, 0x61, 0x74, 0x65, 0x4c, 0x69, 0x6d, 0x69, 0x74, 0x44, 0x65, 0x73, 0x63, 0x72, 0x69, - 0x70, 0x74, 0x6f, 0x72, 0x73, 0x12, 0x4f, 0x0a, 0x07, 0x65, 0x6e, 0x74, 0x72, 0x69, 0x65, 0x73, - 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2b, 0x2e, 0x63, 0x31, 0x2e, 0x72, 0x61, 0x74, 0x65, - 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x61, 0x74, 0x65, 0x4c, 0x69, 0x6d, - 0x69, 0x74, 0x44, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x6f, 0x72, 0x73, 0x2e, 0x45, 0x6e, - 0x74, 0x72, 0x79, 0x42, 0x08, 0xfa, 0x42, 0x05, 0x92, 0x01, 0x02, 0x08, 0x01, 0x52, 0x07, 0x65, - 0x6e, 0x74, 0x72, 0x69, 0x65, 0x73, 0x1a, 0x41, 0x0a, 0x05, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, - 0x19, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x07, 0xfa, 0x42, - 0x04, 0x72, 0x02, 0x10, 0x01, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x1d, 0x0a, 0x05, 0x76, 0x61, - 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x07, 0xfa, 0x42, 0x04, 0x72, 0x02, - 0x10, 0x01, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x22, 0x93, 0x01, 0x0a, 0x09, 0x44, 0x6f, - 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x23, 0x0a, 0x0d, 0x72, 0x65, 0x71, 0x75, 0x65, - 0x73, 0x74, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, - 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x18, 0x0a, 0x07, - 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x73, - 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x47, 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, - 0x70, 0x74, 0x6f, 0x72, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x63, 0x31, - 0x2e, 0x72, 0x61, 0x74, 0x65, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x61, - 0x74, 0x65, 0x4c, 0x69, 0x6d, 0x69, 0x74, 0x44, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x6f, - 0x72, 0x73, 0x52, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x6f, 0x72, 0x73, 0x22, - 0x7a, 0x0a, 0x0a, 0x44, 0x6f, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x23, 0x0a, - 0x0d, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x54, 0x6f, 0x6b, - 0x65, 0x6e, 0x12, 0x47, 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, - 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x63, 0x31, 0x2e, 0x72, 0x61, 0x74, - 0x65, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x61, 0x74, 0x65, 0x4c, 0x69, - 0x6d, 0x69, 0x74, 0x44, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x0b, - 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x11, 0x0a, 0x0f, 0x44, - 0x69, 0x73, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x4c, 0x69, 0x6d, 0x69, 0x74, 0x65, 0x72, 0x22, 0x37, - 0x0a, 0x14, 0x53, 0x6c, 0x69, 0x64, 0x69, 0x6e, 0x67, 0x4d, 0x65, 0x6d, 0x6f, 0x72, 0x79, 0x4c, - 0x69, 0x6d, 0x69, 0x74, 0x65, 0x72, 0x12, 0x1f, 0x0a, 0x0b, 0x75, 0x73, 0x65, 0x5f, 0x70, 0x65, - 0x72, 0x63, 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x01, 0x52, 0x0a, 0x75, 0x73, 0x65, - 0x50, 0x65, 0x72, 0x63, 0x65, 0x6e, 0x74, 0x22, 0x5b, 0x0a, 0x12, 0x46, 0x69, 0x78, 0x65, 0x64, - 0x4d, 0x65, 0x6d, 0x6f, 0x72, 0x79, 0x4c, 0x69, 0x6d, 0x69, 0x74, 0x65, 0x72, 0x12, 0x12, 0x0a, - 0x04, 0x72, 0x61, 0x74, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x04, 0x72, 0x61, 0x74, - 0x65, 0x12, 0x31, 0x0a, 0x06, 0x70, 0x65, 0x72, 0x69, 0x6f, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, - 0x0b, 0x32, 0x19, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, - 0x62, 0x75, 0x66, 0x2e, 0x44, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x06, 0x70, 0x65, - 0x72, 0x69, 0x6f, 0x64, 0x22, 0xb0, 0x01, 0x0a, 0x0f, 0x45, 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61, - 0x6c, 0x4c, 0x69, 0x6d, 0x69, 0x74, 0x65, 0x72, 0x12, 0x18, 0x0a, 0x07, 0x61, 0x64, 0x64, 0x72, - 0x65, 0x73, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, - 0x73, 0x73, 0x12, 0x47, 0x0a, 0x07, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x01, 0x20, - 0x03, 0x28, 0x0b, 0x32, 0x2d, 0x2e, 0x63, 0x31, 0x2e, 0x72, 0x61, 0x74, 0x65, 0x6c, 0x69, 0x6d, - 0x69, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x45, 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x4c, 0x69, - 0x6d, 0x69, 0x74, 0x65, 0x72, 0x2e, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x45, 0x6e, 0x74, - 0x72, 0x79, 0x52, 0x07, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x1a, 0x3a, 0x0a, 0x0c, 0x4f, - 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, - 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, - 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, - 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0xa9, 0x02, 0x0a, 0x11, 0x52, 0x61, 0x74, 0x65, - 0x4c, 0x69, 0x6d, 0x69, 0x74, 0x65, 0x72, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x3e, 0x0a, - 0x08, 0x64, 0x69, 0x73, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x18, 0x64, 0x20, 0x01, 0x28, 0x0b, 0x32, - 0x20, 0x2e, 0x63, 0x31, 0x2e, 0x72, 0x61, 0x74, 0x65, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x2e, 0x76, - 0x31, 0x2e, 0x44, 0x69, 0x73, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x4c, 0x69, 0x6d, 0x69, 0x74, 0x65, - 0x72, 0x48, 0x00, 0x52, 0x08, 0x64, 0x69, 0x73, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x12, 0x48, 0x0a, - 0x0b, 0x73, 0x6c, 0x69, 0x64, 0x69, 0x6e, 0x67, 0x5f, 0x6d, 0x65, 0x6d, 0x18, 0x65, 0x20, 0x01, - 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x63, 0x31, 0x2e, 0x72, 0x61, 0x74, 0x65, 0x6c, 0x69, 0x6d, 0x69, - 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x6c, 0x69, 0x64, 0x69, 0x6e, 0x67, 0x4d, 0x65, 0x6d, 0x6f, - 0x72, 0x79, 0x4c, 0x69, 0x6d, 0x69, 0x74, 0x65, 0x72, 0x48, 0x00, 0x52, 0x0a, 0x73, 0x6c, 0x69, - 0x64, 0x69, 0x6e, 0x67, 0x4d, 0x65, 0x6d, 0x12, 0x42, 0x0a, 0x09, 0x66, 0x69, 0x78, 0x65, 0x64, - 0x5f, 0x6d, 0x65, 0x6d, 0x18, 0x66, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x23, 0x2e, 0x63, 0x31, 0x2e, - 0x72, 0x61, 0x74, 0x65, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x46, 0x69, 0x78, - 0x65, 0x64, 0x4d, 0x65, 0x6d, 0x6f, 0x72, 0x79, 0x4c, 0x69, 0x6d, 0x69, 0x74, 0x65, 0x72, 0x48, - 0x00, 0x52, 0x08, 0x66, 0x69, 0x78, 0x65, 0x64, 0x4d, 0x65, 0x6d, 0x12, 0x3e, 0x0a, 0x08, 0x65, - 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x18, 0x67, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x20, 0x2e, - 0x63, 0x31, 0x2e, 0x72, 0x61, 0x74, 0x65, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x2e, 0x76, 0x31, 0x2e, - 0x45, 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x4c, 0x69, 0x6d, 0x69, 0x74, 0x65, 0x72, 0x48, - 0x00, 0x52, 0x08, 0x65, 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x42, 0x06, 0x0a, 0x04, 0x74, - 0x79, 0x70, 0x65, 0x32, 0x9e, 0x01, 0x0a, 0x12, 0x52, 0x61, 0x74, 0x65, 0x4c, 0x69, 0x6d, 0x69, - 0x74, 0x65, 0x72, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x3d, 0x0a, 0x02, 0x44, 0x6f, - 0x12, 0x1a, 0x2e, 0x63, 0x31, 0x2e, 0x72, 0x61, 0x74, 0x65, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x2e, - 0x76, 0x31, 0x2e, 0x44, 0x6f, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1b, 0x2e, 0x63, - 0x31, 0x2e, 0x72, 0x61, 0x74, 0x65, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x44, - 0x6f, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x49, 0x0a, 0x06, 0x52, 0x65, 0x70, - 0x6f, 0x72, 0x74, 0x12, 0x1e, 0x2e, 0x63, 0x31, 0x2e, 0x72, 0x61, 0x74, 0x65, 0x6c, 0x69, 0x6d, - 0x69, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x52, 0x65, 0x71, 0x75, - 0x65, 0x73, 0x74, 0x1a, 0x1f, 0x2e, 0x63, 0x31, 0x2e, 0x72, 0x61, 0x74, 0x65, 0x6c, 0x69, 0x6d, - 0x69, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x52, 0x65, 0x73, 0x70, - 0x6f, 0x6e, 0x73, 0x65, 0x42, 0x36, 0x5a, 0x34, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, - 0x6f, 0x6d, 0x2f, 0x63, 0x6f, 0x6e, 0x64, 0x75, 0x63, 0x74, 0x6f, 0x72, 0x6f, 0x6e, 0x65, 0x2f, - 0x62, 0x61, 0x74, 0x6f, 0x6e, 0x2d, 0x73, 0x64, 0x6b, 0x2f, 0x70, 0x62, 0x2f, 0x63, 0x31, 0x2f, - 0x72, 0x61, 0x74, 0x65, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x2f, 0x76, 0x31, 0x62, 0x06, 0x70, 0x72, - 0x6f, 0x74, 0x6f, 0x33, -}) +func (x *RateLimitDescriptors_Entry) SetValue(v string) { + x.Value = v +} -var ( - file_c1_ratelimit_v1_ratelimit_proto_rawDescOnce sync.Once - file_c1_ratelimit_v1_ratelimit_proto_rawDescData []byte -) +type RateLimitDescriptors_Entry_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Key string + Value string +} -func file_c1_ratelimit_v1_ratelimit_proto_rawDescGZIP() []byte { - file_c1_ratelimit_v1_ratelimit_proto_rawDescOnce.Do(func() { - file_c1_ratelimit_v1_ratelimit_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_c1_ratelimit_v1_ratelimit_proto_rawDesc), len(file_c1_ratelimit_v1_ratelimit_proto_rawDesc))) - }) - return file_c1_ratelimit_v1_ratelimit_proto_rawDescData +func (b0 RateLimitDescriptors_Entry_builder) Build() *RateLimitDescriptors_Entry { + m0 := &RateLimitDescriptors_Entry{} + b, x := &b0, m0 + _, _ = b, x + x.Key = b.Key + x.Value = b.Value + return m0 } +var File_c1_ratelimit_v1_ratelimit_proto protoreflect.FileDescriptor + +const file_c1_ratelimit_v1_ratelimit_proto_rawDesc = "" + + "\n" + + "\x1fc1/ratelimit/v1/ratelimit.proto\x12\x0fc1.ratelimit.v1\x1a\x1egoogle/protobuf/duration.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x17validate/validate.proto\"\xc8\x02\n" + + "\x14RateLimitDescription\x12D\n" + + "\x06status\x18\x01 \x01(\x0e2,.c1.ratelimit.v1.RateLimitDescription.StatusR\x06status\x12\x14\n" + + "\x05limit\x18\x02 \x01(\x03R\x05limit\x12\x1c\n" + + "\tremaining\x18\x03 \x01(\x03R\tremaining\x12\x14\n" + + "\x05count\x18\x05 \x01(\x03R\x05count\x125\n" + + "\breset_at\x18\x04 \x01(\v2\x1a.google.protobuf.TimestampR\aresetAt\"i\n" + + "\x06Status\x12\x16\n" + + "\x12STATUS_UNSPECIFIED\x10\x00\x12\r\n" + + "\tSTATUS_OK\x10\x01\x12\x14\n" + + "\x10STATUS_OVERLIMIT\x10\x02\x12\x10\n" + + "\fSTATUS_ERROR\x10\x03\x12\x10\n" + + "\fSTATUS_EMPTY\x10\x04\"\xe0\x01\n" + + "\rReportRequest\x12#\n" + + "\rrequest_token\x18\x01 \x01(\tR\frequestToken\x12G\n" + + "\vdescription\x18\x02 \x01(\v2%.c1.ratelimit.v1.RateLimitDescriptionR\vdescription\x12\x18\n" + + "\aservice\x18\x03 \x01(\tR\aservice\x12G\n" + + "\vdescriptors\x18\x04 \x01(\v2%.c1.ratelimit.v1.RateLimitDescriptorsR\vdescriptors\"\x10\n" + + "\x0eReportResponse\"\xaa\x01\n" + + "\x14RateLimitDescriptors\x12O\n" + + "\aentries\x18\x01 \x03(\v2+.c1.ratelimit.v1.RateLimitDescriptors.EntryB\b\xfaB\x05\x92\x01\x02\b\x01R\aentries\x1aA\n" + + "\x05Entry\x12\x19\n" + + "\x03key\x18\x01 \x01(\tB\a\xfaB\x04r\x02\x10\x01R\x03key\x12\x1d\n" + + "\x05value\x18\x02 \x01(\tB\a\xfaB\x04r\x02\x10\x01R\x05value\"\x93\x01\n" + + "\tDoRequest\x12#\n" + + "\rrequest_token\x18\x01 \x01(\tR\frequestToken\x12\x18\n" + + "\aservice\x18\x02 \x01(\tR\aservice\x12G\n" + + "\vdescriptors\x18\x03 \x01(\v2%.c1.ratelimit.v1.RateLimitDescriptorsR\vdescriptors\"z\n" + + "\n" + + "DoResponse\x12#\n" + + "\rrequest_token\x18\x01 \x01(\tR\frequestToken\x12G\n" + + "\vdescription\x18\x02 \x01(\v2%.c1.ratelimit.v1.RateLimitDescriptionR\vdescription\"\x11\n" + + "\x0fDisabledLimiter\"7\n" + + "\x14SlidingMemoryLimiter\x12\x1f\n" + + "\vuse_percent\x18\x01 \x01(\x01R\n" + + "usePercent\"[\n" + + "\x12FixedMemoryLimiter\x12\x12\n" + + "\x04rate\x18\x01 \x01(\x03R\x04rate\x121\n" + + "\x06period\x18\x02 \x01(\v2\x19.google.protobuf.DurationR\x06period\"\xb0\x01\n" + + "\x0fExternalLimiter\x12\x18\n" + + "\aaddress\x18\x02 \x01(\tR\aaddress\x12G\n" + + "\aoptions\x18\x01 \x03(\v2-.c1.ratelimit.v1.ExternalLimiter.OptionsEntryR\aoptions\x1a:\n" + + "\fOptionsEntry\x12\x10\n" + + "\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n" + + "\x05value\x18\x02 \x01(\tR\x05value:\x028\x01\"\xa9\x02\n" + + "\x11RateLimiterConfig\x12>\n" + + "\bdisabled\x18d \x01(\v2 .c1.ratelimit.v1.DisabledLimiterH\x00R\bdisabled\x12H\n" + + "\vsliding_mem\x18e \x01(\v2%.c1.ratelimit.v1.SlidingMemoryLimiterH\x00R\n" + + "slidingMem\x12B\n" + + "\tfixed_mem\x18f \x01(\v2#.c1.ratelimit.v1.FixedMemoryLimiterH\x00R\bfixedMem\x12>\n" + + "\bexternal\x18g \x01(\v2 .c1.ratelimit.v1.ExternalLimiterH\x00R\bexternalB\x06\n" + + "\x04type2\x9e\x01\n" + + "\x12RateLimiterService\x12=\n" + + "\x02Do\x12\x1a.c1.ratelimit.v1.DoRequest\x1a\x1b.c1.ratelimit.v1.DoResponse\x12I\n" + + "\x06Report\x12\x1e.c1.ratelimit.v1.ReportRequest\x1a\x1f.c1.ratelimit.v1.ReportResponseB6Z4github.com/conductorone/baton-sdk/pb/c1/ratelimit/v1b\x06proto3" + var file_c1_ratelimit_v1_ratelimit_proto_enumTypes = make([]protoimpl.EnumInfo, 1) var file_c1_ratelimit_v1_ratelimit_proto_msgTypes = make([]protoimpl.MessageInfo, 13) var file_c1_ratelimit_v1_ratelimit_proto_goTypes = []any{ diff --git a/vendor/github.com/conductorone/baton-sdk/pb/c1/ratelimit/v1/ratelimit_protoopaque.pb.go b/vendor/github.com/conductorone/baton-sdk/pb/c1/ratelimit/v1/ratelimit_protoopaque.pb.go new file mode 100644 index 00000000..29c584f8 --- /dev/null +++ b/vendor/github.com/conductorone/baton-sdk/pb/c1/ratelimit/v1/ratelimit_protoopaque.pb.go @@ -0,0 +1,1322 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.36.10 +// protoc (unknown) +// source: c1/ratelimit/v1/ratelimit.proto + +//go:build protoopaque + +package v1 + +import ( + _ "github.com/envoyproxy/protoc-gen-validate/validate" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + durationpb "google.golang.org/protobuf/types/known/durationpb" + timestamppb "google.golang.org/protobuf/types/known/timestamppb" + reflect "reflect" + 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 RateLimitDescription_Status int32 + +const ( + RateLimitDescription_STATUS_UNSPECIFIED RateLimitDescription_Status = 0 + RateLimitDescription_STATUS_OK RateLimitDescription_Status = 1 + RateLimitDescription_STATUS_OVERLIMIT RateLimitDescription_Status = 2 + RateLimitDescription_STATUS_ERROR RateLimitDescription_Status = 3 + RateLimitDescription_STATUS_EMPTY RateLimitDescription_Status = 4 +) + +// Enum value maps for RateLimitDescription_Status. +var ( + RateLimitDescription_Status_name = map[int32]string{ + 0: "STATUS_UNSPECIFIED", + 1: "STATUS_OK", + 2: "STATUS_OVERLIMIT", + 3: "STATUS_ERROR", + 4: "STATUS_EMPTY", + } + RateLimitDescription_Status_value = map[string]int32{ + "STATUS_UNSPECIFIED": 0, + "STATUS_OK": 1, + "STATUS_OVERLIMIT": 2, + "STATUS_ERROR": 3, + "STATUS_EMPTY": 4, + } +) + +func (x RateLimitDescription_Status) Enum() *RateLimitDescription_Status { + p := new(RateLimitDescription_Status) + *p = x + return p +} + +func (x RateLimitDescription_Status) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (RateLimitDescription_Status) Descriptor() protoreflect.EnumDescriptor { + return file_c1_ratelimit_v1_ratelimit_proto_enumTypes[0].Descriptor() +} + +func (RateLimitDescription_Status) Type() protoreflect.EnumType { + return &file_c1_ratelimit_v1_ratelimit_proto_enumTypes[0] +} + +func (x RateLimitDescription_Status) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// https://tools.ietf.org/html/draft-ietf-httpapi-ratelimit-headers-00#section-1.1 +// RateLimitDescription is a minimal representation of a rate limit. +type RateLimitDescription struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Status RateLimitDescription_Status `protobuf:"varint,1,opt,name=status,proto3,enum=c1.ratelimit.v1.RateLimitDescription_Status"` + xxx_hidden_Limit int64 `protobuf:"varint,2,opt,name=limit,proto3"` + xxx_hidden_Remaining int64 `protobuf:"varint,3,opt,name=remaining,proto3"` + xxx_hidden_Count int64 `protobuf:"varint,5,opt,name=count,proto3"` + xxx_hidden_ResetAt *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=reset_at,json=resetAt,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *RateLimitDescription) Reset() { + *x = RateLimitDescription{} + mi := &file_c1_ratelimit_v1_ratelimit_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *RateLimitDescription) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*RateLimitDescription) ProtoMessage() {} + +func (x *RateLimitDescription) ProtoReflect() protoreflect.Message { + mi := &file_c1_ratelimit_v1_ratelimit_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) +} + +func (x *RateLimitDescription) GetStatus() RateLimitDescription_Status { + if x != nil { + return x.xxx_hidden_Status + } + return RateLimitDescription_STATUS_UNSPECIFIED +} + +func (x *RateLimitDescription) GetLimit() int64 { + if x != nil { + return x.xxx_hidden_Limit + } + return 0 +} + +func (x *RateLimitDescription) GetRemaining() int64 { + if x != nil { + return x.xxx_hidden_Remaining + } + return 0 +} + +func (x *RateLimitDescription) GetCount() int64 { + if x != nil { + return x.xxx_hidden_Count + } + return 0 +} + +func (x *RateLimitDescription) GetResetAt() *timestamppb.Timestamp { + if x != nil { + return x.xxx_hidden_ResetAt + } + return nil +} + +func (x *RateLimitDescription) SetStatus(v RateLimitDescription_Status) { + x.xxx_hidden_Status = v +} + +func (x *RateLimitDescription) SetLimit(v int64) { + x.xxx_hidden_Limit = v +} + +func (x *RateLimitDescription) SetRemaining(v int64) { + x.xxx_hidden_Remaining = v +} + +func (x *RateLimitDescription) SetCount(v int64) { + x.xxx_hidden_Count = v +} + +func (x *RateLimitDescription) SetResetAt(v *timestamppb.Timestamp) { + x.xxx_hidden_ResetAt = v +} + +func (x *RateLimitDescription) HasResetAt() bool { + if x == nil { + return false + } + return x.xxx_hidden_ResetAt != nil +} + +func (x *RateLimitDescription) ClearResetAt() { + x.xxx_hidden_ResetAt = nil +} + +type RateLimitDescription_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Status RateLimitDescription_Status + Limit int64 + Remaining int64 + Count int64 + ResetAt *timestamppb.Timestamp +} + +func (b0 RateLimitDescription_builder) Build() *RateLimitDescription { + m0 := &RateLimitDescription{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Status = b.Status + x.xxx_hidden_Limit = b.Limit + x.xxx_hidden_Remaining = b.Remaining + x.xxx_hidden_Count = b.Count + x.xxx_hidden_ResetAt = b.ResetAt + return m0 +} + +type ReportRequest struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_RequestToken string `protobuf:"bytes,1,opt,name=request_token,json=requestToken,proto3"` + xxx_hidden_Description *RateLimitDescription `protobuf:"bytes,2,opt,name=description,proto3"` + xxx_hidden_Service string `protobuf:"bytes,3,opt,name=service,proto3"` + xxx_hidden_Descriptors *RateLimitDescriptors `protobuf:"bytes,4,opt,name=descriptors,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *ReportRequest) Reset() { + *x = ReportRequest{} + mi := &file_c1_ratelimit_v1_ratelimit_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *ReportRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ReportRequest) ProtoMessage() {} + +func (x *ReportRequest) ProtoReflect() protoreflect.Message { + mi := &file_c1_ratelimit_v1_ratelimit_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) +} + +func (x *ReportRequest) GetRequestToken() string { + if x != nil { + return x.xxx_hidden_RequestToken + } + return "" +} + +func (x *ReportRequest) GetDescription() *RateLimitDescription { + if x != nil { + return x.xxx_hidden_Description + } + return nil +} + +func (x *ReportRequest) GetService() string { + if x != nil { + return x.xxx_hidden_Service + } + return "" +} + +func (x *ReportRequest) GetDescriptors() *RateLimitDescriptors { + if x != nil { + return x.xxx_hidden_Descriptors + } + return nil +} + +func (x *ReportRequest) SetRequestToken(v string) { + x.xxx_hidden_RequestToken = v +} + +func (x *ReportRequest) SetDescription(v *RateLimitDescription) { + x.xxx_hidden_Description = v +} + +func (x *ReportRequest) SetService(v string) { + x.xxx_hidden_Service = v +} + +func (x *ReportRequest) SetDescriptors(v *RateLimitDescriptors) { + x.xxx_hidden_Descriptors = v +} + +func (x *ReportRequest) HasDescription() bool { + if x == nil { + return false + } + return x.xxx_hidden_Description != nil +} + +func (x *ReportRequest) HasDescriptors() bool { + if x == nil { + return false + } + return x.xxx_hidden_Descriptors != nil +} + +func (x *ReportRequest) ClearDescription() { + x.xxx_hidden_Description = nil +} + +func (x *ReportRequest) ClearDescriptors() { + x.xxx_hidden_Descriptors = nil +} + +type ReportRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + RequestToken string + Description *RateLimitDescription + Service string + Descriptors *RateLimitDescriptors +} + +func (b0 ReportRequest_builder) Build() *ReportRequest { + m0 := &ReportRequest{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_RequestToken = b.RequestToken + x.xxx_hidden_Description = b.Description + x.xxx_hidden_Service = b.Service + x.xxx_hidden_Descriptors = b.Descriptors + return m0 +} + +type ReportResponse struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *ReportResponse) Reset() { + *x = ReportResponse{} + mi := &file_c1_ratelimit_v1_ratelimit_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *ReportResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ReportResponse) ProtoMessage() {} + +func (x *ReportResponse) ProtoReflect() protoreflect.Message { + mi := &file_c1_ratelimit_v1_ratelimit_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) +} + +type ReportResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + +} + +func (b0 ReportResponse_builder) Build() *ReportResponse { + m0 := &ReportResponse{} + b, x := &b0, m0 + _, _ = b, x + return m0 +} + +type RateLimitDescriptors struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Entries *[]*RateLimitDescriptors_Entry `protobuf:"bytes,1,rep,name=entries,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *RateLimitDescriptors) Reset() { + *x = RateLimitDescriptors{} + mi := &file_c1_ratelimit_v1_ratelimit_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *RateLimitDescriptors) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*RateLimitDescriptors) ProtoMessage() {} + +func (x *RateLimitDescriptors) ProtoReflect() protoreflect.Message { + mi := &file_c1_ratelimit_v1_ratelimit_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) +} + +func (x *RateLimitDescriptors) GetEntries() []*RateLimitDescriptors_Entry { + if x != nil { + if x.xxx_hidden_Entries != nil { + return *x.xxx_hidden_Entries + } + } + return nil +} + +func (x *RateLimitDescriptors) SetEntries(v []*RateLimitDescriptors_Entry) { + x.xxx_hidden_Entries = &v +} + +type RateLimitDescriptors_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Entries []*RateLimitDescriptors_Entry +} + +func (b0 RateLimitDescriptors_builder) Build() *RateLimitDescriptors { + m0 := &RateLimitDescriptors{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Entries = &b.Entries + return m0 +} + +type DoRequest struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_RequestToken string `protobuf:"bytes,1,opt,name=request_token,json=requestToken,proto3"` + xxx_hidden_Service string `protobuf:"bytes,2,opt,name=service,proto3"` + xxx_hidden_Descriptors *RateLimitDescriptors `protobuf:"bytes,3,opt,name=descriptors,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *DoRequest) Reset() { + *x = DoRequest{} + mi := &file_c1_ratelimit_v1_ratelimit_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *DoRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*DoRequest) ProtoMessage() {} + +func (x *DoRequest) ProtoReflect() protoreflect.Message { + mi := &file_c1_ratelimit_v1_ratelimit_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) +} + +func (x *DoRequest) GetRequestToken() string { + if x != nil { + return x.xxx_hidden_RequestToken + } + return "" +} + +func (x *DoRequest) GetService() string { + if x != nil { + return x.xxx_hidden_Service + } + return "" +} + +func (x *DoRequest) GetDescriptors() *RateLimitDescriptors { + if x != nil { + return x.xxx_hidden_Descriptors + } + return nil +} + +func (x *DoRequest) SetRequestToken(v string) { + x.xxx_hidden_RequestToken = v +} + +func (x *DoRequest) SetService(v string) { + x.xxx_hidden_Service = v +} + +func (x *DoRequest) SetDescriptors(v *RateLimitDescriptors) { + x.xxx_hidden_Descriptors = v +} + +func (x *DoRequest) HasDescriptors() bool { + if x == nil { + return false + } + return x.xxx_hidden_Descriptors != nil +} + +func (x *DoRequest) ClearDescriptors() { + x.xxx_hidden_Descriptors = nil +} + +type DoRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + RequestToken string + Service string + Descriptors *RateLimitDescriptors +} + +func (b0 DoRequest_builder) Build() *DoRequest { + m0 := &DoRequest{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_RequestToken = b.RequestToken + x.xxx_hidden_Service = b.Service + x.xxx_hidden_Descriptors = b.Descriptors + return m0 +} + +type DoResponse struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_RequestToken string `protobuf:"bytes,1,opt,name=request_token,json=requestToken,proto3"` + xxx_hidden_Description *RateLimitDescription `protobuf:"bytes,2,opt,name=description,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *DoResponse) Reset() { + *x = DoResponse{} + mi := &file_c1_ratelimit_v1_ratelimit_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *DoResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*DoResponse) ProtoMessage() {} + +func (x *DoResponse) ProtoReflect() protoreflect.Message { + mi := &file_c1_ratelimit_v1_ratelimit_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) +} + +func (x *DoResponse) GetRequestToken() string { + if x != nil { + return x.xxx_hidden_RequestToken + } + return "" +} + +func (x *DoResponse) GetDescription() *RateLimitDescription { + if x != nil { + return x.xxx_hidden_Description + } + return nil +} + +func (x *DoResponse) SetRequestToken(v string) { + x.xxx_hidden_RequestToken = v +} + +func (x *DoResponse) SetDescription(v *RateLimitDescription) { + x.xxx_hidden_Description = v +} + +func (x *DoResponse) HasDescription() bool { + if x == nil { + return false + } + return x.xxx_hidden_Description != nil +} + +func (x *DoResponse) ClearDescription() { + x.xxx_hidden_Description = nil +} + +type DoResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + RequestToken string + Description *RateLimitDescription +} + +func (b0 DoResponse_builder) Build() *DoResponse { + m0 := &DoResponse{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_RequestToken = b.RequestToken + x.xxx_hidden_Description = b.Description + return m0 +} + +type DisabledLimiter struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *DisabledLimiter) Reset() { + *x = DisabledLimiter{} + mi := &file_c1_ratelimit_v1_ratelimit_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *DisabledLimiter) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*DisabledLimiter) ProtoMessage() {} + +func (x *DisabledLimiter) ProtoReflect() protoreflect.Message { + mi := &file_c1_ratelimit_v1_ratelimit_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) +} + +type DisabledLimiter_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + +} + +func (b0 DisabledLimiter_builder) Build() *DisabledLimiter { + m0 := &DisabledLimiter{} + b, x := &b0, m0 + _, _ = b, x + return m0 +} + +type SlidingMemoryLimiter struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_UsePercent float64 `protobuf:"fixed64,1,opt,name=use_percent,json=usePercent,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *SlidingMemoryLimiter) Reset() { + *x = SlidingMemoryLimiter{} + mi := &file_c1_ratelimit_v1_ratelimit_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *SlidingMemoryLimiter) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*SlidingMemoryLimiter) ProtoMessage() {} + +func (x *SlidingMemoryLimiter) ProtoReflect() protoreflect.Message { + mi := &file_c1_ratelimit_v1_ratelimit_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) +} + +func (x *SlidingMemoryLimiter) GetUsePercent() float64 { + if x != nil { + return x.xxx_hidden_UsePercent + } + return 0 +} + +func (x *SlidingMemoryLimiter) SetUsePercent(v float64) { + x.xxx_hidden_UsePercent = v +} + +type SlidingMemoryLimiter_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + UsePercent float64 +} + +func (b0 SlidingMemoryLimiter_builder) Build() *SlidingMemoryLimiter { + m0 := &SlidingMemoryLimiter{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_UsePercent = b.UsePercent + return m0 +} + +type FixedMemoryLimiter struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Rate int64 `protobuf:"varint,1,opt,name=rate,proto3"` + xxx_hidden_Period *durationpb.Duration `protobuf:"bytes,2,opt,name=period,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *FixedMemoryLimiter) Reset() { + *x = FixedMemoryLimiter{} + mi := &file_c1_ratelimit_v1_ratelimit_proto_msgTypes[8] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *FixedMemoryLimiter) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*FixedMemoryLimiter) ProtoMessage() {} + +func (x *FixedMemoryLimiter) ProtoReflect() protoreflect.Message { + mi := &file_c1_ratelimit_v1_ratelimit_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) +} + +func (x *FixedMemoryLimiter) GetRate() int64 { + if x != nil { + return x.xxx_hidden_Rate + } + return 0 +} + +func (x *FixedMemoryLimiter) GetPeriod() *durationpb.Duration { + if x != nil { + return x.xxx_hidden_Period + } + return nil +} + +func (x *FixedMemoryLimiter) SetRate(v int64) { + x.xxx_hidden_Rate = v +} + +func (x *FixedMemoryLimiter) SetPeriod(v *durationpb.Duration) { + x.xxx_hidden_Period = v +} + +func (x *FixedMemoryLimiter) HasPeriod() bool { + if x == nil { + return false + } + return x.xxx_hidden_Period != nil +} + +func (x *FixedMemoryLimiter) ClearPeriod() { + x.xxx_hidden_Period = nil +} + +type FixedMemoryLimiter_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Rate int64 + Period *durationpb.Duration +} + +func (b0 FixedMemoryLimiter_builder) Build() *FixedMemoryLimiter { + m0 := &FixedMemoryLimiter{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Rate = b.Rate + x.xxx_hidden_Period = b.Period + return m0 +} + +type ExternalLimiter struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Address string `protobuf:"bytes,2,opt,name=address,proto3"` + xxx_hidden_Options map[string]string `protobuf:"bytes,1,rep,name=options,proto3" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *ExternalLimiter) Reset() { + *x = ExternalLimiter{} + mi := &file_c1_ratelimit_v1_ratelimit_proto_msgTypes[9] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *ExternalLimiter) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ExternalLimiter) ProtoMessage() {} + +func (x *ExternalLimiter) ProtoReflect() protoreflect.Message { + mi := &file_c1_ratelimit_v1_ratelimit_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) +} + +func (x *ExternalLimiter) GetAddress() string { + if x != nil { + return x.xxx_hidden_Address + } + return "" +} + +func (x *ExternalLimiter) GetOptions() map[string]string { + if x != nil { + return x.xxx_hidden_Options + } + return nil +} + +func (x *ExternalLimiter) SetAddress(v string) { + x.xxx_hidden_Address = v +} + +func (x *ExternalLimiter) SetOptions(v map[string]string) { + x.xxx_hidden_Options = v +} + +type ExternalLimiter_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Address string + Options map[string]string +} + +func (b0 ExternalLimiter_builder) Build() *ExternalLimiter { + m0 := &ExternalLimiter{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Address = b.Address + x.xxx_hidden_Options = b.Options + return m0 +} + +type RateLimiterConfig struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Type isRateLimiterConfig_Type `protobuf_oneof:"type"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *RateLimiterConfig) Reset() { + *x = RateLimiterConfig{} + mi := &file_c1_ratelimit_v1_ratelimit_proto_msgTypes[10] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *RateLimiterConfig) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*RateLimiterConfig) ProtoMessage() {} + +func (x *RateLimiterConfig) ProtoReflect() protoreflect.Message { + mi := &file_c1_ratelimit_v1_ratelimit_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) +} + +func (x *RateLimiterConfig) GetDisabled() *DisabledLimiter { + if x != nil { + if x, ok := x.xxx_hidden_Type.(*rateLimiterConfig_Disabled); ok { + return x.Disabled + } + } + return nil +} + +func (x *RateLimiterConfig) GetSlidingMem() *SlidingMemoryLimiter { + if x != nil { + if x, ok := x.xxx_hidden_Type.(*rateLimiterConfig_SlidingMem); ok { + return x.SlidingMem + } + } + return nil +} + +func (x *RateLimiterConfig) GetFixedMem() *FixedMemoryLimiter { + if x != nil { + if x, ok := x.xxx_hidden_Type.(*rateLimiterConfig_FixedMem); ok { + return x.FixedMem + } + } + return nil +} + +func (x *RateLimiterConfig) GetExternal() *ExternalLimiter { + if x != nil { + if x, ok := x.xxx_hidden_Type.(*rateLimiterConfig_External); ok { + return x.External + } + } + return nil +} + +func (x *RateLimiterConfig) SetDisabled(v *DisabledLimiter) { + if v == nil { + x.xxx_hidden_Type = nil + return + } + x.xxx_hidden_Type = &rateLimiterConfig_Disabled{v} +} + +func (x *RateLimiterConfig) SetSlidingMem(v *SlidingMemoryLimiter) { + if v == nil { + x.xxx_hidden_Type = nil + return + } + x.xxx_hidden_Type = &rateLimiterConfig_SlidingMem{v} +} + +func (x *RateLimiterConfig) SetFixedMem(v *FixedMemoryLimiter) { + if v == nil { + x.xxx_hidden_Type = nil + return + } + x.xxx_hidden_Type = &rateLimiterConfig_FixedMem{v} +} + +func (x *RateLimiterConfig) SetExternal(v *ExternalLimiter) { + if v == nil { + x.xxx_hidden_Type = nil + return + } + x.xxx_hidden_Type = &rateLimiterConfig_External{v} +} + +func (x *RateLimiterConfig) HasType() bool { + if x == nil { + return false + } + return x.xxx_hidden_Type != nil +} + +func (x *RateLimiterConfig) HasDisabled() bool { + if x == nil { + return false + } + _, ok := x.xxx_hidden_Type.(*rateLimiterConfig_Disabled) + return ok +} + +func (x *RateLimiterConfig) HasSlidingMem() bool { + if x == nil { + return false + } + _, ok := x.xxx_hidden_Type.(*rateLimiterConfig_SlidingMem) + return ok +} + +func (x *RateLimiterConfig) HasFixedMem() bool { + if x == nil { + return false + } + _, ok := x.xxx_hidden_Type.(*rateLimiterConfig_FixedMem) + return ok +} + +func (x *RateLimiterConfig) HasExternal() bool { + if x == nil { + return false + } + _, ok := x.xxx_hidden_Type.(*rateLimiterConfig_External) + return ok +} + +func (x *RateLimiterConfig) ClearType() { + x.xxx_hidden_Type = nil +} + +func (x *RateLimiterConfig) ClearDisabled() { + if _, ok := x.xxx_hidden_Type.(*rateLimiterConfig_Disabled); ok { + x.xxx_hidden_Type = nil + } +} + +func (x *RateLimiterConfig) ClearSlidingMem() { + if _, ok := x.xxx_hidden_Type.(*rateLimiterConfig_SlidingMem); ok { + x.xxx_hidden_Type = nil + } +} + +func (x *RateLimiterConfig) ClearFixedMem() { + if _, ok := x.xxx_hidden_Type.(*rateLimiterConfig_FixedMem); ok { + x.xxx_hidden_Type = nil + } +} + +func (x *RateLimiterConfig) ClearExternal() { + if _, ok := x.xxx_hidden_Type.(*rateLimiterConfig_External); ok { + x.xxx_hidden_Type = nil + } +} + +const RateLimiterConfig_Type_not_set_case case_RateLimiterConfig_Type = 0 +const RateLimiterConfig_Disabled_case case_RateLimiterConfig_Type = 100 +const RateLimiterConfig_SlidingMem_case case_RateLimiterConfig_Type = 101 +const RateLimiterConfig_FixedMem_case case_RateLimiterConfig_Type = 102 +const RateLimiterConfig_External_case case_RateLimiterConfig_Type = 103 + +func (x *RateLimiterConfig) WhichType() case_RateLimiterConfig_Type { + if x == nil { + return RateLimiterConfig_Type_not_set_case + } + switch x.xxx_hidden_Type.(type) { + case *rateLimiterConfig_Disabled: + return RateLimiterConfig_Disabled_case + case *rateLimiterConfig_SlidingMem: + return RateLimiterConfig_SlidingMem_case + case *rateLimiterConfig_FixedMem: + return RateLimiterConfig_FixedMem_case + case *rateLimiterConfig_External: + return RateLimiterConfig_External_case + default: + return RateLimiterConfig_Type_not_set_case + } +} + +type RateLimiterConfig_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + // Fields of oneof xxx_hidden_Type: + Disabled *DisabledLimiter + SlidingMem *SlidingMemoryLimiter + FixedMem *FixedMemoryLimiter + External *ExternalLimiter + // -- end of xxx_hidden_Type +} + +func (b0 RateLimiterConfig_builder) Build() *RateLimiterConfig { + m0 := &RateLimiterConfig{} + b, x := &b0, m0 + _, _ = b, x + if b.Disabled != nil { + x.xxx_hidden_Type = &rateLimiterConfig_Disabled{b.Disabled} + } + if b.SlidingMem != nil { + x.xxx_hidden_Type = &rateLimiterConfig_SlidingMem{b.SlidingMem} + } + if b.FixedMem != nil { + x.xxx_hidden_Type = &rateLimiterConfig_FixedMem{b.FixedMem} + } + if b.External != nil { + x.xxx_hidden_Type = &rateLimiterConfig_External{b.External} + } + return m0 +} + +type case_RateLimiterConfig_Type protoreflect.FieldNumber + +func (x case_RateLimiterConfig_Type) String() string { + md := file_c1_ratelimit_v1_ratelimit_proto_msgTypes[10].Descriptor() + if x == 0 { + return "not set" + } + return protoimpl.X.MessageFieldStringOf(md, protoreflect.FieldNumber(x)) +} + +type isRateLimiterConfig_Type interface { + isRateLimiterConfig_Type() +} + +type rateLimiterConfig_Disabled struct { + Disabled *DisabledLimiter `protobuf:"bytes,100,opt,name=disabled,proto3,oneof"` +} + +type rateLimiterConfig_SlidingMem struct { + SlidingMem *SlidingMemoryLimiter `protobuf:"bytes,101,opt,name=sliding_mem,json=slidingMem,proto3,oneof"` +} + +type rateLimiterConfig_FixedMem struct { + FixedMem *FixedMemoryLimiter `protobuf:"bytes,102,opt,name=fixed_mem,json=fixedMem,proto3,oneof"` +} + +type rateLimiterConfig_External struct { + External *ExternalLimiter `protobuf:"bytes,103,opt,name=external,proto3,oneof"` +} + +func (*rateLimiterConfig_Disabled) isRateLimiterConfig_Type() {} + +func (*rateLimiterConfig_SlidingMem) isRateLimiterConfig_Type() {} + +func (*rateLimiterConfig_FixedMem) isRateLimiterConfig_Type() {} + +func (*rateLimiterConfig_External) isRateLimiterConfig_Type() {} + +type RateLimitDescriptors_Entry struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Key string `protobuf:"bytes,1,opt,name=key,proto3"` + xxx_hidden_Value string `protobuf:"bytes,2,opt,name=value,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *RateLimitDescriptors_Entry) Reset() { + *x = RateLimitDescriptors_Entry{} + mi := &file_c1_ratelimit_v1_ratelimit_proto_msgTypes[11] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *RateLimitDescriptors_Entry) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*RateLimitDescriptors_Entry) ProtoMessage() {} + +func (x *RateLimitDescriptors_Entry) ProtoReflect() protoreflect.Message { + mi := &file_c1_ratelimit_v1_ratelimit_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) +} + +func (x *RateLimitDescriptors_Entry) GetKey() string { + if x != nil { + return x.xxx_hidden_Key + } + return "" +} + +func (x *RateLimitDescriptors_Entry) GetValue() string { + if x != nil { + return x.xxx_hidden_Value + } + return "" +} + +func (x *RateLimitDescriptors_Entry) SetKey(v string) { + x.xxx_hidden_Key = v +} + +func (x *RateLimitDescriptors_Entry) SetValue(v string) { + x.xxx_hidden_Value = v +} + +type RateLimitDescriptors_Entry_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Key string + Value string +} + +func (b0 RateLimitDescriptors_Entry_builder) Build() *RateLimitDescriptors_Entry { + m0 := &RateLimitDescriptors_Entry{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Key = b.Key + x.xxx_hidden_Value = b.Value + return m0 +} + +var File_c1_ratelimit_v1_ratelimit_proto protoreflect.FileDescriptor + +const file_c1_ratelimit_v1_ratelimit_proto_rawDesc = "" + + "\n" + + "\x1fc1/ratelimit/v1/ratelimit.proto\x12\x0fc1.ratelimit.v1\x1a\x1egoogle/protobuf/duration.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x17validate/validate.proto\"\xc8\x02\n" + + "\x14RateLimitDescription\x12D\n" + + "\x06status\x18\x01 \x01(\x0e2,.c1.ratelimit.v1.RateLimitDescription.StatusR\x06status\x12\x14\n" + + "\x05limit\x18\x02 \x01(\x03R\x05limit\x12\x1c\n" + + "\tremaining\x18\x03 \x01(\x03R\tremaining\x12\x14\n" + + "\x05count\x18\x05 \x01(\x03R\x05count\x125\n" + + "\breset_at\x18\x04 \x01(\v2\x1a.google.protobuf.TimestampR\aresetAt\"i\n" + + "\x06Status\x12\x16\n" + + "\x12STATUS_UNSPECIFIED\x10\x00\x12\r\n" + + "\tSTATUS_OK\x10\x01\x12\x14\n" + + "\x10STATUS_OVERLIMIT\x10\x02\x12\x10\n" + + "\fSTATUS_ERROR\x10\x03\x12\x10\n" + + "\fSTATUS_EMPTY\x10\x04\"\xe0\x01\n" + + "\rReportRequest\x12#\n" + + "\rrequest_token\x18\x01 \x01(\tR\frequestToken\x12G\n" + + "\vdescription\x18\x02 \x01(\v2%.c1.ratelimit.v1.RateLimitDescriptionR\vdescription\x12\x18\n" + + "\aservice\x18\x03 \x01(\tR\aservice\x12G\n" + + "\vdescriptors\x18\x04 \x01(\v2%.c1.ratelimit.v1.RateLimitDescriptorsR\vdescriptors\"\x10\n" + + "\x0eReportResponse\"\xaa\x01\n" + + "\x14RateLimitDescriptors\x12O\n" + + "\aentries\x18\x01 \x03(\v2+.c1.ratelimit.v1.RateLimitDescriptors.EntryB\b\xfaB\x05\x92\x01\x02\b\x01R\aentries\x1aA\n" + + "\x05Entry\x12\x19\n" + + "\x03key\x18\x01 \x01(\tB\a\xfaB\x04r\x02\x10\x01R\x03key\x12\x1d\n" + + "\x05value\x18\x02 \x01(\tB\a\xfaB\x04r\x02\x10\x01R\x05value\"\x93\x01\n" + + "\tDoRequest\x12#\n" + + "\rrequest_token\x18\x01 \x01(\tR\frequestToken\x12\x18\n" + + "\aservice\x18\x02 \x01(\tR\aservice\x12G\n" + + "\vdescriptors\x18\x03 \x01(\v2%.c1.ratelimit.v1.RateLimitDescriptorsR\vdescriptors\"z\n" + + "\n" + + "DoResponse\x12#\n" + + "\rrequest_token\x18\x01 \x01(\tR\frequestToken\x12G\n" + + "\vdescription\x18\x02 \x01(\v2%.c1.ratelimit.v1.RateLimitDescriptionR\vdescription\"\x11\n" + + "\x0fDisabledLimiter\"7\n" + + "\x14SlidingMemoryLimiter\x12\x1f\n" + + "\vuse_percent\x18\x01 \x01(\x01R\n" + + "usePercent\"[\n" + + "\x12FixedMemoryLimiter\x12\x12\n" + + "\x04rate\x18\x01 \x01(\x03R\x04rate\x121\n" + + "\x06period\x18\x02 \x01(\v2\x19.google.protobuf.DurationR\x06period\"\xb0\x01\n" + + "\x0fExternalLimiter\x12\x18\n" + + "\aaddress\x18\x02 \x01(\tR\aaddress\x12G\n" + + "\aoptions\x18\x01 \x03(\v2-.c1.ratelimit.v1.ExternalLimiter.OptionsEntryR\aoptions\x1a:\n" + + "\fOptionsEntry\x12\x10\n" + + "\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n" + + "\x05value\x18\x02 \x01(\tR\x05value:\x028\x01\"\xa9\x02\n" + + "\x11RateLimiterConfig\x12>\n" + + "\bdisabled\x18d \x01(\v2 .c1.ratelimit.v1.DisabledLimiterH\x00R\bdisabled\x12H\n" + + "\vsliding_mem\x18e \x01(\v2%.c1.ratelimit.v1.SlidingMemoryLimiterH\x00R\n" + + "slidingMem\x12B\n" + + "\tfixed_mem\x18f \x01(\v2#.c1.ratelimit.v1.FixedMemoryLimiterH\x00R\bfixedMem\x12>\n" + + "\bexternal\x18g \x01(\v2 .c1.ratelimit.v1.ExternalLimiterH\x00R\bexternalB\x06\n" + + "\x04type2\x9e\x01\n" + + "\x12RateLimiterService\x12=\n" + + "\x02Do\x12\x1a.c1.ratelimit.v1.DoRequest\x1a\x1b.c1.ratelimit.v1.DoResponse\x12I\n" + + "\x06Report\x12\x1e.c1.ratelimit.v1.ReportRequest\x1a\x1f.c1.ratelimit.v1.ReportResponseB6Z4github.com/conductorone/baton-sdk/pb/c1/ratelimit/v1b\x06proto3" + +var file_c1_ratelimit_v1_ratelimit_proto_enumTypes = make([]protoimpl.EnumInfo, 1) +var file_c1_ratelimit_v1_ratelimit_proto_msgTypes = make([]protoimpl.MessageInfo, 13) +var file_c1_ratelimit_v1_ratelimit_proto_goTypes = []any{ + (RateLimitDescription_Status)(0), // 0: c1.ratelimit.v1.RateLimitDescription.Status + (*RateLimitDescription)(nil), // 1: c1.ratelimit.v1.RateLimitDescription + (*ReportRequest)(nil), // 2: c1.ratelimit.v1.ReportRequest + (*ReportResponse)(nil), // 3: c1.ratelimit.v1.ReportResponse + (*RateLimitDescriptors)(nil), // 4: c1.ratelimit.v1.RateLimitDescriptors + (*DoRequest)(nil), // 5: c1.ratelimit.v1.DoRequest + (*DoResponse)(nil), // 6: c1.ratelimit.v1.DoResponse + (*DisabledLimiter)(nil), // 7: c1.ratelimit.v1.DisabledLimiter + (*SlidingMemoryLimiter)(nil), // 8: c1.ratelimit.v1.SlidingMemoryLimiter + (*FixedMemoryLimiter)(nil), // 9: c1.ratelimit.v1.FixedMemoryLimiter + (*ExternalLimiter)(nil), // 10: c1.ratelimit.v1.ExternalLimiter + (*RateLimiterConfig)(nil), // 11: c1.ratelimit.v1.RateLimiterConfig + (*RateLimitDescriptors_Entry)(nil), // 12: c1.ratelimit.v1.RateLimitDescriptors.Entry + nil, // 13: c1.ratelimit.v1.ExternalLimiter.OptionsEntry + (*timestamppb.Timestamp)(nil), // 14: google.protobuf.Timestamp + (*durationpb.Duration)(nil), // 15: google.protobuf.Duration +} +var file_c1_ratelimit_v1_ratelimit_proto_depIdxs = []int32{ + 0, // 0: c1.ratelimit.v1.RateLimitDescription.status:type_name -> c1.ratelimit.v1.RateLimitDescription.Status + 14, // 1: c1.ratelimit.v1.RateLimitDescription.reset_at:type_name -> google.protobuf.Timestamp + 1, // 2: c1.ratelimit.v1.ReportRequest.description:type_name -> c1.ratelimit.v1.RateLimitDescription + 4, // 3: c1.ratelimit.v1.ReportRequest.descriptors:type_name -> c1.ratelimit.v1.RateLimitDescriptors + 12, // 4: c1.ratelimit.v1.RateLimitDescriptors.entries:type_name -> c1.ratelimit.v1.RateLimitDescriptors.Entry + 4, // 5: c1.ratelimit.v1.DoRequest.descriptors:type_name -> c1.ratelimit.v1.RateLimitDescriptors + 1, // 6: c1.ratelimit.v1.DoResponse.description:type_name -> c1.ratelimit.v1.RateLimitDescription + 15, // 7: c1.ratelimit.v1.FixedMemoryLimiter.period:type_name -> google.protobuf.Duration + 13, // 8: c1.ratelimit.v1.ExternalLimiter.options:type_name -> c1.ratelimit.v1.ExternalLimiter.OptionsEntry + 7, // 9: c1.ratelimit.v1.RateLimiterConfig.disabled:type_name -> c1.ratelimit.v1.DisabledLimiter + 8, // 10: c1.ratelimit.v1.RateLimiterConfig.sliding_mem:type_name -> c1.ratelimit.v1.SlidingMemoryLimiter + 9, // 11: c1.ratelimit.v1.RateLimiterConfig.fixed_mem:type_name -> c1.ratelimit.v1.FixedMemoryLimiter + 10, // 12: c1.ratelimit.v1.RateLimiterConfig.external:type_name -> c1.ratelimit.v1.ExternalLimiter + 5, // 13: c1.ratelimit.v1.RateLimiterService.Do:input_type -> c1.ratelimit.v1.DoRequest + 2, // 14: c1.ratelimit.v1.RateLimiterService.Report:input_type -> c1.ratelimit.v1.ReportRequest + 6, // 15: c1.ratelimit.v1.RateLimiterService.Do:output_type -> c1.ratelimit.v1.DoResponse + 3, // 16: c1.ratelimit.v1.RateLimiterService.Report:output_type -> c1.ratelimit.v1.ReportResponse + 15, // [15:17] is the sub-list for method output_type + 13, // [13:15] is the sub-list for method input_type + 13, // [13:13] is the sub-list for extension type_name + 13, // [13:13] is the sub-list for extension extendee + 0, // [0:13] is the sub-list for field type_name +} + +func init() { file_c1_ratelimit_v1_ratelimit_proto_init() } +func file_c1_ratelimit_v1_ratelimit_proto_init() { + if File_c1_ratelimit_v1_ratelimit_proto != nil { + return + } + file_c1_ratelimit_v1_ratelimit_proto_msgTypes[10].OneofWrappers = []any{ + (*rateLimiterConfig_Disabled)(nil), + (*rateLimiterConfig_SlidingMem)(nil), + (*rateLimiterConfig_FixedMem)(nil), + (*rateLimiterConfig_External)(nil), + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: unsafe.Slice(unsafe.StringData(file_c1_ratelimit_v1_ratelimit_proto_rawDesc), len(file_c1_ratelimit_v1_ratelimit_proto_rawDesc)), + NumEnums: 1, + NumMessages: 13, + NumExtensions: 0, + NumServices: 1, + }, + GoTypes: file_c1_ratelimit_v1_ratelimit_proto_goTypes, + DependencyIndexes: file_c1_ratelimit_v1_ratelimit_proto_depIdxs, + EnumInfos: file_c1_ratelimit_v1_ratelimit_proto_enumTypes, + MessageInfos: file_c1_ratelimit_v1_ratelimit_proto_msgTypes, + }.Build() + File_c1_ratelimit_v1_ratelimit_proto = out.File + file_c1_ratelimit_v1_ratelimit_proto_goTypes = nil + file_c1_ratelimit_v1_ratelimit_proto_depIdxs = nil +} diff --git a/vendor/github.com/conductorone/baton-sdk/pb/c1/reader/v2/entitlement.pb.go b/vendor/github.com/conductorone/baton-sdk/pb/c1/reader/v2/entitlement.pb.go index 1cf92ff9..a2a13b1a 100644 --- a/vendor/github.com/conductorone/baton-sdk/pb/c1/reader/v2/entitlement.pb.go +++ b/vendor/github.com/conductorone/baton-sdk/pb/c1/reader/v2/entitlement.pb.go @@ -1,9 +1,11 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.36.4 +// protoc-gen-go v1.36.10 // protoc (unknown) // source: c1/reader/v2/entitlement.proto +//go:build !protoopaque + package v2 import ( @@ -13,7 +15,6 @@ import ( protoimpl "google.golang.org/protobuf/runtime/protoimpl" anypb "google.golang.org/protobuf/types/known/anypb" reflect "reflect" - sync "sync" unsafe "unsafe" ) @@ -25,7 +26,7 @@ const ( ) type EntitlementsReaderServiceGetEntitlementRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` EntitlementId string `protobuf:"bytes,1,opt,name=entitlement_id,json=entitlementId,proto3" json:"entitlement_id,omitempty"` Annotations []*anypb.Any `protobuf:"bytes,2,rep,name=annotations,proto3" json:"annotations,omitempty"` unknownFields protoimpl.UnknownFields @@ -57,11 +58,6 @@ func (x *EntitlementsReaderServiceGetEntitlementRequest) ProtoReflect() protoref return mi.MessageOf(x) } -// Deprecated: Use EntitlementsReaderServiceGetEntitlementRequest.ProtoReflect.Descriptor instead. -func (*EntitlementsReaderServiceGetEntitlementRequest) Descriptor() ([]byte, []int) { - return file_c1_reader_v2_entitlement_proto_rawDescGZIP(), []int{0} -} - func (x *EntitlementsReaderServiceGetEntitlementRequest) GetEntitlementId() string { if x != nil { return x.EntitlementId @@ -76,8 +72,32 @@ func (x *EntitlementsReaderServiceGetEntitlementRequest) GetAnnotations() []*any return nil } +func (x *EntitlementsReaderServiceGetEntitlementRequest) SetEntitlementId(v string) { + x.EntitlementId = v +} + +func (x *EntitlementsReaderServiceGetEntitlementRequest) SetAnnotations(v []*anypb.Any) { + x.Annotations = v +} + +type EntitlementsReaderServiceGetEntitlementRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + EntitlementId string + Annotations []*anypb.Any +} + +func (b0 EntitlementsReaderServiceGetEntitlementRequest_builder) Build() *EntitlementsReaderServiceGetEntitlementRequest { + m0 := &EntitlementsReaderServiceGetEntitlementRequest{} + b, x := &b0, m0 + _, _ = b, x + x.EntitlementId = b.EntitlementId + x.Annotations = b.Annotations + return m0 +} + type EntitlementsReaderServiceGetEntitlementResponse struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` Entitlement *v2.Entitlement `protobuf:"bytes,1,opt,name=entitlement,proto3" json:"entitlement,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache @@ -108,11 +128,6 @@ func (x *EntitlementsReaderServiceGetEntitlementResponse) ProtoReflect() protore return mi.MessageOf(x) } -// Deprecated: Use EntitlementsReaderServiceGetEntitlementResponse.ProtoReflect.Descriptor instead. -func (*EntitlementsReaderServiceGetEntitlementResponse) Descriptor() ([]byte, []int) { - return file_c1_reader_v2_entitlement_proto_rawDescGZIP(), []int{1} -} - func (x *EntitlementsReaderServiceGetEntitlementResponse) GetEntitlement() *v2.Entitlement { if x != nil { return x.Entitlement @@ -120,64 +135,49 @@ func (x *EntitlementsReaderServiceGetEntitlementResponse) GetEntitlement() *v2.E return nil } -var File_c1_reader_v2_entitlement_proto protoreflect.FileDescriptor +func (x *EntitlementsReaderServiceGetEntitlementResponse) SetEntitlement(v *v2.Entitlement) { + x.Entitlement = v +} -var file_c1_reader_v2_entitlement_proto_rawDesc = string([]byte{ - 0x0a, 0x1e, 0x63, 0x31, 0x2f, 0x72, 0x65, 0x61, 0x64, 0x65, 0x72, 0x2f, 0x76, 0x32, 0x2f, 0x65, - 0x6e, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, - 0x12, 0x0c, 0x63, 0x31, 0x2e, 0x72, 0x65, 0x61, 0x64, 0x65, 0x72, 0x2e, 0x76, 0x32, 0x1a, 0x21, - 0x63, 0x31, 0x2f, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x2f, 0x76, 0x32, 0x2f, - 0x65, 0x6e, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x1a, 0x19, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, - 0x75, 0x66, 0x2f, 0x61, 0x6e, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x17, 0x76, 0x61, - 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x2f, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x2e, - 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x9b, 0x01, 0x0a, 0x2e, 0x45, 0x6e, 0x74, 0x69, 0x74, 0x6c, - 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x52, 0x65, 0x61, 0x64, 0x65, 0x72, 0x53, 0x65, 0x72, 0x76, - 0x69, 0x63, 0x65, 0x47, 0x65, 0x74, 0x45, 0x6e, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x6d, 0x65, 0x6e, - 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x31, 0x0a, 0x0e, 0x65, 0x6e, 0x74, 0x69, - 0x74, 0x6c, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, - 0x42, 0x0a, 0xfa, 0x42, 0x07, 0x72, 0x05, 0x20, 0x01, 0x28, 0x80, 0x08, 0x52, 0x0d, 0x65, 0x6e, - 0x74, 0x69, 0x74, 0x6c, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x49, 0x64, 0x12, 0x36, 0x0a, 0x0b, 0x61, - 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, - 0x32, 0x14, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, - 0x75, 0x66, 0x2e, 0x41, 0x6e, 0x79, 0x52, 0x0b, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, - 0x6f, 0x6e, 0x73, 0x22, 0x71, 0x0a, 0x2f, 0x45, 0x6e, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x6d, 0x65, - 0x6e, 0x74, 0x73, 0x52, 0x65, 0x61, 0x64, 0x65, 0x72, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, - 0x47, 0x65, 0x74, 0x45, 0x6e, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x52, 0x65, - 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x3e, 0x0a, 0x0b, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x6c, - 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x63, 0x31, - 0x2e, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x2e, 0x76, 0x32, 0x2e, 0x45, 0x6e, - 0x74, 0x69, 0x74, 0x6c, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x52, 0x0b, 0x65, 0x6e, 0x74, 0x69, 0x74, - 0x6c, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x32, 0xab, 0x01, 0x0a, 0x19, 0x45, 0x6e, 0x74, 0x69, 0x74, - 0x6c, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x52, 0x65, 0x61, 0x64, 0x65, 0x72, 0x53, 0x65, 0x72, - 0x76, 0x69, 0x63, 0x65, 0x12, 0x8d, 0x01, 0x0a, 0x0e, 0x47, 0x65, 0x74, 0x45, 0x6e, 0x74, 0x69, - 0x74, 0x6c, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x12, 0x3c, 0x2e, 0x63, 0x31, 0x2e, 0x72, 0x65, 0x61, - 0x64, 0x65, 0x72, 0x2e, 0x76, 0x32, 0x2e, 0x45, 0x6e, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x6d, 0x65, - 0x6e, 0x74, 0x73, 0x52, 0x65, 0x61, 0x64, 0x65, 0x72, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, - 0x47, 0x65, 0x74, 0x45, 0x6e, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x52, 0x65, - 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x3d, 0x2e, 0x63, 0x31, 0x2e, 0x72, 0x65, 0x61, 0x64, 0x65, - 0x72, 0x2e, 0x76, 0x32, 0x2e, 0x45, 0x6e, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x6d, 0x65, 0x6e, 0x74, - 0x73, 0x52, 0x65, 0x61, 0x64, 0x65, 0x72, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x47, 0x65, - 0x74, 0x45, 0x6e, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, - 0x6f, 0x6e, 0x73, 0x65, 0x42, 0x33, 0x5a, 0x31, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, - 0x6f, 0x6d, 0x2f, 0x63, 0x6f, 0x6e, 0x64, 0x75, 0x63, 0x74, 0x6f, 0x72, 0x6f, 0x6e, 0x65, 0x2f, - 0x62, 0x61, 0x74, 0x6f, 0x6e, 0x2d, 0x73, 0x64, 0x6b, 0x2f, 0x70, 0x62, 0x2f, 0x63, 0x31, 0x2f, - 0x72, 0x65, 0x61, 0x64, 0x65, 0x72, 0x2f, 0x76, 0x32, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, - 0x33, -}) - -var ( - file_c1_reader_v2_entitlement_proto_rawDescOnce sync.Once - file_c1_reader_v2_entitlement_proto_rawDescData []byte -) +func (x *EntitlementsReaderServiceGetEntitlementResponse) HasEntitlement() bool { + if x == nil { + return false + } + return x.Entitlement != nil +} -func file_c1_reader_v2_entitlement_proto_rawDescGZIP() []byte { - file_c1_reader_v2_entitlement_proto_rawDescOnce.Do(func() { - file_c1_reader_v2_entitlement_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_c1_reader_v2_entitlement_proto_rawDesc), len(file_c1_reader_v2_entitlement_proto_rawDesc))) - }) - return file_c1_reader_v2_entitlement_proto_rawDescData +func (x *EntitlementsReaderServiceGetEntitlementResponse) ClearEntitlement() { + x.Entitlement = nil } +type EntitlementsReaderServiceGetEntitlementResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Entitlement *v2.Entitlement +} + +func (b0 EntitlementsReaderServiceGetEntitlementResponse_builder) Build() *EntitlementsReaderServiceGetEntitlementResponse { + m0 := &EntitlementsReaderServiceGetEntitlementResponse{} + b, x := &b0, m0 + _, _ = b, x + x.Entitlement = b.Entitlement + return m0 +} + +var File_c1_reader_v2_entitlement_proto protoreflect.FileDescriptor + +const file_c1_reader_v2_entitlement_proto_rawDesc = "" + + "\n" + + "\x1ec1/reader/v2/entitlement.proto\x12\fc1.reader.v2\x1a!c1/connector/v2/entitlement.proto\x1a\x19google/protobuf/any.proto\x1a\x17validate/validate.proto\"\x9b\x01\n" + + ".EntitlementsReaderServiceGetEntitlementRequest\x121\n" + + "\x0eentitlement_id\x18\x01 \x01(\tB\n" + + "\xfaB\ar\x05 \x01(\x80\bR\rentitlementId\x126\n" + + "\vannotations\x18\x02 \x03(\v2\x14.google.protobuf.AnyR\vannotations\"q\n" + + "/EntitlementsReaderServiceGetEntitlementResponse\x12>\n" + + "\ventitlement\x18\x01 \x01(\v2\x1c.c1.connector.v2.EntitlementR\ventitlement2\xab\x01\n" + + "\x19EntitlementsReaderService\x12\x8d\x01\n" + + "\x0eGetEntitlement\x12<.c1.reader.v2.EntitlementsReaderServiceGetEntitlementRequest\x1a=.c1.reader.v2.EntitlementsReaderServiceGetEntitlementResponseB3Z1github.com/conductorone/baton-sdk/pb/c1/reader/v2b\x06proto3" + var file_c1_reader_v2_entitlement_proto_msgTypes = make([]protoimpl.MessageInfo, 2) var file_c1_reader_v2_entitlement_proto_goTypes = []any{ (*EntitlementsReaderServiceGetEntitlementRequest)(nil), // 0: c1.reader.v2.EntitlementsReaderServiceGetEntitlementRequest diff --git a/vendor/github.com/conductorone/baton-sdk/pb/c1/reader/v2/entitlement_protoopaque.pb.go b/vendor/github.com/conductorone/baton-sdk/pb/c1/reader/v2/entitlement_protoopaque.pb.go new file mode 100644 index 00000000..5b9fb685 --- /dev/null +++ b/vendor/github.com/conductorone/baton-sdk/pb/c1/reader/v2/entitlement_protoopaque.pb.go @@ -0,0 +1,224 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.36.10 +// protoc (unknown) +// source: c1/reader/v2/entitlement.proto + +//go:build protoopaque + +package v2 + +import ( + v2 "github.com/conductorone/baton-sdk/pb/c1/connector/v2" + _ "github.com/envoyproxy/protoc-gen-validate/validate" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + anypb "google.golang.org/protobuf/types/known/anypb" + reflect "reflect" + 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 EntitlementsReaderServiceGetEntitlementRequest struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_EntitlementId string `protobuf:"bytes,1,opt,name=entitlement_id,json=entitlementId,proto3"` + xxx_hidden_Annotations *[]*anypb.Any `protobuf:"bytes,2,rep,name=annotations,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *EntitlementsReaderServiceGetEntitlementRequest) Reset() { + *x = EntitlementsReaderServiceGetEntitlementRequest{} + mi := &file_c1_reader_v2_entitlement_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *EntitlementsReaderServiceGetEntitlementRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*EntitlementsReaderServiceGetEntitlementRequest) ProtoMessage() {} + +func (x *EntitlementsReaderServiceGetEntitlementRequest) ProtoReflect() protoreflect.Message { + mi := &file_c1_reader_v2_entitlement_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) +} + +func (x *EntitlementsReaderServiceGetEntitlementRequest) GetEntitlementId() string { + if x != nil { + return x.xxx_hidden_EntitlementId + } + return "" +} + +func (x *EntitlementsReaderServiceGetEntitlementRequest) GetAnnotations() []*anypb.Any { + if x != nil { + if x.xxx_hidden_Annotations != nil { + return *x.xxx_hidden_Annotations + } + } + return nil +} + +func (x *EntitlementsReaderServiceGetEntitlementRequest) SetEntitlementId(v string) { + x.xxx_hidden_EntitlementId = v +} + +func (x *EntitlementsReaderServiceGetEntitlementRequest) SetAnnotations(v []*anypb.Any) { + x.xxx_hidden_Annotations = &v +} + +type EntitlementsReaderServiceGetEntitlementRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + EntitlementId string + Annotations []*anypb.Any +} + +func (b0 EntitlementsReaderServiceGetEntitlementRequest_builder) Build() *EntitlementsReaderServiceGetEntitlementRequest { + m0 := &EntitlementsReaderServiceGetEntitlementRequest{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_EntitlementId = b.EntitlementId + x.xxx_hidden_Annotations = &b.Annotations + return m0 +} + +type EntitlementsReaderServiceGetEntitlementResponse struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Entitlement *v2.Entitlement `protobuf:"bytes,1,opt,name=entitlement,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *EntitlementsReaderServiceGetEntitlementResponse) Reset() { + *x = EntitlementsReaderServiceGetEntitlementResponse{} + mi := &file_c1_reader_v2_entitlement_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *EntitlementsReaderServiceGetEntitlementResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*EntitlementsReaderServiceGetEntitlementResponse) ProtoMessage() {} + +func (x *EntitlementsReaderServiceGetEntitlementResponse) ProtoReflect() protoreflect.Message { + mi := &file_c1_reader_v2_entitlement_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) +} + +func (x *EntitlementsReaderServiceGetEntitlementResponse) GetEntitlement() *v2.Entitlement { + if x != nil { + return x.xxx_hidden_Entitlement + } + return nil +} + +func (x *EntitlementsReaderServiceGetEntitlementResponse) SetEntitlement(v *v2.Entitlement) { + x.xxx_hidden_Entitlement = v +} + +func (x *EntitlementsReaderServiceGetEntitlementResponse) HasEntitlement() bool { + if x == nil { + return false + } + return x.xxx_hidden_Entitlement != nil +} + +func (x *EntitlementsReaderServiceGetEntitlementResponse) ClearEntitlement() { + x.xxx_hidden_Entitlement = nil +} + +type EntitlementsReaderServiceGetEntitlementResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Entitlement *v2.Entitlement +} + +func (b0 EntitlementsReaderServiceGetEntitlementResponse_builder) Build() *EntitlementsReaderServiceGetEntitlementResponse { + m0 := &EntitlementsReaderServiceGetEntitlementResponse{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Entitlement = b.Entitlement + return m0 +} + +var File_c1_reader_v2_entitlement_proto protoreflect.FileDescriptor + +const file_c1_reader_v2_entitlement_proto_rawDesc = "" + + "\n" + + "\x1ec1/reader/v2/entitlement.proto\x12\fc1.reader.v2\x1a!c1/connector/v2/entitlement.proto\x1a\x19google/protobuf/any.proto\x1a\x17validate/validate.proto\"\x9b\x01\n" + + ".EntitlementsReaderServiceGetEntitlementRequest\x121\n" + + "\x0eentitlement_id\x18\x01 \x01(\tB\n" + + "\xfaB\ar\x05 \x01(\x80\bR\rentitlementId\x126\n" + + "\vannotations\x18\x02 \x03(\v2\x14.google.protobuf.AnyR\vannotations\"q\n" + + "/EntitlementsReaderServiceGetEntitlementResponse\x12>\n" + + "\ventitlement\x18\x01 \x01(\v2\x1c.c1.connector.v2.EntitlementR\ventitlement2\xab\x01\n" + + "\x19EntitlementsReaderService\x12\x8d\x01\n" + + "\x0eGetEntitlement\x12<.c1.reader.v2.EntitlementsReaderServiceGetEntitlementRequest\x1a=.c1.reader.v2.EntitlementsReaderServiceGetEntitlementResponseB3Z1github.com/conductorone/baton-sdk/pb/c1/reader/v2b\x06proto3" + +var file_c1_reader_v2_entitlement_proto_msgTypes = make([]protoimpl.MessageInfo, 2) +var file_c1_reader_v2_entitlement_proto_goTypes = []any{ + (*EntitlementsReaderServiceGetEntitlementRequest)(nil), // 0: c1.reader.v2.EntitlementsReaderServiceGetEntitlementRequest + (*EntitlementsReaderServiceGetEntitlementResponse)(nil), // 1: c1.reader.v2.EntitlementsReaderServiceGetEntitlementResponse + (*anypb.Any)(nil), // 2: google.protobuf.Any + (*v2.Entitlement)(nil), // 3: c1.connector.v2.Entitlement +} +var file_c1_reader_v2_entitlement_proto_depIdxs = []int32{ + 2, // 0: c1.reader.v2.EntitlementsReaderServiceGetEntitlementRequest.annotations:type_name -> google.protobuf.Any + 3, // 1: c1.reader.v2.EntitlementsReaderServiceGetEntitlementResponse.entitlement:type_name -> c1.connector.v2.Entitlement + 0, // 2: c1.reader.v2.EntitlementsReaderService.GetEntitlement:input_type -> c1.reader.v2.EntitlementsReaderServiceGetEntitlementRequest + 1, // 3: c1.reader.v2.EntitlementsReaderService.GetEntitlement:output_type -> c1.reader.v2.EntitlementsReaderServiceGetEntitlementResponse + 3, // [3:4] is the sub-list for method output_type + 2, // [2:3] is the sub-list for method input_type + 2, // [2:2] is the sub-list for extension type_name + 2, // [2:2] is the sub-list for extension extendee + 0, // [0:2] is the sub-list for field type_name +} + +func init() { file_c1_reader_v2_entitlement_proto_init() } +func file_c1_reader_v2_entitlement_proto_init() { + if File_c1_reader_v2_entitlement_proto != nil { + return + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: unsafe.Slice(unsafe.StringData(file_c1_reader_v2_entitlement_proto_rawDesc), len(file_c1_reader_v2_entitlement_proto_rawDesc)), + NumEnums: 0, + NumMessages: 2, + NumExtensions: 0, + NumServices: 1, + }, + GoTypes: file_c1_reader_v2_entitlement_proto_goTypes, + DependencyIndexes: file_c1_reader_v2_entitlement_proto_depIdxs, + MessageInfos: file_c1_reader_v2_entitlement_proto_msgTypes, + }.Build() + File_c1_reader_v2_entitlement_proto = out.File + file_c1_reader_v2_entitlement_proto_goTypes = nil + file_c1_reader_v2_entitlement_proto_depIdxs = nil +} diff --git a/vendor/github.com/conductorone/baton-sdk/pb/c1/reader/v2/grant.pb.go b/vendor/github.com/conductorone/baton-sdk/pb/c1/reader/v2/grant.pb.go index 13690bcd..9d341d60 100644 --- a/vendor/github.com/conductorone/baton-sdk/pb/c1/reader/v2/grant.pb.go +++ b/vendor/github.com/conductorone/baton-sdk/pb/c1/reader/v2/grant.pb.go @@ -1,9 +1,11 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.36.4 +// protoc-gen-go v1.36.10 // protoc (unknown) // source: c1/reader/v2/grant.proto +//go:build !protoopaque + package v2 import ( @@ -13,7 +15,6 @@ import ( protoimpl "google.golang.org/protobuf/runtime/protoimpl" anypb "google.golang.org/protobuf/types/known/anypb" reflect "reflect" - sync "sync" unsafe "unsafe" ) @@ -25,7 +26,7 @@ const ( ) type GrantsReaderServiceGetGrantRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` GrantId string `protobuf:"bytes,1,opt,name=grant_id,json=grantId,proto3" json:"grant_id,omitempty"` Annotations []*anypb.Any `protobuf:"bytes,2,rep,name=annotations,proto3" json:"annotations,omitempty"` unknownFields protoimpl.UnknownFields @@ -57,11 +58,6 @@ func (x *GrantsReaderServiceGetGrantRequest) ProtoReflect() protoreflect.Message return mi.MessageOf(x) } -// Deprecated: Use GrantsReaderServiceGetGrantRequest.ProtoReflect.Descriptor instead. -func (*GrantsReaderServiceGetGrantRequest) Descriptor() ([]byte, []int) { - return file_c1_reader_v2_grant_proto_rawDescGZIP(), []int{0} -} - func (x *GrantsReaderServiceGetGrantRequest) GetGrantId() string { if x != nil { return x.GrantId @@ -76,8 +72,32 @@ func (x *GrantsReaderServiceGetGrantRequest) GetAnnotations() []*anypb.Any { return nil } +func (x *GrantsReaderServiceGetGrantRequest) SetGrantId(v string) { + x.GrantId = v +} + +func (x *GrantsReaderServiceGetGrantRequest) SetAnnotations(v []*anypb.Any) { + x.Annotations = v +} + +type GrantsReaderServiceGetGrantRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + GrantId string + Annotations []*anypb.Any +} + +func (b0 GrantsReaderServiceGetGrantRequest_builder) Build() *GrantsReaderServiceGetGrantRequest { + m0 := &GrantsReaderServiceGetGrantRequest{} + b, x := &b0, m0 + _, _ = b, x + x.GrantId = b.GrantId + x.Annotations = b.Annotations + return m0 +} + type GrantsReaderServiceGetGrantResponse struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` Grant *v2.Grant `protobuf:"bytes,1,opt,name=grant,proto3" json:"grant,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache @@ -108,11 +128,6 @@ func (x *GrantsReaderServiceGetGrantResponse) ProtoReflect() protoreflect.Messag return mi.MessageOf(x) } -// Deprecated: Use GrantsReaderServiceGetGrantResponse.ProtoReflect.Descriptor instead. -func (*GrantsReaderServiceGetGrantResponse) Descriptor() ([]byte, []int) { - return file_c1_reader_v2_grant_proto_rawDescGZIP(), []int{1} -} - func (x *GrantsReaderServiceGetGrantResponse) GetGrant() *v2.Grant { if x != nil { return x.Grant @@ -120,15 +135,45 @@ func (x *GrantsReaderServiceGetGrantResponse) GetGrant() *v2.Grant { return nil } +func (x *GrantsReaderServiceGetGrantResponse) SetGrant(v *v2.Grant) { + x.Grant = v +} + +func (x *GrantsReaderServiceGetGrantResponse) HasGrant() bool { + if x == nil { + return false + } + return x.Grant != nil +} + +func (x *GrantsReaderServiceGetGrantResponse) ClearGrant() { + x.Grant = nil +} + +type GrantsReaderServiceGetGrantResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Grant *v2.Grant +} + +func (b0 GrantsReaderServiceGetGrantResponse_builder) Build() *GrantsReaderServiceGetGrantResponse { + m0 := &GrantsReaderServiceGetGrantResponse{} + b, x := &b0, m0 + _, _ = b, x + x.Grant = b.Grant + return m0 +} + type GrantsReaderServiceListGrantsForEntitlementRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` - Entitlement *v2.Entitlement `protobuf:"bytes,1,opt,name=entitlement,proto3" json:"entitlement,omitempty"` - PrincipalId *v2.ResourceId `protobuf:"bytes,5,opt,name=principal_id,json=principalId,proto3" json:"principal_id,omitempty"` - PageSize uint32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` - PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"` - Annotations []*anypb.Any `protobuf:"bytes,4,rep,name=annotations,proto3" json:"annotations,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"hybrid.v1"` + Entitlement *v2.Entitlement `protobuf:"bytes,1,opt,name=entitlement,proto3" json:"entitlement,omitempty"` + PrincipalId *v2.ResourceId `protobuf:"bytes,5,opt,name=principal_id,json=principalId,proto3" json:"principal_id,omitempty"` + PrincipalResourceTypeIds []string `protobuf:"bytes,6,rep,name=principal_resource_type_ids,json=principalResourceTypeIds,proto3" json:"principal_resource_type_ids,omitempty"` + PageSize uint32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` + PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"` + Annotations []*anypb.Any `protobuf:"bytes,4,rep,name=annotations,proto3" json:"annotations,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *GrantsReaderServiceListGrantsForEntitlementRequest) Reset() { @@ -156,11 +201,6 @@ func (x *GrantsReaderServiceListGrantsForEntitlementRequest) ProtoReflect() prot return mi.MessageOf(x) } -// Deprecated: Use GrantsReaderServiceListGrantsForEntitlementRequest.ProtoReflect.Descriptor instead. -func (*GrantsReaderServiceListGrantsForEntitlementRequest) Descriptor() ([]byte, []int) { - return file_c1_reader_v2_grant_proto_rawDescGZIP(), []int{2} -} - func (x *GrantsReaderServiceListGrantsForEntitlementRequest) GetEntitlement() *v2.Entitlement { if x != nil { return x.Entitlement @@ -175,6 +215,13 @@ func (x *GrantsReaderServiceListGrantsForEntitlementRequest) GetPrincipalId() *v return nil } +func (x *GrantsReaderServiceListGrantsForEntitlementRequest) GetPrincipalResourceTypeIds() []string { + if x != nil { + return x.PrincipalResourceTypeIds + } + return nil +} + func (x *GrantsReaderServiceListGrantsForEntitlementRequest) GetPageSize() uint32 { if x != nil { return x.PageSize @@ -196,8 +243,78 @@ func (x *GrantsReaderServiceListGrantsForEntitlementRequest) GetAnnotations() [] return nil } +func (x *GrantsReaderServiceListGrantsForEntitlementRequest) SetEntitlement(v *v2.Entitlement) { + x.Entitlement = v +} + +func (x *GrantsReaderServiceListGrantsForEntitlementRequest) SetPrincipalId(v *v2.ResourceId) { + x.PrincipalId = v +} + +func (x *GrantsReaderServiceListGrantsForEntitlementRequest) SetPrincipalResourceTypeIds(v []string) { + x.PrincipalResourceTypeIds = v +} + +func (x *GrantsReaderServiceListGrantsForEntitlementRequest) SetPageSize(v uint32) { + x.PageSize = v +} + +func (x *GrantsReaderServiceListGrantsForEntitlementRequest) SetPageToken(v string) { + x.PageToken = v +} + +func (x *GrantsReaderServiceListGrantsForEntitlementRequest) SetAnnotations(v []*anypb.Any) { + x.Annotations = v +} + +func (x *GrantsReaderServiceListGrantsForEntitlementRequest) HasEntitlement() bool { + if x == nil { + return false + } + return x.Entitlement != nil +} + +func (x *GrantsReaderServiceListGrantsForEntitlementRequest) HasPrincipalId() bool { + if x == nil { + return false + } + return x.PrincipalId != nil +} + +func (x *GrantsReaderServiceListGrantsForEntitlementRequest) ClearEntitlement() { + x.Entitlement = nil +} + +func (x *GrantsReaderServiceListGrantsForEntitlementRequest) ClearPrincipalId() { + x.PrincipalId = nil +} + +type GrantsReaderServiceListGrantsForEntitlementRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Entitlement *v2.Entitlement + PrincipalId *v2.ResourceId + PrincipalResourceTypeIds []string + PageSize uint32 + PageToken string + Annotations []*anypb.Any +} + +func (b0 GrantsReaderServiceListGrantsForEntitlementRequest_builder) Build() *GrantsReaderServiceListGrantsForEntitlementRequest { + m0 := &GrantsReaderServiceListGrantsForEntitlementRequest{} + b, x := &b0, m0 + _, _ = b, x + x.Entitlement = b.Entitlement + x.PrincipalId = b.PrincipalId + x.PrincipalResourceTypeIds = b.PrincipalResourceTypeIds + x.PageSize = b.PageSize + x.PageToken = b.PageToken + x.Annotations = b.Annotations + return m0 +} + type GrantsReaderServiceListGrantsForEntitlementResponse struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` List []*v2.Grant `protobuf:"bytes,1,rep,name=list,proto3" json:"list,omitempty"` NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` unknownFields protoimpl.UnknownFields @@ -229,11 +346,6 @@ func (x *GrantsReaderServiceListGrantsForEntitlementResponse) ProtoReflect() pro return mi.MessageOf(x) } -// Deprecated: Use GrantsReaderServiceListGrantsForEntitlementResponse.ProtoReflect.Descriptor instead. -func (*GrantsReaderServiceListGrantsForEntitlementResponse) Descriptor() ([]byte, []int) { - return file_c1_reader_v2_grant_proto_rawDescGZIP(), []int{3} -} - func (x *GrantsReaderServiceListGrantsForEntitlementResponse) GetList() []*v2.Grant { if x != nil { return x.List @@ -248,8 +360,32 @@ func (x *GrantsReaderServiceListGrantsForEntitlementResponse) GetNextPageToken() return "" } +func (x *GrantsReaderServiceListGrantsForEntitlementResponse) SetList(v []*v2.Grant) { + x.List = v +} + +func (x *GrantsReaderServiceListGrantsForEntitlementResponse) SetNextPageToken(v string) { + x.NextPageToken = v +} + +type GrantsReaderServiceListGrantsForEntitlementResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + List []*v2.Grant + NextPageToken string +} + +func (b0 GrantsReaderServiceListGrantsForEntitlementResponse_builder) Build() *GrantsReaderServiceListGrantsForEntitlementResponse { + m0 := &GrantsReaderServiceListGrantsForEntitlementResponse{} + b, x := &b0, m0 + _, _ = b, x + x.List = b.List + x.NextPageToken = b.NextPageToken + return m0 +} + type GrantsReaderServiceListGrantsForResourceTypeRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` ResourceTypeId string `protobuf:"bytes,1,opt,name=resource_type_id,json=resourceTypeId,proto3" json:"resource_type_id,omitempty"` PageSize uint32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"` @@ -283,11 +419,6 @@ func (x *GrantsReaderServiceListGrantsForResourceTypeRequest) ProtoReflect() pro return mi.MessageOf(x) } -// Deprecated: Use GrantsReaderServiceListGrantsForResourceTypeRequest.ProtoReflect.Descriptor instead. -func (*GrantsReaderServiceListGrantsForResourceTypeRequest) Descriptor() ([]byte, []int) { - return file_c1_reader_v2_grant_proto_rawDescGZIP(), []int{4} -} - func (x *GrantsReaderServiceListGrantsForResourceTypeRequest) GetResourceTypeId() string { if x != nil { return x.ResourceTypeId @@ -316,8 +447,44 @@ func (x *GrantsReaderServiceListGrantsForResourceTypeRequest) GetAnnotations() [ return nil } +func (x *GrantsReaderServiceListGrantsForResourceTypeRequest) SetResourceTypeId(v string) { + x.ResourceTypeId = v +} + +func (x *GrantsReaderServiceListGrantsForResourceTypeRequest) SetPageSize(v uint32) { + x.PageSize = v +} + +func (x *GrantsReaderServiceListGrantsForResourceTypeRequest) SetPageToken(v string) { + x.PageToken = v +} + +func (x *GrantsReaderServiceListGrantsForResourceTypeRequest) SetAnnotations(v []*anypb.Any) { + x.Annotations = v +} + +type GrantsReaderServiceListGrantsForResourceTypeRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + ResourceTypeId string + PageSize uint32 + PageToken string + Annotations []*anypb.Any +} + +func (b0 GrantsReaderServiceListGrantsForResourceTypeRequest_builder) Build() *GrantsReaderServiceListGrantsForResourceTypeRequest { + m0 := &GrantsReaderServiceListGrantsForResourceTypeRequest{} + b, x := &b0, m0 + _, _ = b, x + x.ResourceTypeId = b.ResourceTypeId + x.PageSize = b.PageSize + x.PageToken = b.PageToken + x.Annotations = b.Annotations + return m0 +} + type GrantsReaderServiceListGrantsForResourceTypeResponse struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` List []*v2.Grant `protobuf:"bytes,1,rep,name=list,proto3" json:"list,omitempty"` NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` unknownFields protoimpl.UnknownFields @@ -349,11 +516,6 @@ func (x *GrantsReaderServiceListGrantsForResourceTypeResponse) ProtoReflect() pr return mi.MessageOf(x) } -// Deprecated: Use GrantsReaderServiceListGrantsForResourceTypeResponse.ProtoReflect.Descriptor instead. -func (*GrantsReaderServiceListGrantsForResourceTypeResponse) Descriptor() ([]byte, []int) { - return file_c1_reader_v2_grant_proto_rawDescGZIP(), []int{5} -} - func (x *GrantsReaderServiceListGrantsForResourceTypeResponse) GetList() []*v2.Grant { if x != nil { return x.List @@ -368,139 +530,73 @@ func (x *GrantsReaderServiceListGrantsForResourceTypeResponse) GetNextPageToken( return "" } -var File_c1_reader_v2_grant_proto protoreflect.FileDescriptor +func (x *GrantsReaderServiceListGrantsForResourceTypeResponse) SetList(v []*v2.Grant) { + x.List = v +} -var file_c1_reader_v2_grant_proto_rawDesc = string([]byte{ - 0x0a, 0x18, 0x63, 0x31, 0x2f, 0x72, 0x65, 0x61, 0x64, 0x65, 0x72, 0x2f, 0x76, 0x32, 0x2f, 0x67, - 0x72, 0x61, 0x6e, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0c, 0x63, 0x31, 0x2e, 0x72, - 0x65, 0x61, 0x64, 0x65, 0x72, 0x2e, 0x76, 0x32, 0x1a, 0x21, 0x63, 0x31, 0x2f, 0x63, 0x6f, 0x6e, - 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x2f, 0x76, 0x32, 0x2f, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x6c, - 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1b, 0x63, 0x31, 0x2f, - 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x2f, 0x76, 0x32, 0x2f, 0x67, 0x72, 0x61, - 0x6e, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1e, 0x63, 0x31, 0x2f, 0x63, 0x6f, 0x6e, - 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x2f, 0x76, 0x32, 0x2f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, - 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x19, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, - 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x61, 0x6e, 0x79, 0x2e, 0x70, 0x72, - 0x6f, 0x74, 0x6f, 0x1a, 0x17, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x2f, 0x76, 0x61, - 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x83, 0x01, 0x0a, - 0x22, 0x47, 0x72, 0x61, 0x6e, 0x74, 0x73, 0x52, 0x65, 0x61, 0x64, 0x65, 0x72, 0x53, 0x65, 0x72, - 0x76, 0x69, 0x63, 0x65, 0x47, 0x65, 0x74, 0x47, 0x72, 0x61, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, - 0x65, 0x73, 0x74, 0x12, 0x25, 0x0a, 0x08, 0x67, 0x72, 0x61, 0x6e, 0x74, 0x5f, 0x69, 0x64, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x0a, 0xfa, 0x42, 0x07, 0x72, 0x05, 0x20, 0x01, 0x28, 0x80, - 0x08, 0x52, 0x07, 0x67, 0x72, 0x61, 0x6e, 0x74, 0x49, 0x64, 0x12, 0x36, 0x0a, 0x0b, 0x61, 0x6e, - 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, - 0x14, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, - 0x66, 0x2e, 0x41, 0x6e, 0x79, 0x52, 0x0b, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, - 0x6e, 0x73, 0x22, 0x53, 0x0a, 0x23, 0x47, 0x72, 0x61, 0x6e, 0x74, 0x73, 0x52, 0x65, 0x61, 0x64, - 0x65, 0x72, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x47, 0x65, 0x74, 0x47, 0x72, 0x61, 0x6e, - 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2c, 0x0a, 0x05, 0x67, 0x72, 0x61, - 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x63, 0x31, 0x2e, 0x63, 0x6f, - 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x2e, 0x76, 0x32, 0x2e, 0x47, 0x72, 0x61, 0x6e, 0x74, - 0x52, 0x05, 0x67, 0x72, 0x61, 0x6e, 0x74, 0x22, 0xd7, 0x02, 0x0a, 0x32, 0x47, 0x72, 0x61, 0x6e, - 0x74, 0x73, 0x52, 0x65, 0x61, 0x64, 0x65, 0x72, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x4c, - 0x69, 0x73, 0x74, 0x47, 0x72, 0x61, 0x6e, 0x74, 0x73, 0x46, 0x6f, 0x72, 0x45, 0x6e, 0x74, 0x69, - 0x74, 0x6c, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x48, - 0x0a, 0x0b, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x63, 0x31, 0x2e, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, - 0x6f, 0x72, 0x2e, 0x76, 0x32, 0x2e, 0x45, 0x6e, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x6d, 0x65, 0x6e, - 0x74, 0x42, 0x08, 0xfa, 0x42, 0x05, 0x8a, 0x01, 0x02, 0x10, 0x01, 0x52, 0x0b, 0x65, 0x6e, 0x74, - 0x69, 0x74, 0x6c, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x12, 0x48, 0x0a, 0x0c, 0x70, 0x72, 0x69, 0x6e, - 0x63, 0x69, 0x70, 0x61, 0x6c, 0x5f, 0x69, 0x64, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b, - 0x2e, 0x63, 0x31, 0x2e, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x2e, 0x76, 0x32, - 0x2e, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x49, 0x64, 0x42, 0x08, 0xfa, 0x42, 0x05, - 0x8a, 0x01, 0x02, 0x10, 0x00, 0x52, 0x0b, 0x70, 0x72, 0x69, 0x6e, 0x63, 0x69, 0x70, 0x61, 0x6c, - 0x49, 0x64, 0x12, 0x27, 0x0a, 0x09, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x18, - 0x02, 0x20, 0x01, 0x28, 0x0d, 0x42, 0x0a, 0xfa, 0x42, 0x07, 0x2a, 0x05, 0x18, 0xfa, 0x01, 0x40, - 0x01, 0x52, 0x08, 0x70, 0x61, 0x67, 0x65, 0x53, 0x69, 0x7a, 0x65, 0x12, 0x2c, 0x0a, 0x0a, 0x70, - 0x61, 0x67, 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x42, - 0x0d, 0xfa, 0x42, 0x0a, 0x72, 0x08, 0x20, 0x01, 0x28, 0x80, 0x10, 0xd0, 0x01, 0x01, 0x52, 0x09, - 0x70, 0x61, 0x67, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x36, 0x0a, 0x0b, 0x61, 0x6e, 0x6e, - 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x14, - 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, - 0x2e, 0x41, 0x6e, 0x79, 0x52, 0x0b, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, - 0x73, 0x22, 0x98, 0x01, 0x0a, 0x33, 0x47, 0x72, 0x61, 0x6e, 0x74, 0x73, 0x52, 0x65, 0x61, 0x64, - 0x65, 0x72, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x4c, 0x69, 0x73, 0x74, 0x47, 0x72, 0x61, - 0x6e, 0x74, 0x73, 0x46, 0x6f, 0x72, 0x45, 0x6e, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x6d, 0x65, 0x6e, - 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2a, 0x0a, 0x04, 0x6c, 0x69, 0x73, - 0x74, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x63, 0x31, 0x2e, 0x63, 0x6f, 0x6e, - 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x2e, 0x76, 0x32, 0x2e, 0x47, 0x72, 0x61, 0x6e, 0x74, 0x52, - 0x04, 0x6c, 0x69, 0x73, 0x74, 0x12, 0x35, 0x0a, 0x0f, 0x6e, 0x65, 0x78, 0x74, 0x5f, 0x70, 0x61, - 0x67, 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x0d, - 0xfa, 0x42, 0x0a, 0x72, 0x08, 0x20, 0x01, 0x28, 0x80, 0x10, 0xd0, 0x01, 0x01, 0x52, 0x0d, 0x6e, - 0x65, 0x78, 0x74, 0x50, 0x61, 0x67, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0xfd, 0x01, 0x0a, - 0x33, 0x47, 0x72, 0x61, 0x6e, 0x74, 0x73, 0x52, 0x65, 0x61, 0x64, 0x65, 0x72, 0x53, 0x65, 0x72, - 0x76, 0x69, 0x63, 0x65, 0x4c, 0x69, 0x73, 0x74, 0x47, 0x72, 0x61, 0x6e, 0x74, 0x73, 0x46, 0x6f, - 0x72, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x54, 0x79, 0x70, 0x65, 0x52, 0x65, 0x71, - 0x75, 0x65, 0x73, 0x74, 0x12, 0x37, 0x0a, 0x10, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, - 0x5f, 0x74, 0x79, 0x70, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x0d, - 0xfa, 0x42, 0x0a, 0x72, 0x08, 0x20, 0x01, 0x28, 0x80, 0x10, 0xd0, 0x01, 0x01, 0x52, 0x0e, 0x72, - 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x54, 0x79, 0x70, 0x65, 0x49, 0x64, 0x12, 0x27, 0x0a, - 0x09, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, - 0x42, 0x0a, 0xfa, 0x42, 0x07, 0x2a, 0x05, 0x18, 0xfa, 0x01, 0x40, 0x01, 0x52, 0x08, 0x70, 0x61, - 0x67, 0x65, 0x53, 0x69, 0x7a, 0x65, 0x12, 0x2c, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x74, - 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x42, 0x0d, 0xfa, 0x42, 0x0a, 0x72, - 0x08, 0x20, 0x01, 0x28, 0x80, 0x10, 0xd0, 0x01, 0x01, 0x52, 0x09, 0x70, 0x61, 0x67, 0x65, 0x54, - 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x36, 0x0a, 0x0b, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, - 0x6f, 0x6e, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x67, 0x6f, 0x6f, 0x67, - 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x41, 0x6e, 0x79, 0x52, - 0x0b, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x22, 0x99, 0x01, 0x0a, - 0x34, 0x47, 0x72, 0x61, 0x6e, 0x74, 0x73, 0x52, 0x65, 0x61, 0x64, 0x65, 0x72, 0x53, 0x65, 0x72, - 0x76, 0x69, 0x63, 0x65, 0x4c, 0x69, 0x73, 0x74, 0x47, 0x72, 0x61, 0x6e, 0x74, 0x73, 0x46, 0x6f, - 0x72, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x54, 0x79, 0x70, 0x65, 0x52, 0x65, 0x73, - 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2a, 0x0a, 0x04, 0x6c, 0x69, 0x73, 0x74, 0x18, 0x01, 0x20, - 0x03, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x63, 0x31, 0x2e, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, - 0x6f, 0x72, 0x2e, 0x76, 0x32, 0x2e, 0x47, 0x72, 0x61, 0x6e, 0x74, 0x52, 0x04, 0x6c, 0x69, 0x73, - 0x74, 0x12, 0x35, 0x0a, 0x0f, 0x6e, 0x65, 0x78, 0x74, 0x5f, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x74, - 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x0d, 0xfa, 0x42, 0x0a, 0x72, - 0x08, 0x20, 0x01, 0x28, 0x80, 0x10, 0xd0, 0x01, 0x01, 0x52, 0x0d, 0x6e, 0x65, 0x78, 0x74, 0x50, - 0x61, 0x67, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x32, 0xcd, 0x03, 0x0a, 0x13, 0x47, 0x72, 0x61, - 0x6e, 0x74, 0x73, 0x52, 0x65, 0x61, 0x64, 0x65, 0x72, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, - 0x12, 0x6f, 0x0a, 0x08, 0x47, 0x65, 0x74, 0x47, 0x72, 0x61, 0x6e, 0x74, 0x12, 0x30, 0x2e, 0x63, - 0x31, 0x2e, 0x72, 0x65, 0x61, 0x64, 0x65, 0x72, 0x2e, 0x76, 0x32, 0x2e, 0x47, 0x72, 0x61, 0x6e, - 0x74, 0x73, 0x52, 0x65, 0x61, 0x64, 0x65, 0x72, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x47, - 0x65, 0x74, 0x47, 0x72, 0x61, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x31, - 0x2e, 0x63, 0x31, 0x2e, 0x72, 0x65, 0x61, 0x64, 0x65, 0x72, 0x2e, 0x76, 0x32, 0x2e, 0x47, 0x72, - 0x61, 0x6e, 0x74, 0x73, 0x52, 0x65, 0x61, 0x64, 0x65, 0x72, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, - 0x65, 0x47, 0x65, 0x74, 0x47, 0x72, 0x61, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, - 0x65, 0x12, 0x9f, 0x01, 0x0a, 0x18, 0x4c, 0x69, 0x73, 0x74, 0x47, 0x72, 0x61, 0x6e, 0x74, 0x73, - 0x46, 0x6f, 0x72, 0x45, 0x6e, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x12, 0x40, - 0x2e, 0x63, 0x31, 0x2e, 0x72, 0x65, 0x61, 0x64, 0x65, 0x72, 0x2e, 0x76, 0x32, 0x2e, 0x47, 0x72, - 0x61, 0x6e, 0x74, 0x73, 0x52, 0x65, 0x61, 0x64, 0x65, 0x72, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, - 0x65, 0x4c, 0x69, 0x73, 0x74, 0x47, 0x72, 0x61, 0x6e, 0x74, 0x73, 0x46, 0x6f, 0x72, 0x45, 0x6e, - 0x74, 0x69, 0x74, 0x6c, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, - 0x1a, 0x41, 0x2e, 0x63, 0x31, 0x2e, 0x72, 0x65, 0x61, 0x64, 0x65, 0x72, 0x2e, 0x76, 0x32, 0x2e, - 0x47, 0x72, 0x61, 0x6e, 0x74, 0x73, 0x52, 0x65, 0x61, 0x64, 0x65, 0x72, 0x53, 0x65, 0x72, 0x76, - 0x69, 0x63, 0x65, 0x4c, 0x69, 0x73, 0x74, 0x47, 0x72, 0x61, 0x6e, 0x74, 0x73, 0x46, 0x6f, 0x72, - 0x45, 0x6e, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, - 0x6e, 0x73, 0x65, 0x12, 0xa2, 0x01, 0x0a, 0x19, 0x4c, 0x69, 0x73, 0x74, 0x47, 0x72, 0x61, 0x6e, - 0x74, 0x73, 0x46, 0x6f, 0x72, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x54, 0x79, 0x70, - 0x65, 0x12, 0x41, 0x2e, 0x63, 0x31, 0x2e, 0x72, 0x65, 0x61, 0x64, 0x65, 0x72, 0x2e, 0x76, 0x32, - 0x2e, 0x47, 0x72, 0x61, 0x6e, 0x74, 0x73, 0x52, 0x65, 0x61, 0x64, 0x65, 0x72, 0x53, 0x65, 0x72, - 0x76, 0x69, 0x63, 0x65, 0x4c, 0x69, 0x73, 0x74, 0x47, 0x72, 0x61, 0x6e, 0x74, 0x73, 0x46, 0x6f, - 0x72, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x54, 0x79, 0x70, 0x65, 0x52, 0x65, 0x71, - 0x75, 0x65, 0x73, 0x74, 0x1a, 0x42, 0x2e, 0x63, 0x31, 0x2e, 0x72, 0x65, 0x61, 0x64, 0x65, 0x72, - 0x2e, 0x76, 0x32, 0x2e, 0x47, 0x72, 0x61, 0x6e, 0x74, 0x73, 0x52, 0x65, 0x61, 0x64, 0x65, 0x72, - 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x4c, 0x69, 0x73, 0x74, 0x47, 0x72, 0x61, 0x6e, 0x74, - 0x73, 0x46, 0x6f, 0x72, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x54, 0x79, 0x70, 0x65, - 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x42, 0x33, 0x5a, 0x31, 0x67, 0x69, 0x74, 0x68, - 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x63, 0x6f, 0x6e, 0x64, 0x75, 0x63, 0x74, 0x6f, 0x72, - 0x6f, 0x6e, 0x65, 0x2f, 0x62, 0x61, 0x74, 0x6f, 0x6e, 0x2d, 0x73, 0x64, 0x6b, 0x2f, 0x70, 0x62, - 0x2f, 0x63, 0x31, 0x2f, 0x72, 0x65, 0x61, 0x64, 0x65, 0x72, 0x2f, 0x76, 0x32, 0x62, 0x06, 0x70, - 0x72, 0x6f, 0x74, 0x6f, 0x33, -}) - -var ( - file_c1_reader_v2_grant_proto_rawDescOnce sync.Once - file_c1_reader_v2_grant_proto_rawDescData []byte -) +func (x *GrantsReaderServiceListGrantsForResourceTypeResponse) SetNextPageToken(v string) { + x.NextPageToken = v +} -func file_c1_reader_v2_grant_proto_rawDescGZIP() []byte { - file_c1_reader_v2_grant_proto_rawDescOnce.Do(func() { - file_c1_reader_v2_grant_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_c1_reader_v2_grant_proto_rawDesc), len(file_c1_reader_v2_grant_proto_rawDesc))) - }) - return file_c1_reader_v2_grant_proto_rawDescData +type GrantsReaderServiceListGrantsForResourceTypeResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + List []*v2.Grant + NextPageToken string +} + +func (b0 GrantsReaderServiceListGrantsForResourceTypeResponse_builder) Build() *GrantsReaderServiceListGrantsForResourceTypeResponse { + m0 := &GrantsReaderServiceListGrantsForResourceTypeResponse{} + b, x := &b0, m0 + _, _ = b, x + x.List = b.List + x.NextPageToken = b.NextPageToken + return m0 } +var File_c1_reader_v2_grant_proto protoreflect.FileDescriptor + +const file_c1_reader_v2_grant_proto_rawDesc = "" + + "\n" + + "\x18c1/reader/v2/grant.proto\x12\fc1.reader.v2\x1a!c1/connector/v2/entitlement.proto\x1a\x1bc1/connector/v2/grant.proto\x1a\x1ec1/connector/v2/resource.proto\x1a\x19google/protobuf/any.proto\x1a\x17validate/validate.proto\"\x83\x01\n" + + "\"GrantsReaderServiceGetGrantRequest\x12%\n" + + "\bgrant_id\x18\x01 \x01(\tB\n" + + "\xfaB\ar\x05 \x01(\x80\bR\agrantId\x126\n" + + "\vannotations\x18\x02 \x03(\v2\x14.google.protobuf.AnyR\vannotations\"S\n" + + "#GrantsReaderServiceGetGrantResponse\x12,\n" + + "\x05grant\x18\x01 \x01(\v2\x16.c1.connector.v2.GrantR\x05grant\"\x96\x03\n" + + "2GrantsReaderServiceListGrantsForEntitlementRequest\x12H\n" + + "\ventitlement\x18\x01 \x01(\v2\x1c.c1.connector.v2.EntitlementB\b\xfaB\x05\x8a\x01\x02\x10\x01R\ventitlement\x12H\n" + + "\fprincipal_id\x18\x05 \x01(\v2\x1b.c1.connector.v2.ResourceIdB\b\xfaB\x05\x8a\x01\x02\x10\x00R\vprincipalId\x12=\n" + + "\x1bprincipal_resource_type_ids\x18\x06 \x03(\tR\x18principalResourceTypeIds\x12'\n" + + "\tpage_size\x18\x02 \x01(\rB\n" + + "\xfaB\a*\x05\x18\xfa\x01@\x01R\bpageSize\x12,\n" + + "\n" + + "page_token\x18\x03 \x01(\tB\r\xfaB\n" + + "r\b \x01(\x80\x10\xd0\x01\x01R\tpageToken\x126\n" + + "\vannotations\x18\x04 \x03(\v2\x14.google.protobuf.AnyR\vannotations\"\x98\x01\n" + + "3GrantsReaderServiceListGrantsForEntitlementResponse\x12*\n" + + "\x04list\x18\x01 \x03(\v2\x16.c1.connector.v2.GrantR\x04list\x125\n" + + "\x0fnext_page_token\x18\x02 \x01(\tB\r\xfaB\n" + + "r\b \x01(\x80\x10\xd0\x01\x01R\rnextPageToken\"\xfd\x01\n" + + "3GrantsReaderServiceListGrantsForResourceTypeRequest\x127\n" + + "\x10resource_type_id\x18\x01 \x01(\tB\r\xfaB\n" + + "r\b \x01(\x80\x10\xd0\x01\x01R\x0eresourceTypeId\x12'\n" + + "\tpage_size\x18\x02 \x01(\rB\n" + + "\xfaB\a*\x05\x18\xfa\x01@\x01R\bpageSize\x12,\n" + + "\n" + + "page_token\x18\x03 \x01(\tB\r\xfaB\n" + + "r\b \x01(\x80\x10\xd0\x01\x01R\tpageToken\x126\n" + + "\vannotations\x18\x04 \x03(\v2\x14.google.protobuf.AnyR\vannotations\"\x99\x01\n" + + "4GrantsReaderServiceListGrantsForResourceTypeResponse\x12*\n" + + "\x04list\x18\x01 \x03(\v2\x16.c1.connector.v2.GrantR\x04list\x125\n" + + "\x0fnext_page_token\x18\x02 \x01(\tB\r\xfaB\n" + + "r\b \x01(\x80\x10\xd0\x01\x01R\rnextPageToken2\xcd\x03\n" + + "\x13GrantsReaderService\x12o\n" + + "\bGetGrant\x120.c1.reader.v2.GrantsReaderServiceGetGrantRequest\x1a1.c1.reader.v2.GrantsReaderServiceGetGrantResponse\x12\x9f\x01\n" + + "\x18ListGrantsForEntitlement\x12@.c1.reader.v2.GrantsReaderServiceListGrantsForEntitlementRequest\x1aA.c1.reader.v2.GrantsReaderServiceListGrantsForEntitlementResponse\x12\xa2\x01\n" + + "\x19ListGrantsForResourceType\x12A.c1.reader.v2.GrantsReaderServiceListGrantsForResourceTypeRequest\x1aB.c1.reader.v2.GrantsReaderServiceListGrantsForResourceTypeResponseB3Z1github.com/conductorone/baton-sdk/pb/c1/reader/v2b\x06proto3" + var file_c1_reader_v2_grant_proto_msgTypes = make([]protoimpl.MessageInfo, 6) var file_c1_reader_v2_grant_proto_goTypes = []any{ (*GrantsReaderServiceGetGrantRequest)(nil), // 0: c1.reader.v2.GrantsReaderServiceGetGrantRequest diff --git a/vendor/github.com/conductorone/baton-sdk/pb/c1/reader/v2/grant_protoopaque.pb.go b/vendor/github.com/conductorone/baton-sdk/pb/c1/reader/v2/grant_protoopaque.pb.go new file mode 100644 index 00000000..52a4bec1 --- /dev/null +++ b/vendor/github.com/conductorone/baton-sdk/pb/c1/reader/v2/grant_protoopaque.pb.go @@ -0,0 +1,667 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.36.10 +// protoc (unknown) +// source: c1/reader/v2/grant.proto + +//go:build protoopaque + +package v2 + +import ( + v2 "github.com/conductorone/baton-sdk/pb/c1/connector/v2" + _ "github.com/envoyproxy/protoc-gen-validate/validate" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + anypb "google.golang.org/protobuf/types/known/anypb" + reflect "reflect" + 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 GrantsReaderServiceGetGrantRequest struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_GrantId string `protobuf:"bytes,1,opt,name=grant_id,json=grantId,proto3"` + xxx_hidden_Annotations *[]*anypb.Any `protobuf:"bytes,2,rep,name=annotations,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *GrantsReaderServiceGetGrantRequest) Reset() { + *x = GrantsReaderServiceGetGrantRequest{} + mi := &file_c1_reader_v2_grant_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *GrantsReaderServiceGetGrantRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GrantsReaderServiceGetGrantRequest) ProtoMessage() {} + +func (x *GrantsReaderServiceGetGrantRequest) ProtoReflect() protoreflect.Message { + mi := &file_c1_reader_v2_grant_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) +} + +func (x *GrantsReaderServiceGetGrantRequest) GetGrantId() string { + if x != nil { + return x.xxx_hidden_GrantId + } + return "" +} + +func (x *GrantsReaderServiceGetGrantRequest) GetAnnotations() []*anypb.Any { + if x != nil { + if x.xxx_hidden_Annotations != nil { + return *x.xxx_hidden_Annotations + } + } + return nil +} + +func (x *GrantsReaderServiceGetGrantRequest) SetGrantId(v string) { + x.xxx_hidden_GrantId = v +} + +func (x *GrantsReaderServiceGetGrantRequest) SetAnnotations(v []*anypb.Any) { + x.xxx_hidden_Annotations = &v +} + +type GrantsReaderServiceGetGrantRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + GrantId string + Annotations []*anypb.Any +} + +func (b0 GrantsReaderServiceGetGrantRequest_builder) Build() *GrantsReaderServiceGetGrantRequest { + m0 := &GrantsReaderServiceGetGrantRequest{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_GrantId = b.GrantId + x.xxx_hidden_Annotations = &b.Annotations + return m0 +} + +type GrantsReaderServiceGetGrantResponse struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Grant *v2.Grant `protobuf:"bytes,1,opt,name=grant,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *GrantsReaderServiceGetGrantResponse) Reset() { + *x = GrantsReaderServiceGetGrantResponse{} + mi := &file_c1_reader_v2_grant_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *GrantsReaderServiceGetGrantResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GrantsReaderServiceGetGrantResponse) ProtoMessage() {} + +func (x *GrantsReaderServiceGetGrantResponse) ProtoReflect() protoreflect.Message { + mi := &file_c1_reader_v2_grant_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) +} + +func (x *GrantsReaderServiceGetGrantResponse) GetGrant() *v2.Grant { + if x != nil { + return x.xxx_hidden_Grant + } + return nil +} + +func (x *GrantsReaderServiceGetGrantResponse) SetGrant(v *v2.Grant) { + x.xxx_hidden_Grant = v +} + +func (x *GrantsReaderServiceGetGrantResponse) HasGrant() bool { + if x == nil { + return false + } + return x.xxx_hidden_Grant != nil +} + +func (x *GrantsReaderServiceGetGrantResponse) ClearGrant() { + x.xxx_hidden_Grant = nil +} + +type GrantsReaderServiceGetGrantResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Grant *v2.Grant +} + +func (b0 GrantsReaderServiceGetGrantResponse_builder) Build() *GrantsReaderServiceGetGrantResponse { + m0 := &GrantsReaderServiceGetGrantResponse{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Grant = b.Grant + return m0 +} + +type GrantsReaderServiceListGrantsForEntitlementRequest struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Entitlement *v2.Entitlement `protobuf:"bytes,1,opt,name=entitlement,proto3"` + xxx_hidden_PrincipalId *v2.ResourceId `protobuf:"bytes,5,opt,name=principal_id,json=principalId,proto3"` + xxx_hidden_PrincipalResourceTypeIds []string `protobuf:"bytes,6,rep,name=principal_resource_type_ids,json=principalResourceTypeIds,proto3"` + xxx_hidden_PageSize uint32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3"` + xxx_hidden_PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3"` + xxx_hidden_Annotations *[]*anypb.Any `protobuf:"bytes,4,rep,name=annotations,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *GrantsReaderServiceListGrantsForEntitlementRequest) Reset() { + *x = GrantsReaderServiceListGrantsForEntitlementRequest{} + mi := &file_c1_reader_v2_grant_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *GrantsReaderServiceListGrantsForEntitlementRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GrantsReaderServiceListGrantsForEntitlementRequest) ProtoMessage() {} + +func (x *GrantsReaderServiceListGrantsForEntitlementRequest) ProtoReflect() protoreflect.Message { + mi := &file_c1_reader_v2_grant_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) +} + +func (x *GrantsReaderServiceListGrantsForEntitlementRequest) GetEntitlement() *v2.Entitlement { + if x != nil { + return x.xxx_hidden_Entitlement + } + return nil +} + +func (x *GrantsReaderServiceListGrantsForEntitlementRequest) GetPrincipalId() *v2.ResourceId { + if x != nil { + return x.xxx_hidden_PrincipalId + } + return nil +} + +func (x *GrantsReaderServiceListGrantsForEntitlementRequest) GetPrincipalResourceTypeIds() []string { + if x != nil { + return x.xxx_hidden_PrincipalResourceTypeIds + } + return nil +} + +func (x *GrantsReaderServiceListGrantsForEntitlementRequest) GetPageSize() uint32 { + if x != nil { + return x.xxx_hidden_PageSize + } + return 0 +} + +func (x *GrantsReaderServiceListGrantsForEntitlementRequest) GetPageToken() string { + if x != nil { + return x.xxx_hidden_PageToken + } + return "" +} + +func (x *GrantsReaderServiceListGrantsForEntitlementRequest) GetAnnotations() []*anypb.Any { + if x != nil { + if x.xxx_hidden_Annotations != nil { + return *x.xxx_hidden_Annotations + } + } + return nil +} + +func (x *GrantsReaderServiceListGrantsForEntitlementRequest) SetEntitlement(v *v2.Entitlement) { + x.xxx_hidden_Entitlement = v +} + +func (x *GrantsReaderServiceListGrantsForEntitlementRequest) SetPrincipalId(v *v2.ResourceId) { + x.xxx_hidden_PrincipalId = v +} + +func (x *GrantsReaderServiceListGrantsForEntitlementRequest) SetPrincipalResourceTypeIds(v []string) { + x.xxx_hidden_PrincipalResourceTypeIds = v +} + +func (x *GrantsReaderServiceListGrantsForEntitlementRequest) SetPageSize(v uint32) { + x.xxx_hidden_PageSize = v +} + +func (x *GrantsReaderServiceListGrantsForEntitlementRequest) SetPageToken(v string) { + x.xxx_hidden_PageToken = v +} + +func (x *GrantsReaderServiceListGrantsForEntitlementRequest) SetAnnotations(v []*anypb.Any) { + x.xxx_hidden_Annotations = &v +} + +func (x *GrantsReaderServiceListGrantsForEntitlementRequest) HasEntitlement() bool { + if x == nil { + return false + } + return x.xxx_hidden_Entitlement != nil +} + +func (x *GrantsReaderServiceListGrantsForEntitlementRequest) HasPrincipalId() bool { + if x == nil { + return false + } + return x.xxx_hidden_PrincipalId != nil +} + +func (x *GrantsReaderServiceListGrantsForEntitlementRequest) ClearEntitlement() { + x.xxx_hidden_Entitlement = nil +} + +func (x *GrantsReaderServiceListGrantsForEntitlementRequest) ClearPrincipalId() { + x.xxx_hidden_PrincipalId = nil +} + +type GrantsReaderServiceListGrantsForEntitlementRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Entitlement *v2.Entitlement + PrincipalId *v2.ResourceId + PrincipalResourceTypeIds []string + PageSize uint32 + PageToken string + Annotations []*anypb.Any +} + +func (b0 GrantsReaderServiceListGrantsForEntitlementRequest_builder) Build() *GrantsReaderServiceListGrantsForEntitlementRequest { + m0 := &GrantsReaderServiceListGrantsForEntitlementRequest{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Entitlement = b.Entitlement + x.xxx_hidden_PrincipalId = b.PrincipalId + x.xxx_hidden_PrincipalResourceTypeIds = b.PrincipalResourceTypeIds + x.xxx_hidden_PageSize = b.PageSize + x.xxx_hidden_PageToken = b.PageToken + x.xxx_hidden_Annotations = &b.Annotations + return m0 +} + +type GrantsReaderServiceListGrantsForEntitlementResponse struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_List *[]*v2.Grant `protobuf:"bytes,1,rep,name=list,proto3"` + xxx_hidden_NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *GrantsReaderServiceListGrantsForEntitlementResponse) Reset() { + *x = GrantsReaderServiceListGrantsForEntitlementResponse{} + mi := &file_c1_reader_v2_grant_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *GrantsReaderServiceListGrantsForEntitlementResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GrantsReaderServiceListGrantsForEntitlementResponse) ProtoMessage() {} + +func (x *GrantsReaderServiceListGrantsForEntitlementResponse) ProtoReflect() protoreflect.Message { + mi := &file_c1_reader_v2_grant_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) +} + +func (x *GrantsReaderServiceListGrantsForEntitlementResponse) GetList() []*v2.Grant { + if x != nil { + if x.xxx_hidden_List != nil { + return *x.xxx_hidden_List + } + } + return nil +} + +func (x *GrantsReaderServiceListGrantsForEntitlementResponse) GetNextPageToken() string { + if x != nil { + return x.xxx_hidden_NextPageToken + } + return "" +} + +func (x *GrantsReaderServiceListGrantsForEntitlementResponse) SetList(v []*v2.Grant) { + x.xxx_hidden_List = &v +} + +func (x *GrantsReaderServiceListGrantsForEntitlementResponse) SetNextPageToken(v string) { + x.xxx_hidden_NextPageToken = v +} + +type GrantsReaderServiceListGrantsForEntitlementResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + List []*v2.Grant + NextPageToken string +} + +func (b0 GrantsReaderServiceListGrantsForEntitlementResponse_builder) Build() *GrantsReaderServiceListGrantsForEntitlementResponse { + m0 := &GrantsReaderServiceListGrantsForEntitlementResponse{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_List = &b.List + x.xxx_hidden_NextPageToken = b.NextPageToken + return m0 +} + +type GrantsReaderServiceListGrantsForResourceTypeRequest struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_ResourceTypeId string `protobuf:"bytes,1,opt,name=resource_type_id,json=resourceTypeId,proto3"` + xxx_hidden_PageSize uint32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3"` + xxx_hidden_PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3"` + xxx_hidden_Annotations *[]*anypb.Any `protobuf:"bytes,4,rep,name=annotations,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *GrantsReaderServiceListGrantsForResourceTypeRequest) Reset() { + *x = GrantsReaderServiceListGrantsForResourceTypeRequest{} + mi := &file_c1_reader_v2_grant_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *GrantsReaderServiceListGrantsForResourceTypeRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GrantsReaderServiceListGrantsForResourceTypeRequest) ProtoMessage() {} + +func (x *GrantsReaderServiceListGrantsForResourceTypeRequest) ProtoReflect() protoreflect.Message { + mi := &file_c1_reader_v2_grant_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) +} + +func (x *GrantsReaderServiceListGrantsForResourceTypeRequest) GetResourceTypeId() string { + if x != nil { + return x.xxx_hidden_ResourceTypeId + } + return "" +} + +func (x *GrantsReaderServiceListGrantsForResourceTypeRequest) GetPageSize() uint32 { + if x != nil { + return x.xxx_hidden_PageSize + } + return 0 +} + +func (x *GrantsReaderServiceListGrantsForResourceTypeRequest) GetPageToken() string { + if x != nil { + return x.xxx_hidden_PageToken + } + return "" +} + +func (x *GrantsReaderServiceListGrantsForResourceTypeRequest) GetAnnotations() []*anypb.Any { + if x != nil { + if x.xxx_hidden_Annotations != nil { + return *x.xxx_hidden_Annotations + } + } + return nil +} + +func (x *GrantsReaderServiceListGrantsForResourceTypeRequest) SetResourceTypeId(v string) { + x.xxx_hidden_ResourceTypeId = v +} + +func (x *GrantsReaderServiceListGrantsForResourceTypeRequest) SetPageSize(v uint32) { + x.xxx_hidden_PageSize = v +} + +func (x *GrantsReaderServiceListGrantsForResourceTypeRequest) SetPageToken(v string) { + x.xxx_hidden_PageToken = v +} + +func (x *GrantsReaderServiceListGrantsForResourceTypeRequest) SetAnnotations(v []*anypb.Any) { + x.xxx_hidden_Annotations = &v +} + +type GrantsReaderServiceListGrantsForResourceTypeRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + ResourceTypeId string + PageSize uint32 + PageToken string + Annotations []*anypb.Any +} + +func (b0 GrantsReaderServiceListGrantsForResourceTypeRequest_builder) Build() *GrantsReaderServiceListGrantsForResourceTypeRequest { + m0 := &GrantsReaderServiceListGrantsForResourceTypeRequest{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_ResourceTypeId = b.ResourceTypeId + x.xxx_hidden_PageSize = b.PageSize + x.xxx_hidden_PageToken = b.PageToken + x.xxx_hidden_Annotations = &b.Annotations + return m0 +} + +type GrantsReaderServiceListGrantsForResourceTypeResponse struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_List *[]*v2.Grant `protobuf:"bytes,1,rep,name=list,proto3"` + xxx_hidden_NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *GrantsReaderServiceListGrantsForResourceTypeResponse) Reset() { + *x = GrantsReaderServiceListGrantsForResourceTypeResponse{} + mi := &file_c1_reader_v2_grant_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *GrantsReaderServiceListGrantsForResourceTypeResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GrantsReaderServiceListGrantsForResourceTypeResponse) ProtoMessage() {} + +func (x *GrantsReaderServiceListGrantsForResourceTypeResponse) ProtoReflect() protoreflect.Message { + mi := &file_c1_reader_v2_grant_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) +} + +func (x *GrantsReaderServiceListGrantsForResourceTypeResponse) GetList() []*v2.Grant { + if x != nil { + if x.xxx_hidden_List != nil { + return *x.xxx_hidden_List + } + } + return nil +} + +func (x *GrantsReaderServiceListGrantsForResourceTypeResponse) GetNextPageToken() string { + if x != nil { + return x.xxx_hidden_NextPageToken + } + return "" +} + +func (x *GrantsReaderServiceListGrantsForResourceTypeResponse) SetList(v []*v2.Grant) { + x.xxx_hidden_List = &v +} + +func (x *GrantsReaderServiceListGrantsForResourceTypeResponse) SetNextPageToken(v string) { + x.xxx_hidden_NextPageToken = v +} + +type GrantsReaderServiceListGrantsForResourceTypeResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + List []*v2.Grant + NextPageToken string +} + +func (b0 GrantsReaderServiceListGrantsForResourceTypeResponse_builder) Build() *GrantsReaderServiceListGrantsForResourceTypeResponse { + m0 := &GrantsReaderServiceListGrantsForResourceTypeResponse{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_List = &b.List + x.xxx_hidden_NextPageToken = b.NextPageToken + return m0 +} + +var File_c1_reader_v2_grant_proto protoreflect.FileDescriptor + +const file_c1_reader_v2_grant_proto_rawDesc = "" + + "\n" + + "\x18c1/reader/v2/grant.proto\x12\fc1.reader.v2\x1a!c1/connector/v2/entitlement.proto\x1a\x1bc1/connector/v2/grant.proto\x1a\x1ec1/connector/v2/resource.proto\x1a\x19google/protobuf/any.proto\x1a\x17validate/validate.proto\"\x83\x01\n" + + "\"GrantsReaderServiceGetGrantRequest\x12%\n" + + "\bgrant_id\x18\x01 \x01(\tB\n" + + "\xfaB\ar\x05 \x01(\x80\bR\agrantId\x126\n" + + "\vannotations\x18\x02 \x03(\v2\x14.google.protobuf.AnyR\vannotations\"S\n" + + "#GrantsReaderServiceGetGrantResponse\x12,\n" + + "\x05grant\x18\x01 \x01(\v2\x16.c1.connector.v2.GrantR\x05grant\"\x96\x03\n" + + "2GrantsReaderServiceListGrantsForEntitlementRequest\x12H\n" + + "\ventitlement\x18\x01 \x01(\v2\x1c.c1.connector.v2.EntitlementB\b\xfaB\x05\x8a\x01\x02\x10\x01R\ventitlement\x12H\n" + + "\fprincipal_id\x18\x05 \x01(\v2\x1b.c1.connector.v2.ResourceIdB\b\xfaB\x05\x8a\x01\x02\x10\x00R\vprincipalId\x12=\n" + + "\x1bprincipal_resource_type_ids\x18\x06 \x03(\tR\x18principalResourceTypeIds\x12'\n" + + "\tpage_size\x18\x02 \x01(\rB\n" + + "\xfaB\a*\x05\x18\xfa\x01@\x01R\bpageSize\x12,\n" + + "\n" + + "page_token\x18\x03 \x01(\tB\r\xfaB\n" + + "r\b \x01(\x80\x10\xd0\x01\x01R\tpageToken\x126\n" + + "\vannotations\x18\x04 \x03(\v2\x14.google.protobuf.AnyR\vannotations\"\x98\x01\n" + + "3GrantsReaderServiceListGrantsForEntitlementResponse\x12*\n" + + "\x04list\x18\x01 \x03(\v2\x16.c1.connector.v2.GrantR\x04list\x125\n" + + "\x0fnext_page_token\x18\x02 \x01(\tB\r\xfaB\n" + + "r\b \x01(\x80\x10\xd0\x01\x01R\rnextPageToken\"\xfd\x01\n" + + "3GrantsReaderServiceListGrantsForResourceTypeRequest\x127\n" + + "\x10resource_type_id\x18\x01 \x01(\tB\r\xfaB\n" + + "r\b \x01(\x80\x10\xd0\x01\x01R\x0eresourceTypeId\x12'\n" + + "\tpage_size\x18\x02 \x01(\rB\n" + + "\xfaB\a*\x05\x18\xfa\x01@\x01R\bpageSize\x12,\n" + + "\n" + + "page_token\x18\x03 \x01(\tB\r\xfaB\n" + + "r\b \x01(\x80\x10\xd0\x01\x01R\tpageToken\x126\n" + + "\vannotations\x18\x04 \x03(\v2\x14.google.protobuf.AnyR\vannotations\"\x99\x01\n" + + "4GrantsReaderServiceListGrantsForResourceTypeResponse\x12*\n" + + "\x04list\x18\x01 \x03(\v2\x16.c1.connector.v2.GrantR\x04list\x125\n" + + "\x0fnext_page_token\x18\x02 \x01(\tB\r\xfaB\n" + + "r\b \x01(\x80\x10\xd0\x01\x01R\rnextPageToken2\xcd\x03\n" + + "\x13GrantsReaderService\x12o\n" + + "\bGetGrant\x120.c1.reader.v2.GrantsReaderServiceGetGrantRequest\x1a1.c1.reader.v2.GrantsReaderServiceGetGrantResponse\x12\x9f\x01\n" + + "\x18ListGrantsForEntitlement\x12@.c1.reader.v2.GrantsReaderServiceListGrantsForEntitlementRequest\x1aA.c1.reader.v2.GrantsReaderServiceListGrantsForEntitlementResponse\x12\xa2\x01\n" + + "\x19ListGrantsForResourceType\x12A.c1.reader.v2.GrantsReaderServiceListGrantsForResourceTypeRequest\x1aB.c1.reader.v2.GrantsReaderServiceListGrantsForResourceTypeResponseB3Z1github.com/conductorone/baton-sdk/pb/c1/reader/v2b\x06proto3" + +var file_c1_reader_v2_grant_proto_msgTypes = make([]protoimpl.MessageInfo, 6) +var file_c1_reader_v2_grant_proto_goTypes = []any{ + (*GrantsReaderServiceGetGrantRequest)(nil), // 0: c1.reader.v2.GrantsReaderServiceGetGrantRequest + (*GrantsReaderServiceGetGrantResponse)(nil), // 1: c1.reader.v2.GrantsReaderServiceGetGrantResponse + (*GrantsReaderServiceListGrantsForEntitlementRequest)(nil), // 2: c1.reader.v2.GrantsReaderServiceListGrantsForEntitlementRequest + (*GrantsReaderServiceListGrantsForEntitlementResponse)(nil), // 3: c1.reader.v2.GrantsReaderServiceListGrantsForEntitlementResponse + (*GrantsReaderServiceListGrantsForResourceTypeRequest)(nil), // 4: c1.reader.v2.GrantsReaderServiceListGrantsForResourceTypeRequest + (*GrantsReaderServiceListGrantsForResourceTypeResponse)(nil), // 5: c1.reader.v2.GrantsReaderServiceListGrantsForResourceTypeResponse + (*anypb.Any)(nil), // 6: google.protobuf.Any + (*v2.Grant)(nil), // 7: c1.connector.v2.Grant + (*v2.Entitlement)(nil), // 8: c1.connector.v2.Entitlement + (*v2.ResourceId)(nil), // 9: c1.connector.v2.ResourceId +} +var file_c1_reader_v2_grant_proto_depIdxs = []int32{ + 6, // 0: c1.reader.v2.GrantsReaderServiceGetGrantRequest.annotations:type_name -> google.protobuf.Any + 7, // 1: c1.reader.v2.GrantsReaderServiceGetGrantResponse.grant:type_name -> c1.connector.v2.Grant + 8, // 2: c1.reader.v2.GrantsReaderServiceListGrantsForEntitlementRequest.entitlement:type_name -> c1.connector.v2.Entitlement + 9, // 3: c1.reader.v2.GrantsReaderServiceListGrantsForEntitlementRequest.principal_id:type_name -> c1.connector.v2.ResourceId + 6, // 4: c1.reader.v2.GrantsReaderServiceListGrantsForEntitlementRequest.annotations:type_name -> google.protobuf.Any + 7, // 5: c1.reader.v2.GrantsReaderServiceListGrantsForEntitlementResponse.list:type_name -> c1.connector.v2.Grant + 6, // 6: c1.reader.v2.GrantsReaderServiceListGrantsForResourceTypeRequest.annotations:type_name -> google.protobuf.Any + 7, // 7: c1.reader.v2.GrantsReaderServiceListGrantsForResourceTypeResponse.list:type_name -> c1.connector.v2.Grant + 0, // 8: c1.reader.v2.GrantsReaderService.GetGrant:input_type -> c1.reader.v2.GrantsReaderServiceGetGrantRequest + 2, // 9: c1.reader.v2.GrantsReaderService.ListGrantsForEntitlement:input_type -> c1.reader.v2.GrantsReaderServiceListGrantsForEntitlementRequest + 4, // 10: c1.reader.v2.GrantsReaderService.ListGrantsForResourceType:input_type -> c1.reader.v2.GrantsReaderServiceListGrantsForResourceTypeRequest + 1, // 11: c1.reader.v2.GrantsReaderService.GetGrant:output_type -> c1.reader.v2.GrantsReaderServiceGetGrantResponse + 3, // 12: c1.reader.v2.GrantsReaderService.ListGrantsForEntitlement:output_type -> c1.reader.v2.GrantsReaderServiceListGrantsForEntitlementResponse + 5, // 13: c1.reader.v2.GrantsReaderService.ListGrantsForResourceType:output_type -> c1.reader.v2.GrantsReaderServiceListGrantsForResourceTypeResponse + 11, // [11:14] is the sub-list for method output_type + 8, // [8:11] 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_c1_reader_v2_grant_proto_init() } +func file_c1_reader_v2_grant_proto_init() { + if File_c1_reader_v2_grant_proto != nil { + return + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: unsafe.Slice(unsafe.StringData(file_c1_reader_v2_grant_proto_rawDesc), len(file_c1_reader_v2_grant_proto_rawDesc)), + NumEnums: 0, + NumMessages: 6, + NumExtensions: 0, + NumServices: 1, + }, + GoTypes: file_c1_reader_v2_grant_proto_goTypes, + DependencyIndexes: file_c1_reader_v2_grant_proto_depIdxs, + MessageInfos: file_c1_reader_v2_grant_proto_msgTypes, + }.Build() + File_c1_reader_v2_grant_proto = out.File + file_c1_reader_v2_grant_proto_goTypes = nil + file_c1_reader_v2_grant_proto_depIdxs = nil +} diff --git a/vendor/github.com/conductorone/baton-sdk/pb/c1/reader/v2/resource.pb.go b/vendor/github.com/conductorone/baton-sdk/pb/c1/reader/v2/resource.pb.go index 06a4ec90..351e91d8 100644 --- a/vendor/github.com/conductorone/baton-sdk/pb/c1/reader/v2/resource.pb.go +++ b/vendor/github.com/conductorone/baton-sdk/pb/c1/reader/v2/resource.pb.go @@ -1,9 +1,11 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.36.4 +// protoc-gen-go v1.36.10 // protoc (unknown) // source: c1/reader/v2/resource.proto +//go:build !protoopaque + package v2 import ( @@ -13,7 +15,6 @@ import ( protoimpl "google.golang.org/protobuf/runtime/protoimpl" anypb "google.golang.org/protobuf/types/known/anypb" reflect "reflect" - sync "sync" unsafe "unsafe" ) @@ -25,7 +26,7 @@ const ( ) type ResourceTypesReaderServiceGetResourceTypeRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` ResourceTypeId string `protobuf:"bytes,1,opt,name=resource_type_id,json=resourceTypeId,proto3" json:"resource_type_id,omitempty"` Annotations []*anypb.Any `protobuf:"bytes,2,rep,name=annotations,proto3" json:"annotations,omitempty"` unknownFields protoimpl.UnknownFields @@ -57,11 +58,6 @@ func (x *ResourceTypesReaderServiceGetResourceTypeRequest) ProtoReflect() protor return mi.MessageOf(x) } -// Deprecated: Use ResourceTypesReaderServiceGetResourceTypeRequest.ProtoReflect.Descriptor instead. -func (*ResourceTypesReaderServiceGetResourceTypeRequest) Descriptor() ([]byte, []int) { - return file_c1_reader_v2_resource_proto_rawDescGZIP(), []int{0} -} - func (x *ResourceTypesReaderServiceGetResourceTypeRequest) GetResourceTypeId() string { if x != nil { return x.ResourceTypeId @@ -76,8 +72,32 @@ func (x *ResourceTypesReaderServiceGetResourceTypeRequest) GetAnnotations() []*a return nil } +func (x *ResourceTypesReaderServiceGetResourceTypeRequest) SetResourceTypeId(v string) { + x.ResourceTypeId = v +} + +func (x *ResourceTypesReaderServiceGetResourceTypeRequest) SetAnnotations(v []*anypb.Any) { + x.Annotations = v +} + +type ResourceTypesReaderServiceGetResourceTypeRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + ResourceTypeId string + Annotations []*anypb.Any +} + +func (b0 ResourceTypesReaderServiceGetResourceTypeRequest_builder) Build() *ResourceTypesReaderServiceGetResourceTypeRequest { + m0 := &ResourceTypesReaderServiceGetResourceTypeRequest{} + b, x := &b0, m0 + _, _ = b, x + x.ResourceTypeId = b.ResourceTypeId + x.Annotations = b.Annotations + return m0 +} + type ResourceTypesReaderServiceGetResourceTypeResponse struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` ResourceType *v2.ResourceType `protobuf:"bytes,1,opt,name=resource_type,json=resourceType,proto3" json:"resource_type,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache @@ -108,11 +128,6 @@ func (x *ResourceTypesReaderServiceGetResourceTypeResponse) ProtoReflect() proto return mi.MessageOf(x) } -// Deprecated: Use ResourceTypesReaderServiceGetResourceTypeResponse.ProtoReflect.Descriptor instead. -func (*ResourceTypesReaderServiceGetResourceTypeResponse) Descriptor() ([]byte, []int) { - return file_c1_reader_v2_resource_proto_rawDescGZIP(), []int{1} -} - func (x *ResourceTypesReaderServiceGetResourceTypeResponse) GetResourceType() *v2.ResourceType { if x != nil { return x.ResourceType @@ -120,8 +135,37 @@ func (x *ResourceTypesReaderServiceGetResourceTypeResponse) GetResourceType() *v return nil } +func (x *ResourceTypesReaderServiceGetResourceTypeResponse) SetResourceType(v *v2.ResourceType) { + x.ResourceType = v +} + +func (x *ResourceTypesReaderServiceGetResourceTypeResponse) HasResourceType() bool { + if x == nil { + return false + } + return x.ResourceType != nil +} + +func (x *ResourceTypesReaderServiceGetResourceTypeResponse) ClearResourceType() { + x.ResourceType = nil +} + +type ResourceTypesReaderServiceGetResourceTypeResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + ResourceType *v2.ResourceType +} + +func (b0 ResourceTypesReaderServiceGetResourceTypeResponse_builder) Build() *ResourceTypesReaderServiceGetResourceTypeResponse { + m0 := &ResourceTypesReaderServiceGetResourceTypeResponse{} + b, x := &b0, m0 + _, _ = b, x + x.ResourceType = b.ResourceType + return m0 +} + type ResourcesReaderServiceGetResourceRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` ResourceId *v2.ResourceId `protobuf:"bytes,1,opt,name=resource_id,json=resourceId,proto3" json:"resource_id,omitempty"` Annotations []*anypb.Any `protobuf:"bytes,2,rep,name=annotations,proto3" json:"annotations,omitempty"` unknownFields protoimpl.UnknownFields @@ -153,11 +197,6 @@ func (x *ResourcesReaderServiceGetResourceRequest) ProtoReflect() protoreflect.M return mi.MessageOf(x) } -// Deprecated: Use ResourcesReaderServiceGetResourceRequest.ProtoReflect.Descriptor instead. -func (*ResourcesReaderServiceGetResourceRequest) Descriptor() ([]byte, []int) { - return file_c1_reader_v2_resource_proto_rawDescGZIP(), []int{2} -} - func (x *ResourcesReaderServiceGetResourceRequest) GetResourceId() *v2.ResourceId { if x != nil { return x.ResourceId @@ -172,8 +211,43 @@ func (x *ResourcesReaderServiceGetResourceRequest) GetAnnotations() []*anypb.Any return nil } +func (x *ResourcesReaderServiceGetResourceRequest) SetResourceId(v *v2.ResourceId) { + x.ResourceId = v +} + +func (x *ResourcesReaderServiceGetResourceRequest) SetAnnotations(v []*anypb.Any) { + x.Annotations = v +} + +func (x *ResourcesReaderServiceGetResourceRequest) HasResourceId() bool { + if x == nil { + return false + } + return x.ResourceId != nil +} + +func (x *ResourcesReaderServiceGetResourceRequest) ClearResourceId() { + x.ResourceId = nil +} + +type ResourcesReaderServiceGetResourceRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + ResourceId *v2.ResourceId + Annotations []*anypb.Any +} + +func (b0 ResourcesReaderServiceGetResourceRequest_builder) Build() *ResourcesReaderServiceGetResourceRequest { + m0 := &ResourcesReaderServiceGetResourceRequest{} + b, x := &b0, m0 + _, _ = b, x + x.ResourceId = b.ResourceId + x.Annotations = b.Annotations + return m0 +} + type ResourcesReaderServiceGetResourceResponse struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` Resource *v2.Resource `protobuf:"bytes,1,opt,name=resource,proto3" json:"resource,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache @@ -204,11 +278,6 @@ func (x *ResourcesReaderServiceGetResourceResponse) ProtoReflect() protoreflect. return mi.MessageOf(x) } -// Deprecated: Use ResourcesReaderServiceGetResourceResponse.ProtoReflect.Descriptor instead. -func (*ResourcesReaderServiceGetResourceResponse) Descriptor() ([]byte, []int) { - return file_c1_reader_v2_resource_proto_rawDescGZIP(), []int{3} -} - func (x *ResourcesReaderServiceGetResourceResponse) GetResource() *v2.Resource { if x != nil { return x.Resource @@ -216,90 +285,56 @@ func (x *ResourcesReaderServiceGetResourceResponse) GetResource() *v2.Resource { return nil } -var File_c1_reader_v2_resource_proto protoreflect.FileDescriptor +func (x *ResourcesReaderServiceGetResourceResponse) SetResource(v *v2.Resource) { + x.Resource = v +} -var file_c1_reader_v2_resource_proto_rawDesc = string([]byte{ - 0x0a, 0x1b, 0x63, 0x31, 0x2f, 0x72, 0x65, 0x61, 0x64, 0x65, 0x72, 0x2f, 0x76, 0x32, 0x2f, 0x72, - 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0c, 0x63, - 0x31, 0x2e, 0x72, 0x65, 0x61, 0x64, 0x65, 0x72, 0x2e, 0x76, 0x32, 0x1a, 0x1e, 0x63, 0x31, 0x2f, - 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x2f, 0x76, 0x32, 0x2f, 0x72, 0x65, 0x73, - 0x6f, 0x75, 0x72, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x19, 0x67, 0x6f, 0x6f, - 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x61, 0x6e, 0x79, - 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x17, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, - 0x2f, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, - 0x94, 0x01, 0x0a, 0x30, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x54, 0x79, 0x70, 0x65, - 0x73, 0x52, 0x65, 0x61, 0x64, 0x65, 0x72, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x47, 0x65, - 0x74, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x54, 0x79, 0x70, 0x65, 0x52, 0x65, 0x71, - 0x75, 0x65, 0x73, 0x74, 0x12, 0x28, 0x0a, 0x10, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, - 0x5f, 0x74, 0x79, 0x70, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, - 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x54, 0x79, 0x70, 0x65, 0x49, 0x64, 0x12, 0x36, - 0x0a, 0x0b, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x02, 0x20, - 0x03, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, - 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x41, 0x6e, 0x79, 0x52, 0x0b, 0x61, 0x6e, 0x6e, 0x6f, 0x74, - 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x22, 0x77, 0x0a, 0x31, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, - 0x63, 0x65, 0x54, 0x79, 0x70, 0x65, 0x73, 0x52, 0x65, 0x61, 0x64, 0x65, 0x72, 0x53, 0x65, 0x72, - 0x76, 0x69, 0x63, 0x65, 0x47, 0x65, 0x74, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x54, - 0x79, 0x70, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x42, 0x0a, 0x0d, 0x72, - 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x63, 0x31, 0x2e, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, - 0x72, 0x2e, 0x76, 0x32, 0x2e, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x54, 0x79, 0x70, - 0x65, 0x52, 0x0c, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x54, 0x79, 0x70, 0x65, 0x22, - 0xaa, 0x01, 0x0a, 0x28, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x52, 0x65, 0x61, - 0x64, 0x65, 0x72, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x47, 0x65, 0x74, 0x52, 0x65, 0x73, - 0x6f, 0x75, 0x72, 0x63, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x46, 0x0a, 0x0b, - 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x0b, 0x32, 0x1b, 0x2e, 0x63, 0x31, 0x2e, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, - 0x2e, 0x76, 0x32, 0x2e, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x49, 0x64, 0x42, 0x08, - 0xfa, 0x42, 0x05, 0x8a, 0x01, 0x02, 0x10, 0x01, 0x52, 0x0a, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, - 0x63, 0x65, 0x49, 0x64, 0x12, 0x36, 0x0a, 0x0b, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, - 0x6f, 0x6e, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x67, 0x6f, 0x6f, 0x67, - 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x41, 0x6e, 0x79, 0x52, - 0x0b, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x22, 0x62, 0x0a, 0x29, - 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x52, 0x65, 0x61, 0x64, 0x65, 0x72, 0x53, - 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x47, 0x65, 0x74, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, - 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x35, 0x0a, 0x08, 0x72, 0x65, 0x73, - 0x6f, 0x75, 0x72, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x63, 0x31, - 0x2e, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x2e, 0x76, 0x32, 0x2e, 0x52, 0x65, - 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x52, 0x08, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, - 0x32, 0xb1, 0x01, 0x0a, 0x1a, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x54, 0x79, 0x70, - 0x65, 0x73, 0x52, 0x65, 0x61, 0x64, 0x65, 0x72, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, - 0x92, 0x01, 0x0a, 0x0f, 0x47, 0x65, 0x74, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x54, - 0x79, 0x70, 0x65, 0x12, 0x3e, 0x2e, 0x63, 0x31, 0x2e, 0x72, 0x65, 0x61, 0x64, 0x65, 0x72, 0x2e, - 0x76, 0x32, 0x2e, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x54, 0x79, 0x70, 0x65, 0x73, - 0x52, 0x65, 0x61, 0x64, 0x65, 0x72, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x47, 0x65, 0x74, - 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x54, 0x79, 0x70, 0x65, 0x52, 0x65, 0x71, 0x75, - 0x65, 0x73, 0x74, 0x1a, 0x3f, 0x2e, 0x63, 0x31, 0x2e, 0x72, 0x65, 0x61, 0x64, 0x65, 0x72, 0x2e, - 0x76, 0x32, 0x2e, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x54, 0x79, 0x70, 0x65, 0x73, - 0x52, 0x65, 0x61, 0x64, 0x65, 0x72, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x47, 0x65, 0x74, - 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x54, 0x79, 0x70, 0x65, 0x52, 0x65, 0x73, 0x70, - 0x6f, 0x6e, 0x73, 0x65, 0x32, 0x98, 0x01, 0x0a, 0x16, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, - 0x65, 0x73, 0x52, 0x65, 0x61, 0x64, 0x65, 0x72, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, - 0x7e, 0x0a, 0x0b, 0x47, 0x65, 0x74, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x12, 0x36, - 0x2e, 0x63, 0x31, 0x2e, 0x72, 0x65, 0x61, 0x64, 0x65, 0x72, 0x2e, 0x76, 0x32, 0x2e, 0x52, 0x65, - 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x52, 0x65, 0x61, 0x64, 0x65, 0x72, 0x53, 0x65, 0x72, - 0x76, 0x69, 0x63, 0x65, 0x47, 0x65, 0x74, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x52, - 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x37, 0x2e, 0x63, 0x31, 0x2e, 0x72, 0x65, 0x61, 0x64, - 0x65, 0x72, 0x2e, 0x76, 0x32, 0x2e, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x52, - 0x65, 0x61, 0x64, 0x65, 0x72, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x47, 0x65, 0x74, 0x52, - 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x42, - 0x33, 0x5a, 0x31, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x63, 0x6f, - 0x6e, 0x64, 0x75, 0x63, 0x74, 0x6f, 0x72, 0x6f, 0x6e, 0x65, 0x2f, 0x62, 0x61, 0x74, 0x6f, 0x6e, - 0x2d, 0x73, 0x64, 0x6b, 0x2f, 0x70, 0x62, 0x2f, 0x63, 0x31, 0x2f, 0x72, 0x65, 0x61, 0x64, 0x65, - 0x72, 0x2f, 0x76, 0x32, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, -}) - -var ( - file_c1_reader_v2_resource_proto_rawDescOnce sync.Once - file_c1_reader_v2_resource_proto_rawDescData []byte -) +func (x *ResourcesReaderServiceGetResourceResponse) HasResource() bool { + if x == nil { + return false + } + return x.Resource != nil +} + +func (x *ResourcesReaderServiceGetResourceResponse) ClearResource() { + x.Resource = nil +} + +type ResourcesReaderServiceGetResourceResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Resource *v2.Resource +} -func file_c1_reader_v2_resource_proto_rawDescGZIP() []byte { - file_c1_reader_v2_resource_proto_rawDescOnce.Do(func() { - file_c1_reader_v2_resource_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_c1_reader_v2_resource_proto_rawDesc), len(file_c1_reader_v2_resource_proto_rawDesc))) - }) - return file_c1_reader_v2_resource_proto_rawDescData +func (b0 ResourcesReaderServiceGetResourceResponse_builder) Build() *ResourcesReaderServiceGetResourceResponse { + m0 := &ResourcesReaderServiceGetResourceResponse{} + b, x := &b0, m0 + _, _ = b, x + x.Resource = b.Resource + return m0 } +var File_c1_reader_v2_resource_proto protoreflect.FileDescriptor + +const file_c1_reader_v2_resource_proto_rawDesc = "" + + "\n" + + "\x1bc1/reader/v2/resource.proto\x12\fc1.reader.v2\x1a\x1ec1/connector/v2/resource.proto\x1a\x19google/protobuf/any.proto\x1a\x17validate/validate.proto\"\x94\x01\n" + + "0ResourceTypesReaderServiceGetResourceTypeRequest\x12(\n" + + "\x10resource_type_id\x18\x01 \x01(\tR\x0eresourceTypeId\x126\n" + + "\vannotations\x18\x02 \x03(\v2\x14.google.protobuf.AnyR\vannotations\"w\n" + + "1ResourceTypesReaderServiceGetResourceTypeResponse\x12B\n" + + "\rresource_type\x18\x01 \x01(\v2\x1d.c1.connector.v2.ResourceTypeR\fresourceType\"\xaa\x01\n" + + "(ResourcesReaderServiceGetResourceRequest\x12F\n" + + "\vresource_id\x18\x01 \x01(\v2\x1b.c1.connector.v2.ResourceIdB\b\xfaB\x05\x8a\x01\x02\x10\x01R\n" + + "resourceId\x126\n" + + "\vannotations\x18\x02 \x03(\v2\x14.google.protobuf.AnyR\vannotations\"b\n" + + ")ResourcesReaderServiceGetResourceResponse\x125\n" + + "\bresource\x18\x01 \x01(\v2\x19.c1.connector.v2.ResourceR\bresource2\xb1\x01\n" + + "\x1aResourceTypesReaderService\x12\x92\x01\n" + + "\x0fGetResourceType\x12>.c1.reader.v2.ResourceTypesReaderServiceGetResourceTypeRequest\x1a?.c1.reader.v2.ResourceTypesReaderServiceGetResourceTypeResponse2\x98\x01\n" + + "\x16ResourcesReaderService\x12~\n" + + "\vGetResource\x126.c1.reader.v2.ResourcesReaderServiceGetResourceRequest\x1a7.c1.reader.v2.ResourcesReaderServiceGetResourceResponseB3Z1github.com/conductorone/baton-sdk/pb/c1/reader/v2b\x06proto3" + var file_c1_reader_v2_resource_proto_msgTypes = make([]protoimpl.MessageInfo, 4) var file_c1_reader_v2_resource_proto_goTypes = []any{ (*ResourceTypesReaderServiceGetResourceTypeRequest)(nil), // 0: c1.reader.v2.ResourceTypesReaderServiceGetResourceTypeRequest diff --git a/vendor/github.com/conductorone/baton-sdk/pb/c1/reader/v2/resource_protoopaque.pb.go b/vendor/github.com/conductorone/baton-sdk/pb/c1/reader/v2/resource_protoopaque.pb.go new file mode 100644 index 00000000..47c49e26 --- /dev/null +++ b/vendor/github.com/conductorone/baton-sdk/pb/c1/reader/v2/resource_protoopaque.pb.go @@ -0,0 +1,392 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.36.10 +// protoc (unknown) +// source: c1/reader/v2/resource.proto + +//go:build protoopaque + +package v2 + +import ( + v2 "github.com/conductorone/baton-sdk/pb/c1/connector/v2" + _ "github.com/envoyproxy/protoc-gen-validate/validate" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + anypb "google.golang.org/protobuf/types/known/anypb" + reflect "reflect" + 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 ResourceTypesReaderServiceGetResourceTypeRequest struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_ResourceTypeId string `protobuf:"bytes,1,opt,name=resource_type_id,json=resourceTypeId,proto3"` + xxx_hidden_Annotations *[]*anypb.Any `protobuf:"bytes,2,rep,name=annotations,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *ResourceTypesReaderServiceGetResourceTypeRequest) Reset() { + *x = ResourceTypesReaderServiceGetResourceTypeRequest{} + mi := &file_c1_reader_v2_resource_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *ResourceTypesReaderServiceGetResourceTypeRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ResourceTypesReaderServiceGetResourceTypeRequest) ProtoMessage() {} + +func (x *ResourceTypesReaderServiceGetResourceTypeRequest) ProtoReflect() protoreflect.Message { + mi := &file_c1_reader_v2_resource_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) +} + +func (x *ResourceTypesReaderServiceGetResourceTypeRequest) GetResourceTypeId() string { + if x != nil { + return x.xxx_hidden_ResourceTypeId + } + return "" +} + +func (x *ResourceTypesReaderServiceGetResourceTypeRequest) GetAnnotations() []*anypb.Any { + if x != nil { + if x.xxx_hidden_Annotations != nil { + return *x.xxx_hidden_Annotations + } + } + return nil +} + +func (x *ResourceTypesReaderServiceGetResourceTypeRequest) SetResourceTypeId(v string) { + x.xxx_hidden_ResourceTypeId = v +} + +func (x *ResourceTypesReaderServiceGetResourceTypeRequest) SetAnnotations(v []*anypb.Any) { + x.xxx_hidden_Annotations = &v +} + +type ResourceTypesReaderServiceGetResourceTypeRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + ResourceTypeId string + Annotations []*anypb.Any +} + +func (b0 ResourceTypesReaderServiceGetResourceTypeRequest_builder) Build() *ResourceTypesReaderServiceGetResourceTypeRequest { + m0 := &ResourceTypesReaderServiceGetResourceTypeRequest{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_ResourceTypeId = b.ResourceTypeId + x.xxx_hidden_Annotations = &b.Annotations + return m0 +} + +type ResourceTypesReaderServiceGetResourceTypeResponse struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_ResourceType *v2.ResourceType `protobuf:"bytes,1,opt,name=resource_type,json=resourceType,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *ResourceTypesReaderServiceGetResourceTypeResponse) Reset() { + *x = ResourceTypesReaderServiceGetResourceTypeResponse{} + mi := &file_c1_reader_v2_resource_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *ResourceTypesReaderServiceGetResourceTypeResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ResourceTypesReaderServiceGetResourceTypeResponse) ProtoMessage() {} + +func (x *ResourceTypesReaderServiceGetResourceTypeResponse) ProtoReflect() protoreflect.Message { + mi := &file_c1_reader_v2_resource_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) +} + +func (x *ResourceTypesReaderServiceGetResourceTypeResponse) GetResourceType() *v2.ResourceType { + if x != nil { + return x.xxx_hidden_ResourceType + } + return nil +} + +func (x *ResourceTypesReaderServiceGetResourceTypeResponse) SetResourceType(v *v2.ResourceType) { + x.xxx_hidden_ResourceType = v +} + +func (x *ResourceTypesReaderServiceGetResourceTypeResponse) HasResourceType() bool { + if x == nil { + return false + } + return x.xxx_hidden_ResourceType != nil +} + +func (x *ResourceTypesReaderServiceGetResourceTypeResponse) ClearResourceType() { + x.xxx_hidden_ResourceType = nil +} + +type ResourceTypesReaderServiceGetResourceTypeResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + ResourceType *v2.ResourceType +} + +func (b0 ResourceTypesReaderServiceGetResourceTypeResponse_builder) Build() *ResourceTypesReaderServiceGetResourceTypeResponse { + m0 := &ResourceTypesReaderServiceGetResourceTypeResponse{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_ResourceType = b.ResourceType + return m0 +} + +type ResourcesReaderServiceGetResourceRequest struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_ResourceId *v2.ResourceId `protobuf:"bytes,1,opt,name=resource_id,json=resourceId,proto3"` + xxx_hidden_Annotations *[]*anypb.Any `protobuf:"bytes,2,rep,name=annotations,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *ResourcesReaderServiceGetResourceRequest) Reset() { + *x = ResourcesReaderServiceGetResourceRequest{} + mi := &file_c1_reader_v2_resource_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *ResourcesReaderServiceGetResourceRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ResourcesReaderServiceGetResourceRequest) ProtoMessage() {} + +func (x *ResourcesReaderServiceGetResourceRequest) ProtoReflect() protoreflect.Message { + mi := &file_c1_reader_v2_resource_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) +} + +func (x *ResourcesReaderServiceGetResourceRequest) GetResourceId() *v2.ResourceId { + if x != nil { + return x.xxx_hidden_ResourceId + } + return nil +} + +func (x *ResourcesReaderServiceGetResourceRequest) GetAnnotations() []*anypb.Any { + if x != nil { + if x.xxx_hidden_Annotations != nil { + return *x.xxx_hidden_Annotations + } + } + return nil +} + +func (x *ResourcesReaderServiceGetResourceRequest) SetResourceId(v *v2.ResourceId) { + x.xxx_hidden_ResourceId = v +} + +func (x *ResourcesReaderServiceGetResourceRequest) SetAnnotations(v []*anypb.Any) { + x.xxx_hidden_Annotations = &v +} + +func (x *ResourcesReaderServiceGetResourceRequest) HasResourceId() bool { + if x == nil { + return false + } + return x.xxx_hidden_ResourceId != nil +} + +func (x *ResourcesReaderServiceGetResourceRequest) ClearResourceId() { + x.xxx_hidden_ResourceId = nil +} + +type ResourcesReaderServiceGetResourceRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + ResourceId *v2.ResourceId + Annotations []*anypb.Any +} + +func (b0 ResourcesReaderServiceGetResourceRequest_builder) Build() *ResourcesReaderServiceGetResourceRequest { + m0 := &ResourcesReaderServiceGetResourceRequest{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_ResourceId = b.ResourceId + x.xxx_hidden_Annotations = &b.Annotations + return m0 +} + +type ResourcesReaderServiceGetResourceResponse struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Resource *v2.Resource `protobuf:"bytes,1,opt,name=resource,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *ResourcesReaderServiceGetResourceResponse) Reset() { + *x = ResourcesReaderServiceGetResourceResponse{} + mi := &file_c1_reader_v2_resource_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *ResourcesReaderServiceGetResourceResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ResourcesReaderServiceGetResourceResponse) ProtoMessage() {} + +func (x *ResourcesReaderServiceGetResourceResponse) ProtoReflect() protoreflect.Message { + mi := &file_c1_reader_v2_resource_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) +} + +func (x *ResourcesReaderServiceGetResourceResponse) GetResource() *v2.Resource { + if x != nil { + return x.xxx_hidden_Resource + } + return nil +} + +func (x *ResourcesReaderServiceGetResourceResponse) SetResource(v *v2.Resource) { + x.xxx_hidden_Resource = v +} + +func (x *ResourcesReaderServiceGetResourceResponse) HasResource() bool { + if x == nil { + return false + } + return x.xxx_hidden_Resource != nil +} + +func (x *ResourcesReaderServiceGetResourceResponse) ClearResource() { + x.xxx_hidden_Resource = nil +} + +type ResourcesReaderServiceGetResourceResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Resource *v2.Resource +} + +func (b0 ResourcesReaderServiceGetResourceResponse_builder) Build() *ResourcesReaderServiceGetResourceResponse { + m0 := &ResourcesReaderServiceGetResourceResponse{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Resource = b.Resource + return m0 +} + +var File_c1_reader_v2_resource_proto protoreflect.FileDescriptor + +const file_c1_reader_v2_resource_proto_rawDesc = "" + + "\n" + + "\x1bc1/reader/v2/resource.proto\x12\fc1.reader.v2\x1a\x1ec1/connector/v2/resource.proto\x1a\x19google/protobuf/any.proto\x1a\x17validate/validate.proto\"\x94\x01\n" + + "0ResourceTypesReaderServiceGetResourceTypeRequest\x12(\n" + + "\x10resource_type_id\x18\x01 \x01(\tR\x0eresourceTypeId\x126\n" + + "\vannotations\x18\x02 \x03(\v2\x14.google.protobuf.AnyR\vannotations\"w\n" + + "1ResourceTypesReaderServiceGetResourceTypeResponse\x12B\n" + + "\rresource_type\x18\x01 \x01(\v2\x1d.c1.connector.v2.ResourceTypeR\fresourceType\"\xaa\x01\n" + + "(ResourcesReaderServiceGetResourceRequest\x12F\n" + + "\vresource_id\x18\x01 \x01(\v2\x1b.c1.connector.v2.ResourceIdB\b\xfaB\x05\x8a\x01\x02\x10\x01R\n" + + "resourceId\x126\n" + + "\vannotations\x18\x02 \x03(\v2\x14.google.protobuf.AnyR\vannotations\"b\n" + + ")ResourcesReaderServiceGetResourceResponse\x125\n" + + "\bresource\x18\x01 \x01(\v2\x19.c1.connector.v2.ResourceR\bresource2\xb1\x01\n" + + "\x1aResourceTypesReaderService\x12\x92\x01\n" + + "\x0fGetResourceType\x12>.c1.reader.v2.ResourceTypesReaderServiceGetResourceTypeRequest\x1a?.c1.reader.v2.ResourceTypesReaderServiceGetResourceTypeResponse2\x98\x01\n" + + "\x16ResourcesReaderService\x12~\n" + + "\vGetResource\x126.c1.reader.v2.ResourcesReaderServiceGetResourceRequest\x1a7.c1.reader.v2.ResourcesReaderServiceGetResourceResponseB3Z1github.com/conductorone/baton-sdk/pb/c1/reader/v2b\x06proto3" + +var file_c1_reader_v2_resource_proto_msgTypes = make([]protoimpl.MessageInfo, 4) +var file_c1_reader_v2_resource_proto_goTypes = []any{ + (*ResourceTypesReaderServiceGetResourceTypeRequest)(nil), // 0: c1.reader.v2.ResourceTypesReaderServiceGetResourceTypeRequest + (*ResourceTypesReaderServiceGetResourceTypeResponse)(nil), // 1: c1.reader.v2.ResourceTypesReaderServiceGetResourceTypeResponse + (*ResourcesReaderServiceGetResourceRequest)(nil), // 2: c1.reader.v2.ResourcesReaderServiceGetResourceRequest + (*ResourcesReaderServiceGetResourceResponse)(nil), // 3: c1.reader.v2.ResourcesReaderServiceGetResourceResponse + (*anypb.Any)(nil), // 4: google.protobuf.Any + (*v2.ResourceType)(nil), // 5: c1.connector.v2.ResourceType + (*v2.ResourceId)(nil), // 6: c1.connector.v2.ResourceId + (*v2.Resource)(nil), // 7: c1.connector.v2.Resource +} +var file_c1_reader_v2_resource_proto_depIdxs = []int32{ + 4, // 0: c1.reader.v2.ResourceTypesReaderServiceGetResourceTypeRequest.annotations:type_name -> google.protobuf.Any + 5, // 1: c1.reader.v2.ResourceTypesReaderServiceGetResourceTypeResponse.resource_type:type_name -> c1.connector.v2.ResourceType + 6, // 2: c1.reader.v2.ResourcesReaderServiceGetResourceRequest.resource_id:type_name -> c1.connector.v2.ResourceId + 4, // 3: c1.reader.v2.ResourcesReaderServiceGetResourceRequest.annotations:type_name -> google.protobuf.Any + 7, // 4: c1.reader.v2.ResourcesReaderServiceGetResourceResponse.resource:type_name -> c1.connector.v2.Resource + 0, // 5: c1.reader.v2.ResourceTypesReaderService.GetResourceType:input_type -> c1.reader.v2.ResourceTypesReaderServiceGetResourceTypeRequest + 2, // 6: c1.reader.v2.ResourcesReaderService.GetResource:input_type -> c1.reader.v2.ResourcesReaderServiceGetResourceRequest + 1, // 7: c1.reader.v2.ResourceTypesReaderService.GetResourceType:output_type -> c1.reader.v2.ResourceTypesReaderServiceGetResourceTypeResponse + 3, // 8: c1.reader.v2.ResourcesReaderService.GetResource:output_type -> c1.reader.v2.ResourcesReaderServiceGetResourceResponse + 7, // [7:9] is the sub-list for method output_type + 5, // [5:7] 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_c1_reader_v2_resource_proto_init() } +func file_c1_reader_v2_resource_proto_init() { + if File_c1_reader_v2_resource_proto != nil { + return + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: unsafe.Slice(unsafe.StringData(file_c1_reader_v2_resource_proto_rawDesc), len(file_c1_reader_v2_resource_proto_rawDesc)), + NumEnums: 0, + NumMessages: 4, + NumExtensions: 0, + NumServices: 2, + }, + GoTypes: file_c1_reader_v2_resource_proto_goTypes, + DependencyIndexes: file_c1_reader_v2_resource_proto_depIdxs, + MessageInfos: file_c1_reader_v2_resource_proto_msgTypes, + }.Build() + File_c1_reader_v2_resource_proto = out.File + file_c1_reader_v2_resource_proto_goTypes = nil + file_c1_reader_v2_resource_proto_depIdxs = nil +} diff --git a/vendor/github.com/conductorone/baton-sdk/pb/c1/reader/v2/sync.pb.go b/vendor/github.com/conductorone/baton-sdk/pb/c1/reader/v2/sync.pb.go index ec106f8e..454f1ee8 100644 --- a/vendor/github.com/conductorone/baton-sdk/pb/c1/reader/v2/sync.pb.go +++ b/vendor/github.com/conductorone/baton-sdk/pb/c1/reader/v2/sync.pb.go @@ -1,9 +1,11 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.36.4 +// protoc-gen-go v1.36.10 // protoc (unknown) // source: c1/reader/v2/sync.proto +//go:build !protoopaque + package v2 import ( @@ -13,7 +15,6 @@ import ( anypb "google.golang.org/protobuf/types/known/anypb" timestamppb "google.golang.org/protobuf/types/known/timestamppb" reflect "reflect" - sync "sync" unsafe "unsafe" ) @@ -25,7 +26,7 @@ const ( ) type SyncRun struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` StartedAt *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=started_at,json=startedAt,proto3" json:"started_at,omitempty"` EndedAt *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=ended_at,json=endedAt,proto3" json:"ended_at,omitempty"` @@ -61,11 +62,6 @@ func (x *SyncRun) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use SyncRun.ProtoReflect.Descriptor instead. -func (*SyncRun) Descriptor() ([]byte, []int) { - return file_c1_reader_v2_sync_proto_rawDescGZIP(), []int{0} -} - func (x *SyncRun) GetId() string { if x != nil { return x.Id @@ -108,8 +104,78 @@ func (x *SyncRun) GetParentSyncId() string { return "" } +func (x *SyncRun) SetId(v string) { + x.Id = v +} + +func (x *SyncRun) SetStartedAt(v *timestamppb.Timestamp) { + x.StartedAt = v +} + +func (x *SyncRun) SetEndedAt(v *timestamppb.Timestamp) { + x.EndedAt = v +} + +func (x *SyncRun) SetSyncToken(v string) { + x.SyncToken = v +} + +func (x *SyncRun) SetSyncType(v string) { + x.SyncType = v +} + +func (x *SyncRun) SetParentSyncId(v string) { + x.ParentSyncId = v +} + +func (x *SyncRun) HasStartedAt() bool { + if x == nil { + return false + } + return x.StartedAt != nil +} + +func (x *SyncRun) HasEndedAt() bool { + if x == nil { + return false + } + return x.EndedAt != nil +} + +func (x *SyncRun) ClearStartedAt() { + x.StartedAt = nil +} + +func (x *SyncRun) ClearEndedAt() { + x.EndedAt = nil +} + +type SyncRun_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Id string + StartedAt *timestamppb.Timestamp + EndedAt *timestamppb.Timestamp + SyncToken string + SyncType string + ParentSyncId string +} + +func (b0 SyncRun_builder) Build() *SyncRun { + m0 := &SyncRun{} + b, x := &b0, m0 + _, _ = b, x + x.Id = b.Id + x.StartedAt = b.StartedAt + x.EndedAt = b.EndedAt + x.SyncToken = b.SyncToken + x.SyncType = b.SyncType + x.ParentSyncId = b.ParentSyncId + return m0 +} + type SyncsReaderServiceGetSyncRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` SyncId string `protobuf:"bytes,1,opt,name=sync_id,json=syncId,proto3" json:"sync_id,omitempty"` Annotations []*anypb.Any `protobuf:"bytes,2,rep,name=annotations,proto3" json:"annotations,omitempty"` unknownFields protoimpl.UnknownFields @@ -141,11 +207,6 @@ func (x *SyncsReaderServiceGetSyncRequest) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use SyncsReaderServiceGetSyncRequest.ProtoReflect.Descriptor instead. -func (*SyncsReaderServiceGetSyncRequest) Descriptor() ([]byte, []int) { - return file_c1_reader_v2_sync_proto_rawDescGZIP(), []int{1} -} - func (x *SyncsReaderServiceGetSyncRequest) GetSyncId() string { if x != nil { return x.SyncId @@ -160,8 +221,32 @@ func (x *SyncsReaderServiceGetSyncRequest) GetAnnotations() []*anypb.Any { return nil } +func (x *SyncsReaderServiceGetSyncRequest) SetSyncId(v string) { + x.SyncId = v +} + +func (x *SyncsReaderServiceGetSyncRequest) SetAnnotations(v []*anypb.Any) { + x.Annotations = v +} + +type SyncsReaderServiceGetSyncRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + SyncId string + Annotations []*anypb.Any +} + +func (b0 SyncsReaderServiceGetSyncRequest_builder) Build() *SyncsReaderServiceGetSyncRequest { + m0 := &SyncsReaderServiceGetSyncRequest{} + b, x := &b0, m0 + _, _ = b, x + x.SyncId = b.SyncId + x.Annotations = b.Annotations + return m0 +} + type SyncsReaderServiceGetSyncResponse struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` Sync *SyncRun `protobuf:"bytes,1,opt,name=sync,proto3" json:"sync,omitempty"` Annotations []*anypb.Any `protobuf:"bytes,2,rep,name=annotations,proto3" json:"annotations,omitempty"` unknownFields protoimpl.UnknownFields @@ -193,11 +278,6 @@ func (x *SyncsReaderServiceGetSyncResponse) ProtoReflect() protoreflect.Message return mi.MessageOf(x) } -// Deprecated: Use SyncsReaderServiceGetSyncResponse.ProtoReflect.Descriptor instead. -func (*SyncsReaderServiceGetSyncResponse) Descriptor() ([]byte, []int) { - return file_c1_reader_v2_sync_proto_rawDescGZIP(), []int{2} -} - func (x *SyncsReaderServiceGetSyncResponse) GetSync() *SyncRun { if x != nil { return x.Sync @@ -212,8 +292,43 @@ func (x *SyncsReaderServiceGetSyncResponse) GetAnnotations() []*anypb.Any { return nil } +func (x *SyncsReaderServiceGetSyncResponse) SetSync(v *SyncRun) { + x.Sync = v +} + +func (x *SyncsReaderServiceGetSyncResponse) SetAnnotations(v []*anypb.Any) { + x.Annotations = v +} + +func (x *SyncsReaderServiceGetSyncResponse) HasSync() bool { + if x == nil { + return false + } + return x.Sync != nil +} + +func (x *SyncsReaderServiceGetSyncResponse) ClearSync() { + x.Sync = nil +} + +type SyncsReaderServiceGetSyncResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Sync *SyncRun + Annotations []*anypb.Any +} + +func (b0 SyncsReaderServiceGetSyncResponse_builder) Build() *SyncsReaderServiceGetSyncResponse { + m0 := &SyncsReaderServiceGetSyncResponse{} + b, x := &b0, m0 + _, _ = b, x + x.Sync = b.Sync + x.Annotations = b.Annotations + return m0 +} + type SyncsReaderServiceListSyncsRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` PageSize uint32 `protobuf:"varint,1,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` PageToken string `protobuf:"bytes,2,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"` Annotations []*anypb.Any `protobuf:"bytes,3,rep,name=annotations,proto3" json:"annotations,omitempty"` @@ -246,11 +361,6 @@ func (x *SyncsReaderServiceListSyncsRequest) ProtoReflect() protoreflect.Message return mi.MessageOf(x) } -// Deprecated: Use SyncsReaderServiceListSyncsRequest.ProtoReflect.Descriptor instead. -func (*SyncsReaderServiceListSyncsRequest) Descriptor() ([]byte, []int) { - return file_c1_reader_v2_sync_proto_rawDescGZIP(), []int{3} -} - func (x *SyncsReaderServiceListSyncsRequest) GetPageSize() uint32 { if x != nil { return x.PageSize @@ -272,8 +382,38 @@ func (x *SyncsReaderServiceListSyncsRequest) GetAnnotations() []*anypb.Any { return nil } +func (x *SyncsReaderServiceListSyncsRequest) SetPageSize(v uint32) { + x.PageSize = v +} + +func (x *SyncsReaderServiceListSyncsRequest) SetPageToken(v string) { + x.PageToken = v +} + +func (x *SyncsReaderServiceListSyncsRequest) SetAnnotations(v []*anypb.Any) { + x.Annotations = v +} + +type SyncsReaderServiceListSyncsRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + PageSize uint32 + PageToken string + Annotations []*anypb.Any +} + +func (b0 SyncsReaderServiceListSyncsRequest_builder) Build() *SyncsReaderServiceListSyncsRequest { + m0 := &SyncsReaderServiceListSyncsRequest{} + b, x := &b0, m0 + _, _ = b, x + x.PageSize = b.PageSize + x.PageToken = b.PageToken + x.Annotations = b.Annotations + return m0 +} + type SyncsReaderServiceListSyncsResponse struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` Syncs []*SyncRun `protobuf:"bytes,1,rep,name=syncs,proto3" json:"syncs,omitempty"` NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` Annotations []*anypb.Any `protobuf:"bytes,3,rep,name=annotations,proto3" json:"annotations,omitempty"` @@ -306,11 +446,6 @@ func (x *SyncsReaderServiceListSyncsResponse) ProtoReflect() protoreflect.Messag return mi.MessageOf(x) } -// Deprecated: Use SyncsReaderServiceListSyncsResponse.ProtoReflect.Descriptor instead. -func (*SyncsReaderServiceListSyncsResponse) Descriptor() ([]byte, []int) { - return file_c1_reader_v2_sync_proto_rawDescGZIP(), []int{4} -} - func (x *SyncsReaderServiceListSyncsResponse) GetSyncs() []*SyncRun { if x != nil { return x.Syncs @@ -332,8 +467,38 @@ func (x *SyncsReaderServiceListSyncsResponse) GetAnnotations() []*anypb.Any { return nil } +func (x *SyncsReaderServiceListSyncsResponse) SetSyncs(v []*SyncRun) { + x.Syncs = v +} + +func (x *SyncsReaderServiceListSyncsResponse) SetNextPageToken(v string) { + x.NextPageToken = v +} + +func (x *SyncsReaderServiceListSyncsResponse) SetAnnotations(v []*anypb.Any) { + x.Annotations = v +} + +type SyncsReaderServiceListSyncsResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Syncs []*SyncRun + NextPageToken string + Annotations []*anypb.Any +} + +func (b0 SyncsReaderServiceListSyncsResponse_builder) Build() *SyncsReaderServiceListSyncsResponse { + m0 := &SyncsReaderServiceListSyncsResponse{} + b, x := &b0, m0 + _, _ = b, x + x.Syncs = b.Syncs + x.NextPageToken = b.NextPageToken + x.Annotations = b.Annotations + return m0 +} + type SyncsReaderServiceGetLatestFinishedSyncRequest struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` Annotations []*anypb.Any `protobuf:"bytes,1,rep,name=annotations,proto3" json:"annotations,omitempty"` SyncType string `protobuf:"bytes,2,opt,name=sync_type,json=syncType,proto3" json:"sync_type,omitempty"` unknownFields protoimpl.UnknownFields @@ -365,11 +530,6 @@ func (x *SyncsReaderServiceGetLatestFinishedSyncRequest) ProtoReflect() protoref return mi.MessageOf(x) } -// Deprecated: Use SyncsReaderServiceGetLatestFinishedSyncRequest.ProtoReflect.Descriptor instead. -func (*SyncsReaderServiceGetLatestFinishedSyncRequest) Descriptor() ([]byte, []int) { - return file_c1_reader_v2_sync_proto_rawDescGZIP(), []int{5} -} - func (x *SyncsReaderServiceGetLatestFinishedSyncRequest) GetAnnotations() []*anypb.Any { if x != nil { return x.Annotations @@ -384,8 +544,32 @@ func (x *SyncsReaderServiceGetLatestFinishedSyncRequest) GetSyncType() string { return "" } +func (x *SyncsReaderServiceGetLatestFinishedSyncRequest) SetAnnotations(v []*anypb.Any) { + x.Annotations = v +} + +func (x *SyncsReaderServiceGetLatestFinishedSyncRequest) SetSyncType(v string) { + x.SyncType = v +} + +type SyncsReaderServiceGetLatestFinishedSyncRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Annotations []*anypb.Any + SyncType string +} + +func (b0 SyncsReaderServiceGetLatestFinishedSyncRequest_builder) Build() *SyncsReaderServiceGetLatestFinishedSyncRequest { + m0 := &SyncsReaderServiceGetLatestFinishedSyncRequest{} + b, x := &b0, m0 + _, _ = b, x + x.Annotations = b.Annotations + x.SyncType = b.SyncType + return m0 +} + type SyncsReaderServiceGetLatestFinishedSyncResponse struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState `protogen:"hybrid.v1"` Sync *SyncRun `protobuf:"bytes,1,opt,name=sync,proto3" json:"sync,omitempty"` Annotations []*anypb.Any `protobuf:"bytes,2,rep,name=annotations,proto3" json:"annotations,omitempty"` unknownFields protoimpl.UnknownFields @@ -417,11 +601,6 @@ func (x *SyncsReaderServiceGetLatestFinishedSyncResponse) ProtoReflect() protore return mi.MessageOf(x) } -// Deprecated: Use SyncsReaderServiceGetLatestFinishedSyncResponse.ProtoReflect.Descriptor instead. -func (*SyncsReaderServiceGetLatestFinishedSyncResponse) Descriptor() ([]byte, []int) { - return file_c1_reader_v2_sync_proto_rawDescGZIP(), []int{6} -} - func (x *SyncsReaderServiceGetLatestFinishedSyncResponse) GetSync() *SyncRun { if x != nil { return x.Sync @@ -436,132 +615,84 @@ func (x *SyncsReaderServiceGetLatestFinishedSyncResponse) GetAnnotations() []*an return nil } -var File_c1_reader_v2_sync_proto protoreflect.FileDescriptor +func (x *SyncsReaderServiceGetLatestFinishedSyncResponse) SetSync(v *SyncRun) { + x.Sync = v +} -var file_c1_reader_v2_sync_proto_rawDesc = string([]byte{ - 0x0a, 0x17, 0x63, 0x31, 0x2f, 0x72, 0x65, 0x61, 0x64, 0x65, 0x72, 0x2f, 0x76, 0x32, 0x2f, 0x73, - 0x79, 0x6e, 0x63, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0c, 0x63, 0x31, 0x2e, 0x72, 0x65, - 0x61, 0x64, 0x65, 0x72, 0x2e, 0x76, 0x32, 0x1a, 0x19, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, - 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x61, 0x6e, 0x79, 0x2e, 0x70, 0x72, 0x6f, - 0x74, 0x6f, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, - 0x62, 0x75, 0x66, 0x2f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x2e, 0x70, 0x72, - 0x6f, 0x74, 0x6f, 0x1a, 0x17, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x2f, 0x76, 0x61, - 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xed, 0x01, 0x0a, - 0x07, 0x53, 0x79, 0x6e, 0x63, 0x52, 0x75, 0x6e, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x39, 0x0a, 0x0a, 0x73, 0x74, 0x61, 0x72, - 0x74, 0x65, 0x64, 0x5f, 0x61, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, - 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, - 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x09, 0x73, 0x74, 0x61, 0x72, 0x74, 0x65, - 0x64, 0x41, 0x74, 0x12, 0x35, 0x0a, 0x08, 0x65, 0x6e, 0x64, 0x65, 0x64, 0x5f, 0x61, 0x74, 0x18, - 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, - 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, - 0x70, 0x52, 0x07, 0x65, 0x6e, 0x64, 0x65, 0x64, 0x41, 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x73, 0x79, - 0x6e, 0x63, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, - 0x73, 0x79, 0x6e, 0x63, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x1b, 0x0a, 0x09, 0x73, 0x79, 0x6e, - 0x63, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x73, 0x79, - 0x6e, 0x63, 0x54, 0x79, 0x70, 0x65, 0x12, 0x24, 0x0a, 0x0e, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, - 0x5f, 0x73, 0x79, 0x6e, 0x63, 0x5f, 0x69, 0x64, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, - 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x53, 0x79, 0x6e, 0x63, 0x49, 0x64, 0x22, 0x73, 0x0a, 0x20, - 0x53, 0x79, 0x6e, 0x63, 0x73, 0x52, 0x65, 0x61, 0x64, 0x65, 0x72, 0x53, 0x65, 0x72, 0x76, 0x69, - 0x63, 0x65, 0x47, 0x65, 0x74, 0x53, 0x79, 0x6e, 0x63, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, - 0x12, 0x17, 0x0a, 0x07, 0x73, 0x79, 0x6e, 0x63, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x06, 0x73, 0x79, 0x6e, 0x63, 0x49, 0x64, 0x12, 0x36, 0x0a, 0x0b, 0x61, 0x6e, 0x6e, - 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x14, - 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, - 0x2e, 0x41, 0x6e, 0x79, 0x52, 0x0b, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, - 0x73, 0x22, 0x86, 0x01, 0x0a, 0x21, 0x53, 0x79, 0x6e, 0x63, 0x73, 0x52, 0x65, 0x61, 0x64, 0x65, - 0x72, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x47, 0x65, 0x74, 0x53, 0x79, 0x6e, 0x63, 0x52, - 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x29, 0x0a, 0x04, 0x73, 0x79, 0x6e, 0x63, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x63, 0x31, 0x2e, 0x72, 0x65, 0x61, 0x64, 0x65, - 0x72, 0x2e, 0x76, 0x32, 0x2e, 0x53, 0x79, 0x6e, 0x63, 0x52, 0x75, 0x6e, 0x52, 0x04, 0x73, 0x79, - 0x6e, 0x63, 0x12, 0x36, 0x0a, 0x0b, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, - 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, - 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x41, 0x6e, 0x79, 0x52, 0x0b, 0x61, - 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x22, 0xb3, 0x01, 0x0a, 0x22, 0x53, - 0x79, 0x6e, 0x63, 0x73, 0x52, 0x65, 0x61, 0x64, 0x65, 0x72, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, - 0x65, 0x4c, 0x69, 0x73, 0x74, 0x53, 0x79, 0x6e, 0x63, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x12, 0x27, 0x0a, 0x09, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x0d, 0x42, 0x0a, 0xfa, 0x42, 0x07, 0x2a, 0x05, 0x18, 0xfa, 0x01, 0x40, 0x01, - 0x52, 0x08, 0x70, 0x61, 0x67, 0x65, 0x53, 0x69, 0x7a, 0x65, 0x12, 0x2c, 0x0a, 0x0a, 0x70, 0x61, - 0x67, 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x0d, - 0xfa, 0x42, 0x0a, 0x72, 0x08, 0x20, 0x01, 0x28, 0x80, 0x10, 0xd0, 0x01, 0x01, 0x52, 0x09, 0x70, - 0x61, 0x67, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x36, 0x0a, 0x0b, 0x61, 0x6e, 0x6e, 0x6f, - 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x14, 0x2e, - 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, - 0x41, 0x6e, 0x79, 0x52, 0x0b, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, - 0x22, 0xc1, 0x01, 0x0a, 0x23, 0x53, 0x79, 0x6e, 0x63, 0x73, 0x52, 0x65, 0x61, 0x64, 0x65, 0x72, - 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x4c, 0x69, 0x73, 0x74, 0x53, 0x79, 0x6e, 0x63, 0x73, - 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2b, 0x0a, 0x05, 0x73, 0x79, 0x6e, 0x63, - 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x63, 0x31, 0x2e, 0x72, 0x65, 0x61, - 0x64, 0x65, 0x72, 0x2e, 0x76, 0x32, 0x2e, 0x53, 0x79, 0x6e, 0x63, 0x52, 0x75, 0x6e, 0x52, 0x05, - 0x73, 0x79, 0x6e, 0x63, 0x73, 0x12, 0x35, 0x0a, 0x0f, 0x6e, 0x65, 0x78, 0x74, 0x5f, 0x70, 0x61, - 0x67, 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x0d, - 0xfa, 0x42, 0x0a, 0x72, 0x08, 0x20, 0x01, 0x28, 0x80, 0x10, 0xd0, 0x01, 0x01, 0x52, 0x0d, 0x6e, - 0x65, 0x78, 0x74, 0x50, 0x61, 0x67, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x36, 0x0a, 0x0b, - 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, - 0x0b, 0x32, 0x14, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, - 0x62, 0x75, 0x66, 0x2e, 0x41, 0x6e, 0x79, 0x52, 0x0b, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, - 0x69, 0x6f, 0x6e, 0x73, 0x22, 0x85, 0x01, 0x0a, 0x2e, 0x53, 0x79, 0x6e, 0x63, 0x73, 0x52, 0x65, - 0x61, 0x64, 0x65, 0x72, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x47, 0x65, 0x74, 0x4c, 0x61, - 0x74, 0x65, 0x73, 0x74, 0x46, 0x69, 0x6e, 0x69, 0x73, 0x68, 0x65, 0x64, 0x53, 0x79, 0x6e, 0x63, - 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x36, 0x0a, 0x0b, 0x61, 0x6e, 0x6e, 0x6f, 0x74, - 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x67, - 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x41, - 0x6e, 0x79, 0x52, 0x0b, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, - 0x1b, 0x0a, 0x09, 0x73, 0x79, 0x6e, 0x63, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x02, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x08, 0x73, 0x79, 0x6e, 0x63, 0x54, 0x79, 0x70, 0x65, 0x22, 0x94, 0x01, 0x0a, - 0x2f, 0x53, 0x79, 0x6e, 0x63, 0x73, 0x52, 0x65, 0x61, 0x64, 0x65, 0x72, 0x53, 0x65, 0x72, 0x76, - 0x69, 0x63, 0x65, 0x47, 0x65, 0x74, 0x4c, 0x61, 0x74, 0x65, 0x73, 0x74, 0x46, 0x69, 0x6e, 0x69, - 0x73, 0x68, 0x65, 0x64, 0x53, 0x79, 0x6e, 0x63, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, - 0x12, 0x29, 0x0a, 0x04, 0x73, 0x79, 0x6e, 0x63, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x15, - 0x2e, 0x63, 0x31, 0x2e, 0x72, 0x65, 0x61, 0x64, 0x65, 0x72, 0x2e, 0x76, 0x32, 0x2e, 0x53, 0x79, - 0x6e, 0x63, 0x52, 0x75, 0x6e, 0x52, 0x04, 0x73, 0x79, 0x6e, 0x63, 0x12, 0x36, 0x0a, 0x0b, 0x61, - 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, - 0x32, 0x14, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, - 0x75, 0x66, 0x2e, 0x41, 0x6e, 0x79, 0x52, 0x0b, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, - 0x6f, 0x6e, 0x73, 0x32, 0x89, 0x03, 0x0a, 0x12, 0x53, 0x79, 0x6e, 0x63, 0x73, 0x52, 0x65, 0x61, - 0x64, 0x65, 0x72, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x6a, 0x0a, 0x07, 0x47, 0x65, - 0x74, 0x53, 0x79, 0x6e, 0x63, 0x12, 0x2e, 0x2e, 0x63, 0x31, 0x2e, 0x72, 0x65, 0x61, 0x64, 0x65, - 0x72, 0x2e, 0x76, 0x32, 0x2e, 0x53, 0x79, 0x6e, 0x63, 0x73, 0x52, 0x65, 0x61, 0x64, 0x65, 0x72, - 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x47, 0x65, 0x74, 0x53, 0x79, 0x6e, 0x63, 0x52, 0x65, - 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2f, 0x2e, 0x63, 0x31, 0x2e, 0x72, 0x65, 0x61, 0x64, 0x65, - 0x72, 0x2e, 0x76, 0x32, 0x2e, 0x53, 0x79, 0x6e, 0x63, 0x73, 0x52, 0x65, 0x61, 0x64, 0x65, 0x72, - 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x47, 0x65, 0x74, 0x53, 0x79, 0x6e, 0x63, 0x52, 0x65, - 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x70, 0x0a, 0x09, 0x4c, 0x69, 0x73, 0x74, 0x53, 0x79, - 0x6e, 0x63, 0x73, 0x12, 0x30, 0x2e, 0x63, 0x31, 0x2e, 0x72, 0x65, 0x61, 0x64, 0x65, 0x72, 0x2e, - 0x76, 0x32, 0x2e, 0x53, 0x79, 0x6e, 0x63, 0x73, 0x52, 0x65, 0x61, 0x64, 0x65, 0x72, 0x53, 0x65, - 0x72, 0x76, 0x69, 0x63, 0x65, 0x4c, 0x69, 0x73, 0x74, 0x53, 0x79, 0x6e, 0x63, 0x73, 0x52, 0x65, - 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x31, 0x2e, 0x63, 0x31, 0x2e, 0x72, 0x65, 0x61, 0x64, 0x65, - 0x72, 0x2e, 0x76, 0x32, 0x2e, 0x53, 0x79, 0x6e, 0x63, 0x73, 0x52, 0x65, 0x61, 0x64, 0x65, 0x72, - 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x4c, 0x69, 0x73, 0x74, 0x53, 0x79, 0x6e, 0x63, 0x73, - 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x94, 0x01, 0x0a, 0x15, 0x47, 0x65, 0x74, - 0x4c, 0x61, 0x74, 0x65, 0x73, 0x74, 0x46, 0x69, 0x6e, 0x69, 0x73, 0x68, 0x65, 0x64, 0x53, 0x79, - 0x6e, 0x63, 0x12, 0x3c, 0x2e, 0x63, 0x31, 0x2e, 0x72, 0x65, 0x61, 0x64, 0x65, 0x72, 0x2e, 0x76, - 0x32, 0x2e, 0x53, 0x79, 0x6e, 0x63, 0x73, 0x52, 0x65, 0x61, 0x64, 0x65, 0x72, 0x53, 0x65, 0x72, - 0x76, 0x69, 0x63, 0x65, 0x47, 0x65, 0x74, 0x4c, 0x61, 0x74, 0x65, 0x73, 0x74, 0x46, 0x69, 0x6e, - 0x69, 0x73, 0x68, 0x65, 0x64, 0x53, 0x79, 0x6e, 0x63, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, - 0x1a, 0x3d, 0x2e, 0x63, 0x31, 0x2e, 0x72, 0x65, 0x61, 0x64, 0x65, 0x72, 0x2e, 0x76, 0x32, 0x2e, - 0x53, 0x79, 0x6e, 0x63, 0x73, 0x52, 0x65, 0x61, 0x64, 0x65, 0x72, 0x53, 0x65, 0x72, 0x76, 0x69, - 0x63, 0x65, 0x47, 0x65, 0x74, 0x4c, 0x61, 0x74, 0x65, 0x73, 0x74, 0x46, 0x69, 0x6e, 0x69, 0x73, - 0x68, 0x65, 0x64, 0x53, 0x79, 0x6e, 0x63, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x42, - 0x33, 0x5a, 0x31, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x63, 0x6f, - 0x6e, 0x64, 0x75, 0x63, 0x74, 0x6f, 0x72, 0x6f, 0x6e, 0x65, 0x2f, 0x62, 0x61, 0x74, 0x6f, 0x6e, - 0x2d, 0x73, 0x64, 0x6b, 0x2f, 0x70, 0x62, 0x2f, 0x63, 0x31, 0x2f, 0x72, 0x65, 0x61, 0x64, 0x65, - 0x72, 0x2f, 0x76, 0x32, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, -}) - -var ( - file_c1_reader_v2_sync_proto_rawDescOnce sync.Once - file_c1_reader_v2_sync_proto_rawDescData []byte -) +func (x *SyncsReaderServiceGetLatestFinishedSyncResponse) SetAnnotations(v []*anypb.Any) { + x.Annotations = v +} -func file_c1_reader_v2_sync_proto_rawDescGZIP() []byte { - file_c1_reader_v2_sync_proto_rawDescOnce.Do(func() { - file_c1_reader_v2_sync_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_c1_reader_v2_sync_proto_rawDesc), len(file_c1_reader_v2_sync_proto_rawDesc))) - }) - return file_c1_reader_v2_sync_proto_rawDescData +func (x *SyncsReaderServiceGetLatestFinishedSyncResponse) HasSync() bool { + if x == nil { + return false + } + return x.Sync != nil } +func (x *SyncsReaderServiceGetLatestFinishedSyncResponse) ClearSync() { + x.Sync = nil +} + +type SyncsReaderServiceGetLatestFinishedSyncResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Sync *SyncRun + Annotations []*anypb.Any +} + +func (b0 SyncsReaderServiceGetLatestFinishedSyncResponse_builder) Build() *SyncsReaderServiceGetLatestFinishedSyncResponse { + m0 := &SyncsReaderServiceGetLatestFinishedSyncResponse{} + b, x := &b0, m0 + _, _ = b, x + x.Sync = b.Sync + x.Annotations = b.Annotations + return m0 +} + +var File_c1_reader_v2_sync_proto protoreflect.FileDescriptor + +const file_c1_reader_v2_sync_proto_rawDesc = "" + + "\n" + + "\x17c1/reader/v2/sync.proto\x12\fc1.reader.v2\x1a\x19google/protobuf/any.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x17validate/validate.proto\"\xed\x01\n" + + "\aSyncRun\x12\x0e\n" + + "\x02id\x18\x01 \x01(\tR\x02id\x129\n" + + "\n" + + "started_at\x18\x02 \x01(\v2\x1a.google.protobuf.TimestampR\tstartedAt\x125\n" + + "\bended_at\x18\x03 \x01(\v2\x1a.google.protobuf.TimestampR\aendedAt\x12\x1d\n" + + "\n" + + "sync_token\x18\x04 \x01(\tR\tsyncToken\x12\x1b\n" + + "\tsync_type\x18\x05 \x01(\tR\bsyncType\x12$\n" + + "\x0eparent_sync_id\x18\x06 \x01(\tR\fparentSyncId\"s\n" + + " SyncsReaderServiceGetSyncRequest\x12\x17\n" + + "\async_id\x18\x01 \x01(\tR\x06syncId\x126\n" + + "\vannotations\x18\x02 \x03(\v2\x14.google.protobuf.AnyR\vannotations\"\x86\x01\n" + + "!SyncsReaderServiceGetSyncResponse\x12)\n" + + "\x04sync\x18\x01 \x01(\v2\x15.c1.reader.v2.SyncRunR\x04sync\x126\n" + + "\vannotations\x18\x02 \x03(\v2\x14.google.protobuf.AnyR\vannotations\"\xb3\x01\n" + + "\"SyncsReaderServiceListSyncsRequest\x12'\n" + + "\tpage_size\x18\x01 \x01(\rB\n" + + "\xfaB\a*\x05\x18\xfa\x01@\x01R\bpageSize\x12,\n" + + "\n" + + "page_token\x18\x02 \x01(\tB\r\xfaB\n" + + "r\b \x01(\x80\x10\xd0\x01\x01R\tpageToken\x126\n" + + "\vannotations\x18\x03 \x03(\v2\x14.google.protobuf.AnyR\vannotations\"\xc1\x01\n" + + "#SyncsReaderServiceListSyncsResponse\x12+\n" + + "\x05syncs\x18\x01 \x03(\v2\x15.c1.reader.v2.SyncRunR\x05syncs\x125\n" + + "\x0fnext_page_token\x18\x02 \x01(\tB\r\xfaB\n" + + "r\b \x01(\x80\x10\xd0\x01\x01R\rnextPageToken\x126\n" + + "\vannotations\x18\x03 \x03(\v2\x14.google.protobuf.AnyR\vannotations\"\x85\x01\n" + + ".SyncsReaderServiceGetLatestFinishedSyncRequest\x126\n" + + "\vannotations\x18\x01 \x03(\v2\x14.google.protobuf.AnyR\vannotations\x12\x1b\n" + + "\tsync_type\x18\x02 \x01(\tR\bsyncType\"\x94\x01\n" + + "/SyncsReaderServiceGetLatestFinishedSyncResponse\x12)\n" + + "\x04sync\x18\x01 \x01(\v2\x15.c1.reader.v2.SyncRunR\x04sync\x126\n" + + "\vannotations\x18\x02 \x03(\v2\x14.google.protobuf.AnyR\vannotations2\x89\x03\n" + + "\x12SyncsReaderService\x12j\n" + + "\aGetSync\x12..c1.reader.v2.SyncsReaderServiceGetSyncRequest\x1a/.c1.reader.v2.SyncsReaderServiceGetSyncResponse\x12p\n" + + "\tListSyncs\x120.c1.reader.v2.SyncsReaderServiceListSyncsRequest\x1a1.c1.reader.v2.SyncsReaderServiceListSyncsResponse\x12\x94\x01\n" + + "\x15GetLatestFinishedSync\x12<.c1.reader.v2.SyncsReaderServiceGetLatestFinishedSyncRequest\x1a=.c1.reader.v2.SyncsReaderServiceGetLatestFinishedSyncResponseB3Z1github.com/conductorone/baton-sdk/pb/c1/reader/v2b\x06proto3" + var file_c1_reader_v2_sync_proto_msgTypes = make([]protoimpl.MessageInfo, 7) var file_c1_reader_v2_sync_proto_goTypes = []any{ (*SyncRun)(nil), // 0: c1.reader.v2.SyncRun diff --git a/vendor/github.com/conductorone/baton-sdk/pb/c1/reader/v2/sync_protoopaque.pb.go b/vendor/github.com/conductorone/baton-sdk/pb/c1/reader/v2/sync_protoopaque.pb.go new file mode 100644 index 00000000..3276ac81 --- /dev/null +++ b/vendor/github.com/conductorone/baton-sdk/pb/c1/reader/v2/sync_protoopaque.pb.go @@ -0,0 +1,769 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.36.10 +// protoc (unknown) +// source: c1/reader/v2/sync.proto + +//go:build protoopaque + +package v2 + +import ( + _ "github.com/envoyproxy/protoc-gen-validate/validate" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + anypb "google.golang.org/protobuf/types/known/anypb" + timestamppb "google.golang.org/protobuf/types/known/timestamppb" + reflect "reflect" + 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 SyncRun struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Id string `protobuf:"bytes,1,opt,name=id,proto3"` + xxx_hidden_StartedAt *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=started_at,json=startedAt,proto3"` + xxx_hidden_EndedAt *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=ended_at,json=endedAt,proto3"` + xxx_hidden_SyncToken string `protobuf:"bytes,4,opt,name=sync_token,json=syncToken,proto3"` + xxx_hidden_SyncType string `protobuf:"bytes,5,opt,name=sync_type,json=syncType,proto3"` + xxx_hidden_ParentSyncId string `protobuf:"bytes,6,opt,name=parent_sync_id,json=parentSyncId,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *SyncRun) Reset() { + *x = SyncRun{} + mi := &file_c1_reader_v2_sync_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *SyncRun) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*SyncRun) ProtoMessage() {} + +func (x *SyncRun) ProtoReflect() protoreflect.Message { + mi := &file_c1_reader_v2_sync_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) +} + +func (x *SyncRun) GetId() string { + if x != nil { + return x.xxx_hidden_Id + } + return "" +} + +func (x *SyncRun) GetStartedAt() *timestamppb.Timestamp { + if x != nil { + return x.xxx_hidden_StartedAt + } + return nil +} + +func (x *SyncRun) GetEndedAt() *timestamppb.Timestamp { + if x != nil { + return x.xxx_hidden_EndedAt + } + return nil +} + +func (x *SyncRun) GetSyncToken() string { + if x != nil { + return x.xxx_hidden_SyncToken + } + return "" +} + +func (x *SyncRun) GetSyncType() string { + if x != nil { + return x.xxx_hidden_SyncType + } + return "" +} + +func (x *SyncRun) GetParentSyncId() string { + if x != nil { + return x.xxx_hidden_ParentSyncId + } + return "" +} + +func (x *SyncRun) SetId(v string) { + x.xxx_hidden_Id = v +} + +func (x *SyncRun) SetStartedAt(v *timestamppb.Timestamp) { + x.xxx_hidden_StartedAt = v +} + +func (x *SyncRun) SetEndedAt(v *timestamppb.Timestamp) { + x.xxx_hidden_EndedAt = v +} + +func (x *SyncRun) SetSyncToken(v string) { + x.xxx_hidden_SyncToken = v +} + +func (x *SyncRun) SetSyncType(v string) { + x.xxx_hidden_SyncType = v +} + +func (x *SyncRun) SetParentSyncId(v string) { + x.xxx_hidden_ParentSyncId = v +} + +func (x *SyncRun) HasStartedAt() bool { + if x == nil { + return false + } + return x.xxx_hidden_StartedAt != nil +} + +func (x *SyncRun) HasEndedAt() bool { + if x == nil { + return false + } + return x.xxx_hidden_EndedAt != nil +} + +func (x *SyncRun) ClearStartedAt() { + x.xxx_hidden_StartedAt = nil +} + +func (x *SyncRun) ClearEndedAt() { + x.xxx_hidden_EndedAt = nil +} + +type SyncRun_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Id string + StartedAt *timestamppb.Timestamp + EndedAt *timestamppb.Timestamp + SyncToken string + SyncType string + ParentSyncId string +} + +func (b0 SyncRun_builder) Build() *SyncRun { + m0 := &SyncRun{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Id = b.Id + x.xxx_hidden_StartedAt = b.StartedAt + x.xxx_hidden_EndedAt = b.EndedAt + x.xxx_hidden_SyncToken = b.SyncToken + x.xxx_hidden_SyncType = b.SyncType + x.xxx_hidden_ParentSyncId = b.ParentSyncId + return m0 +} + +type SyncsReaderServiceGetSyncRequest struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_SyncId string `protobuf:"bytes,1,opt,name=sync_id,json=syncId,proto3"` + xxx_hidden_Annotations *[]*anypb.Any `protobuf:"bytes,2,rep,name=annotations,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *SyncsReaderServiceGetSyncRequest) Reset() { + *x = SyncsReaderServiceGetSyncRequest{} + mi := &file_c1_reader_v2_sync_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *SyncsReaderServiceGetSyncRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*SyncsReaderServiceGetSyncRequest) ProtoMessage() {} + +func (x *SyncsReaderServiceGetSyncRequest) ProtoReflect() protoreflect.Message { + mi := &file_c1_reader_v2_sync_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) +} + +func (x *SyncsReaderServiceGetSyncRequest) GetSyncId() string { + if x != nil { + return x.xxx_hidden_SyncId + } + return "" +} + +func (x *SyncsReaderServiceGetSyncRequest) GetAnnotations() []*anypb.Any { + if x != nil { + if x.xxx_hidden_Annotations != nil { + return *x.xxx_hidden_Annotations + } + } + return nil +} + +func (x *SyncsReaderServiceGetSyncRequest) SetSyncId(v string) { + x.xxx_hidden_SyncId = v +} + +func (x *SyncsReaderServiceGetSyncRequest) SetAnnotations(v []*anypb.Any) { + x.xxx_hidden_Annotations = &v +} + +type SyncsReaderServiceGetSyncRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + SyncId string + Annotations []*anypb.Any +} + +func (b0 SyncsReaderServiceGetSyncRequest_builder) Build() *SyncsReaderServiceGetSyncRequest { + m0 := &SyncsReaderServiceGetSyncRequest{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_SyncId = b.SyncId + x.xxx_hidden_Annotations = &b.Annotations + return m0 +} + +type SyncsReaderServiceGetSyncResponse struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Sync *SyncRun `protobuf:"bytes,1,opt,name=sync,proto3"` + xxx_hidden_Annotations *[]*anypb.Any `protobuf:"bytes,2,rep,name=annotations,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *SyncsReaderServiceGetSyncResponse) Reset() { + *x = SyncsReaderServiceGetSyncResponse{} + mi := &file_c1_reader_v2_sync_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *SyncsReaderServiceGetSyncResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*SyncsReaderServiceGetSyncResponse) ProtoMessage() {} + +func (x *SyncsReaderServiceGetSyncResponse) ProtoReflect() protoreflect.Message { + mi := &file_c1_reader_v2_sync_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) +} + +func (x *SyncsReaderServiceGetSyncResponse) GetSync() *SyncRun { + if x != nil { + return x.xxx_hidden_Sync + } + return nil +} + +func (x *SyncsReaderServiceGetSyncResponse) GetAnnotations() []*anypb.Any { + if x != nil { + if x.xxx_hidden_Annotations != nil { + return *x.xxx_hidden_Annotations + } + } + return nil +} + +func (x *SyncsReaderServiceGetSyncResponse) SetSync(v *SyncRun) { + x.xxx_hidden_Sync = v +} + +func (x *SyncsReaderServiceGetSyncResponse) SetAnnotations(v []*anypb.Any) { + x.xxx_hidden_Annotations = &v +} + +func (x *SyncsReaderServiceGetSyncResponse) HasSync() bool { + if x == nil { + return false + } + return x.xxx_hidden_Sync != nil +} + +func (x *SyncsReaderServiceGetSyncResponse) ClearSync() { + x.xxx_hidden_Sync = nil +} + +type SyncsReaderServiceGetSyncResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Sync *SyncRun + Annotations []*anypb.Any +} + +func (b0 SyncsReaderServiceGetSyncResponse_builder) Build() *SyncsReaderServiceGetSyncResponse { + m0 := &SyncsReaderServiceGetSyncResponse{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Sync = b.Sync + x.xxx_hidden_Annotations = &b.Annotations + return m0 +} + +type SyncsReaderServiceListSyncsRequest struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_PageSize uint32 `protobuf:"varint,1,opt,name=page_size,json=pageSize,proto3"` + xxx_hidden_PageToken string `protobuf:"bytes,2,opt,name=page_token,json=pageToken,proto3"` + xxx_hidden_Annotations *[]*anypb.Any `protobuf:"bytes,3,rep,name=annotations,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *SyncsReaderServiceListSyncsRequest) Reset() { + *x = SyncsReaderServiceListSyncsRequest{} + mi := &file_c1_reader_v2_sync_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *SyncsReaderServiceListSyncsRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*SyncsReaderServiceListSyncsRequest) ProtoMessage() {} + +func (x *SyncsReaderServiceListSyncsRequest) ProtoReflect() protoreflect.Message { + mi := &file_c1_reader_v2_sync_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) +} + +func (x *SyncsReaderServiceListSyncsRequest) GetPageSize() uint32 { + if x != nil { + return x.xxx_hidden_PageSize + } + return 0 +} + +func (x *SyncsReaderServiceListSyncsRequest) GetPageToken() string { + if x != nil { + return x.xxx_hidden_PageToken + } + return "" +} + +func (x *SyncsReaderServiceListSyncsRequest) GetAnnotations() []*anypb.Any { + if x != nil { + if x.xxx_hidden_Annotations != nil { + return *x.xxx_hidden_Annotations + } + } + return nil +} + +func (x *SyncsReaderServiceListSyncsRequest) SetPageSize(v uint32) { + x.xxx_hidden_PageSize = v +} + +func (x *SyncsReaderServiceListSyncsRequest) SetPageToken(v string) { + x.xxx_hidden_PageToken = v +} + +func (x *SyncsReaderServiceListSyncsRequest) SetAnnotations(v []*anypb.Any) { + x.xxx_hidden_Annotations = &v +} + +type SyncsReaderServiceListSyncsRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + PageSize uint32 + PageToken string + Annotations []*anypb.Any +} + +func (b0 SyncsReaderServiceListSyncsRequest_builder) Build() *SyncsReaderServiceListSyncsRequest { + m0 := &SyncsReaderServiceListSyncsRequest{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_PageSize = b.PageSize + x.xxx_hidden_PageToken = b.PageToken + x.xxx_hidden_Annotations = &b.Annotations + return m0 +} + +type SyncsReaderServiceListSyncsResponse struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Syncs *[]*SyncRun `protobuf:"bytes,1,rep,name=syncs,proto3"` + xxx_hidden_NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3"` + xxx_hidden_Annotations *[]*anypb.Any `protobuf:"bytes,3,rep,name=annotations,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *SyncsReaderServiceListSyncsResponse) Reset() { + *x = SyncsReaderServiceListSyncsResponse{} + mi := &file_c1_reader_v2_sync_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *SyncsReaderServiceListSyncsResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*SyncsReaderServiceListSyncsResponse) ProtoMessage() {} + +func (x *SyncsReaderServiceListSyncsResponse) ProtoReflect() protoreflect.Message { + mi := &file_c1_reader_v2_sync_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) +} + +func (x *SyncsReaderServiceListSyncsResponse) GetSyncs() []*SyncRun { + if x != nil { + if x.xxx_hidden_Syncs != nil { + return *x.xxx_hidden_Syncs + } + } + return nil +} + +func (x *SyncsReaderServiceListSyncsResponse) GetNextPageToken() string { + if x != nil { + return x.xxx_hidden_NextPageToken + } + return "" +} + +func (x *SyncsReaderServiceListSyncsResponse) GetAnnotations() []*anypb.Any { + if x != nil { + if x.xxx_hidden_Annotations != nil { + return *x.xxx_hidden_Annotations + } + } + return nil +} + +func (x *SyncsReaderServiceListSyncsResponse) SetSyncs(v []*SyncRun) { + x.xxx_hidden_Syncs = &v +} + +func (x *SyncsReaderServiceListSyncsResponse) SetNextPageToken(v string) { + x.xxx_hidden_NextPageToken = v +} + +func (x *SyncsReaderServiceListSyncsResponse) SetAnnotations(v []*anypb.Any) { + x.xxx_hidden_Annotations = &v +} + +type SyncsReaderServiceListSyncsResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Syncs []*SyncRun + NextPageToken string + Annotations []*anypb.Any +} + +func (b0 SyncsReaderServiceListSyncsResponse_builder) Build() *SyncsReaderServiceListSyncsResponse { + m0 := &SyncsReaderServiceListSyncsResponse{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Syncs = &b.Syncs + x.xxx_hidden_NextPageToken = b.NextPageToken + x.xxx_hidden_Annotations = &b.Annotations + return m0 +} + +type SyncsReaderServiceGetLatestFinishedSyncRequest struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Annotations *[]*anypb.Any `protobuf:"bytes,1,rep,name=annotations,proto3"` + xxx_hidden_SyncType string `protobuf:"bytes,2,opt,name=sync_type,json=syncType,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *SyncsReaderServiceGetLatestFinishedSyncRequest) Reset() { + *x = SyncsReaderServiceGetLatestFinishedSyncRequest{} + mi := &file_c1_reader_v2_sync_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *SyncsReaderServiceGetLatestFinishedSyncRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*SyncsReaderServiceGetLatestFinishedSyncRequest) ProtoMessage() {} + +func (x *SyncsReaderServiceGetLatestFinishedSyncRequest) ProtoReflect() protoreflect.Message { + mi := &file_c1_reader_v2_sync_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) +} + +func (x *SyncsReaderServiceGetLatestFinishedSyncRequest) GetAnnotations() []*anypb.Any { + if x != nil { + if x.xxx_hidden_Annotations != nil { + return *x.xxx_hidden_Annotations + } + } + return nil +} + +func (x *SyncsReaderServiceGetLatestFinishedSyncRequest) GetSyncType() string { + if x != nil { + return x.xxx_hidden_SyncType + } + return "" +} + +func (x *SyncsReaderServiceGetLatestFinishedSyncRequest) SetAnnotations(v []*anypb.Any) { + x.xxx_hidden_Annotations = &v +} + +func (x *SyncsReaderServiceGetLatestFinishedSyncRequest) SetSyncType(v string) { + x.xxx_hidden_SyncType = v +} + +type SyncsReaderServiceGetLatestFinishedSyncRequest_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Annotations []*anypb.Any + SyncType string +} + +func (b0 SyncsReaderServiceGetLatestFinishedSyncRequest_builder) Build() *SyncsReaderServiceGetLatestFinishedSyncRequest { + m0 := &SyncsReaderServiceGetLatestFinishedSyncRequest{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Annotations = &b.Annotations + x.xxx_hidden_SyncType = b.SyncType + return m0 +} + +type SyncsReaderServiceGetLatestFinishedSyncResponse struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Sync *SyncRun `protobuf:"bytes,1,opt,name=sync,proto3"` + xxx_hidden_Annotations *[]*anypb.Any `protobuf:"bytes,2,rep,name=annotations,proto3"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *SyncsReaderServiceGetLatestFinishedSyncResponse) Reset() { + *x = SyncsReaderServiceGetLatestFinishedSyncResponse{} + mi := &file_c1_reader_v2_sync_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *SyncsReaderServiceGetLatestFinishedSyncResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*SyncsReaderServiceGetLatestFinishedSyncResponse) ProtoMessage() {} + +func (x *SyncsReaderServiceGetLatestFinishedSyncResponse) ProtoReflect() protoreflect.Message { + mi := &file_c1_reader_v2_sync_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) +} + +func (x *SyncsReaderServiceGetLatestFinishedSyncResponse) GetSync() *SyncRun { + if x != nil { + return x.xxx_hidden_Sync + } + return nil +} + +func (x *SyncsReaderServiceGetLatestFinishedSyncResponse) GetAnnotations() []*anypb.Any { + if x != nil { + if x.xxx_hidden_Annotations != nil { + return *x.xxx_hidden_Annotations + } + } + return nil +} + +func (x *SyncsReaderServiceGetLatestFinishedSyncResponse) SetSync(v *SyncRun) { + x.xxx_hidden_Sync = v +} + +func (x *SyncsReaderServiceGetLatestFinishedSyncResponse) SetAnnotations(v []*anypb.Any) { + x.xxx_hidden_Annotations = &v +} + +func (x *SyncsReaderServiceGetLatestFinishedSyncResponse) HasSync() bool { + if x == nil { + return false + } + return x.xxx_hidden_Sync != nil +} + +func (x *SyncsReaderServiceGetLatestFinishedSyncResponse) ClearSync() { + x.xxx_hidden_Sync = nil +} + +type SyncsReaderServiceGetLatestFinishedSyncResponse_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Sync *SyncRun + Annotations []*anypb.Any +} + +func (b0 SyncsReaderServiceGetLatestFinishedSyncResponse_builder) Build() *SyncsReaderServiceGetLatestFinishedSyncResponse { + m0 := &SyncsReaderServiceGetLatestFinishedSyncResponse{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Sync = b.Sync + x.xxx_hidden_Annotations = &b.Annotations + return m0 +} + +var File_c1_reader_v2_sync_proto protoreflect.FileDescriptor + +const file_c1_reader_v2_sync_proto_rawDesc = "" + + "\n" + + "\x17c1/reader/v2/sync.proto\x12\fc1.reader.v2\x1a\x19google/protobuf/any.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x17validate/validate.proto\"\xed\x01\n" + + "\aSyncRun\x12\x0e\n" + + "\x02id\x18\x01 \x01(\tR\x02id\x129\n" + + "\n" + + "started_at\x18\x02 \x01(\v2\x1a.google.protobuf.TimestampR\tstartedAt\x125\n" + + "\bended_at\x18\x03 \x01(\v2\x1a.google.protobuf.TimestampR\aendedAt\x12\x1d\n" + + "\n" + + "sync_token\x18\x04 \x01(\tR\tsyncToken\x12\x1b\n" + + "\tsync_type\x18\x05 \x01(\tR\bsyncType\x12$\n" + + "\x0eparent_sync_id\x18\x06 \x01(\tR\fparentSyncId\"s\n" + + " SyncsReaderServiceGetSyncRequest\x12\x17\n" + + "\async_id\x18\x01 \x01(\tR\x06syncId\x126\n" + + "\vannotations\x18\x02 \x03(\v2\x14.google.protobuf.AnyR\vannotations\"\x86\x01\n" + + "!SyncsReaderServiceGetSyncResponse\x12)\n" + + "\x04sync\x18\x01 \x01(\v2\x15.c1.reader.v2.SyncRunR\x04sync\x126\n" + + "\vannotations\x18\x02 \x03(\v2\x14.google.protobuf.AnyR\vannotations\"\xb3\x01\n" + + "\"SyncsReaderServiceListSyncsRequest\x12'\n" + + "\tpage_size\x18\x01 \x01(\rB\n" + + "\xfaB\a*\x05\x18\xfa\x01@\x01R\bpageSize\x12,\n" + + "\n" + + "page_token\x18\x02 \x01(\tB\r\xfaB\n" + + "r\b \x01(\x80\x10\xd0\x01\x01R\tpageToken\x126\n" + + "\vannotations\x18\x03 \x03(\v2\x14.google.protobuf.AnyR\vannotations\"\xc1\x01\n" + + "#SyncsReaderServiceListSyncsResponse\x12+\n" + + "\x05syncs\x18\x01 \x03(\v2\x15.c1.reader.v2.SyncRunR\x05syncs\x125\n" + + "\x0fnext_page_token\x18\x02 \x01(\tB\r\xfaB\n" + + "r\b \x01(\x80\x10\xd0\x01\x01R\rnextPageToken\x126\n" + + "\vannotations\x18\x03 \x03(\v2\x14.google.protobuf.AnyR\vannotations\"\x85\x01\n" + + ".SyncsReaderServiceGetLatestFinishedSyncRequest\x126\n" + + "\vannotations\x18\x01 \x03(\v2\x14.google.protobuf.AnyR\vannotations\x12\x1b\n" + + "\tsync_type\x18\x02 \x01(\tR\bsyncType\"\x94\x01\n" + + "/SyncsReaderServiceGetLatestFinishedSyncResponse\x12)\n" + + "\x04sync\x18\x01 \x01(\v2\x15.c1.reader.v2.SyncRunR\x04sync\x126\n" + + "\vannotations\x18\x02 \x03(\v2\x14.google.protobuf.AnyR\vannotations2\x89\x03\n" + + "\x12SyncsReaderService\x12j\n" + + "\aGetSync\x12..c1.reader.v2.SyncsReaderServiceGetSyncRequest\x1a/.c1.reader.v2.SyncsReaderServiceGetSyncResponse\x12p\n" + + "\tListSyncs\x120.c1.reader.v2.SyncsReaderServiceListSyncsRequest\x1a1.c1.reader.v2.SyncsReaderServiceListSyncsResponse\x12\x94\x01\n" + + "\x15GetLatestFinishedSync\x12<.c1.reader.v2.SyncsReaderServiceGetLatestFinishedSyncRequest\x1a=.c1.reader.v2.SyncsReaderServiceGetLatestFinishedSyncResponseB3Z1github.com/conductorone/baton-sdk/pb/c1/reader/v2b\x06proto3" + +var file_c1_reader_v2_sync_proto_msgTypes = make([]protoimpl.MessageInfo, 7) +var file_c1_reader_v2_sync_proto_goTypes = []any{ + (*SyncRun)(nil), // 0: c1.reader.v2.SyncRun + (*SyncsReaderServiceGetSyncRequest)(nil), // 1: c1.reader.v2.SyncsReaderServiceGetSyncRequest + (*SyncsReaderServiceGetSyncResponse)(nil), // 2: c1.reader.v2.SyncsReaderServiceGetSyncResponse + (*SyncsReaderServiceListSyncsRequest)(nil), // 3: c1.reader.v2.SyncsReaderServiceListSyncsRequest + (*SyncsReaderServiceListSyncsResponse)(nil), // 4: c1.reader.v2.SyncsReaderServiceListSyncsResponse + (*SyncsReaderServiceGetLatestFinishedSyncRequest)(nil), // 5: c1.reader.v2.SyncsReaderServiceGetLatestFinishedSyncRequest + (*SyncsReaderServiceGetLatestFinishedSyncResponse)(nil), // 6: c1.reader.v2.SyncsReaderServiceGetLatestFinishedSyncResponse + (*timestamppb.Timestamp)(nil), // 7: google.protobuf.Timestamp + (*anypb.Any)(nil), // 8: google.protobuf.Any +} +var file_c1_reader_v2_sync_proto_depIdxs = []int32{ + 7, // 0: c1.reader.v2.SyncRun.started_at:type_name -> google.protobuf.Timestamp + 7, // 1: c1.reader.v2.SyncRun.ended_at:type_name -> google.protobuf.Timestamp + 8, // 2: c1.reader.v2.SyncsReaderServiceGetSyncRequest.annotations:type_name -> google.protobuf.Any + 0, // 3: c1.reader.v2.SyncsReaderServiceGetSyncResponse.sync:type_name -> c1.reader.v2.SyncRun + 8, // 4: c1.reader.v2.SyncsReaderServiceGetSyncResponse.annotations:type_name -> google.protobuf.Any + 8, // 5: c1.reader.v2.SyncsReaderServiceListSyncsRequest.annotations:type_name -> google.protobuf.Any + 0, // 6: c1.reader.v2.SyncsReaderServiceListSyncsResponse.syncs:type_name -> c1.reader.v2.SyncRun + 8, // 7: c1.reader.v2.SyncsReaderServiceListSyncsResponse.annotations:type_name -> google.protobuf.Any + 8, // 8: c1.reader.v2.SyncsReaderServiceGetLatestFinishedSyncRequest.annotations:type_name -> google.protobuf.Any + 0, // 9: c1.reader.v2.SyncsReaderServiceGetLatestFinishedSyncResponse.sync:type_name -> c1.reader.v2.SyncRun + 8, // 10: c1.reader.v2.SyncsReaderServiceGetLatestFinishedSyncResponse.annotations:type_name -> google.protobuf.Any + 1, // 11: c1.reader.v2.SyncsReaderService.GetSync:input_type -> c1.reader.v2.SyncsReaderServiceGetSyncRequest + 3, // 12: c1.reader.v2.SyncsReaderService.ListSyncs:input_type -> c1.reader.v2.SyncsReaderServiceListSyncsRequest + 5, // 13: c1.reader.v2.SyncsReaderService.GetLatestFinishedSync:input_type -> c1.reader.v2.SyncsReaderServiceGetLatestFinishedSyncRequest + 2, // 14: c1.reader.v2.SyncsReaderService.GetSync:output_type -> c1.reader.v2.SyncsReaderServiceGetSyncResponse + 4, // 15: c1.reader.v2.SyncsReaderService.ListSyncs:output_type -> c1.reader.v2.SyncsReaderServiceListSyncsResponse + 6, // 16: c1.reader.v2.SyncsReaderService.GetLatestFinishedSync:output_type -> c1.reader.v2.SyncsReaderServiceGetLatestFinishedSyncResponse + 14, // [14:17] is the sub-list for method output_type + 11, // [11:14] is the sub-list for method input_type + 11, // [11:11] is the sub-list for extension type_name + 11, // [11:11] is the sub-list for extension extendee + 0, // [0:11] is the sub-list for field type_name +} + +func init() { file_c1_reader_v2_sync_proto_init() } +func file_c1_reader_v2_sync_proto_init() { + if File_c1_reader_v2_sync_proto != nil { + return + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: unsafe.Slice(unsafe.StringData(file_c1_reader_v2_sync_proto_rawDesc), len(file_c1_reader_v2_sync_proto_rawDesc)), + NumEnums: 0, + NumMessages: 7, + NumExtensions: 0, + NumServices: 1, + }, + GoTypes: file_c1_reader_v2_sync_proto_goTypes, + DependencyIndexes: file_c1_reader_v2_sync_proto_depIdxs, + MessageInfos: file_c1_reader_v2_sync_proto_msgTypes, + }.Build() + File_c1_reader_v2_sync_proto = out.File + file_c1_reader_v2_sync_proto_goTypes = nil + file_c1_reader_v2_sync_proto_depIdxs = nil +} diff --git a/vendor/github.com/conductorone/baton-sdk/pkg/annotations/annotations.go b/vendor/github.com/conductorone/baton-sdk/pkg/annotations/annotations.go index d0566e71..64a3004b 100644 --- a/vendor/github.com/conductorone/baton-sdk/pkg/annotations/annotations.go +++ b/vendor/github.com/conductorone/baton-sdk/pkg/annotations/annotations.go @@ -137,13 +137,3 @@ func GetSyncIdFromAnnotations(annos Annotations) (string, error) { return "", nil } - -// NOTE: this is used to communicate the active sync to the connector proper, for session storage. -func GetActiveSyncIdFromAnnotations(annos Annotations) (string, error) { - v2SyncId := &v2.ActiveSync{} - _, err := annos.Pick(v2SyncId) - if err != nil { - return "", err - } - return v2SyncId.GetId(), nil -} diff --git a/vendor/github.com/conductorone/baton-sdk/pkg/dotc1z/assets.go b/vendor/github.com/conductorone/baton-sdk/pkg/dotc1z/assets.go index 035fbcf6..e67256f4 100644 --- a/vendor/github.com/conductorone/baton-sdk/pkg/dotc1z/assets.go +++ b/vendor/github.com/conductorone/baton-sdk/pkg/dotc1z/assets.go @@ -58,6 +58,10 @@ func (c *C1File) PutAsset(ctx context.Context, assetRef *v2.AssetRef, contentTyp ctx, span := tracer.Start(ctx, "C1File.PutAsset") defer span.End() + if c.readOnly { + return ErrReadOnly + } + l := ctxzap.Extract(ctx) if len(data) == 0 { @@ -76,7 +80,7 @@ func (c *C1File) PutAsset(ctx context.Context, assetRef *v2.AssetRef, contentTyp } fields := goqu.Record{ - "external_id": assetRef.Id, + "external_id": assetRef.GetId(), "content_type": contentType, "data": data, "sync_id": c.currentSyncID, @@ -113,13 +117,13 @@ func (c *C1File) GetAsset(ctx context.Context, request *v2.AssetServiceGetAssetR return "", nil, err } - if request.Asset == nil { + if !request.HasAsset() { return "", nil, fmt.Errorf("asset is required") } q := c.db.From(assets.Name()).Prepared(true) q = q.Select("content_type", "data") - q = q.Where(goqu.C("external_id").Eq(request.Asset.Id)) + q = q.Where(goqu.C("external_id").Eq(request.GetAsset().GetId())) if c.currentSyncID != "" { q = q.Where(goqu.C("sync_id").Eq(c.currentSyncID)) diff --git a/vendor/github.com/conductorone/baton-sdk/pkg/dotc1z/c1file.go b/vendor/github.com/conductorone/baton-sdk/pkg/dotc1z/c1file.go index dc269cbb..548968ce 100644 --- a/vendor/github.com/conductorone/baton-sdk/pkg/dotc1z/c1file.go +++ b/vendor/github.com/conductorone/baton-sdk/pkg/dotc1z/c1file.go @@ -11,6 +11,7 @@ import ( "time" "github.com/doug-martin/goqu/v9" + "go.uber.org/zap" "google.golang.org/grpc/codes" "google.golang.org/grpc/status" @@ -34,15 +35,22 @@ type pragma struct { } type C1File struct { - rawDb *sql.DB - db *goqu.Database - currentSyncID string - viewSyncID string - outputFilePath string - dbFilePath string - dbUpdated bool - tempDir string - pragmas []pragma + rawDb *sql.DB + db *goqu.Database + currentSyncID string + viewSyncID string + outputFilePath string + dbFilePath string + dbUpdated bool + tempDir string + pragmas []pragma + readOnly bool + encoderConcurrency int + + // Cached sync run for listConnectorObjects (avoids N+1 queries) + cachedViewSyncRun *syncRun + cachedViewSyncMu sync.Mutex + cachedViewSyncErr error // Slow query tracking slowQueryLogTimes map[string]time.Time @@ -55,18 +63,33 @@ var _ connectorstore.Writer = (*C1File)(nil) type C1FOption func(*C1File) +// WithC1FTmpDir sets the temporary directory to use when cloning a sync. +// If not provided, os.TempDir() will be used. func WithC1FTmpDir(tempDir string) C1FOption { return func(o *C1File) { o.tempDir = tempDir } } +// WithC1FPragma sets a sqlite pragma for the c1z file. func WithC1FPragma(name string, value string) C1FOption { return func(o *C1File) { o.pragmas = append(o.pragmas, pragma{name, value}) } } +func WithC1FReadOnly(readOnly bool) C1FOption { + return func(o *C1File) { + o.readOnly = readOnly + } +} + +func WithC1FEncoderConcurrency(concurrency int) C1FOption { + return func(o *C1File) { + o.encoderConcurrency = concurrency + } +} + // Returns a C1File instance for the given db filepath. func NewC1File(ctx context.Context, dbFilePath string, opts ...C1FOption) (*C1File, error) { ctx, span := tracer.Start(ctx, "NewC1File") @@ -87,6 +110,7 @@ func NewC1File(ctx context.Context, dbFilePath string, opts ...C1FOption) (*C1Fi slowQueryLogTimes: make(map[string]time.Time), slowQueryThreshold: 5 * time.Second, slowQueryLogFrequency: 1 * time.Minute, + encoderConcurrency: 1, } for _, opt := range opts { @@ -107,18 +131,23 @@ func NewC1File(ctx context.Context, dbFilePath string, opts ...C1FOption) (*C1Fi } type c1zOptions struct { - tmpDir string - pragmas []pragma - decoderOptions []DecoderOption + tmpDir string + pragmas []pragma + decoderOptions []DecoderOption + readOnly bool + encoderConcurrency int } type C1ZOption func(*c1zOptions) +// WithTmpDir sets the temporary directory to extract the c1z file to. +// If not provided, os.TempDir() will be used. func WithTmpDir(tmpDir string) C1ZOption { return func(o *c1zOptions) { o.tmpDir = tmpDir } } +// WithPragma sets a sqlite pragma for the c1z file. func WithPragma(name string, value string) C1ZOption { return func(o *c1zOptions) { o.pragmas = append(o.pragmas, pragma{name, value}) @@ -131,17 +160,35 @@ func WithDecoderOptions(opts ...DecoderOption) C1ZOption { } } +// WithReadOnly opens the c1z file in read only mode. Modifying the c1z will result in an error on close. +func WithReadOnly(readOnly bool) C1ZOption { + return func(o *c1zOptions) { + o.readOnly = readOnly + } +} + +// WithEncoderConcurrency sets the number of created encoders. +// Default is 1, which disables async encoding/concurrency. +// 0 uses GOMAXPROCS. +func WithEncoderConcurrency(concurrency int) C1ZOption { + return func(o *c1zOptions) { + o.encoderConcurrency = concurrency + } +} + // Returns a new C1File instance with its state stored at the provided filename. func NewC1ZFile(ctx context.Context, outputFilePath string, opts ...C1ZOption) (*C1File, error) { ctx, span := tracer.Start(ctx, "NewC1ZFile") defer span.End() - options := &c1zOptions{} + options := &c1zOptions{ + encoderConcurrency: 1, + } for _, opt := range opts { opt(options) } - dbFilePath, err := loadC1z(outputFilePath, options.tmpDir, options.decoderOptions...) + dbFilePath, _, err := decompressC1z(outputFilePath, options.tmpDir, options.decoderOptions...) if err != nil { return nil, err } @@ -150,6 +197,13 @@ func NewC1ZFile(ctx context.Context, outputFilePath string, opts ...C1ZOption) ( for _, pragma := range options.pragmas { c1fopts = append(c1fopts, WithC1FPragma(pragma.name, pragma.value)) } + if options.readOnly { + c1fopts = append(c1fopts, WithC1FReadOnly(true)) + } + if options.encoderConcurrency < 0 { + return nil, fmt.Errorf("encoder concurrency must be greater than 0") + } + c1fopts = append(c1fopts, WithC1FEncoderConcurrency(options.encoderConcurrency)) c1File, err := NewC1File(ctx, dbFilePath, c1fopts...) if err != nil { @@ -169,12 +223,46 @@ func cleanupDbDir(dbFilePath string, err error) error { return err } +var ErrReadOnly = errors.New("c1z: read only mode") + // Close ensures that the sqlite database is flushed to disk, and if any changes were made we update the original database -// with our changes. +// with our changes. It uses context.Background() for the WAL checkpoint operation. +// Use CloseContext to pass a specific context. func (c *C1File) Close() error { + return c.CloseContext(context.Background()) +} + +// CloseContext ensures that the sqlite database is flushed to disk, and if any changes were made we update the original database +// with our changes. The provided context is used for the WAL checkpoint operation. +func (c *C1File) CloseContext(ctx context.Context) error { var err error if c.rawDb != nil { + // CRITICAL: Force a full WAL checkpoint before closing the database. + // This ensures all WAL data is written back to the main database file + // and the writes are synced to disk. Without this, on filesystems with + // aggressive caching (like ZFS with large ARC), the subsequent saveC1z() + // read could see stale data because the checkpoint writes may still be + // in kernel buffers. + // + // TRUNCATE mode: checkpoint as many frames as possible, then truncate + // the WAL file to zero bytes. This guarantees all data is in the main + // database file before we read it for compression. + if c.dbUpdated && !c.readOnly { + _, err = c.rawDb.ExecContext(ctx, "PRAGMA wal_checkpoint(TRUNCATE)") + if err != nil { + // Checkpoint failed - log and continue. The subsequent Close() + // will attempt a passive checkpoint. If that also fails, we'll + // get an error from Close() or saveC1z() will read stale data. + // We log here for debugging but don't fail because: + // 1. Close() will still attempt its own checkpoint + // 2. The error might be transient (busy) + zap.L().Warn("WAL checkpoint failed before close", + zap.Error(err), + zap.String("db_path", c.dbFilePath)) + } + } + err = c.rawDb.Close() if err != nil { return cleanupDbDir(c.dbFilePath, err) @@ -185,7 +273,10 @@ func (c *C1File) Close() error { // We only want to save the file if we've made any changes if c.dbUpdated { - err = saveC1z(c.dbFilePath, c.outputFilePath) + if c.readOnly { + return cleanupDbDir(c.dbFilePath, ErrReadOnly) + } + err = saveC1z(c.dbFilePath, c.outputFilePath, c.encoderConcurrency) if err != nil { return cleanupDbDir(c.dbFilePath, err) } @@ -204,13 +295,19 @@ func (c *C1File) init(ctx context.Context) error { return err } - for _, t := range allTableDescriptors { - query, args := t.Schema() - _, err = c.db.ExecContext(ctx, fmt.Sprintf(query, args...)) + err = c.InitTables(ctx) + if err != nil { + return err + } + + if c.readOnly { + // Disable journaling in read only mode, since we're not writing to the database. + _, err = c.db.ExecContext(ctx, "PRAGMA journal_mode = OFF") if err != nil { return err } - err = t.Migrations(ctx, c.db) + // Disable synchronous writes in read only mode, since we're not writing to the database. + _, err = c.db.ExecContext(ctx, "PRAGMA synchronous = OFF") if err != nil { return err } @@ -226,6 +323,30 @@ func (c *C1File) init(ctx context.Context) error { return nil } +func (c *C1File) InitTables(ctx context.Context) error { + ctx, span := tracer.Start(ctx, "C1File.InitTables") + defer span.End() + + err := c.validateDb(ctx) + if err != nil { + return err + } + + for _, t := range allTableDescriptors { + query, args := t.Schema() + _, err = c.db.ExecContext(ctx, fmt.Sprintf(query, args...)) + if err != nil { + return err + } + err = t.Migrations(ctx, c.db) + if err != nil { + return err + } + } + + return nil +} + // Stats introspects the database and returns the count of objects for the given sync run. // If syncId is empty, it will use the latest sync run of the given type. func (c *C1File) Stats(ctx context.Context, syncType connectorstore.SyncType, syncId string) (map[string]int64, error) { @@ -241,47 +362,47 @@ func (c *C1File) Stats(ctx context.Context, syncType connectorstore.SyncType, sy return nil, err } } - resp, err := c.GetSync(ctx, &reader_v2.SyncsReaderServiceGetSyncRequest{SyncId: syncId}) + resp, err := c.GetSync(ctx, reader_v2.SyncsReaderServiceGetSyncRequest_builder{SyncId: syncId}.Build()) if err != nil { return nil, err } - if resp == nil || resp.Sync == nil { + if resp == nil || !resp.HasSync() { return nil, status.Errorf(codes.NotFound, "sync '%s' not found", syncId) } - sync := resp.Sync - if syncType != connectorstore.SyncTypeAny && syncType != connectorstore.SyncType(sync.SyncType) { + sync := resp.GetSync() + if syncType != connectorstore.SyncTypeAny && syncType != connectorstore.SyncType(sync.GetSyncType()) { return nil, status.Errorf(codes.InvalidArgument, "sync '%s' is not of type '%s'", syncId, syncType) } - syncType = connectorstore.SyncType(sync.SyncType) + syncType = connectorstore.SyncType(sync.GetSyncType()) counts["resource_types"] = 0 var rtStats []*v2.ResourceType pageToken := "" for { - resp, err := c.ListResourceTypes(ctx, &v2.ResourceTypesServiceListResourceTypesRequest{PageToken: pageToken}) + resp, err := c.ListResourceTypes(ctx, v2.ResourceTypesServiceListResourceTypesRequest_builder{PageToken: pageToken}.Build()) if err != nil { return nil, err } - rtStats = append(rtStats, resp.List...) + rtStats = append(rtStats, resp.GetList()...) - if resp.NextPageToken == "" { + if resp.GetNextPageToken() == "" { break } - pageToken = resp.NextPageToken + pageToken = resp.GetNextPageToken() } counts["resource_types"] = int64(len(rtStats)) for _, rt := range rtStats { resourceCount, err := c.db.From(resources.Name()). - Where(goqu.C("resource_type_id").Eq(rt.Id)). + Where(goqu.C("resource_type_id").Eq(rt.GetId())). Where(goqu.C("sync_id").Eq(syncId)). CountContext(ctx) if err != nil { return nil, err } - counts[rt.Id] = resourceCount + counts[rt.GetId()] = resourceCount } if syncType != connectorstore.SyncTypeResourcesOnly { @@ -367,14 +488,14 @@ func (c *C1File) GrantStats(ctx context.Context, syncType connectorstore.SyncTyp return nil, err } } else { - lastSync, err := c.GetSync(ctx, &reader_v2.SyncsReaderServiceGetSyncRequest{SyncId: syncId}) + lastSync, err := c.GetSync(ctx, reader_v2.SyncsReaderServiceGetSyncRequest_builder{SyncId: syncId}.Build()) if err != nil { return nil, err } if lastSync == nil { return nil, status.Errorf(codes.NotFound, "sync '%s' not found", syncId) } - if syncType != connectorstore.SyncTypeAny && syncType != connectorstore.SyncType(lastSync.Sync.SyncType) { + if syncType != connectorstore.SyncTypeAny && syncType != connectorstore.SyncType(lastSync.GetSync().GetSyncType()) { return nil, status.Errorf(codes.InvalidArgument, "sync '%s' is not of type '%s'", syncId, syncType) } } @@ -382,18 +503,18 @@ func (c *C1File) GrantStats(ctx context.Context, syncType connectorstore.SyncTyp var allResourceTypes []*v2.ResourceType pageToken := "" for { - resp, err := c.ListResourceTypes(ctx, &v2.ResourceTypesServiceListResourceTypesRequest{PageToken: pageToken}) + resp, err := c.ListResourceTypes(ctx, v2.ResourceTypesServiceListResourceTypesRequest_builder{PageToken: pageToken}.Build()) if err != nil { return nil, err } - allResourceTypes = append(allResourceTypes, resp.List...) + allResourceTypes = append(allResourceTypes, resp.GetList()...) - if resp.NextPageToken == "" { + if resp.GetNextPageToken() == "" { break } - pageToken = resp.NextPageToken + pageToken = resp.GetNextPageToken() } stats := make(map[string]int64) @@ -401,13 +522,13 @@ func (c *C1File) GrantStats(ctx context.Context, syncType connectorstore.SyncTyp for _, resourceType := range allResourceTypes { grantsCount, err := c.db.From(grants.Name()). Where(goqu.C("sync_id").Eq(syncId)). - Where(goqu.C("resource_type_id").Eq(resourceType.Id)). + Where(goqu.C("resource_type_id").Eq(resourceType.GetId())). CountContext(ctx) if err != nil { return nil, err } - stats[resourceType.Id] = grantsCount + stats[resourceType.GetId()] = grantsCount } return stats, nil diff --git a/vendor/github.com/conductorone/baton-sdk/pkg/dotc1z/c1file_attached.go b/vendor/github.com/conductorone/baton-sdk/pkg/dotc1z/c1file_attached.go index 34bf5ea4..d7ee4c6d 100644 --- a/vendor/github.com/conductorone/baton-sdk/pkg/dotc1z/c1file_attached.go +++ b/vendor/github.com/conductorone/baton-sdk/pkg/dotc1z/c1file_attached.go @@ -4,6 +4,10 @@ import ( "context" "errors" "fmt" + + reader_v2 "github.com/conductorone/baton-sdk/pb/c1/reader/v2" + "github.com/conductorone/baton-sdk/pkg/connectorstore" + "github.com/doug-martin/goqu/v9" ) type C1FileAttached struct { @@ -11,7 +15,7 @@ type C1FileAttached struct { file *C1File } -func (c *C1FileAttached) CompactTable(ctx context.Context, destSyncID string, baseSyncID string, appliedSyncID string, tableName string) error { +func (c *C1FileAttached) CompactTable(ctx context.Context, baseSyncID string, appliedSyncID string, tableName string) error { if !c.safe { return errors.New("database has been detached") } @@ -40,20 +44,7 @@ func (c *C1FileAttached) CompactTable(ctx context.Context, destSyncID string, ba } } - // Step 1: Insert ALL records from base sync - insertBaseQuery := fmt.Sprintf(` - INSERT INTO main.%s (%s) - SELECT %s - FROM base.%s - WHERE sync_id = ? - `, tableName, columnList, selectList, tableName) - - _, err = c.file.db.ExecContext(ctx, insertBaseQuery, destSyncID, baseSyncID) - if err != nil { - return fmt.Errorf("failed to copy base records: %w", err) - } - - // Step 2: Insert/replace records from applied sync where applied.discovered_at > main.discovered_at + // Insert/replace records from applied sync where applied.discovered_at > main.discovered_at insertOrReplaceAppliedQuery := fmt.Sprintf(` INSERT OR REPLACE INTO main.%s (%s) SELECT %s @@ -73,7 +64,7 @@ func (c *C1FileAttached) CompactTable(ctx context.Context, destSyncID string, ba ) `, tableName, columnList, selectList, tableName, tableName, tableName) - _, err = c.file.db.ExecContext(ctx, insertOrReplaceAppliedQuery, destSyncID, appliedSyncID, destSyncID, destSyncID) + _, err = c.file.db.ExecContext(ctx, insertOrReplaceAppliedQuery, baseSyncID, appliedSyncID, baseSyncID, baseSyncID) return err } @@ -94,7 +85,7 @@ func (c *C1FileAttached) getTableColumns(ctx context.Context, tableName string) var cid int var name, dataType string var notNull, pk int - var defaultValue interface{} + var defaultValue any err := rows.Scan(&cid, &name, &dataType, ¬Null, &defaultValue, &pk) if err != nil { @@ -113,30 +104,73 @@ func (c *C1FileAttached) getTableColumns(ctx context.Context, tableName string) return columns, nil } -func (c *C1FileAttached) CompactResourceTypes(ctx context.Context, destSyncID string, baseSyncID string, appliedSyncID string) error { +func (c *C1FileAttached) CompactResourceTypes(ctx context.Context, baseSyncID string, appliedSyncID string) error { if !c.safe { return errors.New("database has been detached") } - return c.CompactTable(ctx, destSyncID, baseSyncID, appliedSyncID, "v1_resource_types") + return c.CompactTable(ctx, baseSyncID, appliedSyncID, "v1_resource_types") } -func (c *C1FileAttached) CompactResources(ctx context.Context, destSyncID string, baseSyncID string, appliedSyncID string) error { +func (c *C1FileAttached) CompactResources(ctx context.Context, baseSyncID string, appliedSyncID string) error { if !c.safe { return errors.New("database has been detached") } - return c.CompactTable(ctx, destSyncID, baseSyncID, appliedSyncID, "v1_resources") + return c.CompactTable(ctx, baseSyncID, appliedSyncID, "v1_resources") } -func (c *C1FileAttached) CompactEntitlements(ctx context.Context, destSyncID string, baseSyncID string, appliedSyncID string) error { +func (c *C1FileAttached) CompactEntitlements(ctx context.Context, baseSyncID string, appliedSyncID string) error { if !c.safe { return errors.New("database has been detached") } - return c.CompactTable(ctx, destSyncID, baseSyncID, appliedSyncID, "v1_entitlements") + return c.CompactTable(ctx, baseSyncID, appliedSyncID, "v1_entitlements") +} + +func (c *C1FileAttached) CompactGrants(ctx context.Context, baseSyncID string, appliedSyncID string) error { + if !c.safe { + return errors.New("database has been detached") + } + return c.CompactTable(ctx, baseSyncID, appliedSyncID, "v1_grants") +} + +func unionSyncTypes(a, b connectorstore.SyncType) connectorstore.SyncType { + switch { + case a == connectorstore.SyncTypeFull || b == connectorstore.SyncTypeFull: + return connectorstore.SyncTypeFull + case a == connectorstore.SyncTypeResourcesOnly || b == connectorstore.SyncTypeResourcesOnly: + return connectorstore.SyncTypeResourcesOnly + default: + return connectorstore.SyncTypePartial + } } -func (c *C1FileAttached) CompactGrants(ctx context.Context, destSyncID string, baseSyncID string, appliedSyncID string) error { +func (c *C1FileAttached) UpdateSync(ctx context.Context, baseSync *reader_v2.SyncRun, appliedSync *reader_v2.SyncRun) error { if !c.safe { return errors.New("database has been detached") } - return c.CompactTable(ctx, destSyncID, baseSyncID, appliedSyncID, "v1_grants") + syncType := unionSyncTypes(connectorstore.SyncType(baseSync.GetSyncType()), connectorstore.SyncType(appliedSync.GetSyncType())) + + latestEndedAt := baseSync.GetEndedAt().AsTime() + if appliedSync.GetEndedAt().AsTime().After(latestEndedAt) { + latestEndedAt = appliedSync.GetEndedAt().AsTime() + } + + baseSyncID := baseSync.GetId() + q := c.file.db.Update(fmt.Sprintf("main.%s", syncRuns.Name())) + q = q.Set(goqu.Record{ + "ended_at": latestEndedAt.Format("2006-01-02 15:04:05.999999999"), + "sync_type": string(syncType), + }) + q = q.Where(goqu.C("sync_id").Eq(baseSyncID)) + + query, args, err := q.ToSQL() + if err != nil { + return fmt.Errorf("failed to build update sync query: %w", err) + } + + _, err = c.file.db.ExecContext(ctx, query, args...) + if err != nil { + return fmt.Errorf("failed to update sync %s to type %s: %w", baseSyncID, syncType, err) + } + + return nil } diff --git a/vendor/github.com/conductorone/baton-sdk/pkg/dotc1z/decoder.go b/vendor/github.com/conductorone/baton-sdk/pkg/dotc1z/decoder.go index 68480acc..5f3a4cd2 100644 --- a/vendor/github.com/conductorone/baton-sdk/pkg/dotc1z/decoder.go +++ b/vendor/github.com/conductorone/baton-sdk/pkg/dotc1z/decoder.go @@ -107,6 +107,7 @@ func WithDecoderMaxDecodedSize(n uint64) DecoderOption { // WithDecoderConcurrency sets the number of created decoders. // Default is 1, which disables async decoding/concurrency. // 0 uses GOMAXPROCS. +// -1 uses GOMAXPROCS or 4, whichever is lower. func WithDecoderConcurrency(n int) DecoderOption { return func(o *decoderOptions) error { o.decoderConcurrency = n diff --git a/vendor/github.com/conductorone/baton-sdk/pkg/dotc1z/diff.go b/vendor/github.com/conductorone/baton-sdk/pkg/dotc1z/diff.go index 6db52b61..4324a7cc 100644 --- a/vendor/github.com/conductorone/baton-sdk/pkg/dotc1z/diff.go +++ b/vendor/github.com/conductorone/baton-sdk/pkg/dotc1z/diff.go @@ -11,6 +11,10 @@ import ( ) func (c *C1File) GenerateSyncDiff(ctx context.Context, baseSyncID string, appliedSyncID string) (string, error) { + if c.readOnly { + return "", ErrReadOnly + } + // Validate that both sync runs exist baseSync, err := c.getSync(ctx, baseSyncID) if err != nil { @@ -44,6 +48,9 @@ func (c *C1File) GenerateSyncDiff(ctx context.Context, baseSyncID string, applie if err != nil { return "", err } + if q == "" { + continue + } _, err = c.db.ExecContext(ctx, q, args...) if err != nil { return "", err @@ -70,6 +77,9 @@ func (c *C1File) diffTableQuery(table tableDescriptor, baseSyncID, appliedSyncID tableName := table.Name() // Add table-specific columns switch { + case strings.Contains(tableName, sessionStoreTableName): + // caching is not relevant to diffs. + return "", nil, nil case strings.Contains(tableName, resourcesTableName): columns = append(columns, "resource_type_id", "parent_resource_type_id", "parent_resource_id") case strings.Contains(tableName, resourceTypesTableName): diff --git a/vendor/github.com/conductorone/baton-sdk/pkg/dotc1z/dotc1z.go b/vendor/github.com/conductorone/baton-sdk/pkg/dotc1z/dotc1z.go index 835a2958..0d64ea4c 100644 --- a/vendor/github.com/conductorone/baton-sdk/pkg/dotc1z/dotc1z.go +++ b/vendor/github.com/conductorone/baton-sdk/pkg/dotc1z/dotc1z.go @@ -50,7 +50,7 @@ func C1ZFileCheckHeader(f io.ReadSeeker) (bool, error) { } func NewExternalC1FileReader(ctx context.Context, tmpDir string, externalResourceC1ZPath string) (connectorstore.Reader, error) { - dbFilePath, err := loadC1z(externalResourceC1ZPath, tmpDir) + dbFilePath, _, err := decompressC1z(externalResourceC1ZPath, tmpDir) if err != nil { return nil, fmt.Errorf("error loading external resource c1z file: %w", err) } diff --git a/vendor/github.com/conductorone/baton-sdk/pkg/dotc1z/entitlements.go b/vendor/github.com/conductorone/baton-sdk/pkg/dotc1z/entitlements.go index 9456ae77..31b1aac6 100644 --- a/vendor/github.com/conductorone/baton-sdk/pkg/dotc1z/entitlements.go +++ b/vendor/github.com/conductorone/baton-sdk/pkg/dotc1z/entitlements.go @@ -5,7 +5,6 @@ import ( "fmt" "github.com/doug-martin/goqu/v9" - "google.golang.org/protobuf/proto" v2 "github.com/conductorone/baton-sdk/pb/c1/connector/v2" reader_v2 "github.com/conductorone/baton-sdk/pb/c1/reader/v2" @@ -57,25 +56,15 @@ func (c *C1File) ListEntitlements(ctx context.Context, request *v2.EntitlementsS ctx, span := tracer.Start(ctx, "C1File.ListEntitlements") defer span.End() - objs, nextPageToken, err := c.listConnectorObjects(ctx, entitlements.Name(), request) + objs, nextPageToken, err := listConnectorObjects(ctx, c, entitlements.Name(), request, func() *v2.Entitlement { return &v2.Entitlement{} }) if err != nil { return nil, fmt.Errorf("error listing entitlements: %w", err) } - ret := make([]*v2.Entitlement, 0, len(objs)) - for _, o := range objs { - en := &v2.Entitlement{} - err = proto.Unmarshal(o, en) - if err != nil { - return nil, err - } - ret = append(ret, en) - } - - return &v2.EntitlementsServiceListEntitlementsResponse{ - List: ret, + return v2.EntitlementsServiceListEntitlementsResponse_builder{ + List: objs, NextPageToken: nextPageToken, - }, nil + }.Build(), nil } func (c *C1File) GetEntitlement(ctx context.Context, request *reader_v2.EntitlementsReaderServiceGetEntitlementRequest) (*reader_v2.EntitlementsReaderServiceGetEntitlementResponse, error) { @@ -85,16 +74,26 @@ func (c *C1File) GetEntitlement(ctx context.Context, request *reader_v2.Entitlem ret := &v2.Entitlement{} syncId, err := annotations.GetSyncIdFromAnnotations(request.GetAnnotations()) if err != nil { - return nil, fmt.Errorf("error getting sync id from annotations for entitlement '%s': %w", request.EntitlementId, err) + return nil, fmt.Errorf("error getting sync id from annotations for entitlement '%s': %w", request.GetEntitlementId(), err) } - err = c.getConnectorObject(ctx, entitlements.Name(), request.EntitlementId, syncId, ret) + err = c.getConnectorObject(ctx, entitlements.Name(), request.GetEntitlementId(), syncId, ret) if err != nil { - return nil, fmt.Errorf("error fetching entitlement '%s': %w", request.EntitlementId, err) + return nil, fmt.Errorf("error fetching entitlement '%s': %w", request.GetEntitlementId(), err) } - return &reader_v2.EntitlementsReaderServiceGetEntitlementResponse{ + return reader_v2.EntitlementsReaderServiceGetEntitlementResponse_builder{ Entitlement: ret, - }, nil + }.Build(), nil +} + +func (c *C1File) ListStaticEntitlements(ctx context.Context, request *v2.EntitlementsServiceListStaticEntitlementsRequest) (*v2.EntitlementsServiceListStaticEntitlementsResponse, error) { + _, span := tracer.Start(ctx, "C1File.ListStaticEntitlements") + defer span.End() + + return v2.EntitlementsServiceListStaticEntitlementsResponse_builder{ + List: []*v2.Entitlement{}, + NextPageToken: "", + }.Build(), nil } func (c *C1File) PutEntitlements(ctx context.Context, entitlementObjs ...*v2.Entitlement) error { @@ -114,11 +113,15 @@ func (c *C1File) PutEntitlementsIfNewer(ctx context.Context, entitlementObjs ... type entitlementPutFunc func(context.Context, *C1File, string, func(m *v2.Entitlement) (goqu.Record, error), ...*v2.Entitlement) error func (c *C1File) putEntitlementsInternal(ctx context.Context, f entitlementPutFunc, entitlementObjs ...*v2.Entitlement) error { + if c.readOnly { + return ErrReadOnly + } + err := f(ctx, c, entitlements.Name(), func(entitlement *v2.Entitlement) (goqu.Record, error) { return goqu.Record{ - "resource_id": entitlement.Resource.Id.Resource, - "resource_type_id": entitlement.Resource.Id.ResourceType, + "resource_id": entitlement.GetResource().GetId().GetResource(), + "resource_type_id": entitlement.GetResource().GetId().GetResourceType(), }, nil }, entitlementObjs..., diff --git a/vendor/github.com/conductorone/baton-sdk/pkg/dotc1z/file.go b/vendor/github.com/conductorone/baton-sdk/pkg/dotc1z/file.go index 8e0b296e..b7096ce6 100644 --- a/vendor/github.com/conductorone/baton-sdk/pkg/dotc1z/file.go +++ b/vendor/github.com/conductorone/baton-sdk/pkg/dotc1z/file.go @@ -2,62 +2,101 @@ package dotc1z import ( "errors" + "fmt" "io" "os" "path/filepath" + "runtime" "syscall" "github.com/klauspost/compress/zstd" "go.uber.org/zap" + "google.golang.org/grpc/codes" + "google.golang.org/grpc/status" ) -func loadC1z(filePath string, tmpDir string, opts ...DecoderOption) (string, error) { - var err error - workingDir, err := os.MkdirTemp(tmpDir, "c1z") +// Note(kans): decompressC1z is unfortunately called to load or create a c1z file so the error handling is rough. +// It creates its own temporary directory so that it can also do its own cleanup. +// It returns that directory for verification in tests. +func decompressC1z(c1zPath string, workingDir string, opts ...DecoderOption) (string, string, error) { + tmpDir, err := os.MkdirTemp(workingDir, "c1z") if err != nil { - return "", err + return "", tmpDir, err } - defer func() { - if err != nil { - if removeErr := os.RemoveAll(workingDir); removeErr != nil { - err = errors.Join(err, removeErr) + + var dbFile *os.File + var c1zFile *os.File + var decoder *decoder + cleanupDir := func(e error) error { + if decoder != nil { + err := decoder.Close() + if err != nil { + e = errors.Join(e, err) } } - }() - dbFilePath := filepath.Join(workingDir, "db") - dbFile, err := os.Create(dbFilePath) + if c1zFile != nil { + err := c1zFile.Close() + if err != nil { + e = errors.Join(e, err) + } + } + if dbFile != nil { + err := dbFile.Close() + if err != nil { + e = errors.Join(e, err) + } + } + if e != nil { + err := os.RemoveAll(tmpDir) + if err != nil { + e = errors.Join(e, err) + } + } + return e + } + + dbFilePath := filepath.Join(tmpDir, "db") + dbFile, err = os.Create(dbFilePath) if err != nil { - return "", err + return "", tmpDir, cleanupDir(err) } - defer dbFile.Close() - if stat, err := os.Stat(filePath); err == nil && stat.Size() != 0 { - c1zFile, err := os.Open(filePath) - if err != nil { - return "", err - } - defer c1zFile.Close() + stat, err := os.Stat(c1zPath) + if err != nil || stat.Size() == 0 { + // TODO(kans): it would be nice to know more about the error.... + return dbFilePath, tmpDir, cleanupDir(nil) + } - r, err := NewDecoder(c1zFile, opts...) - if err != nil { - return "", err - } - _, err = io.Copy(dbFile, r) - if err != nil { - return "", err - } - err = r.Close() - if err != nil { - return "", err - } + c1zFile, err = os.Open(c1zPath) + if err != nil { + return "", tmpDir, cleanupDir(err) } - return dbFilePath, nil + decoder, err = NewDecoder(c1zFile, opts...) + if err != nil { + return "", tmpDir, cleanupDir(err) + } + + _, err = io.Copy(dbFile, decoder) + if err != nil { + return "", tmpDir, cleanupDir(err) + } + + // CRITICAL: Sync the database file before returning to ensure all + // decompressed data is on disk. On filesystems with aggressive caching + // (like ZFS with large ARC), SQLite might otherwise open the file and + // see incomplete data still in kernel buffers. + err = dbFile.Sync() + if err != nil { + return "", tmpDir, cleanupDir(err) + } + + return dbFilePath, tmpDir, cleanupDir(nil) } -func saveC1z(dbFilePath string, outputFilePath string) error { +func saveC1z(dbFilePath string, outputFilePath string, encoderConcurrency int) error { if outputFilePath == "" { - return errors.New("c1z: output file path not configured") + return status.Errorf(codes.InvalidArgument, "c1z: output file path not configured") } dbFile, err := os.Open(dbFilePath) @@ -65,9 +104,11 @@ func saveC1z(dbFilePath string, outputFilePath string) error { return err } defer func() { - err = dbFile.Close() - if err != nil { - zap.L().Error("failed to close db file", zap.Error(err)) + if dbFile != nil { + err = dbFile.Close() + if err != nil { + zap.L().Error("failed to close db file", zap.Error(err)) + } } }() @@ -75,7 +116,14 @@ func saveC1z(dbFilePath string, outputFilePath string) error { if err != nil { return err } - defer outFile.Close() + defer func() { + if outFile != nil { + err = outFile.Close() + if err != nil { + zap.L().Error("failed to close out file", zap.Error(err)) + } + } + }() // Write the magic file header _, err = outFile.Write(C1ZFileHeader) @@ -83,7 +131,15 @@ func saveC1z(dbFilePath string, outputFilePath string) error { return err } - c1z, err := zstd.NewWriter(outFile) + // zstd.WithEncoderConcurrency does not work the same as WithDecoderConcurrency. + // WithDecoderConcurrency uses GOMAXPROCS if set to 0. + // WithEncoderConcurrency errors if set to 0 (but defaults to GOMAXPROCS). + if encoderConcurrency == 0 { + encoderConcurrency = runtime.GOMAXPROCS(0) + } + c1z, err := zstd.NewWriter(outFile, + zstd.WithEncoderConcurrency(encoderConcurrency), + ) if err != nil { return err } @@ -95,12 +151,29 @@ func saveC1z(dbFilePath string, outputFilePath string) error { err = c1z.Flush() if err != nil { - return err + return fmt.Errorf("failed to flush c1z: %w", err) } err = c1z.Close() if err != nil { - return err + return fmt.Errorf("failed to close c1z: %w", err) + } + + err = outFile.Sync() + if err != nil { + return fmt.Errorf("failed to sync out file: %w", err) + } + + err = outFile.Close() + if err != nil { + return fmt.Errorf("failed to close out file: %w", err) + } + outFile = nil + + err = dbFile.Close() + if err != nil { + return fmt.Errorf("failed to close db file: %w", err) } + dbFile = nil return nil } diff --git a/vendor/github.com/conductorone/baton-sdk/pkg/dotc1z/grants.go b/vendor/github.com/conductorone/baton-sdk/pkg/dotc1z/grants.go index 4edc283d..c091d747 100644 --- a/vendor/github.com/conductorone/baton-sdk/pkg/dotc1z/grants.go +++ b/vendor/github.com/conductorone/baton-sdk/pkg/dotc1z/grants.go @@ -5,7 +5,6 @@ import ( "fmt" "github.com/doug-martin/goqu/v9" - "google.golang.org/protobuf/proto" v2 "github.com/conductorone/baton-sdk/pb/c1/connector/v2" reader_v2 "github.com/conductorone/baton-sdk/pb/c1/reader/v2" @@ -34,6 +33,8 @@ create unique index if not exists %s on %s (external_id, sync_id);` var grants = (*grantsTable)(nil) +var _ tableDescriptor = (*grantsTable)(nil) + type grantsTable struct{} func (r *grantsTable) Version() string { @@ -44,8 +45,8 @@ func (r *grantsTable) Name() string { return fmt.Sprintf("v%s_%s", r.Version(), grantsTableName) } -func (r *grantsTable) Schema() (string, []interface{}) { - return grantsTableSchema, []interface{}{ +func (r *grantsTable) Schema() (string, []any) { + return grantsTableSchema, []any{ r.Name(), fmt.Sprintf("idx_grants_resource_type_id_resource_id_v%s", r.Version()), r.Name(), @@ -66,25 +67,15 @@ func (c *C1File) ListGrants(ctx context.Context, request *v2.GrantsServiceListGr ctx, span := tracer.Start(ctx, "C1File.ListGrants") defer span.End() - objs, nextPageToken, err := c.listConnectorObjects(ctx, grants.Name(), request) + ret, nextPageToken, err := listConnectorObjects(ctx, c, grants.Name(), request, func() *v2.Grant { return &v2.Grant{} }) if err != nil { return nil, fmt.Errorf("error listing grants: %w", err) } - ret := make([]*v2.Grant, 0, len(objs)) - for _, o := range objs { - g := &v2.Grant{} - err = proto.Unmarshal(o, g) - if err != nil { - return nil, err - } - ret = append(ret, g) - } - - return &v2.GrantsServiceListGrantsResponse{ + return v2.GrantsServiceListGrantsResponse_builder{ List: ret, NextPageToken: nextPageToken, - }, nil + }.Build(), nil } func (c *C1File) GetGrant(ctx context.Context, request *reader_v2.GrantsReaderServiceGetGrantRequest) (*reader_v2.GrantsReaderServiceGetGrantResponse, error) { @@ -94,16 +85,16 @@ func (c *C1File) GetGrant(ctx context.Context, request *reader_v2.GrantsReaderSe ret := &v2.Grant{} syncId, err := annotations.GetSyncIdFromAnnotations(request.GetAnnotations()) if err != nil { - return nil, fmt.Errorf("error getting sync id from annotations for grant '%s': %w", request.GrantId, err) + return nil, fmt.Errorf("error getting sync id from annotations for grant '%s': %w", request.GetGrantId(), err) } - err = c.getConnectorObject(ctx, grants.Name(), request.GrantId, syncId, ret) + err = c.getConnectorObject(ctx, grants.Name(), request.GetGrantId(), syncId, ret) if err != nil { return nil, fmt.Errorf("error fetching grant '%s': %w", request.GetGrantId(), err) } - return &reader_v2.GrantsReaderServiceGetGrantResponse{ + return reader_v2.GrantsReaderServiceGetGrantResponse_builder{ Grant: ret, - }, nil + }.Build(), nil } func (c *C1File) ListGrantsForEntitlement( @@ -112,26 +103,15 @@ func (c *C1File) ListGrantsForEntitlement( ) (*reader_v2.GrantsReaderServiceListGrantsForEntitlementResponse, error) { ctx, span := tracer.Start(ctx, "C1File.ListGrantsForEntitlement") defer span.End() - - objs, nextPageToken, err := c.listConnectorObjects(ctx, grants.Name(), request) + ret, nextPageToken, err := listConnectorObjects(ctx, c, grants.Name(), request, func() *v2.Grant { return &v2.Grant{} }) if err != nil { return nil, fmt.Errorf("error listing grants for entitlement '%s': %w", request.GetEntitlement().GetId(), err) } - ret := make([]*v2.Grant, 0, len(objs)) - for _, o := range objs { - en := &v2.Grant{} - err = proto.Unmarshal(o, en) - if err != nil { - return nil, err - } - ret = append(ret, en) - } - - return &reader_v2.GrantsReaderServiceListGrantsForEntitlementResponse{ + return reader_v2.GrantsReaderServiceListGrantsForEntitlementResponse_builder{ List: ret, NextPageToken: nextPageToken, - }, nil + }.Build(), nil } func (c *C1File) ListGrantsForPrincipal( @@ -141,25 +121,15 @@ func (c *C1File) ListGrantsForPrincipal( ctx, span := tracer.Start(ctx, "C1File.ListGrantsForPrincipal") defer span.End() - objs, nextPageToken, err := c.listConnectorObjects(ctx, grants.Name(), request) + ret, nextPageToken, err := listConnectorObjects(ctx, c, grants.Name(), request, func() *v2.Grant { return &v2.Grant{} }) if err != nil { return nil, fmt.Errorf("error listing grants for principal '%s': %w", request.GetPrincipalId(), err) } - ret := make([]*v2.Grant, 0, len(objs)) - for _, o := range objs { - en := &v2.Grant{} - err = proto.Unmarshal(o, en) - if err != nil { - return nil, err - } - ret = append(ret, en) - } - - return &reader_v2.GrantsReaderServiceListGrantsForEntitlementResponse{ + return reader_v2.GrantsReaderServiceListGrantsForEntitlementResponse_builder{ List: ret, NextPageToken: nextPageToken, - }, nil + }.Build(), nil } func (c *C1File) ListGrantsForResourceType( @@ -169,25 +139,15 @@ func (c *C1File) ListGrantsForResourceType( ctx, span := tracer.Start(ctx, "C1File.ListGrantsForResourceType") defer span.End() - objs, nextPageToken, err := c.listConnectorObjects(ctx, grants.Name(), request) + ret, nextPageToken, err := listConnectorObjects(ctx, c, grants.Name(), request, func() *v2.Grant { return &v2.Grant{} }) if err != nil { return nil, fmt.Errorf("error listing grants for resource type '%s': %w", request.GetResourceTypeId(), err) } - ret := make([]*v2.Grant, 0, len(objs)) - for _, o := range objs { - en := &v2.Grant{} - err = proto.Unmarshal(o, en) - if err != nil { - return nil, err - } - ret = append(ret, en) - } - - return &reader_v2.GrantsReaderServiceListGrantsForResourceTypeResponse{ + return reader_v2.GrantsReaderServiceListGrantsForResourceTypeResponse_builder{ List: ret, NextPageToken: nextPageToken, - }, nil + }.Build(), nil } func (c *C1File) PutGrants(ctx context.Context, bulkGrants ...*v2.Grant) error { @@ -207,14 +167,18 @@ func (c *C1File) PutGrantsIfNewer(ctx context.Context, bulkGrants ...*v2.Grant) type grantPutFunc func(context.Context, *C1File, string, func(m *v2.Grant) (goqu.Record, error), ...*v2.Grant) error func (c *C1File) putGrantsInternal(ctx context.Context, f grantPutFunc, bulkGrants ...*v2.Grant) error { + if c.readOnly { + return ErrReadOnly + } + err := f(ctx, c, grants.Name(), func(grant *v2.Grant) (goqu.Record, error) { return goqu.Record{ - "resource_type_id": grant.Entitlement.Resource.Id.ResourceType, - "resource_id": grant.Entitlement.Resource.Id.Resource, - "entitlement_id": grant.Entitlement.Id, - "principal_resource_type_id": grant.Principal.Id.ResourceType, - "principal_resource_id": grant.Principal.Id.Resource, + "resource_type_id": grant.GetEntitlement().GetResource().GetId().GetResourceType(), + "resource_id": grant.GetEntitlement().GetResource().GetId().GetResource(), + "entitlement_id": grant.GetEntitlement().GetId(), + "principal_resource_type_id": grant.GetPrincipal().GetId().GetResourceType(), + "principal_resource_id": grant.GetPrincipal().GetId().GetResource(), }, nil }, bulkGrants..., diff --git a/vendor/github.com/conductorone/baton-sdk/pkg/dotc1z/manager/local/local.go b/vendor/github.com/conductorone/baton-sdk/pkg/dotc1z/manager/local/local.go index f07f6b6e..3f319079 100644 --- a/vendor/github.com/conductorone/baton-sdk/pkg/dotc1z/manager/local/local.go +++ b/vendor/github.com/conductorone/baton-sdk/pkg/dotc1z/manager/local/local.go @@ -59,10 +59,36 @@ func (l *localManager) copyFileToTmp(ctx context.Context) error { } defer f.Close() - _, err = io.Copy(tmp, f) + // Get source file size for verification + sourceStat, err := f.Stat() + if err != nil { + return fmt.Errorf("failed to stat source file: %w", err) + } + expectedSize := sourceStat.Size() + + written, err := io.Copy(tmp, f) if err != nil { return err } + + // CRITICAL: Sync to ensure all data is written before file is used. + // This is especially important on ZFS ARC where writes may be cached + // and reads can happen before buffers are flushed to disk. + if err := tmp.Sync(); err != nil { + return fmt.Errorf("failed to sync temp file: %w", err) + } + + // Verify file size matches what we wrote (defensive check) + stat, err := tmp.Stat() + if err != nil { + return fmt.Errorf("failed to stat temp file: %w", err) + } + if stat.Size() != written { + return fmt.Errorf("file size mismatch: wrote %d bytes but file is %d bytes", written, stat.Size()) + } + if written != expectedSize { + return fmt.Errorf("copy size mismatch: expected %d bytes from source but copied %d bytes", expectedSize, written) + } } return nil @@ -102,6 +128,7 @@ func (l *localManager) LoadC1Z(ctx context.Context) (*dotc1z.C1File, error) { "successfully loaded c1z locally", zap.String("file_path", l.filePath), zap.String("temp_path", l.tmpPath), + zap.String("tmp_dir", l.tmpDir), ) opts := []dotc1z.C1ZOption{ @@ -146,10 +173,17 @@ func (l *localManager) SaveC1Z(ctx context.Context) error { return err } + // CRITICAL: Sync to ensure data is written before function returns. + // This is especially important on ZFS ARC where writes may be cached. + if err := dstFile.Sync(); err != nil { + return fmt.Errorf("failed to sync destination file: %w", err) + } + log.Debug( "successfully saved c1z locally", zap.String("file_path", l.filePath), zap.String("temp_path", l.tmpPath), + zap.String("tmp_dir", l.tmpDir), zap.Int64("bytes", size), ) diff --git a/vendor/github.com/conductorone/baton-sdk/pkg/dotc1z/manager/s3/s3.go b/vendor/github.com/conductorone/baton-sdk/pkg/dotc1z/manager/s3/s3.go index 385b1bc4..dd9fbd22 100644 --- a/vendor/github.com/conductorone/baton-sdk/pkg/dotc1z/manager/s3/s3.go +++ b/vendor/github.com/conductorone/baton-sdk/pkg/dotc1z/manager/s3/s3.go @@ -53,11 +53,30 @@ func (s *s3Manager) copyToTempFile(ctx context.Context, r io.Reader) error { s.tmpFile = f.Name() if r != nil { - _, err = io.Copy(f, r) + written, err := io.Copy(f, r) if err != nil { _ = f.Close() return err } + + // CRITICAL: Sync to ensure all data is written before file is used. + // This is especially important on ZFS ARC where writes may be cached + // and reads can happen before buffers are flushed to disk. + if err := f.Sync(); err != nil { + _ = f.Close() + return fmt.Errorf("failed to sync temp file: %w", err) + } + + // Verify file size matches what we wrote (defensive check) + stat, err := f.Stat() + if err != nil { + _ = f.Close() + return fmt.Errorf("failed to stat temp file: %w", err) + } + if stat.Size() != written { + _ = f.Close() + return fmt.Errorf("file size mismatch: wrote %d bytes but file is %d bytes", written, stat.Size()) + } } return nil @@ -142,6 +161,7 @@ func (s *s3Manager) SaveC1Z(ctx context.Context) error { if err != nil { return err } + defer f.Close() if s.client == nil { return fmt.Errorf("attempting to save to s3 without a valid client") diff --git a/vendor/github.com/conductorone/baton-sdk/pkg/dotc1z/resouce_types.go b/vendor/github.com/conductorone/baton-sdk/pkg/dotc1z/resouce_types.go index 53a7f64e..ee02a847 100644 --- a/vendor/github.com/conductorone/baton-sdk/pkg/dotc1z/resouce_types.go +++ b/vendor/github.com/conductorone/baton-sdk/pkg/dotc1z/resouce_types.go @@ -4,8 +4,6 @@ import ( "context" "fmt" - "google.golang.org/protobuf/proto" - "github.com/doug-martin/goqu/v9" v2 "github.com/conductorone/baton-sdk/pb/c1/connector/v2" @@ -53,25 +51,15 @@ func (c *C1File) ListResourceTypes(ctx context.Context, request *v2.ResourceType ctx, span := tracer.Start(ctx, "C1File.ListResourceTypes") defer span.End() - objs, nextPageToken, err := c.listConnectorObjects(ctx, resourceTypes.Name(), request) + ret, nextPageToken, err := listConnectorObjects(ctx, c, resourceTypes.Name(), request, func() *v2.ResourceType { return &v2.ResourceType{} }) if err != nil { return nil, fmt.Errorf("error listing resource types: %w", err) } - ret := make([]*v2.ResourceType, 0, len(objs)) - for _, o := range objs { - rt := &v2.ResourceType{} - err = proto.Unmarshal(o, rt) - if err != nil { - return nil, err - } - ret = append(ret, rt) - } - - return &v2.ResourceTypesServiceListResourceTypesResponse{ + return v2.ResourceTypesServiceListResourceTypesResponse_builder{ List: ret, NextPageToken: nextPageToken, - }, nil + }.Build(), nil } func (c *C1File) GetResourceType(ctx context.Context, request *reader_v2.ResourceTypesReaderServiceGetResourceTypeRequest) (*reader_v2.ResourceTypesReaderServiceGetResourceTypeResponse, error) { @@ -81,16 +69,16 @@ func (c *C1File) GetResourceType(ctx context.Context, request *reader_v2.Resourc ret := &v2.ResourceType{} syncId, err := annotations.GetSyncIdFromAnnotations(request.GetAnnotations()) if err != nil { - return nil, fmt.Errorf("error getting sync id from annotations for resource type '%s': %w", request.ResourceTypeId, err) + return nil, fmt.Errorf("error getting sync id from annotations for resource type '%s': %w", request.GetResourceTypeId(), err) } - err = c.getConnectorObject(ctx, resourceTypes.Name(), request.ResourceTypeId, syncId, ret) + err = c.getConnectorObject(ctx, resourceTypes.Name(), request.GetResourceTypeId(), syncId, ret) if err != nil { - return nil, fmt.Errorf("error fetching resource type '%s': %w", request.ResourceTypeId, err) + return nil, fmt.Errorf("error fetching resource type '%s': %w", request.GetResourceTypeId(), err) } - return &reader_v2.ResourceTypesReaderServiceGetResourceTypeResponse{ + return reader_v2.ResourceTypesReaderServiceGetResourceTypeResponse_builder{ ResourceType: ret, - }, nil + }.Build(), nil } func (c *C1File) PutResourceTypes(ctx context.Context, resourceTypesObjs ...*v2.ResourceType) error { @@ -110,6 +98,10 @@ func (c *C1File) PutResourceTypesIfNewer(ctx context.Context, resourceTypesObjs type resourceTypePutFunc func(context.Context, *C1File, string, func(m *v2.ResourceType) (goqu.Record, error), ...*v2.ResourceType) error func (c *C1File) putResourceTypesInternal(ctx context.Context, f resourceTypePutFunc, resourceTypesObjs ...*v2.ResourceType) error { + if c.readOnly { + return ErrReadOnly + } + err := f(ctx, c, resourceTypes.Name(), func(resource *v2.ResourceType) (goqu.Record, error) { return nil, nil diff --git a/vendor/github.com/conductorone/baton-sdk/pkg/dotc1z/resources.go b/vendor/github.com/conductorone/baton-sdk/pkg/dotc1z/resources.go index b28b8bb5..7e350562 100644 --- a/vendor/github.com/conductorone/baton-sdk/pkg/dotc1z/resources.go +++ b/vendor/github.com/conductorone/baton-sdk/pkg/dotc1z/resources.go @@ -5,7 +5,6 @@ import ( "fmt" "github.com/doug-martin/goqu/v9" - "google.golang.org/protobuf/proto" "github.com/conductorone/baton-sdk/pkg/annotations" @@ -62,25 +61,15 @@ func (c *C1File) ListResources(ctx context.Context, request *v2.ResourcesService ctx, span := tracer.Start(ctx, "C1File.ListResources") defer span.End() - objs, nextPageToken, err := c.listConnectorObjects(ctx, resources.Name(), request) + ret, nextPageToken, err := listConnectorObjects(ctx, c, resources.Name(), request, func() *v2.Resource { return &v2.Resource{} }) if err != nil { return nil, fmt.Errorf("error listing resources: %w", err) } - ret := make([]*v2.Resource, 0, len(objs)) - for _, o := range objs { - rt := &v2.Resource{} - err = proto.Unmarshal(o, rt) - if err != nil { - return nil, err - } - ret = append(ret, rt) - } - - return &v2.ResourcesServiceListResourcesResponse{ + return v2.ResourcesServiceListResourcesResponse_builder{ List: ret, NextPageToken: nextPageToken, - }, nil + }.Build(), nil } func (c *C1File) GetResource(ctx context.Context, request *reader_v2.ResourcesReaderServiceGetResourceRequest) (*reader_v2.ResourcesReaderServiceGetResourceResponse, error) { @@ -90,16 +79,16 @@ func (c *C1File) GetResource(ctx context.Context, request *reader_v2.ResourcesRe ret := &v2.Resource{} syncId, err := annotations.GetSyncIdFromAnnotations(request.GetAnnotations()) if err != nil { - return nil, fmt.Errorf("error getting sync id from annotations for resource '%s': %w", request.ResourceId, err) + return nil, fmt.Errorf("error getting sync id from annotations for resource '%s': %w", request.GetResourceId(), err) } - err = c.getResourceObject(ctx, request.ResourceId, ret, syncId) + err = c.getResourceObject(ctx, request.GetResourceId(), ret, syncId) if err != nil { - return nil, fmt.Errorf("error fetching resource '%s': %w", request.ResourceId, err) + return nil, fmt.Errorf("error fetching resource '%s': %w", request.GetResourceId(), err) } - return &reader_v2.ResourcesReaderServiceGetResourceResponse{ + return reader_v2.ResourcesReaderServiceGetResourceResponse_builder{ Resource: ret, - }, nil + }.Build(), nil } func (c *C1File) PutResources(ctx context.Context, resourceObjs ...*v2.Resource) error { @@ -119,20 +108,24 @@ func (c *C1File) PutResourcesIfNewer(ctx context.Context, resourceObjs ...*v2.Re type resourcePutFunc func(context.Context, *C1File, string, func(m *v2.Resource) (goqu.Record, error), ...*v2.Resource) error func (c *C1File) putResourcesInternal(ctx context.Context, f resourcePutFunc, resourceObjs ...*v2.Resource) error { + if c.readOnly { + return ErrReadOnly + } + err := f(ctx, c, resources.Name(), func(resource *v2.Resource) (goqu.Record, error) { fields := goqu.Record{ - "resource_type_id": resource.Id.ResourceType, - "external_id": fmt.Sprintf("%s:%s", resource.Id.ResourceType, resource.Id.Resource), + "resource_type_id": resource.GetId().GetResourceType(), + "external_id": fmt.Sprintf("%s:%s", resource.GetId().GetResourceType(), resource.GetId().GetResource()), } // If we bulk insert some resources with parent ids and some without, goqu errors because of the different number of fields. - if resource.ParentResourceId == nil { + if !resource.HasParentResourceId() { fields["parent_resource_type_id"] = nil fields["parent_resource_id"] = nil } else { - fields["parent_resource_type_id"] = resource.ParentResourceId.ResourceType - fields["parent_resource_id"] = resource.ParentResourceId.Resource + fields["parent_resource_type_id"] = resource.GetParentResourceId().GetResourceType() + fields["parent_resource_id"] = resource.GetParentResourceId().GetResource() } return fields, nil }, diff --git a/vendor/github.com/conductorone/baton-sdk/pkg/dotc1z/session_store.go b/vendor/github.com/conductorone/baton-sdk/pkg/dotc1z/session_store.go new file mode 100644 index 00000000..796c0648 --- /dev/null +++ b/vendor/github.com/conductorone/baton-sdk/pkg/dotc1z/session_store.go @@ -0,0 +1,428 @@ +package dotc1z + +import ( + "context" + "fmt" + "maps" + "strings" + + "github.com/doug-martin/goqu/v9" + + "github.com/conductorone/baton-sdk/pkg/types/sessions" +) + +type SessionStore interface { + sessions.SessionStore +} + +var _ sessions.SessionStore = (*C1File)(nil) + +const sessionStoreTableVersion = "1" +const sessionStoreTableName = "connector_sessions" +const sessionStoreTableSchema = ` +CREATE TABLE IF NOT EXISTS %s ( + id integer primary key, + sync_id text NOT NULL, + key TEXT NOT NULL, + value BLOB NOT NULL +); +create unique index if not exists %s on %s (sync_id, key);` + +var sessionStore = (*sessionStoreTable)(nil) + +type sessionStoreTable struct{} + +func escapeLike(s string) string { + s = strings.ReplaceAll(s, `\`, `\\`) + s = strings.ReplaceAll(s, `%`, `\%`) + s = strings.ReplaceAll(s, `_`, `\_`) + return s +} + +func (r *sessionStoreTable) Name() string { + return fmt.Sprintf("v%s_%s", r.Version(), sessionStoreTableName) +} + +func (r *sessionStoreTable) Version() string { + return sessionStoreTableVersion +} + +func (r *sessionStoreTable) Schema() (string, []interface{}) { + return sessionStoreTableSchema, []interface{}{ + r.Name(), + fmt.Sprintf("idx_session_store_sync_key_v%s", r.Version()), + r.Name(), + } +} + +func (r *sessionStoreTable) Migrations(ctx context.Context, db *goqu.Database) error { + return nil +} + +func applyBag(ctx context.Context, opt ...sessions.SessionStoreOption) (*sessions.SessionStoreBag, error) { + bag := &sessions.SessionStoreBag{} + for _, o := range opt { + err := o(ctx, bag) + if err != nil { + return nil, fmt.Errorf("error applying session option: %w", err) + } + } + if bag.SyncID == "" { + return nil, fmt.Errorf("sync id is required") + } + return bag, nil +} + +// Get implements types.SessionCache. +func (c *C1File) Get(ctx context.Context, key string, opt ...sessions.SessionStoreOption) ([]byte, bool, error) { + bag, err := applyBag(ctx, opt...) + if err != nil { + return nil, false, fmt.Errorf("error applying session option: %w", err) + } + + q := c.db.From(sessionStore.Name()).Prepared(true) + q = q.Select("value") + q = q.Where(goqu.C("sync_id").Eq(bag.SyncID)) + q = q.Where(goqu.C("key").Eq(bag.Prefix + key)) + + sql, params, err := q.ToSQL() + if err != nil { + return nil, false, fmt.Errorf("error getting session: %w", err) + } + + rows, err := c.db.QueryContext(ctx, sql, params...) + if err != nil { + return nil, false, fmt.Errorf("error getting session: %w", err) + } + defer rows.Close() + + var ret []byte + found := false + + for rows.Next() { + err = rows.Scan(&ret) + if err != nil { + return nil, false, fmt.Errorf("error scanning session: %w", err) + } + found = true + } + + if err := rows.Err(); err != nil { + return nil, false, fmt.Errorf("error getting data from session: %w", err) + } + + return ret, found, nil +} + +// Set implements types.SessionStore. +func (c *C1File) Set(ctx context.Context, key string, value []byte, opt ...sessions.SessionStoreOption) error { + bag, err := applyBag(ctx, opt...) + if err != nil { + return fmt.Errorf("error applying session option: %w", err) + } + + // Use goqu's OnConflict for upsert behavior + q := c.db.Insert(sessionStore.Name()).Prepared(true) + q = q.Rows(goqu.Record{ + "sync_id": bag.SyncID, + "key": bag.Prefix + key, + "value": value, + }) + q = q.OnConflict(goqu.DoUpdate("sync_id, key", goqu.C("value").Set(value))) + + sql, params, err := q.ToSQL() + if err != nil { + return fmt.Errorf("error setting session: %w", err) + } + + _, err = c.db.ExecContext(ctx, sql, params...) + if err != nil { + return fmt.Errorf("error setting session: %w", err) + } + + return nil +} + +// SetMany implements types.SessionStore. +func (c *C1File) SetMany(ctx context.Context, values map[string][]byte, opt ...sessions.SessionStoreOption) error { + bag, err := applyBag(ctx, opt...) + if err != nil { + return fmt.Errorf("error applying session option: %w", err) + } + + if len(values) == 0 { + return nil + } + + // Build batch insert + var rows []interface{} + for key, value := range values { + rows = append(rows, goqu.Record{ + "sync_id": bag.SyncID, + "key": bag.Prefix + key, + "value": value, + }) + } + + q := c.db.Insert(sessionStore.Name()).Prepared(true) + q = q.Rows(rows...) + q = q.OnConflict(goqu.DoUpdate("sync_id, key", goqu.C("value").Set(goqu.I("EXCLUDED.value")))) + + sql, params, err := q.ToSQL() + if err != nil { + return fmt.Errorf("error setting many sessions: %w", err) + } + + _, err = c.db.ExecContext(ctx, sql, params...) + if err != nil { + return fmt.Errorf("error setting many sessions: %w", err) + } + + return nil +} + +// Delete implements types.SessionStore. +func (c *C1File) Delete(ctx context.Context, key string, opt ...sessions.SessionStoreOption) error { + bag, err := applyBag(ctx, opt...) + if err != nil { + return fmt.Errorf("error applying session option: %w", err) + } + + q := c.db.Delete(sessionStore.Name()).Prepared(true) + q = q.Where(goqu.C("sync_id").Eq(bag.SyncID)) + q = q.Where(goqu.C("key").Eq(bag.Prefix + key)) + + sql, params, err := q.ToSQL() + if err != nil { + return fmt.Errorf("error deleting session: %w", err) + } + + _, err = c.db.ExecContext(ctx, sql, params...) + if err != nil { + return fmt.Errorf("error deleting session: %w", err) + } + + return nil +} + +// Clear implements types.SessionStore. +func (c *C1File) Clear(ctx context.Context, opt ...sessions.SessionStoreOption) error { + bag, err := applyBag(ctx, opt...) + if err != nil { + return fmt.Errorf("error applying session option: %w", err) + } + + q := c.db.Delete(sessionStore.Name()).Prepared(true) + q = q.Where(goqu.C("sync_id").Eq(bag.SyncID)) + + if bag.Prefix != "" { + q = q.Where(goqu.C("key").Like(escapeLike(bag.Prefix) + "%")) + } + + sql, params, err := q.ToSQL() + if err != nil { + return fmt.Errorf("error clearing sessions: %w", err) + } + + _, err = c.db.ExecContext(ctx, sql, params...) + if err != nil { + return fmt.Errorf("error clearing sessions: %w", err) + } + + return nil +} + +// GetMany implements types.SessionStore. +func (c *C1File) GetMany(ctx context.Context, keys []string, opt ...sessions.SessionStoreOption) (map[string][]byte, []string, error) { + bag, err := applyBag(ctx, opt...) + if err != nil { + return nil, nil, fmt.Errorf("session-get-many: error applying session option: %w", err) + } + + if len(keys) == 0 { + return make(map[string][]byte), nil, nil + } + prefixedKeys := make([]string, len(keys)) + if bag.Prefix == "" { + prefixedKeys = keys + } else { + for i, key := range keys { + prefixedKeys[i] = bag.Prefix + key + } + } + + q := c.db.From(sessionStore.Name()).Prepared(true) + q = q.Select("key", "value") + q = q.Where(goqu.C("sync_id").Eq(bag.SyncID)) + q = q.Where(goqu.C("key").In(prefixedKeys)) + q = q.Order(goqu.C("key").Asc()) + + sql, params, err := q.ToSQL() + if err != nil { + return nil, nil, fmt.Errorf("session-get-many: error generating SQL: %w", err) + } + + rows, err := c.db.QueryContext(ctx, sql, params...) + if err != nil { + return nil, nil, fmt.Errorf("session-get-many: error executing SQL: %w", err) + } + defer rows.Close() + + unprocessedKeys := make(map[string]struct{}, len(keys)) + // Initialize unprocessedKeys with all keys - we'll remove them as we process results + // Start by calculating size of all unprocessed keys (they'll be in the return slice) + + type item struct { + key string + value []byte + } + results := make([]item, 0, len(keys)) + messageSize := 0 + for rows.Next() { + var key string + var value []byte + err = rows.Scan(&key, &value) + if err != nil { + return nil, nil, fmt.Errorf("session-get-many: error scanning row: %w", err) + } + // Remove prefix from key to return original key + if bag.Prefix != "" && len(key) >= len(bag.Prefix) && key[:len(bag.Prefix)] == bag.Prefix { + key = key[len(bag.Prefix):] + } + results = append(results, item{key: key, value: value}) + // 10 is extra padding. The key goes into the response unconditionally. + messageSize += len(key) + 10 + } + + if err := rows.Err(); err != nil { + return nil, nil, fmt.Errorf("session-get-many: error getting data from session: %w", err) + } + + ret := make(map[string][]byte) + for _, r := range results { + value := r.value + key := r.key + + netItemSize := len(value) + 10 // 10 is extra padding for overhead. + if messageSize+netItemSize <= sessions.MaxSessionStoreSizeLimit { + messageSize += netItemSize + ret[key] = value + } else { + unprocessedKeys[key] = struct{}{} + } + } + + unprocessedKeysSlice := make([]string, 0, len(unprocessedKeys)) + for key := range unprocessedKeys { + unprocessedKeysSlice = append(unprocessedKeysSlice, key) + } + return ret, unprocessedKeysSlice, nil +} + +// GetAll implements types.SessionStore. +func (c *C1File) GetAll(ctx context.Context, pageToken string, opt ...sessions.SessionStoreOption) (map[string][]byte, string, error) { + bag, err := applyBag(ctx, opt...) + if err != nil { + return nil, "", fmt.Errorf("session-get-all: error applying session option: %w", err) + } + + result := make(map[string][]byte) + messageSizeRemaining := sessions.MaxSessionStoreSizeLimit + for { + items, nextPageToken, itemsSize, err := c.getAllChunk(ctx, pageToken, messageSizeRemaining, bag) + if err != nil { + return nil, "", fmt.Errorf("session-get-all: error getting all data from session: %w", err) + } + maps.Copy(result, items) + + if len(items) == 0 { + break + } + + if nextPageToken == "" { + pageToken = "" + break + } + + if pageToken == nextPageToken { + return nil, "", fmt.Errorf("page token is the same as the next page token: %s", pageToken) + } + pageToken = nextPageToken + + messageSizeRemaining -= itemsSize + if messageSizeRemaining <= 0 { + break + } + } + + return result, pageToken, nil +} + +func (c *C1File) getAllChunk(ctx context.Context, pageToken string, sizeLimit int, bag *sessions.SessionStoreBag) (map[string][]byte, string, int, error) { + q := c.db.From(sessionStore.Name()).Prepared(true). + Select("key", "value"). + Where(goqu.C("sync_id").Eq(bag.SyncID)). + Order(goqu.C("key").Asc()). + Limit(100) + + if bag.Prefix != "" { + q = q.Where(goqu.C("key").Like(escapeLike(bag.Prefix) + "%")) + } + + if pageToken != "" { + q = q.Where(goqu.C("key").Gte(bag.Prefix + pageToken)) + } + + sql, params, err := q.ToSQL() + if err != nil { + return nil, "", 0, fmt.Errorf("session-get-all: error generating SQL: %w", err) + } + + rows, err := c.db.QueryContext(ctx, sql, params...) + if err != nil { + return nil, "", 0, fmt.Errorf("session-get-all: error executing SQL: %w", err) + } + defer rows.Close() + + result := make(map[string][]byte) + nextPageToken := "" + messageSize := 0 + tooBig := false + for rows.Next() { + var key string + var value []byte + err = rows.Scan(&key, &value) + if err != nil { + return nil, "", 0, fmt.Errorf("session-get-all: error scanning row: %w", err) + } + // Remove prefix from key to return original key + if bag.Prefix != "" && len(key) >= len(bag.Prefix) && key[:len(bag.Prefix)] == bag.Prefix { + key = key[len(bag.Prefix):] + } + nextPageToken = key + itemSize := len(key) + len(value) + 20 + if messageSize+itemSize > sizeLimit { + tooBig = true + break + } + if len(result) >= 100 { + break + } + result[key] = value + messageSize += itemSize + } + + if err := rows.Err(); err != nil { + return nil, "", 0, fmt.Errorf("session-get-all: error getting data from session: %w", err) + } + + if tooBig { + return result, nextPageToken, messageSize, nil + } + + if len(result) < 100 { + return result, "", messageSize, nil + } + + return result, nextPageToken, messageSize, nil +} diff --git a/vendor/github.com/conductorone/baton-sdk/pkg/dotc1z/sql_helpers.go b/vendor/github.com/conductorone/baton-sdk/pkg/dotc1z/sql_helpers.go index 60ede846..9c3efa34 100644 --- a/vendor/github.com/conductorone/baton-sdk/pkg/dotc1z/sql_helpers.go +++ b/vendor/github.com/conductorone/baton-sdk/pkg/dotc1z/sql_helpers.go @@ -2,9 +2,12 @@ package dotc1z import ( "context" + "database/sql" "errors" "fmt" + "runtime" "strconv" + "sync" "time" "github.com/doug-martin/goqu/v9" @@ -19,8 +22,13 @@ import ( v2 "github.com/conductorone/baton-sdk/pb/c1/connector/v2" ) +const bulkPutParallelThreshold = 100 +const insertChunkSize = 200 const maxPageSize = 10000 +// Use worker pool to limit goroutines. +var numWorkers = min(max(runtime.GOMAXPROCS(0), 1), 4) + var allTableDescriptors = []tableDescriptor{ resourceTypes, resources, @@ -28,11 +36,12 @@ var allTableDescriptors = []tableDescriptor{ grants, syncRuns, assets, + sessionStore, } type tableDescriptor interface { Name() string - Schema() (string, []interface{}) + Schema() (string, []any) Version() string Migrations(ctx context.Context, db *goqu.Database) error } @@ -69,6 +78,11 @@ type hasPrincipalIdListRequest interface { GetPrincipalId() *v2.ResourceId } +type hasPrincipalResourceTypeIDsListRequest interface { + listRequest + GetPrincipalResourceTypeIds() []string +} + type protoHasID interface { proto.Message GetId() string @@ -92,8 +106,8 @@ func (c *C1File) throttledWarnSlowQuery(ctx context.Context, query string, durat } // listConnectorObjects uses a connector list request to fetch the corresponding data from the local db. -// It returns the raw bytes that need to be unmarshalled into the correct proto message. -func (c *C1File) listConnectorObjects(ctx context.Context, tableName string, req proto.Message) ([][]byte, string, error) { +// It returns a slice of typed proto messages constructed via the provided factory function. +func listConnectorObjects[T proto.Message](ctx context.Context, c *C1File, tableName string, req listRequest, factory func() T) ([]T, string, error) { ctx, span := tracer.Start(ctx, "C1File.listConnectorObjects") defer span.End() @@ -102,13 +116,7 @@ func (c *C1File) listConnectorObjects(ctx context.Context, tableName string, req return nil, "", err } - // If this doesn't look like a list request, bail - listReq, ok := req.(listRequest) - if !ok { - return nil, "", fmt.Errorf("c1file: invalid list request") - } - - annoSyncID, err := annotations.GetSyncIdFromAnnotations(listReq.GetAnnotations()) + annoSyncID, err := annotations.GetSyncIdFromAnnotations(req.GetAnnotations()) if err != nil { return nil, "", fmt.Errorf("error getting sync id from annotations for list request: %w", err) } @@ -145,32 +153,39 @@ func (c *C1File) listConnectorObjects(ctx context.Context, tableName string, req if resourceIdReq, ok := req.(hasResourceIdListRequest); ok { r := resourceIdReq.GetResourceId() - if r != nil && r.Resource != "" { - q = q.Where(goqu.C("resource_id").Eq(r.Resource)) - q = q.Where(goqu.C("resource_type_id").Eq(r.ResourceType)) + if r != nil && r.GetResource() != "" { + q = q.Where(goqu.C("resource_id").Eq(r.GetResource())) + q = q.Where(goqu.C("resource_type_id").Eq(r.GetResourceType())) } } if resourceReq, ok := req.(hasResourceListRequest); ok { r := resourceReq.GetResource() if r != nil { - q = q.Where(goqu.C("resource_id").Eq(r.Id.Resource)) - q = q.Where(goqu.C("resource_type_id").Eq(r.Id.ResourceType)) + q = q.Where(goqu.C("resource_id").Eq(r.GetId().GetResource())) + q = q.Where(goqu.C("resource_type_id").Eq(r.GetId().GetResourceType())) } } if entitlementReq, ok := req.(hasEntitlementListRequest); ok { e := entitlementReq.GetEntitlement() if e != nil { - q = q.Where(goqu.C("entitlement_id").Eq(e.Id)) + q = q.Where(goqu.C("entitlement_id").Eq(e.GetId())) } } if principalIdReq, ok := req.(hasPrincipalIdListRequest); ok { p := principalIdReq.GetPrincipalId() if p != nil { - q = q.Where(goqu.C("principal_resource_id").Eq(p.Resource)) - q = q.Where(goqu.C("principal_resource_type_id").Eq(p.ResourceType)) + q = q.Where(goqu.C("principal_resource_id").Eq(p.GetResource())) + q = q.Where(goqu.C("principal_resource_type_id").Eq(p.GetResourceType())) + } + } + + if principalResourceTypeIDsReq, ok := req.(hasPrincipalResourceTypeIDsListRequest); ok { + p := principalResourceTypeIDsReq.GetPrincipalResourceTypeIds() + if len(p) > 0 { + q = q.Where(goqu.C("principal_resource_type_id").In(p)) } } @@ -179,32 +194,24 @@ func (c *C1File) listConnectorObjects(ctx context.Context, tableName string, req case reqSyncID != "": q = q.Where(goqu.C("sync_id").Eq(reqSyncID)) default: - var latestSyncRun *syncRun - var err error - latestSyncRun, err = c.getFinishedSync(ctx, 0, connectorstore.SyncTypeFull) + // Use cached sync run to avoid N+1 queries during pagination + latestSyncRun, err := c.getCachedViewSyncRun(ctx) if err != nil { return nil, "", err } - if latestSyncRun == nil { - latestSyncRun, err = c.getLatestUnfinishedSync(ctx, connectorstore.SyncTypeAny) - if err != nil { - return nil, "", err - } - } - if latestSyncRun != nil { q = q.Where(goqu.C("sync_id").Eq(latestSyncRun.ID)) } } // If a page token is provided, begin listing rows greater than or equal to the token - if listReq.GetPageToken() != "" { - q = q.Where(goqu.C("id").Gte(listReq.GetPageToken())) + if req.GetPageToken() != "" { + q = q.Where(goqu.C("id").Gte(req.GetPageToken())) } // Clamp the page size - pageSize := listReq.GetPageSize() + pageSize := req.GetPageSize() if pageSize > maxPageSize || pageSize == 0 { pageSize = maxPageSize } @@ -214,8 +221,6 @@ func (c *C1File) listConnectorObjects(ctx context.Context, tableName string, req // Select 1 more than we asked for so we know if there is another page q = q.Limit(uint(pageSize + 1)) - var ret [][]byte - query, args, err := q.ToSQL() if err != nil { return nil, "", err @@ -239,21 +244,29 @@ func (c *C1File) listConnectorObjects(ctx context.Context, tableName string, req c.throttledWarnSlowQuery(ctx, query, queryDuration) } + var unmarshalerOptions = proto.UnmarshalOptions{ + Merge: true, + DiscardUnknown: true, + } var count uint32 = 0 lastRow := 0 + var data sql.RawBytes + var ret []T for rows.Next() { count++ if count > pageSize { break } - rowId := 0 - data := make([]byte, 0) - err := rows.Scan(&rowId, &data) + err := rows.Scan(&lastRow, &data) if err != nil { return nil, "", err } - lastRow = rowId - ret = append(ret, data) + t := factory() + err = unmarshalerOptions.Unmarshal(data, t) + if err != nil { + return nil, "", err + } + ret = append(ret, t) } if rows.Err() != nil { return nil, "", rows.Err() @@ -263,48 +276,158 @@ func (c *C1File) listConnectorObjects(ctx context.Context, tableName string, req if count > pageSize { nextPageToken = strconv.Itoa(lastRow + 1) } - return ret, nextPageToken, nil } -var protoMarshaler = proto.MarshalOptions{Deterministic: true} +var protoMarshaler = proto.MarshalOptions{Deterministic: false} -// prepareConnectorObjectRows prepares the rows for bulk insertion. -func prepareConnectorObjectRows[T proto.Message]( +// prepareSingleConnectorObjectRow processes a single message and returns the prepared record. +func prepareSingleConnectorObjectRow[T proto.Message]( + c *C1File, + msg T, + extractFields func(m T) (goqu.Record, error), +) (*goqu.Record, error) { + messageBlob, err := protoMarshaler.Marshal(msg) + if err != nil { + return nil, err + } + + fields, err := extractFields(msg) + if err != nil { + return nil, err + } + if fields == nil { + fields = goqu.Record{} + } + + if _, idSet := fields["external_id"]; !idSet { + idGetter, ok := any(msg).(protoHasID) + if !ok { + return nil, fmt.Errorf("unable to get ID for object") + } + fields["external_id"] = idGetter.GetId() + } + fields["data"] = messageBlob + fields["sync_id"] = c.currentSyncID + fields["discovered_at"] = time.Now().Format("2006-01-02 15:04:05.999999999") + + return &fields, nil +} + +// prepareConnectorObjectRowsSerial prepares rows sequentially for bulk insertion. +func prepareConnectorObjectRowsSerial[T proto.Message]( c *C1File, msgs []T, extractFields func(m T) (goqu.Record, error), ) ([]*goqu.Record, error) { rows := make([]*goqu.Record, len(msgs)) for i, m := range msgs { - messageBlob, err := protoMarshaler.Marshal(m) + row, err := prepareSingleConnectorObjectRow(c, m, extractFields) if err != nil { return nil, err } + rows[i] = row + } + return rows, nil +} - fields, err := extractFields(m) - if err != nil { - return nil, err - } - if fields == nil { - fields = goqu.Record{} +// prepareConnectorObjectRowsParallel prepares rows for bulk insertion using parallel processing. +// For batches smaller than bulkPutParallelThreshold, it falls back to sequential processing. +func prepareConnectorObjectRowsParallel[T proto.Message]( + c *C1File, + msgs []T, + extractFields func(m T) (goqu.Record, error), +) ([]*goqu.Record, error) { + if len(msgs) == 0 { + return nil, nil + } + + protoMarshallers := make([]proto.MarshalOptions, numWorkers) + for i := range numWorkers { + // Don't enable deterministic marshaling, as it sorts keys in lexicographical order which hurts performance. + protoMarshallers[i] = proto.MarshalOptions{} + } + + rows := make([]*goqu.Record, len(msgs)) + errs := make([]error, len(msgs)) + + // Capture values that are the same for all rows (avoid repeated access) + syncID := c.currentSyncID + discoveredAt := time.Now().Format("2006-01-02 15:04:05.999999999") + + chunkSize := (len(msgs) + numWorkers - 1) / numWorkers + + var wg sync.WaitGroup + + for w := range numWorkers { + start := w * chunkSize + end := min(start+chunkSize, len(msgs)) + if start >= len(msgs) { + break } - if _, idSet := fields["external_id"]; !idSet { - idGetter, ok := any(m).(protoHasID) - if !ok { - return nil, fmt.Errorf("unable to get ID for object") + wg.Add(1) + go func(start, end int, worker int) { + defer wg.Done() + for i := start; i < end; i++ { + m := msgs[i] + + messageBlob, err := protoMarshallers[worker].Marshal(m) + if err != nil { + errs[i] = err + continue + } + + fields, err := extractFields(m) + if err != nil { + errs[i] = err + continue + } + if fields == nil { + fields = goqu.Record{} + } + + if _, idSet := fields["external_id"]; !idSet { + idGetter, ok := any(m).(protoHasID) + if !ok { + errs[i] = fmt.Errorf("unable to get ID for object at index %d", i) + continue + } + fields["external_id"] = idGetter.GetId() + } + fields["data"] = messageBlob + fields["sync_id"] = syncID + fields["discovered_at"] = discoveredAt + rows[i] = &fields } - fields["external_id"] = idGetter.GetId() + }(start, end, w) + } + + wg.Wait() + + // Check for errors (return first error encountered) + for i, err := range errs { + if err != nil { + return nil, fmt.Errorf("error preparing row %d: %w", i, err) } - fields["data"] = messageBlob - fields["sync_id"] = c.currentSyncID - fields["discovered_at"] = time.Now().Format("2006-01-02 15:04:05.999999999") - rows[i] = &fields } + return rows, nil } +// prepareConnectorObjectRows prepares the rows for bulk insertion. +// It uses parallel processing if the row count is greater than bulkPutParallelThreshold. +func prepareConnectorObjectRows[T proto.Message]( + c *C1File, + msgs []T, + extractFields func(m T) (goqu.Record, error), +) ([]*goqu.Record, error) { + if len(msgs) > bulkPutParallelThreshold { + return prepareConnectorObjectRowsParallel(c, msgs, extractFields) + } + return prepareConnectorObjectRowsSerial(c, msgs, extractFields) +} + // executeChunkedInsert executes the insert query in chunks. func executeChunkedInsert( ctx context.Context, @@ -313,7 +436,7 @@ func executeChunkedInsert( rows []*goqu.Record, buildQueryFn func(*goqu.InsertDataset, []*goqu.Record) (*goqu.InsertDataset, error), ) error { - chunkSize := 100 + chunkSize := insertChunkSize chunks := len(rows) / chunkSize if len(rows)%chunkSize != 0 { chunks++ @@ -457,8 +580,8 @@ func (c *C1File) getResourceObject(ctx context.Context, resourceID *v2.ResourceI q := c.db.From(resources.Name()).Prepared(true) q = q.Select("data") - q = q.Where(goqu.C("resource_type_id").Eq(resourceID.ResourceType)) - q = q.Where(goqu.C("external_id").Eq(fmt.Sprintf("%s:%s", resourceID.ResourceType, resourceID.Resource))) + q = q.Where(goqu.C("resource_type_id").Eq(resourceID.GetResourceType())) + q = q.Where(goqu.C("external_id").Eq(fmt.Sprintf("%s:%s", resourceID.GetResourceType(), resourceID.GetResource()))) switch { case syncID != "": diff --git a/vendor/github.com/conductorone/baton-sdk/pkg/dotc1z/sync_runs.go b/vendor/github.com/conductorone/baton-sdk/pkg/dotc1z/sync_runs.go index 08157f2f..e2b4ee78 100644 --- a/vendor/github.com/conductorone/baton-sdk/pkg/dotc1z/sync_runs.go +++ b/vendor/github.com/conductorone/baton-sdk/pkg/dotc1z/sync_runs.go @@ -95,6 +95,42 @@ type syncRun struct { ParentSyncID string } +// getCachedViewSyncRun returns the cached sync run for read operations. +// This avoids N+1 queries when paginating through listConnectorObjects. +// The cache is invalidated when a sync starts or ends. +func (c *C1File) getCachedViewSyncRun(ctx context.Context) (*syncRun, error) { + ctx, span := tracer.Start(ctx, "C1File.getCachedViewSyncRun") + defer span.End() + + c.cachedViewSyncMu.Lock() + defer c.cachedViewSyncMu.Unlock() + + if c.cachedViewSyncRun != nil || c.cachedViewSyncErr != nil { + return c.cachedViewSyncRun, c.cachedViewSyncErr + } + + // First try to get a finished full sync + c.cachedViewSyncRun, c.cachedViewSyncErr = c.getFinishedSync(ctx, 0, connectorstore.SyncTypeFull) + if c.cachedViewSyncErr != nil { + return c.cachedViewSyncRun, c.cachedViewSyncErr + } + + // If no finished sync, try to get an unfinished one + if c.cachedViewSyncRun == nil { + c.cachedViewSyncRun, c.cachedViewSyncErr = c.getLatestUnfinishedSync(ctx, connectorstore.SyncTypeAny) + } + + return c.cachedViewSyncRun, c.cachedViewSyncErr +} + +// invalidateCachedViewSyncRun clears the cached sync run so it will be recomputed on next access. +func (c *C1File) invalidateCachedViewSyncRun() { + c.cachedViewSyncMu.Lock() + defer c.cachedViewSyncMu.Unlock() + c.cachedViewSyncRun = nil + c.cachedViewSyncErr = nil +} + func (c *C1File) getLatestUnfinishedSync(ctx context.Context, syncType connectorstore.SyncType) (*syncRun, error) { ctx, span := tracer.Start(ctx, "C1File.getLatestUnfinishedSync") defer span.End() @@ -359,6 +395,10 @@ func (c *C1File) CheckpointSync(ctx context.Context, syncToken string) error { ctx, span := tracer.Start(ctx, "C1File.CheckpointSync") defer span.End() + if c.readOnly { + return ErrReadOnly + } + err := c.validateSyncDb(ctx) if err != nil { return err @@ -468,6 +508,12 @@ func (c *C1File) StartOrResumeSync(ctx context.Context, syncType connectorstore. return c.currentSyncID, true, nil } +// SetSyncID sets the current sync ID. This is only intended for testing. +func (c *C1File) SetSyncID(_ context.Context, syncID string) error { + c.currentSyncID = syncID + return nil +} + func (c *C1File) StartNewSync(ctx context.Context, syncType connectorstore.SyncType, parentSyncID string) (string, error) { ctx, span := tracer.Start(ctx, "C1File.StartNewSync") defer span.End() @@ -506,11 +552,16 @@ func (c *C1File) StartNewSync(ctx context.Context, syncType connectorstore.SyncT } c.currentSyncID = syncID + c.invalidateCachedViewSyncRun() return c.currentSyncID, nil } func (c *C1File) insertSyncRun(ctx context.Context, syncID string, syncType connectorstore.SyncType, parentSyncID string) error { + if c.readOnly { + return ErrReadOnly + } + q := c.db.Insert(syncRuns.Name()) q = q.Rows(goqu.Record{ "sync_id": syncID, @@ -560,6 +611,7 @@ func (c *C1File) EndSync(ctx context.Context) error { } c.currentSyncID = "" + c.invalidateCachedViewSyncRun() return nil } @@ -672,10 +724,12 @@ func (c *C1File) Cleanup(ctx context.Context) error { } } + l.Debug("vacuuming database") err = c.Vacuum(ctx) if err != nil { return err } + l.Debug("vacuum complete") c.dbUpdated = true @@ -747,73 +801,73 @@ func (c *C1File) GetSync(ctx context.Context, request *reader_v2.SyncsReaderServ ctx, span := tracer.Start(ctx, "C1File.GetSync") defer span.End() - sr, err := c.getSync(ctx, request.SyncId) + sr, err := c.getSync(ctx, request.GetSyncId()) if err != nil { - return nil, fmt.Errorf("error getting sync '%s': %w", request.SyncId, err) + return nil, fmt.Errorf("error getting sync '%s': %w", request.GetSyncId(), err) } - return &reader_v2.SyncsReaderServiceGetSyncResponse{ - Sync: &reader_v2.SyncRun{ + return reader_v2.SyncsReaderServiceGetSyncResponse_builder{ + Sync: reader_v2.SyncRun_builder{ Id: sr.ID, StartedAt: toTimeStamp(sr.StartedAt), EndedAt: toTimeStamp(sr.EndedAt), SyncToken: sr.SyncToken, SyncType: string(sr.Type), ParentSyncId: sr.ParentSyncID, - }, - }, nil + }.Build(), + }.Build(), nil } func (c *C1File) ListSyncs(ctx context.Context, request *reader_v2.SyncsReaderServiceListSyncsRequest) (*reader_v2.SyncsReaderServiceListSyncsResponse, error) { ctx, span := tracer.Start(ctx, "C1File.ListSyncs") defer span.End() - syncs, nextPageToken, err := c.ListSyncRuns(ctx, request.PageToken, request.PageSize) + syncs, nextPageToken, err := c.ListSyncRuns(ctx, request.GetPageToken(), request.GetPageSize()) if err != nil { return nil, fmt.Errorf("error listing syncs: %w", err) } syncRuns := make([]*reader_v2.SyncRun, len(syncs)) for i, sr := range syncs { - syncRuns[i] = &reader_v2.SyncRun{ + syncRuns[i] = reader_v2.SyncRun_builder{ Id: sr.ID, StartedAt: toTimeStamp(sr.StartedAt), EndedAt: toTimeStamp(sr.EndedAt), SyncToken: sr.SyncToken, SyncType: string(sr.Type), ParentSyncId: sr.ParentSyncID, - } + }.Build() } - return &reader_v2.SyncsReaderServiceListSyncsResponse{ + return reader_v2.SyncsReaderServiceListSyncsResponse_builder{ Syncs: syncRuns, NextPageToken: nextPageToken, - }, nil + }.Build(), nil } func (c *C1File) GetLatestFinishedSync(ctx context.Context, request *reader_v2.SyncsReaderServiceGetLatestFinishedSyncRequest) (*reader_v2.SyncsReaderServiceGetLatestFinishedSyncResponse, error) { ctx, span := tracer.Start(ctx, "C1File.GetLatestFinishedSync") defer span.End() - sync, err := c.getFinishedSync(ctx, 0, connectorstore.SyncType(request.SyncType)) + sync, err := c.getFinishedSync(ctx, 0, connectorstore.SyncType(request.GetSyncType())) if err != nil { return nil, fmt.Errorf("error fetching latest finished sync: %w", err) } if sync == nil { - return &reader_v2.SyncsReaderServiceGetLatestFinishedSyncResponse{ + return reader_v2.SyncsReaderServiceGetLatestFinishedSyncResponse_builder{ Sync: nil, - }, nil + }.Build(), nil } - return &reader_v2.SyncsReaderServiceGetLatestFinishedSyncResponse{ - Sync: &reader_v2.SyncRun{ + return reader_v2.SyncsReaderServiceGetLatestFinishedSyncResponse_builder{ + Sync: reader_v2.SyncRun_builder{ Id: sync.ID, StartedAt: toTimeStamp(sync.StartedAt), EndedAt: toTimeStamp(sync.EndedAt), SyncToken: sync.SyncToken, SyncType: string(sync.Type), ParentSyncId: sync.ParentSyncID, - }, - }, nil + }.Build(), + }.Build(), nil } diff --git a/vendor/github.com/conductorone/baton-sdk/pkg/ratelimit/grpc.go b/vendor/github.com/conductorone/baton-sdk/pkg/ratelimit/grpc.go index e288b995..cd6351cb 100644 --- a/vendor/github.com/conductorone/baton-sdk/pkg/ratelimit/grpc.go +++ b/vendor/github.com/conductorone/baton-sdk/pkg/ratelimit/grpc.go @@ -52,30 +52,34 @@ type hasResourceType interface { } func getRatelimitDescriptors(ctx context.Context, method string, in interface{}, descriptors ...*ratelimitV1.RateLimitDescriptors_Entry) *ratelimitV1.RateLimitDescriptors { - ret := &ratelimitV1.RateLimitDescriptors{ + ret := ratelimitV1.RateLimitDescriptors_builder{ Entries: descriptors, - } + }.Build() - ret.Entries = append(ret.Entries, &ratelimitV1.RateLimitDescriptors_Entry{ + ret.SetEntries(append(ret.GetEntries(), ratelimitV1.RateLimitDescriptors_Entry_builder{ Key: descriptorKeyConnectorMethod, Value: method, - }) + }.Build())) // ListEntitlements, ListGrants if req, ok := in.(hasResource); ok { - ret.Entries = append(ret.Entries, &ratelimitV1.RateLimitDescriptors_Entry{ - Key: descriptorKeyConnectorResourceType, - Value: req.GetResource().Id.ResourceType, - }) + if resourceType := req.GetResource().GetId().GetResourceType(); resourceType != "" { + ret.SetEntries(append(ret.GetEntries(), ratelimitV1.RateLimitDescriptors_Entry_builder{ + Key: descriptorKeyConnectorResourceType, + Value: resourceType, + }.Build())) + } return ret } - // ListResources + // ListResources, ListActionSchemas if req, ok := in.(hasResourceType); ok { - ret.Entries = append(ret.Entries, &ratelimitV1.RateLimitDescriptors_Entry{ - Key: descriptorKeyConnectorResourceType, - Value: req.GetResourceTypeId(), - }) + if resourceTypeID := req.GetResourceTypeId(); resourceTypeID != "" { + ret.SetEntries(append(ret.GetEntries(), ratelimitV1.RateLimitDescriptors_Entry_builder{ + Key: descriptorKeyConnectorResourceType, + Value: resourceTypeID, + }.Build())) + } return ret } @@ -102,19 +106,19 @@ func UnaryInterceptor(now func() time.Time, descriptors ...*ratelimitV1.RateLimi rlDescriptors := getRatelimitDescriptors(ctx, method, req, descriptors...) for { - rlReq := &ratelimitV1.DoRequest{ + rlReq := ratelimitV1.DoRequest_builder{ RequestToken: token, Service: connectorServiceKey, Descriptors: rlDescriptors, - } + }.Build() resp, err := rlClient.Do(ctx, rlReq) if err != nil { l.Error("ratelimit: error", zap.Error(err)) return status.Error(codes.Unknown, err.Error()) } - token = resp.RequestToken + token = resp.GetRequestToken() - switch resp.Description.Status { + switch resp.GetDescription().GetStatus() { case ratelimitV1.RateLimitDescription_STATUS_OK, ratelimitV1.RateLimitDescription_STATUS_EMPTY: l.Debug("ratelimit ok - calling method", zap.String("method", method)) err = invoker(ctx, method, req, reply, cc, opts...) @@ -122,7 +126,7 @@ func UnaryInterceptor(now func() time.Time, descriptors ...*ratelimitV1.RateLimi rlErr := reportRatelimit( ctx, rlClient, - rlReq.RequestToken, + rlReq.GetRequestToken(), ratelimitV1.RateLimitDescription_STATUS_ERROR, rlDescriptors, nil, @@ -137,7 +141,7 @@ func UnaryInterceptor(now func() time.Time, descriptors ...*ratelimitV1.RateLimi if reply != nil { if resp, ok := req.(hasAnnos); ok { - err = reportRatelimit(ctx, rlClient, rlReq.RequestToken, ratelimitV1.RateLimitDescription_STATUS_OK, rlDescriptors, resp.GetAnnotations()) + err = reportRatelimit(ctx, rlClient, rlReq.GetRequestToken(), ratelimitV1.RateLimitDescription_STATUS_OK, rlDescriptors, resp.GetAnnotations()) if err != nil { l.Error("ratelimit: error reporting rate limit", zap.Error(err)) return nil // Explicitly not failing the request as it has already been run successfully. @@ -148,7 +152,7 @@ func UnaryInterceptor(now func() time.Time, descriptors ...*ratelimitV1.RateLimi return nil case ratelimitV1.RateLimitDescription_STATUS_OVERLIMIT: - resetAt := resp.Description.ResetAt.AsTime() + resetAt := resp.GetDescription().GetResetAt().AsTime() d, ok := wait(start, now().UTC(), resetAt) if !ok { l.Error("ratelimit: timeout") @@ -184,21 +188,21 @@ func reportRatelimit( l := ctxzap.Extract(ctx) annos := annotations.Annotations(anys) - rlAnnotation := &ratelimitV1.RateLimitDescription{ + rlAnnotation := ratelimitV1.RateLimitDescription_builder{ Status: status, - } + }.Build() _, err := annos.Pick(rlAnnotation) if err != nil { return err } - _, err = rlClient.Report(ctx, &ratelimitV1.ReportRequest{ + _, err = rlClient.Report(ctx, ratelimitV1.ReportRequest_builder{ RequestToken: token, Description: rlAnnotation, Descriptors: descriptors, Service: "connector", - }) + }.Build()) if err != nil { l.Error("ratelimit: report failed", zap.Error(err)) return err diff --git a/vendor/github.com/conductorone/baton-sdk/pkg/ratelimit/http.go b/vendor/github.com/conductorone/baton-sdk/pkg/ratelimit/http.go index 2e6e3a41..a693ea5e 100644 --- a/vendor/github.com/conductorone/baton-sdk/pkg/ratelimit/http.go +++ b/vendor/github.com/conductorone/baton-sdk/pkg/ratelimit/http.go @@ -121,10 +121,10 @@ func ExtractRateLimitData(statusCode int, header *http.Header) (*v2.RateLimitDes resetAt = time.Now().Add(time.Second * 60) } - return &v2.RateLimitDescription{ + return v2.RateLimitDescription_builder{ Status: rlstatus, Limit: limit, Remaining: remaining, ResetAt: timestamppb.New(resetAt), - }, nil + }.Build(), nil } diff --git a/vendor/github.com/conductorone/baton-sdk/pkg/ratelimit/mem_ratelimiter.go b/vendor/github.com/conductorone/baton-sdk/pkg/ratelimit/mem_ratelimiter.go index ec27d7f2..5e182ac4 100644 --- a/vendor/github.com/conductorone/baton-sdk/pkg/ratelimit/mem_ratelimiter.go +++ b/vendor/github.com/conductorone/baton-sdk/pkg/ratelimit/mem_ratelimiter.go @@ -21,22 +21,22 @@ type MemRateLimiter struct { // TODO func (m *MemRateLimiter) Do(ctx context.Context, req *ratelimitV1.DoRequest) (*ratelimitV1.DoResponse, error) { if m.limiter == nil { - return &ratelimitV1.DoResponse{ - RequestToken: req.RequestToken, - Description: &ratelimitV1.RateLimitDescription{ + return ratelimitV1.DoResponse_builder{ + RequestToken: req.GetRequestToken(), + Description: ratelimitV1.RateLimitDescription_builder{ Status: ratelimitV1.RateLimitDescription_STATUS_EMPTY, - }, - }, nil + }.Build(), + }.Build(), nil } m.limiter.Take() - return &ratelimitV1.DoResponse{ - RequestToken: req.RequestToken, - Description: &ratelimitV1.RateLimitDescription{ + return ratelimitV1.DoResponse_builder{ + RequestToken: req.GetRequestToken(), + Description: ratelimitV1.RateLimitDescription_builder{ Status: ratelimitV1.RateLimitDescription_STATUS_EMPTY, - }, - }, nil + }.Build(), + }.Build(), nil } // Report updates the rate limiter with relevant information. @@ -53,20 +53,20 @@ func (m *MemRateLimiter) Report(ctx context.Context, req *ratelimitV1.ReportRequ } desc := req.GetDescription() - if desc.ResetAt == nil { + if !desc.HasResetAt() { return &ratelimitV1.ReportResponse{}, nil } - if desc.Remaining == 0 { + if desc.GetRemaining() == 0 { return &ratelimitV1.ReportResponse{}, nil } - resetAt := desc.ResetAt.AsTime().UTC() + resetAt := desc.GetResetAt().AsTime().UTC() windowDuration := resetAt.Sub(m.now()) if windowDuration > 5*time.Minute { windowDuration = 5 * time.Minute } - remaining := int64(m.usePercent * float64(desc.Remaining)) + remaining := int64(m.usePercent * float64(desc.GetRemaining())) if remaining < 1 { remaining = 1 } @@ -75,7 +75,7 @@ func (m *MemRateLimiter) Report(ctx context.Context, req *ratelimitV1.ReportRequ ctxzap.Extract(ctx).Debug( "updating rate limiter", zap.Int64("calculated_remaining", remaining), - zap.Int64("remaining", desc.Remaining), + zap.Int64("remaining", desc.GetRemaining()), zap.Int64("rate", limiterSize), zap.Time("reset_at", resetAt), ) diff --git a/vendor/github.com/conductorone/baton-sdk/pkg/ratelimit/noop_ratelimiter.go b/vendor/github.com/conductorone/baton-sdk/pkg/ratelimit/noop_ratelimiter.go index 1a6f3432..5734443e 100644 --- a/vendor/github.com/conductorone/baton-sdk/pkg/ratelimit/noop_ratelimiter.go +++ b/vendor/github.com/conductorone/baton-sdk/pkg/ratelimit/noop_ratelimiter.go @@ -9,12 +9,12 @@ import ( type NoOpRateLimiter struct{} func (r *NoOpRateLimiter) Do(ctx context.Context, req *v1.DoRequest) (*v1.DoResponse, error) { - return &v1.DoResponse{ - RequestToken: req.RequestToken, - Description: &v1.RateLimitDescription{ + return v1.DoResponse_builder{ + RequestToken: req.GetRequestToken(), + Description: v1.RateLimitDescription_builder{ Status: v1.RateLimitDescription_STATUS_EMPTY, - }, - }, nil + }.Build(), + }.Build(), nil } func (r *NoOpRateLimiter) Report(ctx context.Context, req *v1.ReportRequest) (*v1.ReportResponse, error) { diff --git a/vendor/github.com/conductorone/baton-sdk/pkg/ratelimit/ratelimit.go b/vendor/github.com/conductorone/baton-sdk/pkg/ratelimit/ratelimit.go index a580a8de..e94f41bb 100644 --- a/vendor/github.com/conductorone/baton-sdk/pkg/ratelimit/ratelimit.go +++ b/vendor/github.com/conductorone/baton-sdk/pkg/ratelimit/ratelimit.go @@ -28,11 +28,11 @@ func NewLimiter(ctx context.Context, now func() time.Time, cfg *ratelimitV1.Rate } if c := cfg.GetSlidingMem(); c != nil { - return NewSlidingMemoryRateLimiter(ctx, now, c.UsePercent), nil + return NewSlidingMemoryRateLimiter(ctx, now, c.GetUsePercent()), nil } if c := cfg.GetFixedMem(); c != nil { - return NewFixedMemoryRateLimiter(ctx, now, c.Rate, c.Period.AsDuration()), nil + return NewFixedMemoryRateLimiter(ctx, now, c.GetRate(), c.GetPeriod().AsDuration()), nil } if c := cfg.GetExternal(); c != nil { diff --git a/vendor/github.com/conductorone/baton-sdk/pkg/sdk/empty_connector.go b/vendor/github.com/conductorone/baton-sdk/pkg/sdk/empty_connector.go index 2667bbab..4126ad1b 100644 --- a/vendor/github.com/conductorone/baton-sdk/pkg/sdk/empty_connector.go +++ b/vendor/github.com/conductorone/baton-sdk/pkg/sdk/empty_connector.go @@ -22,16 +22,16 @@ func (n *emptyConnector) ListResourceTypes( request *v2.ResourceTypesServiceListResourceTypesRequest, opts ...grpc.CallOption, ) (*v2.ResourceTypesServiceListResourceTypesResponse, error) { - return &v2.ResourceTypesServiceListResourceTypesResponse{ + return v2.ResourceTypesServiceListResourceTypesResponse_builder{ List: []*v2.ResourceType{}, - }, nil + }.Build(), nil } // ListResources returns a list of resources. func (n *emptyConnector) ListResources(ctx context.Context, request *v2.ResourcesServiceListResourcesRequest, opts ...grpc.CallOption) (*v2.ResourcesServiceListResourcesResponse, error) { - return &v2.ResourcesServiceListResourcesResponse{ + return v2.ResourcesServiceListResourcesResponse_builder{ List: []*v2.Resource{}, - }, nil + }.Build(), nil } func (n *emptyConnector) GetResource( @@ -48,16 +48,26 @@ func (n *emptyConnector) ListEntitlements( request *v2.EntitlementsServiceListEntitlementsRequest, opts ...grpc.CallOption, ) (*v2.EntitlementsServiceListEntitlementsResponse, error) { - return &v2.EntitlementsServiceListEntitlementsResponse{ + return v2.EntitlementsServiceListEntitlementsResponse_builder{ List: []*v2.Entitlement{}, - }, nil + }.Build(), nil +} + +func (n *emptyConnector) ListStaticEntitlements( + ctx context.Context, + request *v2.EntitlementsServiceListStaticEntitlementsRequest, + opts ...grpc.CallOption, +) (*v2.EntitlementsServiceListStaticEntitlementsResponse, error) { + return v2.EntitlementsServiceListStaticEntitlementsResponse_builder{ + List: []*v2.Entitlement{}, + }.Build(), nil } // ListGrants returns a list of grants. func (n *emptyConnector) ListGrants(ctx context.Context, request *v2.GrantsServiceListGrantsRequest, opts ...grpc.CallOption) (*v2.GrantsServiceListGrantsResponse, error) { - return &v2.GrantsServiceListGrantsResponse{ + return v2.GrantsServiceListGrantsResponse_builder{ List: []*v2.Grant{}, - }, nil + }.Build(), nil } func (n *emptyConnector) Grant(ctx context.Context, request *v2.GrantManagerServiceGrantRequest, opts ...grpc.CallOption) (*v2.GrantManagerServiceGrantResponse, error) { @@ -70,7 +80,7 @@ func (n *emptyConnector) Revoke(ctx context.Context, request *v2.GrantManagerSer // GetMetadata returns a connector metadata. func (n *emptyConnector) GetMetadata(ctx context.Context, request *v2.ConnectorServiceGetMetadataRequest, opts ...grpc.CallOption) (*v2.ConnectorServiceGetMetadataResponse, error) { - return &v2.ConnectorServiceGetMetadataResponse{Metadata: &v2.ConnectorMetadata{}}, nil + return v2.ConnectorServiceGetMetadataResponse_builder{Metadata: &v2.ConnectorMetadata{}}.Build(), nil } // Validate is called by the connector framework to validate the correct response. @@ -83,9 +93,9 @@ func (n *emptyConnector) BulkCreateTickets(ctx context.Context, request *v2.Tick } func (n *emptyConnector) BulkGetTickets(ctx context.Context, request *v2.TicketsServiceBulkGetTicketsRequest, opts ...grpc.CallOption) (*v2.TicketsServiceBulkGetTicketsResponse, error) { - return &v2.TicketsServiceBulkGetTicketsResponse{ + return v2.TicketsServiceBulkGetTicketsResponse_builder{ Tickets: []*v2.TicketsServiceGetTicketResponse{}, - }, nil + }.Build(), nil } func (n *emptyConnector) CreateTicket(ctx context.Context, request *v2.TicketsServiceCreateTicketRequest, opts ...grpc.CallOption) (*v2.TicketsServiceCreateTicketResponse, error) { @@ -97,9 +107,9 @@ func (n *emptyConnector) GetTicket(ctx context.Context, request *v2.TicketsServi } func (n *emptyConnector) ListTicketSchemas(ctx context.Context, request *v2.TicketsServiceListTicketSchemasRequest, opts ...grpc.CallOption) (*v2.TicketsServiceListTicketSchemasResponse, error) { - return &v2.TicketsServiceListTicketSchemasResponse{ + return v2.TicketsServiceListTicketSchemasResponse_builder{ List: []*v2.TicketSchema{}, - }, nil + }.Build(), nil } func (n *emptyConnector) GetTicketSchema(ctx context.Context, request *v2.TicketsServiceGetTicketSchemaRequest, opts ...grpc.CallOption) (*v2.TicketsServiceGetTicketSchemaResponse, error) { @@ -143,21 +153,21 @@ func (n *emptyConnector) InvokeAction(ctx context.Context, request *v2.InvokeAct } func (n *emptyConnector) ListActionSchemas(ctx context.Context, request *v2.ListActionSchemasRequest, opts ...grpc.CallOption) (*v2.ListActionSchemasResponse, error) { - return &v2.ListActionSchemasResponse{ + return v2.ListActionSchemasResponse_builder{ Schemas: []*v2.BatonActionSchema{}, - }, nil + }.Build(), nil } func (n *emptyConnector) ListEvents(ctx context.Context, request *v2.ListEventsRequest, opts ...grpc.CallOption) (*v2.ListEventsResponse, error) { - return &v2.ListEventsResponse{ + return v2.ListEventsResponse_builder{ Events: []*v2.Event{}, - }, nil + }.Build(), nil } func (n *emptyConnector) ListEventFeeds(ctx context.Context, request *v2.ListEventFeedsRequest, opts ...grpc.CallOption) (*v2.ListEventFeedsResponse, error) { - return &v2.ListEventFeedsResponse{ + return v2.ListEventFeedsResponse_builder{ List: []*v2.EventFeedMetadata{}, - }, nil + }.Build(), nil } // NewEmptyConnector returns a new emptyConnector. diff --git a/vendor/github.com/conductorone/baton-sdk/pkg/sdk/version.go b/vendor/github.com/conductorone/baton-sdk/pkg/sdk/version.go index d2252026..294f6f73 100644 --- a/vendor/github.com/conductorone/baton-sdk/pkg/sdk/version.go +++ b/vendor/github.com/conductorone/baton-sdk/pkg/sdk/version.go @@ -1,3 +1,3 @@ package sdk -const Version = "v0.3.58" +const Version = "v0.6.16" diff --git a/vendor/github.com/conductorone/baton-sdk/pkg/types/sessions/sessions.go b/vendor/github.com/conductorone/baton-sdk/pkg/types/sessions/sessions.go new file mode 100644 index 00000000..38315a71 --- /dev/null +++ b/vendor/github.com/conductorone/baton-sdk/pkg/types/sessions/sessions.go @@ -0,0 +1,77 @@ +package sessions + +import ( + "context" +) + +const MaxKeysPerRequest = 100 + +// The default gRPC message size limit is 4MB (we subtract 30KB for general overhead, which is overkill). +// Unfortunately, this layer has to be aware of the size limit to avoid exceeding the size limit +// because the client does not know the size of the items it requests. +const MaxSessionStoreSizeLimit = 4163584 + +type SessionStoreKey struct{} + +type SessionStore interface { + Get(ctx context.Context, key string, opt ...SessionStoreOption) ([]byte, bool, error) + GetMany(ctx context.Context, keys []string, opt ...SessionStoreOption) (map[string][]byte, []string, error) + Set(ctx context.Context, key string, value []byte, opt ...SessionStoreOption) error + SetMany(ctx context.Context, values map[string][]byte, opt ...SessionStoreOption) error + Delete(ctx context.Context, key string, opt ...SessionStoreOption) error + Clear(ctx context.Context, opt ...SessionStoreOption) error + GetAll(ctx context.Context, pageToken string, opt ...SessionStoreOption) (map[string][]byte, string, error) +} + +type SessionStoreOption func(ctx context.Context, bag *SessionStoreBag) error + +type SessionStoreConstructor func(ctx context.Context, opt ...SessionStoreConstructorOption) (SessionStore, error) + +type SessionStoreConstructorOption func(ctx context.Context) (context.Context, error) + +type SessionStoreBag struct { + SyncID string + Prefix string + PageToken string +} + +// SyncIDKey is the context key for storing the current sync ID. +type SyncIDKey struct{} + +// WithSyncID returns a SessionCacheOption that sets the sync ID for the operation. +func WithSyncID(syncID string) SessionStoreOption { + return func(ctx context.Context, bag *SessionStoreBag) error { + bag.SyncID = syncID + return nil + } +} + +func WithPrefix(prefix string) SessionStoreOption { + return func(ctx context.Context, bag *SessionStoreBag) error { + bag.Prefix = prefix + return nil + } +} + +// GetSyncID retrieves the sync ID from the context, returning empty string if not found. +func GetSyncID(ctx context.Context) string { + if syncID, ok := ctx.Value(SyncIDKey{}).(string); ok { + return syncID + } + return "" +} + +func WithPageToken(pageToken string) SessionStoreOption { + return func(ctx context.Context, bag *SessionStoreBag) error { + bag.PageToken = pageToken + return nil + } +} + +func SetSyncIDInContext(ctx context.Context, syncID string) context.Context { + return context.WithValue(ctx, SyncIDKey{}, syncID) +} + +type SetSessionStore interface { + SetSessionStore(ctx context.Context, store SessionStore) +} diff --git a/vendor/github.com/conductorone/baton-sdk/pkg/uhttp/dbcache.go b/vendor/github.com/conductorone/baton-sdk/pkg/uhttp/dbcache.go index 459990df..a7d91ed5 100644 --- a/vendor/github.com/conductorone/baton-sdk/pkg/uhttp/dbcache.go +++ b/vendor/github.com/conductorone/baton-sdk/pkg/uhttp/dbcache.go @@ -52,13 +52,13 @@ const ( failRollback = "Failed to rollback transaction" failInsert = "Failed to insert response data into cache table" failScanResponse = "Failed to scan rows for cached response" - cacheTTLThreshold = 60 + cacheTTLThreshold = time.Duration(60) * time.Second cacheTTLMultiplier uint64 = 5 ) var errNilConnection = errors.New("database connection is nil") -var defaultWaitDuration = cacheTTLThreshold * time.Second // Default Cleanup interval, 60 seconds +var defaultWaitDuration = cacheTTLThreshold // Default Cleanup interval, 60 seconds const tableName = "http_cache" @@ -67,10 +67,9 @@ func NewDBCache(ctx context.Context, cfg CacheConfig) (*DBCache, error) { var ( err error dc = &DBCache{ - waitDuration: defaultWaitDuration, // Default Cleanup interval, 60 seconds - stats: true, - //nolint:gosec // disable G115 - expirationTime: time.Duration(cfg.TTL) * time.Second, + waitDuration: defaultWaitDuration, // Default Cleanup interval, 60 seconds + stats: true, + expirationTime: cfg.TTL, } ) l := ctxzap.Extract(ctx) @@ -111,8 +110,7 @@ func NewDBCache(ctx context.Context, cfg CacheConfig) (*DBCache, error) { } if cfg.TTL > cacheTTLThreshold { - //nolint:gosec // disable G115 - dc.waitDuration = time.Duration(cfg.TTL*cacheTTLMultiplier) * time.Second // set as a fraction of the Cache TTL + dc.waitDuration = cfg.TTL * time.Duration(cacheTTLMultiplier) // set as a fraction of the Cache TTL } go func(waitDuration, expirationTime time.Duration) { @@ -429,8 +427,8 @@ func (d *DBCache) updateStats(ctx context.Context, field, key string) error { func (d *DBCache) getStats(ctx context.Context) (CacheStats, error) { var ( - hits int64 - misses int64 + hits uint64 + misses uint64 ) if d.db == nil { return CacheStats{}, errNilConnection @@ -456,6 +454,9 @@ func (d *DBCache) getStats(ctx context.Context) (CacheStats, error) { return CacheStats{}, err } } + if rows.Err() != nil { + return CacheStats{}, rows.Err() + } return CacheStats{ Hits: hits, diff --git a/vendor/github.com/conductorone/baton-sdk/pkg/uhttp/gocache.go b/vendor/github.com/conductorone/baton-sdk/pkg/uhttp/gocache.go index 63f769db..81b8a8e0 100644 --- a/vendor/github.com/conductorone/baton-sdk/pkg/uhttp/gocache.go +++ b/vendor/github.com/conductorone/baton-sdk/pkg/uhttp/gocache.go @@ -13,14 +13,15 @@ import ( "time" "github.com/grpc-ecosystem/go-grpc-middleware/logging/zap/ctxzap" - "github.com/maypok86/otter" + "github.com/maypok86/otter/v2" + "github.com/maypok86/otter/v2/stats" "go.uber.org/zap" ) const ( - cacheTTLMaximum uint64 = 31536000 // 31536000 seconds = one year - cacheTTLDefault uint64 = 3600 // 3600 seconds = one hour - defaultCacheSize uint = 5 // MB + cacheTTLMaximum time.Duration = 31536000 * time.Second // 31536000 seconds = one year + cacheTTLDefault time.Duration = 3600 * time.Second // 3600 seconds = one hour + defaultCacheSizeMb uint64 = 5 // MB ) type CacheBackend string @@ -32,15 +33,15 @@ const ( ) type CacheConfig struct { - LogDebug bool - TTL uint64 // If 0, cache is disabled - MaxSize uint // MB - Backend CacheBackend // If noop, cache is disabled + LogDebug bool + TTL time.Duration // If 0, cache is disabled + MaxSizeMb uint64 // MB + Backend CacheBackend // If noop, cache is disabled } type CacheStats struct { - Hits int64 - Misses int64 + Hits uint64 + Misses uint64 } type ContextKey struct{} @@ -50,7 +51,7 @@ type GoCache struct { } type NoopCache struct { - counter int64 + counter uint64 } func NewNoopCache(ctx context.Context) *NoopCache { @@ -79,15 +80,15 @@ func (n *NoopCache) Stats(ctx context.Context) CacheStats { } func (cc *CacheConfig) ToString() string { - return fmt.Sprintf("Backend: %v, TTL: %d, MaxSize: %dMB, LogDebug: %t", cc.Backend, cc.TTL, cc.MaxSize, cc.LogDebug) + return fmt.Sprintf("Backend: %v, TTL: %d, MaxSize: %dMB, LogDebug: %t", cc.Backend, cc.TTL, cc.MaxSizeMb, cc.LogDebug) } func DefaultCacheConfig() CacheConfig { return CacheConfig{ - TTL: cacheTTLDefault, - MaxSize: defaultCacheSize, - LogDebug: false, - Backend: CacheBackendMemory, + TTL: cacheTTLDefault, + MaxSizeMb: defaultCacheSizeMb, + LogDebug: false, + Backend: CacheBackendMemory, } } @@ -96,12 +97,12 @@ func NewCacheConfigFromEnv() *CacheConfig { cacheMaxSize, err := strconv.ParseInt(os.Getenv("BATON_HTTP_CACHE_MAX_SIZE"), 10, 64) if err == nil && cacheMaxSize >= 0 { - config.MaxSize = uint(cacheMaxSize) + config.MaxSizeMb = uint64(cacheMaxSize) } - cacheTTL, err := strconv.ParseUint(os.Getenv("BATON_HTTP_CACHE_TTL"), 10, 64) + cacheTTL, err := strconv.ParseInt(os.Getenv("BATON_HTTP_CACHE_TTL"), 10, 64) if err == nil { - config.TTL = min(cacheTTLMaximum, max(0, cacheTTL)) + config.TTL = min(cacheTTLMaximum, max(0, time.Duration(cacheTTL)*time.Second)) } cacheBackend := os.Getenv("BATON_HTTP_CACHE_BACKEND") @@ -147,7 +148,7 @@ func NewHttpCache(ctx context.Context, config *CacheConfig) (icache, error) { l.Info("http cache config", zap.String("config", config.ToString())) if config.TTL == 0 { - l.Debug("CacheTTL is 0, disabling cache.", zap.Uint64("CacheTTL", config.TTL)) + l.Debug("NewHttpCache: Cache TTL is 0, disabling cache.", zap.Duration("cache_ttl", config.TTL)) return NewNoopCache(ctx), nil } @@ -179,26 +180,30 @@ func NewHttpCache(ctx context.Context, config *CacheConfig) (icache, error) { func NewGoCache(ctx context.Context, cfg CacheConfig) (*GoCache, error) { l := ctxzap.Extract(ctx) gc := GoCache{} - maxSize := cfg.MaxSize * 1024 * 1024 + maxSize := cfg.MaxSizeMb * 1024 * 1024 if maxSize > math.MaxInt { return nil, fmt.Errorf("error converting max size to bytes") } - //nolint:gosec // disable G115: we check the max size - cache, err := otter.MustBuilder[string, []byte](int(maxSize)). - CollectStats(). - Cost(func(key string, value []byte) uint32 { - return uint32(len(key) + len(value)) - }). - WithTTL(time.Duration(cfg.TTL) * time.Second). - Build() + cache, err := otter.New(&otter.Options[string, []byte]{ + MaximumWeight: maxSize, + StatsRecorder: stats.NewCounter(), + Weigher: func(key string, value []byte) uint32 { + weight64 := uint64(len(key)) + uint64(len(value)) + if weight64 > uint64(math.MaxUint32) { + return math.MaxUint32 + } + return uint32(weight64) + }, + ExpiryCalculator: otter.ExpiryWriting[string, []byte](cfg.TTL), + }) if err != nil { l.Error("cache initialization error", zap.Error(err)) return nil, err } - l.Debug("otter cache initialized", zap.Int("capacity", cache.Capacity())) - gc.rootLibrary = &cache + l.Debug("otter cache initialized", zap.Uint64("capacity", cache.GetMaximum())) + gc.rootLibrary = cache return &gc, nil } @@ -209,8 +214,8 @@ func (g *GoCache) Stats(ctx context.Context) CacheStats { } stats := g.rootLibrary.Stats() return CacheStats{ - Hits: stats.Hits(), - Misses: stats.Misses(), + Hits: stats.Hits, + Misses: stats.Misses, } } @@ -224,8 +229,8 @@ func (g *GoCache) Get(req *http.Request) (*http.Response, error) { return nil, err } - entry, ok := g.rootLibrary.Get(key) - if !ok { + entry, found := g.rootLibrary.GetIfPresent(key) + if !found { return nil, nil } @@ -259,7 +264,7 @@ func (g *GoCache) Set(req *http.Request, value *http.Response) error { // Otter's cost function rejects large responses if there's not enough room // TODO: return some error or warning that we couldn't set? - _ = g.rootLibrary.Set(key, newValue) + _, _ = g.rootLibrary.Set(key, newValue) return nil } @@ -269,7 +274,7 @@ func (g *GoCache) Delete(key string) error { return nil } - g.rootLibrary.Delete(key) + g.rootLibrary.Invalidate(key) return nil } @@ -281,7 +286,7 @@ func (g *GoCache) Clear(ctx context.Context) error { return nil } - g.rootLibrary.Clear() + g.rootLibrary.InvalidateAll() l.Debug("reset cache") return nil @@ -291,6 +296,6 @@ func (g *GoCache) Has(key string) bool { if g.rootLibrary == nil { return false } - _, found := g.rootLibrary.Get(key) + _, found := g.rootLibrary.GetIfPresent(key) return found } diff --git a/vendor/github.com/conductorone/baton-sdk/pkg/uhttp/wrapper.go b/vendor/github.com/conductorone/baton-sdk/pkg/uhttp/wrapper.go index 0073f1c1..3a8d4d27 100644 --- a/vendor/github.com/conductorone/baton-sdk/pkg/uhttp/wrapper.go +++ b/vendor/github.com/conductorone/baton-sdk/pkg/uhttp/wrapper.go @@ -242,10 +242,10 @@ func WithRatelimitData(resource *v2.RateLimitDescription) DoOption { return err } - resource.Limit = rl.Limit - resource.Remaining = rl.Remaining - resource.ResetAt = rl.ResetAt - resource.Status = rl.Status + resource.SetLimit(rl.GetLimit()) + resource.SetRemaining(rl.GetRemaining()) + resource.SetResetAt(rl.GetResetAt()) + resource.SetStatus(rl.GetStatus()) return nil } @@ -433,7 +433,7 @@ func (c *BaseHttpClient) Do(req *http.Request, options ...DoOption) (*http.Respo // Log response headers directly for certain errors if resp.StatusCode >= 400 { - redactedHeaders := redactHeaders(resp.Header) + redactedHeaders := RedactSensitiveHeaders(resp.Header) l.Error("base-http-client: HTTP error status", zap.Int("status_code", resp.StatusCode), zap.String("status", resp.Status), @@ -476,13 +476,34 @@ func (c *BaseHttpClient) Do(req *http.Request, options ...DoOption) (*http.Respo return resp, errors.Join(optErrs...) } -func redactHeaders(h http.Header) http.Header { +var sensitiveStrings = []string{ + "api-key", + "auth", + "cookie", + "proxy-authorization", + "set-cookie", + "x-forwarded-for", + "x-forwarded-proto", +} + +func RedactSensitiveHeaders(h http.Header) http.Header { + if h == nil { + return nil + } safe := make(http.Header, len(h)) for k, v := range h { - switch strings.ToLower(k) { - case "authorization", "set-cookie", "cookie": + sensitive := false + headerKey := strings.ToLower(k) + for _, sensitiveString := range sensitiveStrings { + if strings.Contains(headerKey, sensitiveString) { + sensitive = true + break + } + } + + if sensitive { safe[k] = []string{"REDACTED"} - default: + } else { safe[k] = v } } diff --git a/vendor/github.com/dolthub/maphash/.gitignore b/vendor/github.com/dolthub/maphash/.gitignore deleted file mode 100644 index 977a7cad..00000000 --- a/vendor/github.com/dolthub/maphash/.gitignore +++ /dev/null @@ -1,2 +0,0 @@ -*.idea -*.test \ No newline at end of file diff --git a/vendor/github.com/dolthub/maphash/LICENSE b/vendor/github.com/dolthub/maphash/LICENSE deleted file mode 100644 index 261eeb9e..00000000 --- a/vendor/github.com/dolthub/maphash/LICENSE +++ /dev/null @@ -1,201 +0,0 @@ - Apache License - Version 2.0, January 2004 - http://www.apache.org/licenses/ - - TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION - - 1. Definitions. - - "License" shall mean the terms and conditions for use, reproduction, - and distribution as defined by Sections 1 through 9 of this document. - - "Licensor" shall mean the copyright owner or entity authorized by - the copyright owner that is granting the License. - - "Legal Entity" shall mean the union of the acting entity and all - other entities that control, are controlled by, or are under common - control with that entity. For the purposes of this definition, - "control" means (i) the power, direct or indirect, to cause the - direction or management of such entity, whether by contract or - otherwise, or (ii) ownership of fifty percent (50%) or more of the - outstanding shares, or (iii) beneficial ownership of such entity. - - "You" (or "Your") shall mean an individual or Legal Entity - exercising permissions granted by this License. - - "Source" form shall mean the preferred form for making modifications, - including but not limited to software source code, documentation - source, and configuration files. - - "Object" form shall mean any form resulting from mechanical - transformation or translation of a Source form, including but - not limited to compiled object code, generated documentation, - and conversions to other media types. - - "Work" shall mean the work of authorship, whether in Source or - Object form, made available under the License, as indicated by a - copyright notice that is included in or attached to the work - (an example is provided in the Appendix below). - - "Derivative Works" shall mean any work, whether in Source or Object - form, that is based on (or derived from) the Work and for which the - editorial revisions, annotations, elaborations, or other modifications - represent, as a whole, an original work of authorship. For the purposes - of this License, Derivative Works shall not include works that remain - separable from, or merely link (or bind by name) to the interfaces of, - the Work and Derivative Works thereof. - - "Contribution" shall mean any work of authorship, including - the original version of the Work and any modifications or additions - to that Work or Derivative Works thereof, that is intentionally - submitted to Licensor for inclusion in the Work by the copyright owner - or by an individual or Legal Entity authorized to submit on behalf of - the copyright owner. For the purposes of this definition, "submitted" - means any form of electronic, verbal, or written communication sent - to the Licensor or its representatives, including but not limited to - communication on electronic mailing lists, source code control systems, - and issue tracking systems that are managed by, or on behalf of, the - Licensor for the purpose of discussing and improving the Work, but - excluding communication that is conspicuously marked or otherwise - designated in writing by the copyright owner as "Not a Contribution." - - "Contributor" shall mean Licensor and any individual or Legal Entity - on behalf of whom a Contribution has been received by Licensor and - subsequently incorporated within the Work. - - 2. Grant of Copyright License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - copyright license to reproduce, prepare Derivative Works of, - publicly display, publicly perform, sublicense, and distribute the - Work and such Derivative Works in Source or Object form. - - 3. Grant of Patent License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - (except as stated in this section) patent license to make, have made, - use, offer to sell, sell, import, and otherwise transfer the Work, - where such license applies only to those patent claims licensable - by such Contributor that are necessarily infringed by their - Contribution(s) alone or by combination of their Contribution(s) - with the Work to which such Contribution(s) was submitted. If You - institute patent litigation against any entity (including a - cross-claim or counterclaim in a lawsuit) alleging that the Work - or a Contribution incorporated within the Work constitutes direct - or contributory patent infringement, then any patent licenses - granted to You under this License for that Work shall terminate - as of the date such litigation is filed. - - 4. Redistribution. You may reproduce and distribute copies of the - Work or Derivative Works thereof in any medium, with or without - modifications, and in Source or Object form, provided that You - meet the following conditions: - - (a) You must give any other recipients of the Work or - Derivative Works a copy of this License; and - - (b) You must cause any modified files to carry prominent notices - stating that You changed the files; and - - (c) You must retain, in the Source form of any Derivative Works - that You distribute, all copyright, patent, trademark, and - attribution notices from the Source form of the Work, - excluding those notices that do not pertain to any part of - the Derivative Works; and - - (d) If the Work includes a "NOTICE" text file as part of its - distribution, then any Derivative Works that You distribute must - include a readable copy of the attribution notices contained - within such NOTICE file, excluding those notices that do not - pertain to any part of the Derivative Works, in at least one - of the following places: within a NOTICE text file distributed - as part of the Derivative Works; within the Source form or - documentation, if provided along with the Derivative Works; or, - within a display generated by the Derivative Works, if and - wherever such third-party notices normally appear. The contents - of the NOTICE file are for informational purposes only and - do not modify the License. You may add Your own attribution - notices within Derivative Works that You distribute, alongside - or as an addendum to the NOTICE text from the Work, provided - that such additional attribution notices cannot be construed - as modifying the License. - - You may add Your own copyright statement to Your modifications and - may provide additional or different license terms and conditions - for use, reproduction, or distribution of Your modifications, or - for any such Derivative Works as a whole, provided Your use, - reproduction, and distribution of the Work otherwise complies with - the conditions stated in this License. - - 5. Submission of Contributions. Unless You explicitly state otherwise, - any Contribution intentionally submitted for inclusion in the Work - by You to the Licensor shall be under the terms and conditions of - this License, without any additional terms or conditions. - Notwithstanding the above, nothing herein shall supersede or modify - the terms of any separate license agreement you may have executed - with Licensor regarding such Contributions. - - 6. Trademarks. This License does not grant permission to use the trade - names, trademarks, service marks, or product names of the Licensor, - except as required for reasonable and customary use in describing the - origin of the Work and reproducing the content of the NOTICE file. - - 7. Disclaimer of Warranty. Unless required by applicable law or - agreed to in writing, Licensor provides the Work (and each - Contributor provides its Contributions) on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - implied, including, without limitation, any warranties or conditions - of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A - PARTICULAR PURPOSE. You are solely responsible for determining the - appropriateness of using or redistributing the Work and assume any - risks associated with Your exercise of permissions under this License. - - 8. Limitation of Liability. In no event and under no legal theory, - whether in tort (including negligence), contract, or otherwise, - unless required by applicable law (such as deliberate and grossly - negligent acts) or agreed to in writing, shall any Contributor be - liable to You for damages, including any direct, indirect, special, - incidental, or consequential damages of any character arising as a - result of this License or out of the use or inability to use the - Work (including but not limited to damages for loss of goodwill, - work stoppage, computer failure or malfunction, or any and all - other commercial damages or losses), even if such Contributor - has been advised of the possibility of such damages. - - 9. Accepting Warranty or Additional Liability. While redistributing - the Work or Derivative Works thereof, You may choose to offer, - and charge a fee for, acceptance of support, warranty, indemnity, - or other liability obligations and/or rights consistent with this - License. However, in accepting such obligations, You may act only - on Your own behalf and on Your sole responsibility, not on behalf - of any other Contributor, and only if You agree to indemnify, - defend, and hold each Contributor harmless for any liability - incurred by, or claims asserted against, such Contributor by reason - of your accepting any such warranty or additional liability. - - END OF TERMS AND CONDITIONS - - APPENDIX: How to apply the Apache License to your work. - - To apply the Apache License to your work, attach the following - boilerplate notice, with the fields enclosed by brackets "[]" - replaced with your own identifying information. (Don't include - the brackets!) The text should be enclosed in the appropriate - comment syntax for the file format. We also recommend that a - file or class name and description of purpose be included on the - same "printed page" as the copyright notice for easier - identification within third-party archives. - - Copyright [yyyy] [name of copyright owner] - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. diff --git a/vendor/github.com/dolthub/maphash/README.md b/vendor/github.com/dolthub/maphash/README.md deleted file mode 100644 index d91530f9..00000000 --- a/vendor/github.com/dolthub/maphash/README.md +++ /dev/null @@ -1,4 +0,0 @@ -# maphash - -Hash any `comparable` type using Golang's fast runtime hash. -Uses [AES](https://en.wikipedia.org/wiki/AES_instruction_set) instructions when available. \ No newline at end of file diff --git a/vendor/github.com/dolthub/maphash/hasher.go b/vendor/github.com/dolthub/maphash/hasher.go deleted file mode 100644 index ef53596a..00000000 --- a/vendor/github.com/dolthub/maphash/hasher.go +++ /dev/null @@ -1,48 +0,0 @@ -// Copyright 2022 Dolthub, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -package maphash - -import "unsafe" - -// Hasher hashes values of type K. -// Uses runtime AES-based hashing. -type Hasher[K comparable] struct { - hash hashfn - seed uintptr -} - -// NewHasher creates a new Hasher[K] with a random seed. -func NewHasher[K comparable]() Hasher[K] { - return Hasher[K]{ - hash: getRuntimeHasher[K](), - seed: newHashSeed(), - } -} - -// NewSeed returns a copy of |h| with a new hash seed. -func NewSeed[K comparable](h Hasher[K]) Hasher[K] { - return Hasher[K]{ - hash: h.hash, - seed: newHashSeed(), - } -} - -// Hash hashes |key|. -func (h Hasher[K]) Hash(key K) uint64 { - // promise to the compiler that pointer - // |p| does not escape the stack. - p := noescape(unsafe.Pointer(&key)) - return uint64(h.hash(p, h.seed)) -} diff --git a/vendor/github.com/dolthub/maphash/runtime.go b/vendor/github.com/dolthub/maphash/runtime.go deleted file mode 100644 index 29cd6a8e..00000000 --- a/vendor/github.com/dolthub/maphash/runtime.go +++ /dev/null @@ -1,111 +0,0 @@ -// Copyright 2022 Dolthub, Inc. -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -// This file incorporates work covered by the following copyright and -// permission notice: -// -// Copyright 2022 The Go Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - -//go:build go1.18 || go1.19 -// +build go1.18 go1.19 - -package maphash - -import ( - "math/rand" - "unsafe" -) - -type hashfn func(unsafe.Pointer, uintptr) uintptr - -func getRuntimeHasher[K comparable]() (h hashfn) { - a := any(make(map[K]struct{})) - i := (*mapiface)(unsafe.Pointer(&a)) - h = i.typ.hasher - return -} - -func newHashSeed() uintptr { - return uintptr(rand.Int()) -} - -// noescape hides a pointer from escape analysis. It is the identity function -// but escape analysis doesn't think the output depends on the input. -// noescape is inlined and currently compiles down to zero instructions. -// USE CAREFULLY! -// This was copied from the runtime (via pkg "strings"); see issues 23382 and 7921. -// -//go:nosplit -//go:nocheckptr -func noescape(p unsafe.Pointer) unsafe.Pointer { - x := uintptr(p) - return unsafe.Pointer(x ^ 0) -} - -type mapiface struct { - typ *maptype - val *hmap -} - -// go/src/runtime/type.go -type maptype struct { - typ _type - key *_type - elem *_type - bucket *_type - // function for hashing keys (ptr to key, seed) -> hash - hasher func(unsafe.Pointer, uintptr) uintptr - keysize uint8 - elemsize uint8 - bucketsize uint16 - flags uint32 -} - -// go/src/runtime/map.go -type hmap struct { - count int - flags uint8 - B uint8 - noverflow uint16 - // hash seed - hash0 uint32 - buckets unsafe.Pointer - oldbuckets unsafe.Pointer - nevacuate uintptr - // true type is *mapextra - // but we don't need this data - extra unsafe.Pointer -} - -// go/src/runtime/type.go -type tflag uint8 -type nameOff int32 -type typeOff int32 - -// go/src/runtime/type.go -type _type struct { - size uintptr - ptrdata uintptr - hash uint32 - tflag tflag - align uint8 - fieldAlign uint8 - kind uint8 - equal func(unsafe.Pointer, unsafe.Pointer) bool - gcdata *byte - str nameOff - ptrToThis typeOff -} diff --git a/vendor/github.com/gammazero/deque/.gitignore b/vendor/github.com/gammazero/deque/.gitignore deleted file mode 100644 index b33406fb..00000000 --- a/vendor/github.com/gammazero/deque/.gitignore +++ /dev/null @@ -1,26 +0,0 @@ -*~ - -# Compiled Object files, Static and Dynamic libs (Shared Objects) -*.o -*.a -*.so - -# Folders -_obj -_test - -# Architecture specific extensions/prefixes -*.[568vq] -[568vq].out - -*.cgo1.go -*.cgo2.c -_cgo_defun.c -_cgo_gotypes.go -_cgo_export.* - -_testmain.go - -*.exe -*.test -*.prof diff --git a/vendor/github.com/gammazero/deque/LICENSE b/vendor/github.com/gammazero/deque/LICENSE deleted file mode 100644 index 0566f266..00000000 --- a/vendor/github.com/gammazero/deque/LICENSE +++ /dev/null @@ -1,21 +0,0 @@ -MIT License - -Copyright (c) 2018 Andrew J. Gillis - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. diff --git a/vendor/github.com/gammazero/deque/README.md b/vendor/github.com/gammazero/deque/README.md deleted file mode 100644 index ee2dbb88..00000000 --- a/vendor/github.com/gammazero/deque/README.md +++ /dev/null @@ -1,80 +0,0 @@ -# deque - -[](https://pkg.go.dev/github.com/gammazero/deque) -[](https://github.com/gammazero/deque/actions/workflows/go.yml) -[](https://goreportcard.com/report/github.com/gammazero/deque) -[](https://codecov.io/gh/gammazero/deque) -[](LICENSE) - -Fast ring-buffer deque ([double-ended queue](https://en.wikipedia.org/wiki/Double-ended_queue)) implementation. - -For a pictorial description, see the [Deque diagram](https://github.com/gammazero/deque/wiki) - -## Installation - -``` -$ go get github.com/gammazero/deque -``` - -## Deque data structure - -Deque generalizes a queue and a stack, to efficiently add and remove items at either end with O(1) performance. [Queue](https://en.wikipedia.org/wiki/Queue_(abstract_data_type)) (FIFO) operations are supported using `PushBack` and `PopFront`. [Stack](https://en.wikipedia.org/wiki/Stack_(abstract_data_type)) (LIFO) operations are supported using `PushBack` and `PopBack`. - -## Ring-buffer Performance - -This deque implementation is optimized for CPU and GC performance. The circular buffer automatically re-sizes by powers of two, growing when additional capacity is needed and shrinking when only a quarter of the capacity is used, and uses bitwise arithmetic for all calculations. Since growth is by powers of two, adding elements will only cause O(log n) allocations. A base capacity can be set, with `SetBaseCap`, so that there is no resizing at or below that specified amount. The Deque can also be grown, using `Grow`, to ensure sufficient storage for n additional items, to prevent resizing when adding a number of itmes. - -The ring-buffer implementation improves memory and time performance with fewer GC pauses, compared to implementations based on slices or linked lists. By wrapping around the buffer, previously used space is reused, making allocation unnecessary until all buffer capacity is used. The ring buffer implementation performs best when resizes are infrequest, as is the case when items moving in and out of the Deque are balanced or when the base capacity is large enough to rarely require a resize. - -For maximum speed, this deque implementation leaves concurrency safety up to the application to provide, however the application chooses, if needed at all. - -## Reading Empty Deque - -Since it is OK for the deque to contain a `nil` value, it is necessary to either panic or return a second boolean value to indicate the deque is empty, when reading or removing an element. This deque panics when reading from an empty deque. This is a run-time check to help catch programming errors, which may be missed if a second return value is ignored. Simply check `Deque.Len()` before reading from the deque. - -## Generics - -Deque uses generics to create a Deque that contains items of the type specified. To create a Deque that holds a specific type, provide a type argument with the `Deque` variable declaration. For example: -```go - stringDeque := new(deque.Deque[string]) - var intDeque deque.Deque[int] -``` - -## Example - -```go -package main - -import ( - "fmt" - "github.com/gammazero/deque" -) - -func main() { - var q deque.Deque[string] - q.PushBack("foo") - q.PushBack("bar") - q.PushBack("baz") - - fmt.Println(q.Len()) // Prints: 3 - fmt.Println(q.Front()) // Prints: foo - fmt.Println(q.Back()) // Prints: baz - - q.PopFront() // remove "foo" - q.PopBack() // remove "baz" - - q.PushFront("hello") - q.PushBack("world") - - // Consume deque and print elements. - for q.Len() != 0 { - fmt.Println(q.PopFront()) - } -} -``` - -## Uses - -Deque can be used as both a: -- [Queue](https://en.wikipedia.org/wiki/Queue_(abstract_data_type)) using `PushBack` and `PopFront` -- [Stack](https://en.wikipedia.org/wiki/Stack_(abstract_data_type)) using `PushBack` and `PopBack` diff --git a/vendor/github.com/gammazero/deque/deque.go b/vendor/github.com/gammazero/deque/deque.go deleted file mode 100644 index ff109962..00000000 --- a/vendor/github.com/gammazero/deque/deque.go +++ /dev/null @@ -1,434 +0,0 @@ -package deque - -import "fmt" - -// minCapacity is the smallest capacity that deque may have. Must be power of 2 -// for bitwise modulus: x % n == x & (n - 1). -const minCapacity = 16 - -// Deque represents a single instance of the deque data structure. A Deque -// instance contains items of the type specified by the type argument. -// -// For example, to create a Deque that contains strings do one of the -// following: -// -// var stringDeque deque.Deque[string] -// stringDeque := new(deque.Deque[string]) -// stringDeque := &deque.Deque[string]{} -// -// To create a Deque that will never resize to have space for less than 64 -// items, specify a base capacity: -// -// var d deque.Deque[int] -// d.SetBaseCap(64) -// -// To ensure the Deque can store 1000 items without needing to resize while -// items are added: -// -// d.Grow(1000) -// -// Any values supplied to SetBaseCap and Grow are rounded up to the nearest -// power of 2, since the Deque grows by powers of 2. -type Deque[T any] struct { - buf []T - head int - tail int - count int - minCap int -} - -// Cap returns the current capacity of the Deque. If q is nil, q.Cap() is zero. -func (q *Deque[T]) Cap() int { - if q == nil { - return 0 - } - return len(q.buf) -} - -// Len returns the number of elements currently stored in the queue. If q is -// nil, q.Len() returns zero. -func (q *Deque[T]) Len() int { - if q == nil { - return 0 - } - return q.count -} - -// PushBack appends an element to the back of the queue. Implements FIFO when -// elements are removed with PopFront, and LIFO when elements are removed with -// PopBack. -func (q *Deque[T]) PushBack(elem T) { - q.growIfFull() - - q.buf[q.tail] = elem - // Calculate new tail position. - q.tail = q.next(q.tail) - q.count++ -} - -// PushFront prepends an element to the front of the queue. -func (q *Deque[T]) PushFront(elem T) { - q.growIfFull() - - // Calculate new head position. - q.head = q.prev(q.head) - q.buf[q.head] = elem - q.count++ -} - -// PopFront removes and returns the element from the front of the queue. -// Implements FIFO when used with PushBack. If the queue is empty, the call -// panics. -func (q *Deque[T]) PopFront() T { - if q.count <= 0 { - panic("deque: PopFront() called on empty queue") - } - ret := q.buf[q.head] - var zero T - q.buf[q.head] = zero - // Calculate new head position. - q.head = q.next(q.head) - q.count-- - - q.shrinkIfExcess() - return ret -} - -// PopBack removes and returns the element from the back of the queue. -// Implements LIFO when used with PushBack. If the queue is empty, the call -// panics. -func (q *Deque[T]) PopBack() T { - if q.count <= 0 { - panic("deque: PopBack() called on empty queue") - } - - // Calculate new tail position - q.tail = q.prev(q.tail) - - // Remove value at tail. - ret := q.buf[q.tail] - var zero T - q.buf[q.tail] = zero - q.count-- - - q.shrinkIfExcess() - return ret -} - -// Front returns the element at the front of the queue. This is the element -// that would be returned by PopFront. This call panics if the queue is empty. -func (q *Deque[T]) Front() T { - if q.count <= 0 { - panic("deque: Front() called when empty") - } - return q.buf[q.head] -} - -// Back returns the element at the back of the queue. This is the element that -// would be returned by PopBack. This call panics if the queue is empty. -func (q *Deque[T]) Back() T { - if q.count <= 0 { - panic("deque: Back() called when empty") - } - return q.buf[q.prev(q.tail)] -} - -// At returns the element at index i in the queue without removing the element -// from the queue. This method accepts only non-negative index values. At(0) -// refers to the first element and is the same as Front(). At(Len()-1) refers -// to the last element and is the same as Back(). If the index is invalid, the -// call panics. -// -// The purpose of At is to allow Deque to serve as a more general purpose -// circular buffer, where items are only added to and removed from the ends of -// the deque, but may be read from any place within the deque. Consider the -// case of a fixed-size circular log buffer: A new entry is pushed onto one end -// and when full the oldest is popped from the other end. All the log entries -// in the buffer must be readable without altering the buffer contents. -func (q *Deque[T]) At(i int) T { - q.checkRange(i) - // bitwise modulus - return q.buf[(q.head+i)&(len(q.buf)-1)] -} - -// Set assigns the item to index i in the queue. Set indexes the deque the same -// as At but perform the opposite operation. If the index is invalid, the call -// panics. -func (q *Deque[T]) Set(i int, item T) { - q.checkRange(i) - // bitwise modulus - q.buf[(q.head+i)&(len(q.buf)-1)] = item -} - -// Clear removes all elements from the queue, but retains the current capacity. -// This is useful when repeatedly reusing the queue at high frequency to avoid -// GC during reuse. The queue will not be resized smaller as long as items are -// only added. Only when items are removed is the queue subject to getting -// resized smaller. -func (q *Deque[T]) Clear() { - var zero T - modBits := len(q.buf) - 1 - h := q.head - for i := 0; i < q.Len(); i++ { - q.buf[(h+i)&modBits] = zero - } - q.head = 0 - q.tail = 0 - q.count = 0 -} - -// Grow grows deque's capacity, if necessary, to guarantee space for another n -// items. After Grow(n), at least n items can be written to the deque without -// another allocation. If n is negative, Grow panics. -func (q *Deque[T]) Grow(n int) { - if n < 0 { - panic("deque.Grow: negative count") - } - c := q.Cap() - l := q.Len() - // If already big enough. - if n <= c-l { - return - } - - if c == 0 { - c = minCapacity - } - - newLen := l + n - for c < newLen { - c <<= 1 - } - if l == 0 { - q.buf = make([]T, c) - q.head = 0 - q.tail = 0 - } else { - q.resize(c) - } -} - -// Rotate rotates the deque n steps front-to-back. If n is negative, rotates -// back-to-front. Having Deque provide Rotate avoids resizing that could happen -// if implementing rotation using only Pop and Push methods. If q.Len() is one -// or less, or q is nil, then Rotate does nothing. -func (q *Deque[T]) Rotate(n int) { - if q.Len() <= 1 { - return - } - // Rotating a multiple of q.count is same as no rotation. - n %= q.count - if n == 0 { - return - } - - modBits := len(q.buf) - 1 - // If no empty space in buffer, only move head and tail indexes. - if q.head == q.tail { - // Calculate new head and tail using bitwise modulus. - q.head = (q.head + n) & modBits - q.tail = q.head - return - } - - var zero T - - if n < 0 { - // Rotate back to front. - for ; n < 0; n++ { - // Calculate new head and tail using bitwise modulus. - q.head = (q.head - 1) & modBits - q.tail = (q.tail - 1) & modBits - // Put tail value at head and remove value at tail. - q.buf[q.head] = q.buf[q.tail] - q.buf[q.tail] = zero - } - return - } - - // Rotate front to back. - for ; n > 0; n-- { - // Put head value at tail and remove value at head. - q.buf[q.tail] = q.buf[q.head] - q.buf[q.head] = zero - // Calculate new head and tail using bitwise modulus. - q.head = (q.head + 1) & modBits - q.tail = (q.tail + 1) & modBits - } -} - -// Index returns the index into the Deque of the first item satisfying f(item), -// or -1 if none do. If q is nil, then -1 is always returned. Search is linear -// starting with index 0. -func (q *Deque[T]) Index(f func(T) bool) int { - if q.Len() > 0 { - modBits := len(q.buf) - 1 - for i := 0; i < q.count; i++ { - if f(q.buf[(q.head+i)&modBits]) { - return i - } - } - } - return -1 -} - -// RIndex is the same as Index, but searches from Back to Front. The index -// returned is from Front to Back, where index 0 is the index of the item -// returned by Front(). -func (q *Deque[T]) RIndex(f func(T) bool) int { - if q.Len() > 0 { - modBits := len(q.buf) - 1 - for i := q.count - 1; i >= 0; i-- { - if f(q.buf[(q.head+i)&modBits]) { - return i - } - } - } - return -1 -} - -// Insert is used to insert an element into the middle of the queue, before the -// element at the specified index. Insert(0,e) is the same as PushFront(e) and -// Insert(Len(),e) is the same as PushBack(e). Out of range indexes result in -// pushing the item onto the front of back of the deque. -// -// Important: Deque is optimized for O(1) operations at the ends of the queue, -// not for operations in the the middle. Complexity of this function is -// constant plus linear in the lesser of the distances between the index and -// either of the ends of the queue. -func (q *Deque[T]) Insert(at int, item T) { - if at <= 0 { - q.PushFront(item) - return - } - if at >= q.Len() { - q.PushBack(item) - return - } - if at*2 < q.count { - q.PushFront(item) - front := q.head - for i := 0; i < at; i++ { - next := q.next(front) - q.buf[front], q.buf[next] = q.buf[next], q.buf[front] - front = next - } - return - } - swaps := q.count - at - q.PushBack(item) - back := q.prev(q.tail) - for i := 0; i < swaps; i++ { - prev := q.prev(back) - q.buf[back], q.buf[prev] = q.buf[prev], q.buf[back] - back = prev - } -} - -// Remove removes and returns an element from the middle of the queue, at the -// specified index. Remove(0) is the same as PopFront() and Remove(Len()-1) is -// the same as PopBack(). Accepts only non-negative index values, and panics if -// index is out of range. -// -// Important: Deque is optimized for O(1) operations at the ends of the queue, -// not for operations in the the middle. Complexity of this function is -// constant plus linear in the lesser of the distances between the index and -// either of the ends of the queue. -func (q *Deque[T]) Remove(at int) T { - q.checkRange(at) - rm := (q.head + at) & (len(q.buf) - 1) - if at*2 < q.count { - for i := 0; i < at; i++ { - prev := q.prev(rm) - q.buf[prev], q.buf[rm] = q.buf[rm], q.buf[prev] - rm = prev - } - return q.PopFront() - } - swaps := q.count - at - 1 - for i := 0; i < swaps; i++ { - next := q.next(rm) - q.buf[rm], q.buf[next] = q.buf[next], q.buf[rm] - rm = next - } - return q.PopBack() -} - -// SetBaseCap sets a base capacity so that at least the specified number of -// items can always be stored without resizing. -func (q *Deque[T]) SetBaseCap(baseCap int) { - minCap := minCapacity - for minCap < baseCap { - minCap <<= 1 - } - q.minCap = minCap -} - -// Swap exchanges the two values at idxA and idxB. It panics if either index is -// out of range. -func (q *Deque[T]) Swap(idxA, idxB int) { - q.checkRange(idxA) - q.checkRange(idxB) - if idxA == idxB { - return - } - - realA := (q.head + idxA) & (len(q.buf) - 1) - realB := (q.head + idxB) & (len(q.buf) - 1) - q.buf[realA], q.buf[realB] = q.buf[realB], q.buf[realA] -} - -func (q *Deque[T]) checkRange(i int) { - if i < 0 || i >= q.count { - panic(fmt.Sprintf("deque: index out of range %d with length %d", i, q.Len())) - } -} - -// prev returns the previous buffer position wrapping around buffer. -func (q *Deque[T]) prev(i int) int { - return (i - 1) & (len(q.buf) - 1) // bitwise modulus -} - -// next returns the next buffer position wrapping around buffer. -func (q *Deque[T]) next(i int) int { - return (i + 1) & (len(q.buf) - 1) // bitwise modulus -} - -// growIfFull resizes up if the buffer is full. -func (q *Deque[T]) growIfFull() { - if q.count != len(q.buf) { - return - } - if len(q.buf) == 0 { - if q.minCap == 0 { - q.minCap = minCapacity - } - q.buf = make([]T, q.minCap) - return - } - q.resize(q.count << 1) -} - -// shrinkIfExcess resize down if the buffer 1/4 full. -func (q *Deque[T]) shrinkIfExcess() { - if len(q.buf) > q.minCap && (q.count<<2) == len(q.buf) { - q.resize(q.count << 1) - } -} - -// resize resizes the deque to fit exactly twice its current contents. This is -// used to grow the queue when it is full, and also to shrink it when it is -// only a quarter full. -func (q *Deque[T]) resize(newSize int) { - newBuf := make([]T, newSize) - if q.tail > q.head { - copy(newBuf, q.buf[q.head:q.tail]) - } else { - n := copy(newBuf, q.buf[q.head:]) - copy(newBuf[n:], q.buf[:q.tail]) - } - - q.head = 0 - q.tail = q.count - q.buf = newBuf -} diff --git a/vendor/github.com/gammazero/deque/doc.go b/vendor/github.com/gammazero/deque/doc.go deleted file mode 100644 index dfff00ad..00000000 --- a/vendor/github.com/gammazero/deque/doc.go +++ /dev/null @@ -1,38 +0,0 @@ -/* -Package deque provides a fast ring-buffer deque (double-ended queue) -implementation. - -Deque generalizes a queue and a stack, to efficiently add and remove items at -either end with O(1) performance. Queue (FIFO) operations are supported using -PushBack and PopFront. Stack (LIFO) operations are supported using PushBack and -PopBack. - -# Ring-buffer Performance - -The ring-buffer automatically resizes by powers of two, growing when additional -capacity is needed and shrinking when only a quarter of the capacity is used, -and uses bitwise arithmetic for all calculations. - -The ring-buffer implementation significantly improves memory and time -performance with fewer GC pauses, compared to implementations based on slices -and linked lists. - -For maximum speed, this deque implementation leaves concurrency safety up to -the application to provide, however the application chooses, if needed at all. - -# Reading Empty Deque - -Since it is OK for the deque to contain the zero-value of an item, it is -necessary to either panic or return a second boolean value to indicate the -deque is empty, when reading or removing an element. This deque panics when -reading from an empty deque. This is a run-time check to help catch programming -errors, which may be missed if a second return value is ignored. Simply check -Deque.Len() before reading from the deque. - -# Generics - -Deque uses generics to create a Deque that contains items of the type -specified. To create a Deque that holds a specific type, provide a type -argument with the Deque variable declaration. -*/ -package deque diff --git a/vendor/github.com/maypok86/otter/.golangci.yml b/vendor/github.com/maypok86/otter/.golangci.yml deleted file mode 100644 index a4235930..00000000 --- a/vendor/github.com/maypok86/otter/.golangci.yml +++ /dev/null @@ -1,103 +0,0 @@ -run: - concurrency: 8 - timeout: 5m - build-tags: - - integration - modules-download-mode: readonly - go: '1.22' -output: - formats: - - format: tab - path: lint.txt - print-issued-lines: false - uniq-by-line: false - sort-results: true -linters: - enable: - - asasalint - - asciicheck - - bidichk - - bodyclose - - contextcheck - - durationcheck - - errcheck - - errname - - errorlint - - gocheckcompilerdirectives - - gocritic - - godot - - gofumpt - - gci - - gomoddirectives - - gosec - - gosimple - - govet - - ineffassign - - misspell - - nakedret - - nilerr - - nilnil - - noctx - - nolintlint - - prealloc - - predeclared - - promlinter - - reassign - - revive - - rowserrcheck - - sqlclosecheck - - staticcheck - - stylecheck - - tagliatelle - - tenv - - testableexamples - - thelper - - tparallel - - unconvert - - unparam - - usestdlibvars - - wastedassign - disable: - - unused -issues: - max-issues-per-linter: 0 - max-same-issues: 0 - exclude-rules: - - path: _test\.go - linters: - - gosec -linters-settings: - gci: - sections: - - standard # Standard lib - - default # External dependencies - - prefix(github.com/maypok86/otter) # Internal packages - gocritic: - enabled-tags: - - diagnostic - - experimental - - opinionated - - performance - - style - disabled-checks: - - hugeParam - - rangeExprCopy - - rangeValCopy - errcheck: - check-type-assertions: true - check-blank: true - exclude-functions: - - io/ioutil.ReadFile - - io.Copy(*bytes.Buffer) - - io.Copy(os.Stdout) - nakedret: - max-func-lines: 1 - revive: - rules: - - name: empty-block - disabled: true - tagliatelle: - case: - rules: - json: snake - yaml: snake diff --git a/vendor/github.com/maypok86/otter/CHANGELOG.md b/vendor/github.com/maypok86/otter/CHANGELOG.md deleted file mode 100644 index 01e2d724..00000000 --- a/vendor/github.com/maypok86/otter/CHANGELOG.md +++ /dev/null @@ -1,98 +0,0 @@ -## 1.2.4 - 2024-11-23 - -### 🐞 Bug Fixes - -- Fixed a bug due to changing [gammazero/deque](https://github.com/gammazero/deque/pull/33) contracts without v2 release. ([#112](https://github.com/maypok86/otter/issues/112)) - -## 1.2.3 - 2024-09-30 - -### 🐞 Bug Fixes - -- Added collection of eviction statistics for expired entries. ([#108](https://github.com/maypok86/otter/issues/108)) - -## 1.2.2 - 2024-08-14 - -### ✨️Features - -- Implemented `fmt.Stringer` interface for `DeletionReason` type ([#100](https://github.com/maypok86/otter/issues/100)) - -### 🐞 Bug Fixes - -- Fixed processing of an expired entry in the `Get` method ([#98](https://github.com/maypok86/otter/issues/98)) -- Fixed inconsistent deletion listener behavior ([#98](https://github.com/maypok86/otter/issues/98)) -- Fixed the behavior of `checkedAdd` when over/underflow ([#91](https://github.com/maypok86/otter/issues/91)) - -## 1.2.1 - 2024-04-15 - -### 🐞 Bug Fixes - -- Fixed uint32 capacity overflow. - -## 1.2.0 - 2024-03-12 - -The main innovation of this release is the addition of an `Extension`, which makes it easy to add a huge number of features to otter. - -Usage example: - -```go -key := 1 -... -entry, ok := cache.Extension().GetEntry(key) -... -key := entry.Key() -value := entry.Value() -cost := entry.Cost() -expiration := entry.Expiration() -ttl := entry.TTL() -hasExpired := entry.HasExpired() -``` - -### ✨️Features - -- Added `DeletionListener` to the builder ([#63](https://github.com/maypok86/otter/issues/63)) -- Added `Extension` ([#56](https://github.com/maypok86/otter/issues/56)) - -### 🚀 Improvements - -- Added support for Go 1.22 -- Memory consumption with small cache sizes is reduced to the level of other libraries ([#66](https://github.com/maypok86/otter/issues/66)) - -## 1.1.1 - 2024-03-06 - -### 🐞 Bug Fixes - -- Fixed alignment issues on 32-bit archs - -## 1.1.0 - 2024-03-04 - -The main innovation of this release is node code generation. Thanks to it, the cache will no longer consume more memory due to features that it does not use. For example, if you do not need an expiration policy, then otter will not store the expiration time of each entry. It also allows otter to use more effective expiration policies. - -Another expected improvement is the correction of minor synchronization problems due to the state machine. Now otter, unlike other contention-free caches in Go, should not have them at all. - -### ✨️Features - -- Added `DeleteByFunc` function to cache ([#44](https://github.com/maypok86/otter/issues/44)) -- Added `InitialCapacity` function to builder ([#47](https://github.com/maypok86/otter/issues/47)) -- Added collection of additional statistics ([#57](https://github.com/maypok86/otter/issues/57)) - -### 🚀 Improvements - -- Added proactive queue-based and timer wheel-based expiration policies with O(1) time complexity ([#55](https://github.com/maypok86/otter/issues/55)) -- Added node code generation ([#55](https://github.com/maypok86/otter/issues/55)) -- Fixed the race condition when changing the order of events ([#59](https://github.com/maypok86/otter/issues/59)) -- Reduced memory consumption on small caches - -## 1.0.0 - 2024-01-26 - -### ✨️Features - -- Builder pattern support -- Cleaner API compared to other caches ([#40](https://github.com/maypok86/otter/issues/40)) -- Added `SetIfAbsent` and `Range` functions ([#27](https://github.com/maypok86/otter/issues/27)) -- Statistics collection ([#4](https://github.com/maypok86/otter/issues/4)) -- Cost based eviction -- Support for generics and any comparable types as keys -- Support ttl ([#14](https://github.com/maypok86/otter/issues/14)) -- Excellent speed ([benchmark results](https://github.com/maypok86/otter?tab=readme-ov-file#-performance-)) -- O(1) worst case time complexity for S3-FIFO instead of O(n) -- Improved hit ratio of S3-FIFO on many traces ([simulator results](https://github.com/maypok86/otter?tab=readme-ov-file#-hit-ratio-)) diff --git a/vendor/github.com/maypok86/otter/README.md b/vendor/github.com/maypok86/otter/README.md deleted file mode 100644 index 27233930..00000000 --- a/vendor/github.com/maypok86/otter/README.md +++ /dev/null @@ -1,191 +0,0 @@ -
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+