diff options
author | John Cai <jcai@gitlab.com> | 2019-08-13 09:09:30 +0300 |
---|---|---|
committer | John Cai <jcai@gitlab.com> | 2019-08-28 21:04:31 +0300 |
commit | def32faefd89dbfd4b96a48f378c53ed3da05b68 (patch) | |
tree | 315f40c3592eaed3502add98baeecf1dfabf0e8f /proto/go | |
parent | 9d392473e4d23efa28ac567298a1b6abcd8116cf (diff) |
Modify GetBlobs RPC to return type
Since we need a batch finder for tree entries, we can use the GetBlobs
RPC to return any object that is at a revision:path.
Diffstat (limited to 'proto/go')
-rw-r--r-- | proto/go/gitalypb/blob.pb.go | 108 |
1 files changed, 59 insertions, 49 deletions
diff --git a/proto/go/gitalypb/blob.pb.go b/proto/go/gitalypb/blob.pb.go index 2dd4ae9fa..f585c129a 100644 --- a/proto/go/gitalypb/blob.pb.go +++ b/proto/go/gitalypb/blob.pb.go @@ -249,14 +249,15 @@ type GetBlobsResponse struct { // Chunk of blob data, could span over multiple messages. Data []byte `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"` // Object ID of the current blob. Only present on the first message per blob. Empty if no blob was found. - Oid string `protobuf:"bytes,3,opt,name=oid,proto3" json:"oid,omitempty"` - IsSubmodule bool `protobuf:"varint,4,opt,name=is_submodule,json=isSubmodule,proto3" json:"is_submodule,omitempty"` - Mode int32 `protobuf:"varint,5,opt,name=mode,proto3" json:"mode,omitempty"` - Revision string `protobuf:"bytes,6,opt,name=revision,proto3" json:"revision,omitempty"` - Path []byte `protobuf:"bytes,7,opt,name=path,proto3" json:"path,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + Oid string `protobuf:"bytes,3,opt,name=oid,proto3" json:"oid,omitempty"` + IsSubmodule bool `protobuf:"varint,4,opt,name=is_submodule,json=isSubmodule,proto3" json:"is_submodule,omitempty"` + Mode int32 `protobuf:"varint,5,opt,name=mode,proto3" json:"mode,omitempty"` + Revision string `protobuf:"bytes,6,opt,name=revision,proto3" json:"revision,omitempty"` + Path []byte `protobuf:"bytes,7,opt,name=path,proto3" json:"path,omitempty"` + Type ObjectType `protobuf:"varint,8,opt,name=type,proto3,enum=gitaly.ObjectType" json:"type,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } func (m *GetBlobsResponse) Reset() { *m = GetBlobsResponse{} } @@ -333,6 +334,13 @@ func (m *GetBlobsResponse) GetPath() []byte { return nil } +func (m *GetBlobsResponse) GetType() ObjectType { + if m != nil { + return m.Type + } + return ObjectType_UNKNOWN +} + type LFSPointer struct { Size int64 `protobuf:"varint,1,opt,name=size,proto3" json:"size,omitempty"` Data []byte `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"` @@ -745,47 +753,49 @@ func init() { func init() { proto.RegisterFile("blob.proto", fileDescriptor_6903d1e8a20272e8) } var fileDescriptor_6903d1e8a20272e8 = []byte{ - // 636 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x55, 0xcd, 0x4e, 0xdb, 0x40, - 0x10, 0xd6, 0x62, 0x02, 0xc9, 0x24, 0x50, 0xba, 0x6a, 0xc1, 0x58, 0x2d, 0x32, 0x56, 0x0f, 0xbe, - 0x34, 0xa1, 0xa9, 0x7a, 0xad, 0x04, 0x07, 0x22, 0x4a, 0x05, 0x68, 0xb9, 0x55, 0x95, 0x22, 0x1b, - 0x6f, 0x60, 0xd1, 0xc6, 0xeb, 0x7a, 0x17, 0x10, 0x7d, 0x91, 0x3e, 0x48, 0xef, 0x7d, 0x84, 0x3e, - 0x47, 0x9f, 0xa1, 0xa7, 0xca, 0xeb, 0x9f, 0xd8, 0x89, 0xd3, 0x8b, 0xdb, 0xdb, 0xec, 0xcc, 0xce, - 0x7c, 0xdf, 0xcc, 0x7c, 0x5e, 0x03, 0xf8, 0x5c, 0xf8, 0xfd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ytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x55, 0xc1, 0x6e, 0xd3, 0x40, + 0x10, 0xd5, 0xd6, 0x4d, 0xeb, 0x4c, 0xd2, 0x52, 0x56, 0xd0, 0xba, 0x16, 0x54, 0xae, 0x85, 0x90, + 0x2f, 0x24, 0x25, 0x88, 0x2b, 0x52, 0x7b, 0x68, 0x54, 0x8a, 0xda, 0x6a, 0xcb, 0x09, 0x21, 0x45, + 0x76, 0xbd, 0x69, 0xb7, 0xda, 0x78, 0x8d, 0x77, 0xdb, 0x2a, 0xfc, 0x08, 0x7f, 0xc3, 0x27, 0xf0, + 0x03, 0xfc, 0x00, 0xdf, 0xc0, 0x09, 0x79, 0x6d, 0x27, 0x4e, 0xe2, 0x70, 0x31, 0xdc, 0x66, 0x67, + 0x76, 0xe6, 0xbd, 0x99, 0x79, 0x5e, 0x03, 0x04, 0x5c, 0x04, 0x9d, 0x38, 0x11, 0x4a, 0xe0, 0xb5, + 0x6b, 0xa6, 0x7c, 0x3e, 0xb6, 0xdb, 0xf2, 0xc6, 0x4f, 0x68, 0x98, 0x79, 0x5d, 0x0e, 0x9b, 0x7d, + 0xaa, 0x8e, 0xb8, 0x08, 0x08, 0xfd, 0x72, 0x47, 0xa5, 0xc2, 0x3d, 0x80, 0x84, 0xc6, 0x42, 0x32, + 0x25, 0x92, 0xb1, 0x85, 0x1c, 0xe4, 0xb5, 0x7a, 0xb8, 0x93, 0x25, 0x77, 0xc8, 0x24, 0x42, 0x4a, + 0xb7, 0xf0, 0x16, 0x18, 0x82, 0x85, 0xd6, 0x8a, 0x83, 0xbc, 0x26, 0x49, 0x4d, 0xfc, 0x04, 0x1a, + 0x9c, 0x8d, 0x98, 0xb2, 0x0c, 0x07, 0x79, 0x06, 0xc9, 0x0e, 0xee, 0x29, 0x3c, 0x9a, 0xa0, 0xc9, + 0x58, 0x44, 0x92, 0x62, 0x0c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x79, 0x0d, + 0x73, 0xc5, 0x46, 0xaf, 0x0f, 0x10, 0x7e, 0x0f, 0x66, 0xf1, 0xac, 0xe0, 0x9d, 0x25, 0xcf, 0x9d, + 0x6d, 0x2d, 0x06, 0xaa, 0x6a, 0x7d, 0xd6, 0x7f, 0x92, 0x52, 0xd7, 0xf8, 0x79, 0x29, 0x71, 0x71, + 0xf2, 0xf6, 0xde, 0xb2, 0x70, 0x55, 0x75, 0x0a, 0x8f, 0x17, 0x64, 0x81, 0x9d, 0x52, 0x85, 0x4a, + 0xc5, 0xdb, 0xfb, 0x7f, 0xb9, 0xb1, 0x1c, 0x66, 0x76, 0x7b, 0x33, 0x30, 0x95, 0x22, 0x9a, 0x81, + 0xa9, 0x5e, 0xfd, 0x0c, 0xcc, 0xd1, 0xc1, 0xa7, 0x34, 0x81, 0xfb, 0x41, 0xe7, 0x4a, 0x8c, 0xba, + 0x99, 0xf9, 0x4a, 0x24, 0xd7, 0xdd, 0xac, 0x4c, 0x57, 0xff, 0x9b, 0xbb, 0xd7, 0x22, 0x3f, 0xc7, + 0x41, 0xb0, 0xa6, 0x5d, 0x6f, 0xfe, 0x04, 0x00, 0x00, 0xff, 0xff, 0x4b, 0xcb, 0x42, 0x4d, 0xd2, + 0x07, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. |