Git designed for AI agents.
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.36.12
// protoc v6.30.2
// source: object.proto
package gitalypb
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)
)
// GetObjectsRequest is a request for the GetObjects RPC.
type GetObjectsRequest struct {
state protoimpl.MessageState `protogen:"open.v1"`
// repository is the repository to read objects from.
Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"`
// oids are the full object IDs to fetch. Duplicates are returned once. The
// number of object IDs per request is limited (see max_objects in the
// server configuration); requests above the limit fail with
// InvalidArgument.
Oids []string `protobuf:"bytes,2,rep,name=oids,proto3" json:"oids,omitempty"`
// resume_oid, if set, must be one of oids. Its data is returned starting at
// resume_offset instead of 0.
ResumeOid string `protobuf:"bytes,3,opt,name=resume_oid,json=resumeOid,proto3" json:"resume_oid,omitempty"`
// resume_offset is the byte offset to resume resume_oid at.
ResumeOffset int64 `protobuf:"varint,4,opt,name=resume_offset,json=resumeOffset,proto3" json:"resume_offset,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *GetObjectsRequest) Reset() {
*x = GetObjectsRequest{}
mi := &file_object_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *GetObjectsRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*GetObjectsRequest) ProtoMessage() {}
func (x *GetObjectsRequest) ProtoReflect() protoreflect.Message {
mi := &file_object_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 GetObjectsRequest.ProtoReflect.Descriptor instead.
func (*GetObjectsRequest) Descriptor() ([]byte, []int) {
return file_object_proto_rawDescGZIP(), []int{0}
}
func (x *GetObjectsRequest) GetRepository() *Repository {
if x != nil {
return x.Repository
}
return nil
}
func (x *GetObjectsRequest) GetOids() []string {
if x != nil {
return x.Oids
}
return nil
}
func (x *GetObjectsRequest) GetResumeOid() string {
if x != nil {
return x.ResumeOid
}
return ""
}
func (x *GetObjectsRequest) GetResumeOffset() int64 {
if x != nil {
return x.ResumeOffset
}
return 0
}
// GetObjectsResponse is one chunk of one object.
type GetObjectsResponse struct {
state protoimpl.MessageState `protogen:"open.v1"`
// oid is the object ID this chunk belongs to.
Oid string `protobuf:"bytes,1,opt,name=oid,proto3" json:"oid,omitempty"`
// type is the object type. Only set on the first message of an object.
Type ObjectType `protobuf:"varint,2,opt,name=type,proto3,enum=gitaly.ObjectType" json:"type,omitempty"`
// size is the total object size in bytes. Only set on the first message of
// an object.
Size int64 `protobuf:"varint,3,opt,name=size,proto3" json:"size,omitempty"`
// offset is the byte offset of data within the object.
Offset int64 `protobuf:"varint,4,opt,name=offset,proto3" json:"offset,omitempty"`
// data is a chunk of the object's raw contents.
Data []byte `protobuf:"bytes,5,opt,name=data,proto3" json:"data,omitempty"`
// missing is true if the object does not exist. No data follows.
Missing bool `protobuf:"varint,6,opt,name=missing,proto3" json:"missing,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *GetObjectsResponse) Reset() {
*x = GetObjectsResponse{}
mi := &file_object_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *GetObjectsResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*GetObjectsResponse) ProtoMessage() {}
func (x *GetObjectsResponse) ProtoReflect() protoreflect.Message {
mi := &file_object_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 GetObjectsResponse.ProtoReflect.Descriptor instead.
func (*GetObjectsResponse) Descriptor() ([]byte, []int) {
return file_object_proto_rawDescGZIP(), []int{1}
}
func (x *GetObjectsResponse) GetOid() string {
if x != nil {
return x.Oid
}
return ""
}
func (x *GetObjectsResponse) GetType() ObjectType {
if x != nil {
return x.Type
}
return ObjectType_UNKNOWN
}
func (x *GetObjectsResponse) GetSize() int64 {
if x != nil {
return x.Size
}
return 0
}
func (x *GetObjectsResponse) GetOffset() int64 {
if x != nil {
return x.Offset
}
return 0
}
func (x *GetObjectsResponse) GetData() []byte {
if x != nil {
return x.Data
}
return nil
}
func (x *GetObjectsResponse) GetMissing() bool {
if x != nil {
return x.Missing
}
return false
}
// GetTreeRequest is a request for the GetTree RPC.
type GetTreeRequest struct {
state protoimpl.MessageState `protogen:"open.v1"`
// repository is the repository to read the tree from.
Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"`
// tree_oid selects the tree directly. Mutually exclusive with revision.
TreeOid string `protobuf:"bytes,2,opt,name=tree_oid,json=treeOid,proto3" json:"tree_oid,omitempty"`
// revision selects a commit-ish whose tree (or subtree at path) is listed.
Revision []byte `protobuf:"bytes,3,opt,name=revision,proto3" json:"revision,omitempty"`
// path is the subtree path relative to the root of revision. Empty means
// the root tree. Ignored when tree_oid is set.
Path []byte `protobuf:"bytes,4,opt,name=path,proto3" json:"path,omitempty"`
// recursive lists the whole subtree instead of only direct entries.
Recursive bool `protobuf:"varint,5,opt,name=recursive,proto3" json:"recursive,omitempty"`
// include_sizes resolves and returns the size of every blob entry.
IncludeSizes bool `protobuf:"varint,6,opt,name=include_sizes,json=includeSizes,proto3" json:"include_sizes,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *GetTreeRequest) Reset() {
*x = GetTreeRequest{}
mi := &file_object_proto_msgTypes[2]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *GetTreeRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*GetTreeRequest) ProtoMessage() {}
func (x *GetTreeRequest) ProtoReflect() protoreflect.Message {
mi := &file_object_proto_msgTypes[2]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use GetTreeRequest.ProtoReflect.Descriptor instead.
func (*GetTreeRequest) Descriptor() ([]byte, []int) {
return file_object_proto_rawDescGZIP(), []int{2}
}
func (x *GetTreeRequest) GetRepository() *Repository {
if x != nil {
return x.Repository
}
return nil
}
func (x *GetTreeRequest) GetTreeOid() string {
if x != nil {
return x.TreeOid
}
return ""
}
func (x *GetTreeRequest) GetRevision() []byte {
if x != nil {
return x.Revision
}
return nil
}
func (x *GetTreeRequest) GetPath() []byte {
if x != nil {
return x.Path
}
return nil
}
func (x *GetTreeRequest) GetRecursive() bool {
if x != nil {
return x.Recursive
}
return false
}
func (x *GetTreeRequest) GetIncludeSizes() bool {
if x != nil {
return x.IncludeSizes
}
return false
}
// GetTreeResponse carries a batch of tree entries.
type GetTreeResponse struct {
state protoimpl.MessageState `protogen:"open.v1"`
// tree_oid is the object ID of the listed tree. Only set on the first
// message.
TreeOid string `protobuf:"bytes,1,opt,name=tree_oid,json=treeOid,proto3" json:"tree_oid,omitempty"`
// entries is a batch of entries.
Entries []*GetTreeResponse_Entry `protobuf:"bytes,2,rep,name=entries,proto3" json:"entries,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *GetTreeResponse) Reset() {
*x = GetTreeResponse{}
mi := &file_object_proto_msgTypes[3]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *GetTreeResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*GetTreeResponse) ProtoMessage() {}
func (x *GetTreeResponse) ProtoReflect() protoreflect.Message {
mi := &file_object_proto_msgTypes[3]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use GetTreeResponse.ProtoReflect.Descriptor instead.
func (*GetTreeResponse) Descriptor() ([]byte, []int) {
return file_object_proto_rawDescGZIP(), []int{3}
}
func (x *GetTreeResponse) GetTreeOid() string {
if x != nil {
return x.TreeOid
}
return ""
}
func (x *GetTreeResponse) GetEntries() []*GetTreeResponse_Entry {
if x != nil {
return x.Entries
}
return nil
}
// Entry is one entry of a tree.
type GetTreeResponse_Entry struct {
state protoimpl.MessageState `protogen:"open.v1"`
// path is the entry path relative to the listed tree.
Path []byte `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"`
// oid is the object ID of the entry.
Oid string `protobuf:"bytes,2,opt,name=oid,proto3" json:"oid,omitempty"`
// type is the object type (BLOB, TREE or COMMIT for submodules).
Type ObjectType `protobuf:"varint,3,opt,name=type,proto3,enum=gitaly.ObjectType" json:"type,omitempty"`
// mode is the Git file mode, e.g. 0100644.
Mode int32 `protobuf:"varint,4,opt,name=mode,proto3" json:"mode,omitempty"`
// size is the blob size if include_sizes was requested, otherwise 0.
Size int64 `protobuf:"varint,5,opt,name=size,proto3" json:"size,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *GetTreeResponse_Entry) Reset() {
*x = GetTreeResponse_Entry{}
mi := &file_object_proto_msgTypes[4]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *GetTreeResponse_Entry) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*GetTreeResponse_Entry) ProtoMessage() {}
func (x *GetTreeResponse_Entry) ProtoReflect() protoreflect.Message {
mi := &file_object_proto_msgTypes[4]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use GetTreeResponse_Entry.ProtoReflect.Descriptor instead.
func (*GetTreeResponse_Entry) Descriptor() ([]byte, []int) {
return file_object_proto_rawDescGZIP(), []int{3, 0}
}
func (x *GetTreeResponse_Entry) GetPath() []byte {
if x != nil {
return x.Path
}
return nil
}
func (x *GetTreeResponse_Entry) GetOid() string {
if x != nil {
return x.Oid
}
return ""
}
func (x *GetTreeResponse_Entry) GetType() ObjectType {
if x != nil {
return x.Type
}
return ObjectType_UNKNOWN
}
func (x *GetTreeResponse_Entry) GetMode() int32 {
if x != nil {
return x.Mode
}
return 0
}
func (x *GetTreeResponse_Entry) GetSize() int64 {
if x != nil {
return x.Size
}
return 0
}
var File_object_proto protoreflect.FileDescriptor
const file_object_proto_rawDesc = "" +
"\n" +
"\fobject.proto\x12\x06gitaly\x1a\n" +
"lint.proto\x1a\fshared.proto\"\xa5\x01\n" +
"\x11GetObjectsRequest\x128\n" +
"\n" +
"repository\x18\x01 \x01(\v2\x12.gitaly.RepositoryB\x04\x98\xc6,\x01R\n" +
"repository\x12\x12\n" +
"\x04oids\x18\x02 \x03(\tR\x04oids\x12\x1d\n" +
"\n" +
"resume_oid\x18\x03 \x01(\tR\tresumeOid\x12#\n" +
"\rresume_offset\x18\x04 \x01(\x03R\fresumeOffset\"\xa8\x01\n" +
"\x12GetObjectsResponse\x12\x10\n" +
"\x03oid\x18\x01 \x01(\tR\x03oid\x12&\n" +
"\x04type\x18\x02 \x01(\x0e2\x12.gitaly.ObjectTypeR\x04type\x12\x12\n" +
"\x04size\x18\x03 \x01(\x03R\x04size\x12\x16\n" +
"\x06offset\x18\x04 \x01(\x03R\x06offset\x12\x12\n" +
"\x04data\x18\x05 \x01(\fR\x04data\x12\x18\n" +
"\amissing\x18\x06 \x01(\bR\amissing\"\xd8\x01\n" +
"\x0eGetTreeRequest\x128\n" +
"\n" +
"repository\x18\x01 \x01(\v2\x12.gitaly.RepositoryB\x04\x98\xc6,\x01R\n" +
"repository\x12\x19\n" +
"\btree_oid\x18\x02 \x01(\tR\atreeOid\x12\x1a\n" +
"\brevision\x18\x03 \x01(\fR\brevision\x12\x12\n" +
"\x04path\x18\x04 \x01(\fR\x04path\x12\x1c\n" +
"\trecursive\x18\x05 \x01(\bR\trecursive\x12#\n" +
"\rinclude_sizes\x18\x06 \x01(\bR\fincludeSizes\"\xe4\x01\n" +
"\x0fGetTreeResponse\x12\x19\n" +
"\btree_oid\x18\x01 \x01(\tR\atreeOid\x127\n" +
"\aentries\x18\x02 \x03(\v2\x1d.gitaly.GetTreeResponse.EntryR\aentries\x1a}\n" +
"\x05Entry\x12\x12\n" +
"\x04path\x18\x01 \x01(\fR\x04path\x12\x10\n" +
"\x03oid\x18\x02 \x01(\tR\x03oid\x12&\n" +
"\x04type\x18\x03 \x01(\x0e2\x12.gitaly.ObjectTypeR\x04type\x12\x12\n" +
"\x04mode\x18\x04 \x01(\x05R\x04mode\x12\x12\n" +
"\x04size\x18\x05 \x01(\x03R\x04size2\xa4\x01\n" +
"\rObjectService\x12M\n" +
"\n" +
"GetObjects\x12\x19.gitaly.GetObjectsRequest\x1a\x1a.gitaly.GetObjectsResponse\"\x06\xfa\x97(\x02\b\x020\x01\x12D\n" +
"\aGetTree\x12\x16.gitaly.GetTreeRequest\x1a\x17.gitaly.GetTreeResponse\"\x06\xfa\x97(\x02\b\x020\x01B.Z,github.com/feder-cr/git-ai/proto/go/gitalypbb\x06proto3"
var (
file_object_proto_rawDescOnce sync.Once
file_object_proto_rawDescData []byte
)
func file_object_proto_rawDescGZIP() []byte {
file_object_proto_rawDescOnce.Do(func() {
file_object_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_object_proto_rawDesc), len(file_object_proto_rawDesc)))
})
return file_object_proto_rawDescData
}
var file_object_proto_msgTypes = make([]protoimpl.MessageInfo, 5)
var file_object_proto_goTypes = []any{
(*GetObjectsRequest)(nil), // 0: gitaly.GetObjectsRequest
(*GetObjectsResponse)(nil), // 1: gitaly.GetObjectsResponse
(*GetTreeRequest)(nil), // 2: gitaly.GetTreeRequest
(*GetTreeResponse)(nil), // 3: gitaly.GetTreeResponse
(*GetTreeResponse_Entry)(nil), // 4: gitaly.GetTreeResponse.Entry
(*Repository)(nil), // 5: gitaly.Repository
(ObjectType)(0), // 6: gitaly.ObjectType
}
var file_object_proto_depIdxs = []int32{
5, // 0: gitaly.GetObjectsRequest.repository:type_name -> gitaly.Repository
6, // 1: gitaly.GetObjectsResponse.type:type_name -> gitaly.ObjectType
5, // 2: gitaly.GetTreeRequest.repository:type_name -> gitaly.Repository
4, // 3: gitaly.GetTreeResponse.entries:type_name -> gitaly.GetTreeResponse.Entry
6, // 4: gitaly.GetTreeResponse.Entry.type:type_name -> gitaly.ObjectType
0, // 5: gitaly.ObjectService.GetObjects:input_type -> gitaly.GetObjectsRequest
2, // 6: gitaly.ObjectService.GetTree:input_type -> gitaly.GetTreeRequest
1, // 7: gitaly.ObjectService.GetObjects:output_type -> gitaly.GetObjectsResponse
3, // 8: gitaly.ObjectService.GetTree:output_type -> gitaly.GetTreeResponse
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_object_proto_init() }
func file_object_proto_init() {
if File_object_proto != nil {
return
}
file_lint_proto_init()
file_shared_proto_init()
type x struct{}
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: unsafe.Slice(unsafe.StringData(file_object_proto_rawDesc), len(file_object_proto_rawDesc)),
NumEnums: 0,
NumMessages: 5,
NumExtensions: 0,
NumServices: 1,
},
GoTypes: file_object_proto_goTypes,
DependencyIndexes: file_object_proto_depIdxs,
MessageInfos: file_object_proto_msgTypes,
}.Build()
File_object_proto = out.File
file_object_proto_goTypes = nil
file_object_proto_depIdxs = nil
}