mirror of
https://codeberg.org/git-pages/git-pages.git
synced 2026-05-16 20:21:33 +00:00
294 lines
7.8 KiB
Go
294 lines
7.8 KiB
Go
// Code generated by protoc-gen-go. DO NOT EDIT.
|
|
// versions:
|
|
// protoc-gen-go v1.36.9
|
|
// protoc v3.21.12
|
|
// source: src/schema.proto
|
|
|
|
package main
|
|
|
|
import (
|
|
reflect "reflect"
|
|
sync "sync"
|
|
unsafe "unsafe"
|
|
|
|
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
|
|
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
|
|
)
|
|
|
|
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 Type int32
|
|
|
|
const (
|
|
// Invalid entry.
|
|
Type_Invalid Type = 0
|
|
// Directory.
|
|
Type_Directory Type = 1
|
|
// Inline file. `Blob.Data` contains file contents.
|
|
Type_InlineFile Type = 2
|
|
// External file. `Blob.Data` contains object reference.
|
|
Type_ExternalFile Type = 3
|
|
// Symlink. `Blob.Data` contains relative path.
|
|
Type_Symlink Type = 4
|
|
)
|
|
|
|
// Enum value maps for Type.
|
|
var (
|
|
Type_name = map[int32]string{
|
|
0: "Invalid",
|
|
1: "Directory",
|
|
2: "InlineFile",
|
|
3: "ExternalFile",
|
|
4: "Symlink",
|
|
}
|
|
Type_value = map[string]int32{
|
|
"Invalid": 0,
|
|
"Directory": 1,
|
|
"InlineFile": 2,
|
|
"ExternalFile": 3,
|
|
"Symlink": 4,
|
|
}
|
|
)
|
|
|
|
func (x Type) Enum() *Type {
|
|
p := new(Type)
|
|
*p = x
|
|
return p
|
|
}
|
|
|
|
func (x Type) String() string {
|
|
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
|
|
}
|
|
|
|
func (Type) Descriptor() protoreflect.EnumDescriptor {
|
|
return file_src_schema_proto_enumTypes[0].Descriptor()
|
|
}
|
|
|
|
func (Type) Type() protoreflect.EnumType {
|
|
return &file_src_schema_proto_enumTypes[0]
|
|
}
|
|
|
|
func (x Type) Number() protoreflect.EnumNumber {
|
|
return protoreflect.EnumNumber(x)
|
|
}
|
|
|
|
// Deprecated: Use Type.Descriptor instead.
|
|
func (Type) EnumDescriptor() ([]byte, []int) {
|
|
return file_src_schema_proto_rawDescGZIP(), []int{0}
|
|
}
|
|
|
|
type Entry struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Type Type `protobuf:"varint,1,opt,name=type,proto3,enum=main.Type" json:"type,omitempty"`
|
|
Size int64 `protobuf:"varint,2,opt,name=size,proto3" json:"size,omitempty"`
|
|
Data []byte `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *Entry) Reset() {
|
|
*x = Entry{}
|
|
mi := &file_src_schema_proto_msgTypes[0]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *Entry) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*Entry) ProtoMessage() {}
|
|
|
|
func (x *Entry) ProtoReflect() protoreflect.Message {
|
|
mi := &file_src_schema_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 Entry.ProtoReflect.Descriptor instead.
|
|
func (*Entry) Descriptor() ([]byte, []int) {
|
|
return file_src_schema_proto_rawDescGZIP(), []int{0}
|
|
}
|
|
|
|
func (x *Entry) GetType() Type {
|
|
if x != nil {
|
|
return x.Type
|
|
}
|
|
return Type_Invalid
|
|
}
|
|
|
|
func (x *Entry) GetSize() int64 {
|
|
if x != nil {
|
|
return x.Size
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *Entry) GetData() []byte {
|
|
if x != nil {
|
|
return x.Data
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type Manifest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
RepoURL string `protobuf:"bytes,1,opt,name=repoURL,proto3" json:"repoURL,omitempty"`
|
|
Branch string `protobuf:"bytes,2,opt,name=branch,proto3" json:"branch,omitempty"`
|
|
Commit string `protobuf:"bytes,3,opt,name=commit,proto3" json:"commit,omitempty"`
|
|
Tree map[string]*Entry `protobuf:"bytes,4,rep,name=tree,proto3" json:"tree,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *Manifest) Reset() {
|
|
*x = Manifest{}
|
|
mi := &file_src_schema_proto_msgTypes[1]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *Manifest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*Manifest) ProtoMessage() {}
|
|
|
|
func (x *Manifest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_src_schema_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 Manifest.ProtoReflect.Descriptor instead.
|
|
func (*Manifest) Descriptor() ([]byte, []int) {
|
|
return file_src_schema_proto_rawDescGZIP(), []int{1}
|
|
}
|
|
|
|
func (x *Manifest) GetRepoURL() string {
|
|
if x != nil {
|
|
return x.RepoURL
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *Manifest) GetBranch() string {
|
|
if x != nil {
|
|
return x.Branch
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *Manifest) GetCommit() string {
|
|
if x != nil {
|
|
return x.Commit
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *Manifest) GetTree() map[string]*Entry {
|
|
if x != nil {
|
|
return x.Tree
|
|
}
|
|
return nil
|
|
}
|
|
|
|
var File_src_schema_proto protoreflect.FileDescriptor
|
|
|
|
const file_src_schema_proto_rawDesc = "" +
|
|
"\n" +
|
|
"\x10src/schema.proto\x12\x04main\"O\n" +
|
|
"\x05Entry\x12\x1e\n" +
|
|
"\x04type\x18\x01 \x01(\x0e2\n" +
|
|
".main.TypeR\x04type\x12\x12\n" +
|
|
"\x04size\x18\x02 \x01(\x03R\x04size\x12\x12\n" +
|
|
"\x04data\x18\x03 \x01(\fR\x04data\"\xc8\x01\n" +
|
|
"\bManifest\x12\x18\n" +
|
|
"\arepoURL\x18\x01 \x01(\tR\arepoURL\x12\x16\n" +
|
|
"\x06branch\x18\x02 \x01(\tR\x06branch\x12\x16\n" +
|
|
"\x06commit\x18\x03 \x01(\tR\x06commit\x12,\n" +
|
|
"\x04tree\x18\x04 \x03(\v2\x18.main.Manifest.TreeEntryR\x04tree\x1aD\n" +
|
|
"\tTreeEntry\x12\x10\n" +
|
|
"\x03key\x18\x01 \x01(\tR\x03key\x12!\n" +
|
|
"\x05value\x18\x02 \x01(\v2\v.main.EntryR\x05value:\x028\x01*Q\n" +
|
|
"\x04Type\x12\v\n" +
|
|
"\aInvalid\x10\x00\x12\r\n" +
|
|
"\tDirectory\x10\x01\x12\x0e\n" +
|
|
"\n" +
|
|
"InlineFile\x10\x02\x12\x10\n" +
|
|
"\fExternalFile\x10\x03\x12\v\n" +
|
|
"\aSymlink\x10\x04b\x06proto3"
|
|
|
|
var (
|
|
file_src_schema_proto_rawDescOnce sync.Once
|
|
file_src_schema_proto_rawDescData []byte
|
|
)
|
|
|
|
func file_src_schema_proto_rawDescGZIP() []byte {
|
|
file_src_schema_proto_rawDescOnce.Do(func() {
|
|
file_src_schema_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_src_schema_proto_rawDesc), len(file_src_schema_proto_rawDesc)))
|
|
})
|
|
return file_src_schema_proto_rawDescData
|
|
}
|
|
|
|
var file_src_schema_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
|
|
var file_src_schema_proto_msgTypes = make([]protoimpl.MessageInfo, 3)
|
|
var file_src_schema_proto_goTypes = []any{
|
|
(Type)(0), // 0: main.Type
|
|
(*Entry)(nil), // 1: main.Entry
|
|
(*Manifest)(nil), // 2: main.Manifest
|
|
nil, // 3: main.Manifest.TreeEntry
|
|
}
|
|
var file_src_schema_proto_depIdxs = []int32{
|
|
0, // 0: main.Entry.type:type_name -> main.Type
|
|
3, // 1: main.Manifest.tree:type_name -> main.Manifest.TreeEntry
|
|
1, // 2: main.Manifest.TreeEntry.value:type_name -> main.Entry
|
|
3, // [3:3] is the sub-list for method output_type
|
|
3, // [3:3] 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_src_schema_proto_init() }
|
|
func file_src_schema_proto_init() {
|
|
if File_src_schema_proto != nil {
|
|
return
|
|
}
|
|
type x struct{}
|
|
out := protoimpl.TypeBuilder{
|
|
File: protoimpl.DescBuilder{
|
|
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
|
RawDescriptor: unsafe.Slice(unsafe.StringData(file_src_schema_proto_rawDesc), len(file_src_schema_proto_rawDesc)),
|
|
NumEnums: 1,
|
|
NumMessages: 3,
|
|
NumExtensions: 0,
|
|
NumServices: 0,
|
|
},
|
|
GoTypes: file_src_schema_proto_goTypes,
|
|
DependencyIndexes: file_src_schema_proto_depIdxs,
|
|
EnumInfos: file_src_schema_proto_enumTypes,
|
|
MessageInfos: file_src_schema_proto_msgTypes,
|
|
}.Build()
|
|
File_src_schema_proto = out.File
|
|
file_src_schema_proto_goTypes = nil
|
|
file_src_schema_proto_depIdxs = nil
|
|
}
|