diff --git a/3673578031572d461a5ef2b2a8b3ab51adb3e6c7 b/3673578031572d461a5ef2b2a8b3ab51adb3e6c7 index 80dd237..9358222 100644 --- a/3673578031572d461a5ef2b2a8b3ab51adb3e6c7 +++ b/3673578031572d461a5ef2b2a8b3ab51adb3e6c7 @@ -1323,3 +1323,427 @@ func (v *Repos) Unmarshal(data []byte) error { } // `autogen:repo.pb.go` + +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.35.2-devel +// protoc v3.21.12 +// source: repo.proto + +package gitpb + +import ( + reflect "reflect" + sync "sync" + + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + timestamppb "google.golang.org/protobuf/types/known/timestamppb" +) + +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 Repo struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + FullPath string `protobuf:"bytes,1,opt,name=fullPath,proto3" json:"fullPath,omitempty"` // the actual path to the .git directory: '/home/devel/golang.org/x/tools' + LastPull *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=lastPull,proto3" json:"lastPull,omitempty"` // last time a git pull was done + MasterBranchName string `protobuf:"bytes,3,opt,name=masterBranchName,proto3" json:"masterBranchName,omitempty"` // git 'main' or 'master' branch name + DevelBranchName string `protobuf:"bytes,4,opt,name=develBranchName,proto3" json:"develBranchName,omitempty"` // whatever the git 'devel' branch name is + UserBranchName string `protobuf:"bytes,5,opt,name=userBranchName,proto3" json:"userBranchName,omitempty"` // whatever your username branch is + Tags *GitTags `protobuf:"bytes,6,opt,name=tags,proto3" json:"tags,omitempty"` // known tags + GoPath string `protobuf:"bytes,7,opt,name=goPath,proto3" json:"goPath,omitempty"` // `autogenpb:unique` // the logical path as used by golang: 'go.wit.com/apps/helloworld' + GoLibrary bool `protobuf:"varint,8,opt,name=goLibrary,proto3" json:"goLibrary,omitempty"` // is this a golang library? + GoBinary bool `protobuf:"varint,9,opt,name=goBinary,proto3" json:"goBinary,omitempty"` // is this a golang binary? + GoPrimitive bool `protobuf:"varint,10,opt,name=goPrimitive,proto3" json:"goPrimitive,omitempty"` // if this is a golang primitive (only has go.mod) + GoPlugin bool `protobuf:"varint,11,opt,name=goPlugin,proto3" json:"goPlugin,omitempty"` // is this a golang plugin? + GoDeps *GoDeps `protobuf:"bytes,12,opt,name=goDeps,proto3" json:"goDeps,omitempty"` // what is in the go.sum file + LastGoDep *timestamppb.Timestamp `protobuf:"bytes,13,opt,name=lastGoDep,proto3" json:"lastGoDep,omitempty"` // last time go.sum was processed + Dirty bool `protobuf:"varint,14,opt,name=dirty,proto3" json:"dirty,omitempty"` // if git says things have been changed + Published *GoDeps `protobuf:"bytes,15,opt,name=published,proto3" json:"published,omitempty"` // the last published go.mod/go.sum + TargetVersion string `protobuf:"bytes,16,opt,name=targetVersion,proto3" json:"targetVersion,omitempty"` // useful during the package release process + ReadOnly bool `protobuf:"varint,17,opt,name=readOnly,proto3" json:"readOnly,omitempty"` // tracks access to 'git push' + URL string `protobuf:"bytes,18,opt,name=URL,proto3" json:"URL,omitempty"` // the URL. amazingly I didn't add this earlier. duh. + GoProtobuf bool `protobuf:"varint,19,opt,name=goProtobuf,proto3" json:"goProtobuf,omitempty"` // autogen go files from .proto + Desc string `protobuf:"bytes,20,opt,name=desc,proto3" json:"desc,omitempty"` // what is this repo? + GoMod []byte `protobuf:"bytes,21,opt,name=goMod,proto3" json:"goMod,omitempty"` // the last go.mod file + GoSum []byte `protobuf:"bytes,22,opt,name=goSum,proto3" json:"goSum,omitempty"` // the last go.sum file +} + +func (x *Repo) Reset() { + *x = Repo{} + mi := &file_repo_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *Repo) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Repo) ProtoMessage() {} + +func (x *Repo) ProtoReflect() protoreflect.Message { + mi := &file_repo_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 Repo.ProtoReflect.Descriptor instead. +func (*Repo) Descriptor() ([]byte, []int) { + return file_repo_proto_rawDescGZIP(), []int{0} +} + +func (x *Repo) GetFullPath() string { + if x != nil { + return x.FullPath + } + return "" +} + +func (x *Repo) GetLastPull() *timestamppb.Timestamp { + if x != nil { + return x.LastPull + } + return nil +} + +func (x *Repo) GetMasterBranchName() string { + if x != nil { + return x.MasterBranchName + } + return "" +} + +func (x *Repo) GetDevelBranchName() string { + if x != nil { + return x.DevelBranchName + } + return "" +} + +func (x *Repo) GetUserBranchName() string { + if x != nil { + return x.UserBranchName + } + return "" +} + +func (x *Repo) GetTags() *GitTags { + if x != nil { + return x.Tags + } + return nil +} + +func (x *Repo) GetGoPath() string { + if x != nil { + return x.GoPath + } + return "" +} + +func (x *Repo) GetGoLibrary() bool { + if x != nil { + return x.GoLibrary + } + return false +} + +func (x *Repo) GetGoBinary() bool { + if x != nil { + return x.GoBinary + } + return false +} + +func (x *Repo) GetGoPrimitive() bool { + if x != nil { + return x.GoPrimitive + } + return false +} + +func (x *Repo) GetGoPlugin() bool { + if x != nil { + return x.GoPlugin + } + return false +} + +func (x *Repo) GetGoDeps() *GoDeps { + if x != nil { + return x.GoDeps + } + return nil +} + +func (x *Repo) GetLastGoDep() *timestamppb.Timestamp { + if x != nil { + return x.LastGoDep + } + return nil +} + +func (x *Repo) GetDirty() bool { + if x != nil { + return x.Dirty + } + return false +} + +func (x *Repo) GetPublished() *GoDeps { + if x != nil { + return x.Published + } + return nil +} + +func (x *Repo) GetTargetVersion() string { + if x != nil { + return x.TargetVersion + } + return "" +} + +func (x *Repo) GetReadOnly() bool { + if x != nil { + return x.ReadOnly + } + return false +} + +func (x *Repo) GetURL() string { + if x != nil { + return x.URL + } + return "" +} + +func (x *Repo) GetGoProtobuf() bool { + if x != nil { + return x.GoProtobuf + } + return false +} + +func (x *Repo) GetDesc() string { + if x != nil { + return x.Desc + } + return "" +} + +func (x *Repo) GetGoMod() []byte { + if x != nil { + return x.GoMod + } + return nil +} + +func (x *Repo) GetGoSum() []byte { + if x != nil { + return x.GoSum + } + return nil +} + +type Repos struct { + Lock sync.RWMutex // auto-added by go.wit.com/apps/autogenpb + + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Uuid string `protobuf:"bytes,1,opt,name=uuid,proto3" json:"uuid,omitempty"` // `autogenpb:uuid:8daaeba1-fb1f-4762-ae6e-95a55d352673` + Version string `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"` // maybe can be used for protobuf schema change violations + Repos []*Repo `protobuf:"bytes,3,rep,name=repos,proto3" json:"repos,omitempty"` +} + +func (x *Repos) Reset() { + *x = Repos{} + mi := &file_repo_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *Repos) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Repos) ProtoMessage() {} + +func (x *Repos) ProtoReflect() protoreflect.Message { + mi := &file_repo_proto_msgTypes[1] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use Repos.ProtoReflect.Descriptor instead. +func (*Repos) Descriptor() ([]byte, []int) { + return file_repo_proto_rawDescGZIP(), []int{1} +} + +func (x *Repos) GetUuid() string { + if x != nil { + return x.Uuid + } + return "" +} + +func (x *Repos) GetVersion() string { + if x != nil { + return x.Version + } + return "" +} + +func (x *Repos) GetRepos() []*Repo { + if x != nil { + return x.Repos + } + return nil +} + +var File_repo_proto protoreflect.FileDescriptor + +var file_repo_proto_rawDesc = []byte{ + 0x0a, 0x0a, 0x72, 0x65, 0x70, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x05, 0x67, 0x69, + 0x74, 0x70, 0x62, 0x1a, 0x0c, 0x67, 0x69, 0x74, 0x54, 0x61, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, + 0x6f, 0x1a, 0x0b, 0x67, 0x6f, 0x44, 0x65, 0x70, 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, 0x22, + 0xe4, 0x05, 0x0a, 0x04, 0x52, 0x65, 0x70, 0x6f, 0x12, 0x1a, 0x0a, 0x08, 0x66, 0x75, 0x6c, 0x6c, + 0x50, 0x61, 0x74, 0x68, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x66, 0x75, 0x6c, 0x6c, + 0x50, 0x61, 0x74, 0x68, 0x12, 0x36, 0x0a, 0x08, 0x6c, 0x61, 0x73, 0x74, 0x50, 0x75, 0x6c, 0x6c, + 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, 0x08, 0x6c, 0x61, 0x73, 0x74, 0x50, 0x75, 0x6c, 0x6c, 0x12, 0x2a, 0x0a, 0x10, + 0x6d, 0x61, 0x73, 0x74, 0x65, 0x72, 0x42, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x4e, 0x61, 0x6d, 0x65, + 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x10, 0x6d, 0x61, 0x73, 0x74, 0x65, 0x72, 0x42, 0x72, + 0x61, 0x6e, 0x63, 0x68, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x28, 0x0a, 0x0f, 0x64, 0x65, 0x76, 0x65, + 0x6c, 0x42, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x4e, 0x61, 0x6d, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x0f, 0x64, 0x65, 0x76, 0x65, 0x6c, 0x42, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x4e, 0x61, + 0x6d, 0x65, 0x12, 0x26, 0x0a, 0x0e, 0x75, 0x73, 0x65, 0x72, 0x42, 0x72, 0x61, 0x6e, 0x63, 0x68, + 0x4e, 0x61, 0x6d, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, 0x75, 0x73, 0x65, 0x72, + 0x42, 0x72, 0x61, 0x6e, 0x63, 0x68, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x22, 0x0a, 0x04, 0x74, 0x61, + 0x67, 0x73, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0e, 0x2e, 0x67, 0x69, 0x74, 0x70, 0x62, + 0x2e, 0x47, 0x69, 0x74, 0x54, 0x61, 0x67, 0x73, 0x52, 0x04, 0x74, 0x61, 0x67, 0x73, 0x12, 0x16, + 0x0a, 0x06, 0x67, 0x6f, 0x50, 0x61, 0x74, 0x68, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, + 0x67, 0x6f, 0x50, 0x61, 0x74, 0x68, 0x12, 0x1c, 0x0a, 0x09, 0x67, 0x6f, 0x4c, 0x69, 0x62, 0x72, + 0x61, 0x72, 0x79, 0x18, 0x08, 0x20, 0x01, 0x28, 0x08, 0x52, 0x09, 0x67, 0x6f, 0x4c, 0x69, 0x62, + 0x72, 0x61, 0x72, 0x79, 0x12, 0x1a, 0x0a, 0x08, 0x67, 0x6f, 0x42, 0x69, 0x6e, 0x61, 0x72, 0x79, + 0x18, 0x09, 0x20, 0x01, 0x28, 0x08, 0x52, 0x08, 0x67, 0x6f, 0x42, 0x69, 0x6e, 0x61, 0x72, 0x79, + 0x12, 0x20, 0x0a, 0x0b, 0x67, 0x6f, 0x50, 0x72, 0x69, 0x6d, 0x69, 0x74, 0x69, 0x76, 0x65, 0x18, + 0x0a, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0b, 0x67, 0x6f, 0x50, 0x72, 0x69, 0x6d, 0x69, 0x74, 0x69, + 0x76, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x67, 0x6f, 0x50, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x18, 0x0b, + 0x20, 0x01, 0x28, 0x08, 0x52, 0x08, 0x67, 0x6f, 0x50, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x12, 0x25, + 0x0a, 0x06, 0x67, 0x6f, 0x44, 0x65, 0x70, 0x73, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0d, + 0x2e, 0x67, 0x69, 0x74, 0x70, 0x62, 0x2e, 0x47, 0x6f, 0x44, 0x65, 0x70, 0x73, 0x52, 0x06, 0x67, + 0x6f, 0x44, 0x65, 0x70, 0x73, 0x12, 0x38, 0x0a, 0x09, 0x6c, 0x61, 0x73, 0x74, 0x47, 0x6f, 0x44, + 0x65, 0x70, 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, 0x6c, 0x61, 0x73, 0x74, 0x47, 0x6f, 0x44, 0x65, 0x70, 0x12, + 0x14, 0x0a, 0x05, 0x64, 0x69, 0x72, 0x74, 0x79, 0x18, 0x0e, 0x20, 0x01, 0x28, 0x08, 0x52, 0x05, + 0x64, 0x69, 0x72, 0x74, 0x79, 0x12, 0x2b, 0x0a, 0x09, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x73, 0x68, + 0x65, 0x64, 0x18, 0x0f, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0d, 0x2e, 0x67, 0x69, 0x74, 0x70, 0x62, + 0x2e, 0x47, 0x6f, 0x44, 0x65, 0x70, 0x73, 0x52, 0x09, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x73, 0x68, + 0x65, 0x64, 0x12, 0x24, 0x0a, 0x0d, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x56, 0x65, 0x72, 0x73, + 0x69, 0x6f, 0x6e, 0x18, 0x10, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x74, 0x61, 0x72, 0x67, 0x65, + 0x74, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x1a, 0x0a, 0x08, 0x72, 0x65, 0x61, 0x64, + 0x4f, 0x6e, 0x6c, 0x79, 0x18, 0x11, 0x20, 0x01, 0x28, 0x08, 0x52, 0x08, 0x72, 0x65, 0x61, 0x64, + 0x4f, 0x6e, 0x6c, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x55, 0x52, 0x4c, 0x18, 0x12, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x03, 0x55, 0x52, 0x4c, 0x12, 0x1e, 0x0a, 0x0a, 0x67, 0x6f, 0x50, 0x72, 0x6f, 0x74, + 0x6f, 0x62, 0x75, 0x66, 0x18, 0x13, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0a, 0x67, 0x6f, 0x50, 0x72, + 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x12, 0x12, 0x0a, 0x04, 0x64, 0x65, 0x73, 0x63, 0x18, 0x14, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x64, 0x65, 0x73, 0x63, 0x12, 0x14, 0x0a, 0x05, 0x67, 0x6f, + 0x4d, 0x6f, 0x64, 0x18, 0x15, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x05, 0x67, 0x6f, 0x4d, 0x6f, 0x64, + 0x12, 0x14, 0x0a, 0x05, 0x67, 0x6f, 0x53, 0x75, 0x6d, 0x18, 0x16, 0x20, 0x01, 0x28, 0x0c, 0x52, + 0x05, 0x67, 0x6f, 0x53, 0x75, 0x6d, 0x22, 0x58, 0x0a, 0x05, 0x52, 0x65, 0x70, 0x6f, 0x73, 0x12, + 0x12, 0x0a, 0x04, 0x75, 0x75, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x75, + 0x75, 0x69, 0x64, 0x12, 0x18, 0x0a, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x21, 0x0a, + 0x05, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0b, 0x2e, 0x67, + 0x69, 0x74, 0x70, 0x62, 0x2e, 0x52, 0x65, 0x70, 0x6f, 0x52, 0x05, 0x72, 0x65, 0x70, 0x6f, 0x73, + 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +} + +var ( + file_repo_proto_rawDescOnce sync.Once + file_repo_proto_rawDescData = file_repo_proto_rawDesc +) + +func file_repo_proto_rawDescGZIP() []byte { + file_repo_proto_rawDescOnce.Do(func() { + file_repo_proto_rawDescData = protoimpl.X.CompressGZIP(file_repo_proto_rawDescData) + }) + return file_repo_proto_rawDescData +} + +var file_repo_proto_msgTypes = make([]protoimpl.MessageInfo, 2) +var file_repo_proto_goTypes = []any{ + (*Repo)(nil), // 0: gitpb.Repo + (*Repos)(nil), // 1: gitpb.Repos + (*timestamppb.Timestamp)(nil), // 2: google.protobuf.Timestamp + (*GitTags)(nil), // 3: gitpb.GitTags + (*GoDeps)(nil), // 4: gitpb.GoDeps +} +var file_repo_proto_depIdxs = []int32{ + 2, // 0: gitpb.Repo.lastPull:type_name -> google.protobuf.Timestamp + 3, // 1: gitpb.Repo.tags:type_name -> gitpb.GitTags + 4, // 2: gitpb.Repo.goDeps:type_name -> gitpb.GoDeps + 2, // 3: gitpb.Repo.lastGoDep:type_name -> google.protobuf.Timestamp + 4, // 4: gitpb.Repo.published:type_name -> gitpb.GoDeps + 0, // 5: gitpb.Repos.repos:type_name -> gitpb.Repo + 6, // [6:6] is the sub-list for method output_type + 6, // [6:6] is the sub-list for method input_type + 6, // [6:6] is the sub-list for extension type_name + 6, // [6:6] is the sub-list for extension extendee + 0, // [0:6] is the sub-list for field type_name +} + +func init() { file_repo_proto_init() } +func file_repo_proto_init() { + if File_repo_proto != nil { + return + } + file_gitTag_proto_init() + file_goDep_proto_init() + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_repo_proto_rawDesc, + NumEnums: 0, + NumMessages: 2, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_repo_proto_goTypes, + DependencyIndexes: file_repo_proto_depIdxs, + MessageInfos: file_repo_proto_msgTypes, + }.Build() + File_repo_proto = out.File + file_repo_proto_rawDesc = nil + file_repo_proto_goTypes = nil + file_repo_proto_depIdxs = nil +}