diff --git a/buf.gen.yaml b/buf.gen.yaml index d7bc518d..5863bd2f 100644 --- a/buf.gen.yaml +++ b/buf.gen.yaml @@ -1,6 +1,7 @@ version: v2 plugins: - - remote: buf.build/protocolbuffers/go:v1.35.2 + - remote: buf.build/protocolbuffers/go:v1.36.1 out: private/gen/modules opt: - paths=source_relative + - default_api_level=API_HYBRID diff --git a/go.mod b/go.mod index b1522b37..32d84a45 100644 --- a/go.mod +++ b/go.mod @@ -3,7 +3,7 @@ module github.com/bufbuild/modules go 1.23.0 require ( - buf.build/gen/go/bufbuild/protovalidate/protocolbuffers/go v1.36.0-20241127180247-a33202765966.1 + buf.build/gen/go/bufbuild/protovalidate/protocolbuffers/go v1.36.1-20241127180247-a33202765966.1 github.com/bufbuild/buf v1.48.0 github.com/bufbuild/protovalidate-go v0.8.0 github.com/google/go-cmp v0.6.0 @@ -13,7 +13,7 @@ require ( go.uber.org/multierr v1.11.0 golang.org/x/mod v0.22.0 golang.org/x/oauth2 v0.24.0 - google.golang.org/protobuf v1.36.0 + google.golang.org/protobuf v1.36.1 ) require ( diff --git a/go.sum b/go.sum index 74706411..f915e916 100644 --- a/go.sum +++ b/go.sum @@ -1,5 +1,5 @@ -buf.build/gen/go/bufbuild/protovalidate/protocolbuffers/go v1.36.0-20241127180247-a33202765966.1 h1:ntAj16eF7AtUyzOOAFk5gvbAO52QmUKPKk7GmsIEORo= -buf.build/gen/go/bufbuild/protovalidate/protocolbuffers/go v1.36.0-20241127180247-a33202765966.1/go.mod h1:AxRT+qTj5PJCz2nyQzsR/qxAcveW5USRhJTt/edTO5w= +buf.build/gen/go/bufbuild/protovalidate/protocolbuffers/go v1.36.1-20241127180247-a33202765966.1 h1:v223wh/bhlSHSc0tU9PXRWXHhkw3UWMtth7TmYGfHAQ= +buf.build/gen/go/bufbuild/protovalidate/protocolbuffers/go v1.36.1-20241127180247-a33202765966.1/go.mod h1:/zlFuuECgFgewxwW6qQKgvMJ07YZkWlVkcSxEhJprJw= cel.dev/expr v0.19.1 h1:NciYrtDRIR0lNCnH1LFJegdjspNx9fI59O7TWcua/W4= cel.dev/expr v0.19.1/go.mod h1:MrpN08Q+lEBs+bGYdLxxHkZoUSsCp0nSKTs0nTymJgw= github.com/antlr4-go/antlr/v4 v4.13.1 h1:SqQKkuVZ+zWkMMNkjy5FZe5mr5WURWnlpmOuzYWrPrQ= @@ -73,8 +73,8 @@ google.golang.org/genproto/googleapis/api v0.0.0-20241219192143-6b3ec007d9bb h1: google.golang.org/genproto/googleapis/api v0.0.0-20241219192143-6b3ec007d9bb/go.mod h1:E5//3O5ZIG2l71Xnt+P/CYUY8Bxs8E7WMoZ9tlcMbAY= google.golang.org/genproto/googleapis/rpc v0.0.0-20241219192143-6b3ec007d9bb h1:3oy2tynMOP1QbTC0MsNNAV+Se8M2Bd0A5+x1QHyw+pI= google.golang.org/genproto/googleapis/rpc v0.0.0-20241219192143-6b3ec007d9bb/go.mod h1:lcTa1sDdWEIHMWlITnIczmw5w60CF9ffkb8Z+DVmmjA= -google.golang.org/protobuf v1.36.0 h1:mjIs9gYtt56AzC4ZaffQuh88TZurBGhIJMBZGSxNerQ= -google.golang.org/protobuf v1.36.0/go.mod h1:9fA7Ob0pmnwhb644+1+CVWFRbNajQ6iRojtC/QF5bRE= +google.golang.org/protobuf v1.36.1 h1:yBPeRvTftaleIgM3PZ/WBIZ7XM/eEYAaEyCwvyjq/gk= +google.golang.org/protobuf v1.36.1/go.mod h1:9fA7Ob0pmnwhb644+1+CVWFRbNajQ6iRojtC/QF5bRE= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= gopkg.in/check.v1 v1.0.0-20190902080502-41f04d3bba15 h1:YR8cESwS4TdDjEe65xsg0ogRM/Nc3DYOhEAlW+xobZo= gopkg.in/check.v1 v1.0.0-20190902080502-41f04d3bba15/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= diff --git a/private/gen/modules/state/v1alpha1/state.pb.go b/private/gen/modules/state/v1alpha1/state.pb.go index 19ce11c0..2a4048b6 100644 --- a/private/gen/modules/state/v1alpha1/state.pb.go +++ b/private/gen/modules/state/v1alpha1/state.pb.go @@ -14,10 +14,12 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.35.2 +// protoc-gen-go v1.36.1 // protoc (unknown) // source: state/v1alpha1/state.proto +//go:build !protoopaque + package v1alpha1 import ( @@ -25,7 +27,6 @@ import ( protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" reflect "reflect" - sync "sync" ) const ( @@ -39,11 +40,10 @@ const ( // reference from its local array of references. This is kept updated in a // global state file at the root sync directory. type GlobalState struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"hybrid.v1"` + Modules []*GlobalStateReference `protobuf:"bytes,1,rep,name=modules,proto3" json:"modules,omitempty"` unknownFields protoimpl.UnknownFields - - Modules []*GlobalStateReference `protobuf:"bytes,1,rep,name=modules,proto3" json:"modules,omitempty"` + sizeCache protoimpl.SizeCache } func (x *GlobalState) Reset() { @@ -71,11 +71,6 @@ func (x *GlobalState) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use GlobalState.ProtoReflect.Descriptor instead. -func (*GlobalState) Descriptor() ([]byte, []int) { - return file_state_v1alpha1_state_proto_rawDescGZIP(), []int{0} -} - func (x *GlobalState) GetModules() []*GlobalStateReference { if x != nil { return x.Modules @@ -83,15 +78,32 @@ func (x *GlobalState) GetModules() []*GlobalStateReference { return nil } +func (x *GlobalState) SetModules(v []*GlobalStateReference) { + x.Modules = v +} + +type GlobalState_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Modules []*GlobalStateReference +} + +func (b0 GlobalState_builder) Build() *GlobalState { + m0 := &GlobalState{} + b, x := &b0, m0 + _, _ = b, x + x.Modules = b.Modules + return m0 +} + // GlobalReference is a single managed module reference with the latest // reference from its local array of references. type GlobalStateReference struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - ModuleName string `protobuf:"bytes,1,opt,name=module_name,json=moduleName,proto3" json:"module_name,omitempty"` - LatestReference string `protobuf:"bytes,2,opt,name=latest_reference,json=latestReference,proto3" json:"latest_reference,omitempty"` + state protoimpl.MessageState `protogen:"hybrid.v1"` + ModuleName string `protobuf:"bytes,1,opt,name=module_name,json=moduleName,proto3" json:"module_name,omitempty"` + LatestReference string `protobuf:"bytes,2,opt,name=latest_reference,json=latestReference,proto3" json:"latest_reference,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *GlobalStateReference) Reset() { @@ -119,11 +131,6 @@ func (x *GlobalStateReference) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use GlobalStateReference.ProtoReflect.Descriptor instead. -func (*GlobalStateReference) Descriptor() ([]byte, []int) { - return file_state_v1alpha1_state_proto_rawDescGZIP(), []int{1} -} - func (x *GlobalStateReference) GetModuleName() string { if x != nil { return x.ModuleName @@ -138,15 +145,38 @@ func (x *GlobalStateReference) GetLatestReference() string { return "" } +func (x *GlobalStateReference) SetModuleName(v string) { + x.ModuleName = v +} + +func (x *GlobalStateReference) SetLatestReference(v string) { + x.LatestReference = v +} + +type GlobalStateReference_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + ModuleName string + LatestReference string +} + +func (b0 GlobalStateReference_builder) Build() *GlobalStateReference { + m0 := &GlobalStateReference{} + b, x := &b0, m0 + _, _ = b, x + x.ModuleName = b.ModuleName + x.LatestReference = b.LatestReference + return m0 +} + // ModuleState is an array of references that will be synced to a BSR cluster for a // managed module. This is kept updated in a state file at the managed module // directory. type ModuleState struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"hybrid.v1"` + References []*ModuleReference `protobuf:"bytes,1,rep,name=references,proto3" json:"references,omitempty"` unknownFields protoimpl.UnknownFields - - References []*ModuleReference `protobuf:"bytes,1,rep,name=references,proto3" json:"references,omitempty"` + sizeCache protoimpl.SizeCache } func (x *ModuleState) Reset() { @@ -174,11 +204,6 @@ func (x *ModuleState) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use ModuleState.ProtoReflect.Descriptor instead. -func (*ModuleState) Descriptor() ([]byte, []int) { - return file_state_v1alpha1_state_proto_rawDescGZIP(), []int{2} -} - func (x *ModuleState) GetReferences() []*ModuleReference { if x != nil { return x.References @@ -186,15 +211,32 @@ func (x *ModuleState) GetReferences() []*ModuleReference { return nil } +func (x *ModuleState) SetReferences(v []*ModuleReference) { + x.References = v +} + +type ModuleState_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + References []*ModuleReference +} + +func (b0 ModuleState_builder) Build() *ModuleState { + m0 := &ModuleState{} + b, x := &b0, m0 + _, _ = b, x + x.References = b.References + return m0 +} + // ModuleReference is a single git reference of a managed module that will be // synced to a BSR cluster. type ModuleReference struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"hybrid.v1"` + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + Digest string `protobuf:"bytes,2,opt,name=digest,proto3" json:"digest,omitempty"` unknownFields protoimpl.UnknownFields - - Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` - Digest string `protobuf:"bytes,2,opt,name=digest,proto3" json:"digest,omitempty"` + sizeCache protoimpl.SizeCache } func (x *ModuleReference) Reset() { @@ -222,11 +264,6 @@ func (x *ModuleReference) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use ModuleReference.ProtoReflect.Descriptor instead. -func (*ModuleReference) Descriptor() ([]byte, []int) { - return file_state_v1alpha1_state_proto_rawDescGZIP(), []int{3} -} - func (x *ModuleReference) GetName() string { if x != nil { return x.Name @@ -241,6 +278,30 @@ func (x *ModuleReference) GetDigest() string { return "" } +func (x *ModuleReference) SetName(v string) { + x.Name = v +} + +func (x *ModuleReference) SetDigest(v string) { + x.Digest = v +} + +type ModuleReference_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Name string + Digest string +} + +func (b0 ModuleReference_builder) Build() *ModuleReference { + m0 := &ModuleReference{} + b, x := &b0, m0 + _, _ = b, x + x.Name = b.Name + x.Digest = b.Digest + return m0 +} + var File_state_v1alpha1_state_proto protoreflect.FileDescriptor var file_state_v1alpha1_state_proto_rawDesc = []byte{ @@ -315,18 +376,6 @@ var file_state_v1alpha1_state_proto_rawDesc = []byte{ 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } -var ( - file_state_v1alpha1_state_proto_rawDescOnce sync.Once - file_state_v1alpha1_state_proto_rawDescData = file_state_v1alpha1_state_proto_rawDesc -) - -func file_state_v1alpha1_state_proto_rawDescGZIP() []byte { - file_state_v1alpha1_state_proto_rawDescOnce.Do(func() { - file_state_v1alpha1_state_proto_rawDescData = protoimpl.X.CompressGZIP(file_state_v1alpha1_state_proto_rawDescData) - }) - return file_state_v1alpha1_state_proto_rawDescData -} - var file_state_v1alpha1_state_proto_msgTypes = make([]protoimpl.MessageInfo, 4) var file_state_v1alpha1_state_proto_goTypes = []any{ (*GlobalState)(nil), // 0: state.v1alpha1.GlobalState diff --git a/private/gen/modules/state/v1alpha1/state_protoopaque.pb.go b/private/gen/modules/state/v1alpha1/state_protoopaque.pb.go new file mode 100644 index 00000000..dc3af361 --- /dev/null +++ b/private/gen/modules/state/v1alpha1/state_protoopaque.pb.go @@ -0,0 +1,423 @@ +// Copyright 2021-2023 Buf Technologies, 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. + +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.36.1 +// protoc (unknown) +// source: state/v1alpha1/state.proto + +//go:build protoopaque + +package v1alpha1 + +import ( + _ "buf.build/gen/go/bufbuild/protovalidate/protocolbuffers/go/buf/validate" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + reflect "reflect" +) + +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) +) + +// GlobalState is a sorted array managed modules, each one with the latest +// reference from its local array of references. This is kept updated in a +// global state file at the root sync directory. +type GlobalState struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Modules *[]*GlobalStateReference `protobuf:"bytes,1,rep,name=modules,proto3" json:"modules,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *GlobalState) Reset() { + *x = GlobalState{} + mi := &file_state_v1alpha1_state_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *GlobalState) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GlobalState) ProtoMessage() {} + +func (x *GlobalState) ProtoReflect() protoreflect.Message { + mi := &file_state_v1alpha1_state_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 *GlobalState) GetModules() []*GlobalStateReference { + if x != nil { + if x.xxx_hidden_Modules != nil { + return *x.xxx_hidden_Modules + } + } + return nil +} + +func (x *GlobalState) SetModules(v []*GlobalStateReference) { + x.xxx_hidden_Modules = &v +} + +type GlobalState_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Modules []*GlobalStateReference +} + +func (b0 GlobalState_builder) Build() *GlobalState { + m0 := &GlobalState{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Modules = &b.Modules + return m0 +} + +// GlobalReference is a single managed module reference with the latest +// reference from its local array of references. +type GlobalStateReference struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_ModuleName string `protobuf:"bytes,1,opt,name=module_name,json=moduleName,proto3" json:"module_name,omitempty"` + xxx_hidden_LatestReference string `protobuf:"bytes,2,opt,name=latest_reference,json=latestReference,proto3" json:"latest_reference,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *GlobalStateReference) Reset() { + *x = GlobalStateReference{} + mi := &file_state_v1alpha1_state_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *GlobalStateReference) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GlobalStateReference) ProtoMessage() {} + +func (x *GlobalStateReference) ProtoReflect() protoreflect.Message { + mi := &file_state_v1alpha1_state_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 *GlobalStateReference) GetModuleName() string { + if x != nil { + return x.xxx_hidden_ModuleName + } + return "" +} + +func (x *GlobalStateReference) GetLatestReference() string { + if x != nil { + return x.xxx_hidden_LatestReference + } + return "" +} + +func (x *GlobalStateReference) SetModuleName(v string) { + x.xxx_hidden_ModuleName = v +} + +func (x *GlobalStateReference) SetLatestReference(v string) { + x.xxx_hidden_LatestReference = v +} + +type GlobalStateReference_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + ModuleName string + LatestReference string +} + +func (b0 GlobalStateReference_builder) Build() *GlobalStateReference { + m0 := &GlobalStateReference{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_ModuleName = b.ModuleName + x.xxx_hidden_LatestReference = b.LatestReference + return m0 +} + +// ModuleState is an array of references that will be synced to a BSR cluster for a +// managed module. This is kept updated in a state file at the managed module +// directory. +type ModuleState struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_References *[]*ModuleReference `protobuf:"bytes,1,rep,name=references,proto3" json:"references,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *ModuleState) Reset() { + *x = ModuleState{} + mi := &file_state_v1alpha1_state_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *ModuleState) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ModuleState) ProtoMessage() {} + +func (x *ModuleState) ProtoReflect() protoreflect.Message { + mi := &file_state_v1alpha1_state_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 *ModuleState) GetReferences() []*ModuleReference { + if x != nil { + if x.xxx_hidden_References != nil { + return *x.xxx_hidden_References + } + } + return nil +} + +func (x *ModuleState) SetReferences(v []*ModuleReference) { + x.xxx_hidden_References = &v +} + +type ModuleState_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + References []*ModuleReference +} + +func (b0 ModuleState_builder) Build() *ModuleState { + m0 := &ModuleState{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_References = &b.References + return m0 +} + +// ModuleReference is a single git reference of a managed module that will be +// synced to a BSR cluster. +type ModuleReference struct { + state protoimpl.MessageState `protogen:"opaque.v1"` + xxx_hidden_Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + xxx_hidden_Digest string `protobuf:"bytes,2,opt,name=digest,proto3" json:"digest,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *ModuleReference) Reset() { + *x = ModuleReference{} + mi := &file_state_v1alpha1_state_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *ModuleReference) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ModuleReference) ProtoMessage() {} + +func (x *ModuleReference) ProtoReflect() protoreflect.Message { + mi := &file_state_v1alpha1_state_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 *ModuleReference) GetName() string { + if x != nil { + return x.xxx_hidden_Name + } + return "" +} + +func (x *ModuleReference) GetDigest() string { + if x != nil { + return x.xxx_hidden_Digest + } + return "" +} + +func (x *ModuleReference) SetName(v string) { + x.xxx_hidden_Name = v +} + +func (x *ModuleReference) SetDigest(v string) { + x.xxx_hidden_Digest = v +} + +type ModuleReference_builder struct { + _ [0]func() // Prevents comparability and use of unkeyed literals for the builder. + + Name string + Digest string +} + +func (b0 ModuleReference_builder) Build() *ModuleReference { + m0 := &ModuleReference{} + b, x := &b0, m0 + _, _ = b, x + x.xxx_hidden_Name = b.Name + x.xxx_hidden_Digest = b.Digest + return m0 +} + +var File_state_v1alpha1_state_proto protoreflect.FileDescriptor + +var file_state_v1alpha1_state_proto_rawDesc = []byte{ + 0x0a, 0x1a, 0x73, 0x74, 0x61, 0x74, 0x65, 0x2f, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, + 0x2f, 0x73, 0x74, 0x61, 0x74, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0e, 0x73, 0x74, + 0x61, 0x74, 0x65, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x1a, 0x1b, 0x62, 0x75, + 0x66, 0x2f, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x2f, 0x76, 0x61, 0x6c, 0x69, 0x64, + 0x61, 0x74, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x81, 0x03, 0x0a, 0x0b, 0x47, 0x6c, + 0x6f, 0x62, 0x61, 0x6c, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x3e, 0x0a, 0x07, 0x6d, 0x6f, 0x64, + 0x75, 0x6c, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x73, 0x74, 0x61, + 0x74, 0x65, 0x2e, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x47, 0x6c, 0x6f, 0x62, + 0x61, 0x6c, 0x53, 0x74, 0x61, 0x74, 0x65, 0x52, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, + 0x52, 0x07, 0x6d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x73, 0x3a, 0xb1, 0x02, 0xba, 0x48, 0xad, 0x02, + 0x1a, 0xaa, 0x02, 0x0a, 0x20, 0x6d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x5f, 0x73, 0x74, 0x61, 0x74, + 0x65, 0x2e, 0x75, 0x6e, 0x69, 0x71, 0x75, 0x65, 0x5f, 0x6d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x5f, + 0x6e, 0x61, 0x6d, 0x65, 0x73, 0x1a, 0x85, 0x02, 0x74, 0x68, 0x69, 0x73, 0x2e, 0x6d, 0x6f, 0x64, + 0x75, 0x6c, 0x65, 0x73, 0x2e, 0x6d, 0x61, 0x70, 0x28, 0x69, 0x2c, 0x20, 0x69, 0x2e, 0x6d, 0x6f, + 0x64, 0x75, 0x6c, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x29, 0x2e, 0x75, 0x6e, 0x69, 0x71, 0x75, + 0x65, 0x28, 0x29, 0x20, 0x3f, 0x20, 0x27, 0x27, 0x20, 0x3a, 0x20, 0x27, 0x6d, 0x6f, 0x64, 0x75, + 0x6c, 0x65, 0x20, 0x6e, 0x61, 0x6d, 0x65, 0x20, 0x27, 0x20, 0x2b, 0x20, 0x28, 0x74, 0x68, 0x69, + 0x73, 0x2e, 0x6d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x73, 0x2e, 0x6d, 0x61, 0x70, 0x28, 0x72, 0x65, + 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x2c, 0x20, 0x72, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, + 0x63, 0x65, 0x2e, 0x6d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x29, 0x2e, + 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x28, 0x6d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x5f, 0x6e, 0x61, + 0x6d, 0x65, 0x2c, 0x20, 0x21, 0x74, 0x68, 0x69, 0x73, 0x2e, 0x6d, 0x6f, 0x64, 0x75, 0x6c, 0x65, + 0x73, 0x2e, 0x6d, 0x61, 0x70, 0x28, 0x72, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x2c, + 0x20, 0x72, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x6d, 0x6f, 0x64, 0x75, 0x6c, + 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x29, 0x2e, 0x65, 0x78, 0x69, 0x73, 0x74, 0x73, 0x5f, 0x6f, + 0x6e, 0x65, 0x28, 0x78, 0x2c, 0x20, 0x78, 0x20, 0x3d, 0x3d, 0x20, 0x6d, 0x6f, 0x64, 0x75, 0x6c, + 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x29, 0x29, 0x29, 0x5b, 0x30, 0x5d, 0x20, 0x2b, 0x20, 0x27, + 0x20, 0x68, 0x61, 0x73, 0x20, 0x61, 0x70, 0x70, 0x65, 0x61, 0x72, 0x65, 0x64, 0x20, 0x6d, 0x75, + 0x6c, 0x74, 0x69, 0x70, 0x6c, 0x65, 0x20, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x27, 0x22, 0x72, 0x0a, + 0x14, 0x47, 0x6c, 0x6f, 0x62, 0x61, 0x6c, 0x53, 0x74, 0x61, 0x74, 0x65, 0x52, 0x65, 0x66, 0x65, + 0x72, 0x65, 0x6e, 0x63, 0x65, 0x12, 0x27, 0x0a, 0x0b, 0x6d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x5f, + 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x06, 0xba, 0x48, 0x03, 0xc8, + 0x01, 0x01, 0x52, 0x0a, 0x6d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x31, + 0x0a, 0x10, 0x6c, 0x61, 0x74, 0x65, 0x73, 0x74, 0x5f, 0x72, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, + 0x63, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x06, 0xba, 0x48, 0x03, 0xc8, 0x01, 0x01, + 0x52, 0x0f, 0x6c, 0x61, 0x74, 0x65, 0x73, 0x74, 0x52, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, + 0x65, 0x22, 0xe4, 0x02, 0x0a, 0x0b, 0x4d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x53, 0x74, 0x61, 0x74, + 0x65, 0x12, 0x3f, 0x0a, 0x0a, 0x72, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x73, 0x18, + 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x73, 0x74, 0x61, 0x74, 0x65, 0x2e, 0x76, 0x31, + 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x2e, 0x4d, 0x6f, 0x64, 0x75, 0x6c, 0x65, 0x52, 0x65, 0x66, + 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x52, 0x0a, 0x72, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, + 0x65, 0x73, 0x3a, 0x93, 0x02, 0xba, 0x48, 0x8f, 0x02, 0x1a, 0x8c, 0x02, 0x0a, 0x1e, 0x6d, 0x6f, + 0x64, 0x75, 0x6c, 0x65, 0x5f, 0x73, 0x74, 0x61, 0x74, 0x65, 0x2e, 0x75, 0x6e, 0x69, 0x71, 0x75, + 0x65, 0x5f, 0x72, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x73, 0x1a, 0xe9, 0x01, 0x74, + 0x68, 0x69, 0x73, 0x2e, 0x72, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x73, 0x2e, 0x6d, + 0x61, 0x70, 0x28, 0x69, 0x2c, 0x20, 0x69, 0x2e, 0x6e, 0x61, 0x6d, 0x65, 0x29, 0x2e, 0x75, 0x6e, + 0x69, 0x71, 0x75, 0x65, 0x28, 0x29, 0x20, 0x3f, 0x20, 0x27, 0x27, 0x20, 0x3a, 0x20, 0x27, 0x72, + 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x20, 0x27, 0x20, 0x2b, 0x20, 0x28, 0x74, 0x68, + 0x69, 0x73, 0x2e, 0x72, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x73, 0x2e, 0x6d, 0x61, + 0x70, 0x28, 0x72, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x2c, 0x20, 0x72, 0x65, 0x66, + 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x2e, 0x6e, 0x61, 0x6d, 0x65, 0x29, 0x2e, 0x66, 0x69, 0x6c, + 0x74, 0x65, 0x72, 0x28, 0x6e, 0x61, 0x6d, 0x65, 0x2c, 0x20, 0x21, 0x74, 0x68, 0x69, 0x73, 0x2e, + 0x72, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x73, 0x2e, 0x6d, 0x61, 0x70, 0x28, 0x72, + 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x2c, 0x20, 0x72, 0x65, 0x66, 0x65, 0x72, 0x65, + 0x6e, 0x63, 0x65, 0x2e, 0x6e, 0x61, 0x6d, 0x65, 0x29, 0x2e, 0x65, 0x78, 0x69, 0x73, 0x74, 0x73, + 0x5f, 0x6f, 0x6e, 0x65, 0x28, 0x78, 0x2c, 0x20, 0x78, 0x20, 0x3d, 0x3d, 0x20, 0x6e, 0x61, 0x6d, + 0x65, 0x29, 0x29, 0x29, 0x5b, 0x30, 0x5d, 0x20, 0x2b, 0x20, 0x27, 0x20, 0x68, 0x61, 0x73, 0x20, + 0x61, 0x70, 0x70, 0x65, 0x61, 0x72, 0x65, 0x64, 0x20, 0x6d, 0x75, 0x6c, 0x74, 0x69, 0x70, 0x6c, + 0x65, 0x20, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x27, 0x22, 0x4d, 0x0a, 0x0f, 0x4d, 0x6f, 0x64, 0x75, + 0x6c, 0x65, 0x52, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x12, 0x1a, 0x0a, 0x04, 0x6e, + 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x06, 0xba, 0x48, 0x03, 0xc8, 0x01, + 0x01, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x1e, 0x0a, 0x06, 0x64, 0x69, 0x67, 0x65, 0x73, + 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x06, 0xba, 0x48, 0x03, 0xc8, 0x01, 0x01, 0x52, + 0x06, 0x64, 0x69, 0x67, 0x65, 0x73, 0x74, 0x42, 0x4d, 0x5a, 0x4b, 0x62, 0x75, 0x66, 0x2e, 0x62, + 0x75, 0x69, 0x6c, 0x64, 0x2f, 0x67, 0x65, 0x6e, 0x2f, 0x67, 0x6f, 0x2f, 0x62, 0x75, 0x66, 0x62, + 0x75, 0x69, 0x6c, 0x64, 0x2f, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x64, 0x2d, 0x6d, 0x6f, 0x64, + 0x75, 0x6c, 0x65, 0x73, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x62, 0x75, 0x66, + 0x66, 0x65, 0x72, 0x73, 0x2f, 0x67, 0x6f, 0x2f, 0x73, 0x74, 0x61, 0x74, 0x65, 0x2f, 0x76, 0x31, + 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +} + +var file_state_v1alpha1_state_proto_msgTypes = make([]protoimpl.MessageInfo, 4) +var file_state_v1alpha1_state_proto_goTypes = []any{ + (*GlobalState)(nil), // 0: state.v1alpha1.GlobalState + (*GlobalStateReference)(nil), // 1: state.v1alpha1.GlobalStateReference + (*ModuleState)(nil), // 2: state.v1alpha1.ModuleState + (*ModuleReference)(nil), // 3: state.v1alpha1.ModuleReference +} +var file_state_v1alpha1_state_proto_depIdxs = []int32{ + 1, // 0: state.v1alpha1.GlobalState.modules:type_name -> state.v1alpha1.GlobalStateReference + 3, // 1: state.v1alpha1.ModuleState.references:type_name -> state.v1alpha1.ModuleReference + 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_state_v1alpha1_state_proto_init() } +func file_state_v1alpha1_state_proto_init() { + if File_state_v1alpha1_state_proto != nil { + return + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_state_v1alpha1_state_proto_rawDesc, + NumEnums: 0, + NumMessages: 4, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_state_v1alpha1_state_proto_goTypes, + DependencyIndexes: file_state_v1alpha1_state_proto_depIdxs, + MessageInfos: file_state_v1alpha1_state_proto_msgTypes, + }.Build() + File_state_v1alpha1_state_proto = out.File + file_state_v1alpha1_state_proto_rawDesc = nil + file_state_v1alpha1_state_proto_goTypes = nil + file_state_v1alpha1_state_proto_depIdxs = nil +}