diff options
-rw-r--r-- | internal/gitaly/service/blob/blobs.go | 168 | ||||
-rw-r--r-- | internal/gitaly/service/blob/blobs_test.go | 244 | ||||
-rw-r--r-- | proto/blob.proto | 50 | ||||
-rw-r--r-- | proto/go/gitalypb/blob.pb.go | 566 | ||||
-rw-r--r-- | proto/go/gitalypb/blob_grpc.pb.go | 75 | ||||
-rw-r--r-- | ruby/proto/gitaly/blob_pb.rb | 17 | ||||
-rw-r--r-- | ruby/proto/gitaly/blob_services_pb.rb | 4 |
7 files changed, 974 insertions, 150 deletions
diff --git a/internal/gitaly/service/blob/blobs.go b/internal/gitaly/service/blob/blobs.go new file mode 100644 index 000000000..abe6926b5 --- /dev/null +++ b/internal/gitaly/service/blob/blobs.go @@ -0,0 +1,168 @@ +package blob + +import ( + "errors" + "fmt" + "io" + "io/ioutil" + "strings" + + "github.com/golang/protobuf/proto" + "gitlab.com/gitlab-org/gitaly/v14/internal/helper" + "gitlab.com/gitlab-org/gitaly/v14/internal/helper/chunk" + "gitlab.com/gitlab-org/gitaly/v14/proto/go/gitalypb" + "gitlab.com/gitlab-org/gitaly/v14/streamio" +) + +func verifyListBlobsRequest(req *gitalypb.ListBlobsRequest) error { + if req.GetRepository() == nil { + return errors.New("empty repository") + } + if len(req.GetRevisions()) == 0 { + return errors.New("missing revisions") + } + for _, revision := range req.Revisions { + if strings.HasPrefix(revision, "-") && revision != "--all" && revision != "--not" { + return fmt.Errorf("invalid revision: %q", revision) + } + } + return nil +} + +// ListBlobs finds all blobs which are transitively reachable via a graph walk of the given set of +// revisions. +func (s *server) ListBlobs(req *gitalypb.ListBlobsRequest, stream gitalypb.BlobService_ListBlobsServer) error { + if err := verifyListBlobsRequest(req); err != nil { + return helper.ErrInvalidArgument(err) + } + + ctx := stream.Context() + repo := s.localrepo(req.GetRepository()) + + catfileProcess, err := s.catfileCache.BatchProcess(ctx, repo) + if err != nil { + return helper.ErrInternal(fmt.Errorf("creating catfile process: %w", err)) + } + + chunker := chunk.New(&blobSender{ + send: func(blobs []*gitalypb.ListBlobsResponse_Blob) error { + return stream.Send(&gitalypb.ListBlobsResponse{ + Blobs: blobs, + }) + }, + }) + + revlistChan := revlist(ctx, repo, req.GetRevisions()) + catfileInfoChan := catfileInfo(ctx, catfileProcess, revlistChan) + catfileInfoChan = catfileInfoFilter(ctx, catfileInfoChan, func(r catfileInfoResult) bool { + return r.objectInfo.Type == "blob" + }) + + // If we have a zero bytes limit, then the caller didn't request any blob contents at all. + // We can thus skip reading blob contents completely. + if req.GetBytesLimit() == 0 { + var i uint32 + for blob := range catfileInfoChan { + if blob.err != nil { + return helper.ErrInternal(blob.err) + } + + if err := chunker.Send(&gitalypb.ListBlobsResponse_Blob{ + Oid: blob.objectInfo.Oid.String(), + Size: blob.objectInfo.Size, + }); err != nil { + return helper.ErrInternal(fmt.Errorf("sending blob chunk: %w", err)) + } + + i++ + if req.GetLimit() > 0 && i >= req.GetLimit() { + break + } + } + } else { + catfileObjectChan := catfileObject(ctx, catfileProcess, catfileInfoChan) + + var i uint32 + for blob := range catfileObjectChan { + if blob.err != nil { + return helper.ErrInternal(blob.err) + } + + headerSent := false + dataChunker := streamio.NewWriter(func(p []byte) error { + message := &gitalypb.ListBlobsResponse_Blob{ + Data: p, + } + + if !headerSent { + message.Oid = blob.objectInfo.Oid.String() + message.Size = blob.objectInfo.Size + headerSent = true + } + + if err := chunker.Send(message); err != nil { + return helper.ErrInternal(fmt.Errorf("sending blob chunk: %w", err)) + } + + return nil + }) + + readLimit := req.GetBytesLimit() + if readLimit < 0 { + readLimit = blob.objectInfo.Size + } + + _, err := io.CopyN(dataChunker, blob.objectReader, readLimit) + if err != nil && !errors.Is(err, io.EOF) { + return helper.ErrInternal(fmt.Errorf("sending blob data: %w", err)) + } + + // Discard trailing blob data in case the blob is bigger than the read + // limit. + _, err = io.Copy(ioutil.Discard, blob.objectReader) + if err != nil { + return helper.ErrInternal(fmt.Errorf("discarding blob data: %w", err)) + } + + // If we still didn't send any header, then it probably means that the blob + // itself didn't contain any data. Let's be prepared and send out the blob + // header manually in that case. + if !headerSent { + if err := chunker.Send(&gitalypb.ListBlobsResponse_Blob{ + Oid: blob.objectInfo.Oid.String(), + Size: blob.objectInfo.Size, + }); err != nil { + return helper.ErrInternal(fmt.Errorf("sending blob chunk: %w", err)) + } + } + + i++ + if req.GetLimit() > 0 && i >= req.GetLimit() { + break + } + } + } + + if err := chunker.Flush(); err != nil { + return helper.ErrInternal(err) + } + + return nil +} + +type blobSender struct { + blobs []*gitalypb.ListBlobsResponse_Blob + send func([]*gitalypb.ListBlobsResponse_Blob) error +} + +func (t *blobSender) Reset() { + t.blobs = t.blobs[:0] +} + +func (t *blobSender) Append(m proto.Message) { + t.blobs = append(t.blobs, m.(*gitalypb.ListBlobsResponse_Blob)) +} + +func (t *blobSender) Send() error { + return t.send(t.blobs) +} diff --git a/internal/gitaly/service/blob/blobs_test.go b/internal/gitaly/service/blob/blobs_test.go new file mode 100644 index 000000000..d92a9fc21 --- /dev/null +++ b/internal/gitaly/service/blob/blobs_test.go @@ -0,0 +1,244 @@ +package blob + +import ( + "bytes" + "errors" + "io" + "testing" + + "github.com/stretchr/testify/require" + "gitlab.com/gitlab-org/gitaly/v14/internal/git/gittest" + "gitlab.com/gitlab-org/gitaly/v14/internal/testhelper" + "gitlab.com/gitlab-org/gitaly/v14/internal/testhelper/testassert" + "gitlab.com/gitlab-org/gitaly/v14/proto/go/gitalypb" + "gitlab.com/gitlab-org/gitaly/v14/streamio" + "google.golang.org/grpc/codes" + "google.golang.org/grpc/status" +) + +const ( + gitattributesOID = "b680596c9f3a3c834b933aef14f94a0ab9fa604a" + gitattributesData = "/custom-highlighting/*.gitlab-custom gitlab-language=ruby\n*.lfs filter=lfs diff=lfs merge=lfs -text\n" + gitattributesSize = int64(len(gitattributesData)) + + gitignoreOID = "dfaa3f97ca337e20154a98ac9d0be76ddd1fcc82" + gitignoreSize = 241 +) + +func TestListBlobs(t *testing.T) { + // In order to get deterministic behaviour with regards to how streamio splits up values, + // we're going to limit the write batch size to something smallish. Otherwise, tests will + // depend on both the batch size of streamio and the batch size of io.Copy. + defer func(oldValue int) { + streamio.WriteBufferSize = oldValue + }(streamio.WriteBufferSize) + streamio.WriteBufferSize = 200 + + ctx, cancel := testhelper.Context() + defer cancel() + + cfg, repoProto, repoPath, client := setup(t) + + bigBlobContents := bytes.Repeat([]byte{1}, streamio.WriteBufferSize*2+1) + bigBlobOID := gittest.WriteBlob(t, cfg, repoPath, bigBlobContents) + + for _, tc := range []struct { + desc string + revisions []string + limit uint32 + bytesLimit int64 + expectedErr error + expectedBlobs []*gitalypb.ListBlobsResponse_Blob + }{ + { + desc: "missing revisions", + revisions: []string{}, + expectedErr: status.Error(codes.InvalidArgument, "missing revisions"), + }, + { + desc: "invalid revision", + revisions: []string{ + "--foobar", + }, + expectedErr: status.Error(codes.InvalidArgument, "invalid revision: \"--foobar\""), + }, + { + desc: "single blob", + revisions: []string{ + lfsPointer1, + }, + expectedBlobs: []*gitalypb.ListBlobsResponse_Blob{ + {Oid: lfsPointer1, Size: lfsPointers[lfsPointer1].Size}, + }, + }, + { + desc: "multiple blobs", + revisions: []string{ + lfsPointer1, + lfsPointer2, + lfsPointer3, + }, + expectedBlobs: []*gitalypb.ListBlobsResponse_Blob{ + {Oid: lfsPointer1, Size: lfsPointers[lfsPointer1].Size}, + {Oid: lfsPointer2, Size: lfsPointers[lfsPointer2].Size}, + {Oid: lfsPointer3, Size: lfsPointers[lfsPointer3].Size}, + }, + }, + { + desc: "tree", + revisions: []string{ + "b95c0fad32f4361845f91d9ce4c1721b52b82793", + }, + expectedBlobs: []*gitalypb.ListBlobsResponse_Blob{ + {Oid: "93e123ac8a3e6a0b600953d7598af629dec7b735", Size: 59}, + }, + }, + { + desc: "revision range", + revisions: []string{ + "master", + "^master~2", + }, + expectedBlobs: []*gitalypb.ListBlobsResponse_Blob{ + {Oid: "723c2c3f4c8a2a1e957f878c8813acfc08cda2b6", Size: 1219696}, + }, + }, + { + desc: "pseudorevisions", + revisions: []string{ + "master", + "--not", + "--all", + }, + expectedBlobs: nil, + }, + { + desc: "revision with limit", + revisions: []string{ + "master", + }, + limit: 2, + expectedBlobs: []*gitalypb.ListBlobsResponse_Blob{ + {Oid: gitattributesOID, Size: gitattributesSize}, + {Oid: gitignoreOID, Size: gitignoreSize}, + }, + }, + { + desc: "revision with limit and bytes limit", + revisions: []string{ + "master", + }, + limit: 2, + bytesLimit: 5, + expectedBlobs: []*gitalypb.ListBlobsResponse_Blob{ + {Oid: gitattributesOID, Size: gitattributesSize, Data: []byte("/cust")}, + {Oid: gitignoreOID, Size: gitignoreSize, Data: []byte("*.rbc")}, + }, + }, + { + desc: "revision with path", + revisions: []string{ + "master:.gitattributes", + }, + bytesLimit: -1, + expectedBlobs: []*gitalypb.ListBlobsResponse_Blob{ + {Oid: gitattributesOID, Size: gitattributesSize, Data: []byte(gitattributesData)}, + }, + }, + { + desc: "complete contents via negative bytes limit", + revisions: []string{ + lfsPointer1, + lfsPointer2, + lfsPointer3, + }, + bytesLimit: -1, + expectedBlobs: []*gitalypb.ListBlobsResponse_Blob{ + {Oid: lfsPointer1, Size: lfsPointers[lfsPointer1].Size, Data: lfsPointers[lfsPointer1].Data}, + {Oid: lfsPointer2, Size: lfsPointers[lfsPointer2].Size, Data: lfsPointers[lfsPointer2].Data}, + {Oid: lfsPointer3, Size: lfsPointers[lfsPointer3].Size, Data: lfsPointers[lfsPointer3].Data}, + }, + }, + { + desc: "contents truncated by bytes limit", + revisions: []string{ + lfsPointer1, + lfsPointer2, + lfsPointer3, + }, + bytesLimit: 10, + expectedBlobs: []*gitalypb.ListBlobsResponse_Blob{ + {Oid: lfsPointer1, Size: lfsPointers[lfsPointer1].Size, Data: lfsPointers[lfsPointer1].Data[:10]}, + {Oid: lfsPointer2, Size: lfsPointers[lfsPointer2].Size, Data: lfsPointers[lfsPointer2].Data[:10]}, + {Oid: lfsPointer3, Size: lfsPointers[lfsPointer3].Size, Data: lfsPointers[lfsPointer3].Data[:10]}, + }, + }, + { + desc: "bytes limit exceeding total blob content size", + revisions: []string{ + lfsPointer1, + lfsPointer2, + lfsPointer3, + }, + bytesLimit: 9000, + expectedBlobs: []*gitalypb.ListBlobsResponse_Blob{ + {Oid: lfsPointer1, Size: lfsPointers[lfsPointer1].Size, Data: lfsPointers[lfsPointer1].Data}, + {Oid: lfsPointer2, Size: lfsPointers[lfsPointer2].Size, Data: lfsPointers[lfsPointer2].Data}, + {Oid: lfsPointer3, Size: lfsPointers[lfsPointer3].Size, Data: lfsPointers[lfsPointer3].Data}, + }, + }, + { + desc: "bytes limit partially exceeding limit", + revisions: []string{ + lfsPointer1, + lfsPointer2, + lfsPointer3, + }, + bytesLimit: 128, + expectedBlobs: []*gitalypb.ListBlobsResponse_Blob{ + {Oid: lfsPointer1, Size: lfsPointers[lfsPointer1].Size, Data: lfsPointers[lfsPointer1].Data[:128]}, + {Oid: lfsPointer2, Size: lfsPointers[lfsPointer2].Size, Data: lfsPointers[lfsPointer2].Data}, + {Oid: lfsPointer3, Size: lfsPointers[lfsPointer3].Size, Data: lfsPointers[lfsPointer3].Data}, + }, + }, + { + desc: "blob with content bigger than a gRPC message", + revisions: []string{ + bigBlobOID.String(), + lfsPointer1, + }, + bytesLimit: -1, + expectedBlobs: []*gitalypb.ListBlobsResponse_Blob{ + {Oid: bigBlobOID.String(), Size: int64(len(bigBlobContents)), Data: bigBlobContents[:streamio.WriteBufferSize]}, + {Data: bigBlobContents[streamio.WriteBufferSize : 2*streamio.WriteBufferSize]}, + {Data: bigBlobContents[2*streamio.WriteBufferSize:]}, + {Oid: lfsPointer1, Size: lfsPointers[lfsPointer1].Size, Data: lfsPointers[lfsPointer1].Data}, + }, + }, + } { + t.Run(tc.desc, func(t *testing.T) { + stream, err := client.ListBlobs(ctx, &gitalypb.ListBlobsRequest{ + Repository: repoProto, + Revisions: tc.revisions, + Limit: tc.limit, + BytesLimit: tc.bytesLimit, + }) + require.NoError(t, err) + + var blobs []*gitalypb.ListBlobsResponse_Blob + for { + resp, err := stream.Recv() + if err != nil { + if !errors.Is(err, io.EOF) { + testassert.GrpcEqualErr(t, tc.expectedErr, err) + } + break + } + + blobs = append(blobs, resp.Blobs...) + } + + testassert.ProtoEqual(t, tc.expectedBlobs, blobs) + }) + } +} diff --git a/proto/blob.proto b/proto/blob.proto index 3e563c93c..634a6fc74 100644 --- a/proto/blob.proto +++ b/proto/blob.proto @@ -22,6 +22,15 @@ service BlobService { }; } + // ListBlobs will list all blobs reachable from a given set of revisions by + // doing a graph walk. It is not valid to pass revisions which do not resolve + // to an existing object. + rpc ListBlobs(ListBlobsRequest) returns (stream ListBlobsResponse) { + option (op_type) = { + op: ACCESSOR + }; + } + // GetLFSPointers retrieves LFS pointers from a given set of object IDs. // This RPC filters all requested objects and only returns those which refer // to a valid LFS pointer. @@ -99,6 +108,47 @@ message GetBlobsResponse { ObjectType type = 8; } +// ListBlobsRequest is a request for the ListBlobs RPC. +message ListBlobsRequest { + // Repository is the repository in which blobs should be enumerated. + Repository repository = 1 [(target_repository)=true]; + // Revisions is the list of revisions to retrieve blobs from. These revisions + // will be walked. Supports pseudo-revisions `--all` and `--not` as well as + // negated revisions via `^revision`. Revisions cannot start with a leading + // dash. Please consult gitrevisions(7) for more info. Must not be empty. + repeated string revisions = 2; + // Limit is the maximum number of blobs to return. If set to its default + // (`0`), then all found blobs wll be returned. + uint32 limit = 3; + // BytesLimit is the maximum number of bytes to receive for each blob. If set + // to `0`, then no blob data will be sent. If `-1`, then all blob data will + // be sent without any limits. + int64 bytes_limit = 4; +} + +// ListBlobsResponse is a response for the ListBlobs RPC. +message ListBlobsResponse { + // Blob represents a Git blob object. + message Blob { + // Oid is the object ID of the blob. Will only be set for the first + // message of each specific blob. + string oid = 1; + // Size is the size of the blob. Will only be set for the first message + // of each specific blob. + int64 size = 2; + // Data is the contents of the blob. This field is optional and depends on + // the BytesLimit in the original request. + bytes data = 3; + } + + // Blobs is the blobs which have been found. In case blob contents were + // requested and contents of a blob exceed the maximum gRPC message size, + // then this blob will be split up into multiple blob messages which span + // across multiple responses. In that case, metadata of the blob will only be + // sent on the first such message for this specific blob. + repeated Blob blobs = 1; +} + // LFSPointer is a git blob which points to an LFS object. message LFSPointer { // Size is the size of the blob. This is not the size of the LFS object diff --git a/proto/go/gitalypb/blob.pb.go b/proto/go/gitalypb/blob.pb.go index ac28b1888..692b166b6 100644 --- a/proto/go/gitalypb/blob.pb.go +++ b/proto/go/gitalypb/blob.pb.go @@ -322,6 +322,141 @@ func (x *GetBlobsResponse) GetType() ObjectType { return ObjectType_UNKNOWN } +// ListBlobsRequest is a request for the ListBlobs RPC. +type ListBlobsRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Repository is the repository in which blobs should be enumerated. + Repository *Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"` + // Revisions is the list of revisions to retrieve blobs from. These revisions + // will be walked. Supports pseudo-revisions `--all` and `--not` as well as + // negated revisions via `^revision`. Revisions cannot start with a leading + // dash. Please consult gitrevisions(7) for more info. Must not be empty. + Revisions []string `protobuf:"bytes,2,rep,name=revisions,proto3" json:"revisions,omitempty"` + // Limit is the maximum number of blobs to return. If set to its default + // (`0`), then all found blobs wll be returned. + Limit uint32 `protobuf:"varint,3,opt,name=limit,proto3" json:"limit,omitempty"` + // BytesLimit is the maximum number of bytes to receive for each blob. If set + // to `0`, then no blob data will be sent. If `-1`, then all blob data will + // be sent without any limits. + BytesLimit int64 `protobuf:"varint,4,opt,name=bytes_limit,json=bytesLimit,proto3" json:"bytes_limit,omitempty"` +} + +func (x *ListBlobsRequest) Reset() { + *x = ListBlobsRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_blob_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ListBlobsRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ListBlobsRequest) ProtoMessage() {} + +func (x *ListBlobsRequest) ProtoReflect() protoreflect.Message { + mi := &file_blob_proto_msgTypes[4] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ListBlobsRequest.ProtoReflect.Descriptor instead. +func (*ListBlobsRequest) Descriptor() ([]byte, []int) { + return file_blob_proto_rawDescGZIP(), []int{4} +} + +func (x *ListBlobsRequest) GetRepository() *Repository { + if x != nil { + return x.Repository + } + return nil +} + +func (x *ListBlobsRequest) GetRevisions() []string { + if x != nil { + return x.Revisions + } + return nil +} + +func (x *ListBlobsRequest) GetLimit() uint32 { + if x != nil { + return x.Limit + } + return 0 +} + +func (x *ListBlobsRequest) GetBytesLimit() int64 { + if x != nil { + return x.BytesLimit + } + return 0 +} + +// ListBlobsResponse is a response for the ListBlobs RPC. +type ListBlobsResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Blobs is the blobs which have been found. In case blob contents were + // requested and contents of a blob exceed the maximum gRPC message size, + // then this blob will be split up into multiple blob messages which span + // across multiple responses. In that case, metadata of the blob will only be + // sent on the first such message for this specific blob. + Blobs []*ListBlobsResponse_Blob `protobuf:"bytes,1,rep,name=blobs,proto3" json:"blobs,omitempty"` +} + +func (x *ListBlobsResponse) Reset() { + *x = ListBlobsResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_blob_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ListBlobsResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ListBlobsResponse) ProtoMessage() {} + +func (x *ListBlobsResponse) ProtoReflect() protoreflect.Message { + mi := &file_blob_proto_msgTypes[5] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ListBlobsResponse.ProtoReflect.Descriptor instead. +func (*ListBlobsResponse) Descriptor() ([]byte, []int) { + return file_blob_proto_rawDescGZIP(), []int{5} +} + +func (x *ListBlobsResponse) GetBlobs() []*ListBlobsResponse_Blob { + if x != nil { + return x.Blobs + } + return nil +} + // LFSPointer is a git blob which points to an LFS object. type LFSPointer struct { state protoimpl.MessageState @@ -341,7 +476,7 @@ type LFSPointer struct { func (x *LFSPointer) Reset() { *x = LFSPointer{} if protoimpl.UnsafeEnabled { - mi := &file_blob_proto_msgTypes[4] + mi := &file_blob_proto_msgTypes[6] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -354,7 +489,7 @@ func (x *LFSPointer) String() string { func (*LFSPointer) ProtoMessage() {} func (x *LFSPointer) ProtoReflect() protoreflect.Message { - mi := &file_blob_proto_msgTypes[4] + mi := &file_blob_proto_msgTypes[6] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -367,7 +502,7 @@ func (x *LFSPointer) ProtoReflect() protoreflect.Message { // Deprecated: Use LFSPointer.ProtoReflect.Descriptor instead. func (*LFSPointer) Descriptor() ([]byte, []int) { - return file_blob_proto_rawDescGZIP(), []int{4} + return file_blob_proto_rawDescGZIP(), []int{6} } func (x *LFSPointer) GetSize() int64 { @@ -404,7 +539,7 @@ type NewBlobObject struct { func (x *NewBlobObject) Reset() { *x = NewBlobObject{} if protoimpl.UnsafeEnabled { - mi := &file_blob_proto_msgTypes[5] + mi := &file_blob_proto_msgTypes[7] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -417,7 +552,7 @@ func (x *NewBlobObject) String() string { func (*NewBlobObject) ProtoMessage() {} func (x *NewBlobObject) ProtoReflect() protoreflect.Message { - mi := &file_blob_proto_msgTypes[5] + mi := &file_blob_proto_msgTypes[7] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -430,7 +565,7 @@ func (x *NewBlobObject) ProtoReflect() protoreflect.Message { // Deprecated: Use NewBlobObject.ProtoReflect.Descriptor instead. func (*NewBlobObject) Descriptor() ([]byte, []int) { - return file_blob_proto_rawDescGZIP(), []int{5} + return file_blob_proto_rawDescGZIP(), []int{7} } func (x *NewBlobObject) GetSize() int64 { @@ -471,7 +606,7 @@ type GetLFSPointersRequest struct { func (x *GetLFSPointersRequest) Reset() { *x = GetLFSPointersRequest{} if protoimpl.UnsafeEnabled { - mi := &file_blob_proto_msgTypes[6] + mi := &file_blob_proto_msgTypes[8] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -484,7 +619,7 @@ func (x *GetLFSPointersRequest) String() string { func (*GetLFSPointersRequest) ProtoMessage() {} func (x *GetLFSPointersRequest) ProtoReflect() protoreflect.Message { - mi := &file_blob_proto_msgTypes[6] + mi := &file_blob_proto_msgTypes[8] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -497,7 +632,7 @@ func (x *GetLFSPointersRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use GetLFSPointersRequest.ProtoReflect.Descriptor instead. func (*GetLFSPointersRequest) Descriptor() ([]byte, []int) { - return file_blob_proto_rawDescGZIP(), []int{6} + return file_blob_proto_rawDescGZIP(), []int{8} } func (x *GetLFSPointersRequest) GetRepository() *Repository { @@ -527,7 +662,7 @@ type GetLFSPointersResponse struct { func (x *GetLFSPointersResponse) Reset() { *x = GetLFSPointersResponse{} if protoimpl.UnsafeEnabled { - mi := &file_blob_proto_msgTypes[7] + mi := &file_blob_proto_msgTypes[9] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -540,7 +675,7 @@ func (x *GetLFSPointersResponse) String() string { func (*GetLFSPointersResponse) ProtoMessage() {} func (x *GetLFSPointersResponse) ProtoReflect() protoreflect.Message { - mi := &file_blob_proto_msgTypes[7] + mi := &file_blob_proto_msgTypes[9] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -553,7 +688,7 @@ func (x *GetLFSPointersResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use GetLFSPointersResponse.ProtoReflect.Descriptor instead. func (*GetLFSPointersResponse) Descriptor() ([]byte, []int) { - return file_blob_proto_rawDescGZIP(), []int{7} + return file_blob_proto_rawDescGZIP(), []int{9} } func (x *GetLFSPointersResponse) GetLfsPointers() []*LFSPointer { @@ -582,7 +717,7 @@ type ListLFSPointersRequest struct { func (x *ListLFSPointersRequest) Reset() { *x = ListLFSPointersRequest{} if protoimpl.UnsafeEnabled { - mi := &file_blob_proto_msgTypes[8] + mi := &file_blob_proto_msgTypes[10] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -595,7 +730,7 @@ func (x *ListLFSPointersRequest) String() string { func (*ListLFSPointersRequest) ProtoMessage() {} func (x *ListLFSPointersRequest) ProtoReflect() protoreflect.Message { - mi := &file_blob_proto_msgTypes[8] + mi := &file_blob_proto_msgTypes[10] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -608,7 +743,7 @@ func (x *ListLFSPointersRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use ListLFSPointersRequest.ProtoReflect.Descriptor instead. func (*ListLFSPointersRequest) Descriptor() ([]byte, []int) { - return file_blob_proto_rawDescGZIP(), []int{8} + return file_blob_proto_rawDescGZIP(), []int{10} } func (x *ListLFSPointersRequest) GetRepository() *Repository { @@ -645,7 +780,7 @@ type ListLFSPointersResponse struct { func (x *ListLFSPointersResponse) Reset() { *x = ListLFSPointersResponse{} if protoimpl.UnsafeEnabled { - mi := &file_blob_proto_msgTypes[9] + mi := &file_blob_proto_msgTypes[11] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -658,7 +793,7 @@ func (x *ListLFSPointersResponse) String() string { func (*ListLFSPointersResponse) ProtoMessage() {} func (x *ListLFSPointersResponse) ProtoReflect() protoreflect.Message { - mi := &file_blob_proto_msgTypes[9] + mi := &file_blob_proto_msgTypes[11] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -671,7 +806,7 @@ func (x *ListLFSPointersResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use ListLFSPointersResponse.ProtoReflect.Descriptor instead. func (*ListLFSPointersResponse) Descriptor() ([]byte, []int) { - return file_blob_proto_rawDescGZIP(), []int{9} + return file_blob_proto_rawDescGZIP(), []int{11} } func (x *ListLFSPointersResponse) GetLfsPointers() []*LFSPointer { @@ -697,7 +832,7 @@ type ListAllLFSPointersRequest struct { func (x *ListAllLFSPointersRequest) Reset() { *x = ListAllLFSPointersRequest{} if protoimpl.UnsafeEnabled { - mi := &file_blob_proto_msgTypes[10] + mi := &file_blob_proto_msgTypes[12] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -710,7 +845,7 @@ func (x *ListAllLFSPointersRequest) String() string { func (*ListAllLFSPointersRequest) ProtoMessage() {} func (x *ListAllLFSPointersRequest) ProtoReflect() protoreflect.Message { - mi := &file_blob_proto_msgTypes[10] + mi := &file_blob_proto_msgTypes[12] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -723,7 +858,7 @@ func (x *ListAllLFSPointersRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use ListAllLFSPointersRequest.ProtoReflect.Descriptor instead. func (*ListAllLFSPointersRequest) Descriptor() ([]byte, []int) { - return file_blob_proto_rawDescGZIP(), []int{10} + return file_blob_proto_rawDescGZIP(), []int{12} } func (x *ListAllLFSPointersRequest) GetRepository() *Repository { @@ -753,7 +888,7 @@ type ListAllLFSPointersResponse struct { func (x *ListAllLFSPointersResponse) Reset() { *x = ListAllLFSPointersResponse{} if protoimpl.UnsafeEnabled { - mi := &file_blob_proto_msgTypes[11] + mi := &file_blob_proto_msgTypes[13] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -766,7 +901,7 @@ func (x *ListAllLFSPointersResponse) String() string { func (*ListAllLFSPointersResponse) ProtoMessage() {} func (x *ListAllLFSPointersResponse) ProtoReflect() protoreflect.Message { - mi := &file_blob_proto_msgTypes[11] + mi := &file_blob_proto_msgTypes[13] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -779,7 +914,7 @@ func (x *ListAllLFSPointersResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use ListAllLFSPointersResponse.ProtoReflect.Descriptor instead. func (*ListAllLFSPointersResponse) Descriptor() ([]byte, []int) { - return file_blob_proto_rawDescGZIP(), []int{11} + return file_blob_proto_rawDescGZIP(), []int{13} } func (x *ListAllLFSPointersResponse) GetLfsPointers() []*LFSPointer { @@ -801,7 +936,7 @@ type GetBlobsRequest_RevisionPath struct { func (x *GetBlobsRequest_RevisionPath) Reset() { *x = GetBlobsRequest_RevisionPath{} if protoimpl.UnsafeEnabled { - mi := &file_blob_proto_msgTypes[12] + mi := &file_blob_proto_msgTypes[14] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -814,7 +949,7 @@ func (x *GetBlobsRequest_RevisionPath) String() string { func (*GetBlobsRequest_RevisionPath) ProtoMessage() {} func (x *GetBlobsRequest_RevisionPath) ProtoReflect() protoreflect.Message { - mi := &file_blob_proto_msgTypes[12] + mi := &file_blob_proto_msgTypes[14] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -844,6 +979,76 @@ func (x *GetBlobsRequest_RevisionPath) GetPath() []byte { return nil } +// Blob represents a Git blob object. +type ListBlobsResponse_Blob struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Oid is the object ID of the blob. Will only be set for the first + // message of each specific blob. + Oid string `protobuf:"bytes,1,opt,name=oid,proto3" json:"oid,omitempty"` + // Size is the size of the blob. Will only be set for the first message + // of each specific blob. + Size int64 `protobuf:"varint,2,opt,name=size,proto3" json:"size,omitempty"` + // Data is the contents of the blob. This field is optional and depends on + // the BytesLimit in the original request. + Data []byte `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"` +} + +func (x *ListBlobsResponse_Blob) Reset() { + *x = ListBlobsResponse_Blob{} + if protoimpl.UnsafeEnabled { + mi := &file_blob_proto_msgTypes[15] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ListBlobsResponse_Blob) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ListBlobsResponse_Blob) ProtoMessage() {} + +func (x *ListBlobsResponse_Blob) ProtoReflect() protoreflect.Message { + mi := &file_blob_proto_msgTypes[15] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ListBlobsResponse_Blob.ProtoReflect.Descriptor instead. +func (*ListBlobsResponse_Blob) Descriptor() ([]byte, []int) { + return file_blob_proto_rawDescGZIP(), []int{5, 0} +} + +func (x *ListBlobsResponse_Blob) GetOid() string { + if x != nil { + return x.Oid + } + return "" +} + +func (x *ListBlobsResponse_Blob) GetSize() int64 { + if x != nil { + return x.Size + } + return 0 +} + +func (x *ListBlobsResponse_Blob) GetData() []byte { + if x != nil { + return x.Data + } + return nil +} + var File_blob_proto protoreflect.FileDescriptor var file_blob_proto_rawDesc = []byte{ @@ -890,86 +1095,110 @@ var file_blob_proto_rawDesc = []byte{ 0x6f, 0x6e, 0x12, 0x12, 0x0a, 0x04, 0x70, 0x61, 0x74, 0x68, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x04, 0x70, 0x61, 0x74, 0x68, 0x12, 0x26, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x12, 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x4f, 0x62, - 0x6a, 0x65, 0x63, 0x74, 0x54, 0x79, 0x70, 0x65, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x22, 0x46, - 0x0a, 0x0a, 0x4c, 0x46, 0x53, 0x50, 0x6f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x12, 0x12, 0x0a, 0x04, - 0x73, 0x69, 0x7a, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x04, 0x73, 0x69, 0x7a, 0x65, - 0x12, 0x12, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x04, - 0x64, 0x61, 0x74, 0x61, 0x12, 0x10, 0x0a, 0x03, 0x6f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x03, 0x6f, 0x69, 0x64, 0x22, 0x49, 0x0a, 0x0d, 0x4e, 0x65, 0x77, 0x42, 0x6c, 0x6f, - 0x62, 0x4f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x73, 0x69, 0x7a, 0x65, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x04, 0x73, 0x69, 0x7a, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x6f, - 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6f, 0x69, 0x64, 0x12, 0x12, 0x0a, - 0x04, 0x70, 0x61, 0x74, 0x68, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x04, 0x70, 0x61, 0x74, - 0x68, 0x22, 0x6c, 0x0a, 0x15, 0x47, 0x65, 0x74, 0x4c, 0x46, 0x53, 0x50, 0x6f, 0x69, 0x6e, 0x74, + 0x6a, 0x65, 0x63, 0x74, 0x54, 0x79, 0x70, 0x65, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x22, 0xa1, + 0x01, 0x0a, 0x10, 0x4c, 0x69, 0x73, 0x74, 0x42, 0x6c, 0x6f, 0x62, 0x73, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x12, 0x38, 0x0a, 0x0a, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, + 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, + 0x2e, 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x42, 0x04, 0x98, 0xc6, 0x2c, + 0x01, 0x52, 0x0a, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x12, 0x1c, 0x0a, + 0x09, 0x72, 0x65, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x09, + 0x52, 0x09, 0x72, 0x65, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x14, 0x0a, 0x05, 0x6c, + 0x69, 0x6d, 0x69, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x05, 0x6c, 0x69, 0x6d, 0x69, + 0x74, 0x12, 0x1f, 0x0a, 0x0b, 0x62, 0x79, 0x74, 0x65, 0x73, 0x5f, 0x6c, 0x69, 0x6d, 0x69, 0x74, + 0x18, 0x04, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0a, 0x62, 0x79, 0x74, 0x65, 0x73, 0x4c, 0x69, 0x6d, + 0x69, 0x74, 0x22, 0x8b, 0x01, 0x0a, 0x11, 0x4c, 0x69, 0x73, 0x74, 0x42, 0x6c, 0x6f, 0x62, 0x73, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x34, 0x0a, 0x05, 0x62, 0x6c, 0x6f, 0x62, + 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, + 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x42, 0x6c, 0x6f, 0x62, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x2e, 0x42, 0x6c, 0x6f, 0x62, 0x52, 0x05, 0x62, 0x6c, 0x6f, 0x62, 0x73, 0x1a, 0x40, + 0x0a, 0x04, 0x42, 0x6c, 0x6f, 0x62, 0x12, 0x10, 0x0a, 0x03, 0x6f, 0x69, 0x64, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x03, 0x6f, 0x69, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x73, 0x69, 0x7a, 0x65, + 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x04, 0x73, 0x69, 0x7a, 0x65, 0x12, 0x12, 0x0a, 0x04, + 0x64, 0x61, 0x74, 0x61, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, + 0x22, 0x46, 0x0a, 0x0a, 0x4c, 0x46, 0x53, 0x50, 0x6f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x12, 0x12, + 0x0a, 0x04, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x04, 0x73, 0x69, + 0x7a, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, + 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x12, 0x10, 0x0a, 0x03, 0x6f, 0x69, 0x64, 0x18, 0x03, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x03, 0x6f, 0x69, 0x64, 0x22, 0x49, 0x0a, 0x0d, 0x4e, 0x65, 0x77, 0x42, + 0x6c, 0x6f, 0x62, 0x4f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x73, 0x69, 0x7a, + 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x04, 0x73, 0x69, 0x7a, 0x65, 0x12, 0x10, 0x0a, + 0x03, 0x6f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6f, 0x69, 0x64, 0x12, + 0x12, 0x0a, 0x04, 0x70, 0x61, 0x74, 0x68, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x04, 0x70, + 0x61, 0x74, 0x68, 0x22, 0x6c, 0x0a, 0x15, 0x47, 0x65, 0x74, 0x4c, 0x46, 0x53, 0x50, 0x6f, 0x69, + 0x6e, 0x74, 0x65, 0x72, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x38, 0x0a, 0x0a, + 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x12, 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, + 0x74, 0x6f, 0x72, 0x79, 0x42, 0x04, 0x98, 0xc6, 0x2c, 0x01, 0x52, 0x0a, 0x72, 0x65, 0x70, 0x6f, + 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x12, 0x19, 0x0a, 0x08, 0x62, 0x6c, 0x6f, 0x62, 0x5f, 0x69, + 0x64, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x09, 0x52, 0x07, 0x62, 0x6c, 0x6f, 0x62, 0x49, 0x64, + 0x73, 0x22, 0x4f, 0x0a, 0x16, 0x47, 0x65, 0x74, 0x4c, 0x46, 0x53, 0x50, 0x6f, 0x69, 0x6e, 0x74, + 0x65, 0x72, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x35, 0x0a, 0x0c, 0x6c, + 0x66, 0x73, 0x5f, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, + 0x0b, 0x32, 0x12, 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x4c, 0x46, 0x53, 0x50, 0x6f, + 0x69, 0x6e, 0x74, 0x65, 0x72, 0x52, 0x0b, 0x6c, 0x66, 0x73, 0x50, 0x6f, 0x69, 0x6e, 0x74, 0x65, + 0x72, 0x73, 0x22, 0x86, 0x01, 0x0a, 0x16, 0x4c, 0x69, 0x73, 0x74, 0x4c, 0x46, 0x53, 0x50, 0x6f, + 0x69, 0x6e, 0x74, 0x65, 0x72, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x38, 0x0a, + 0x0a, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x12, 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x52, 0x65, 0x70, 0x6f, 0x73, + 0x69, 0x74, 0x6f, 0x72, 0x79, 0x42, 0x04, 0x98, 0xc6, 0x2c, 0x01, 0x52, 0x0a, 0x72, 0x65, 0x70, + 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x12, 0x1c, 0x0a, 0x09, 0x72, 0x65, 0x76, 0x69, 0x73, + 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x09, 0x52, 0x09, 0x72, 0x65, 0x76, 0x69, + 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x14, 0x0a, 0x05, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x18, 0x03, + 0x20, 0x01, 0x28, 0x05, 0x52, 0x05, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x22, 0x50, 0x0a, 0x17, 0x4c, + 0x69, 0x73, 0x74, 0x4c, 0x46, 0x53, 0x50, 0x6f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x73, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x35, 0x0a, 0x0c, 0x6c, 0x66, 0x73, 0x5f, 0x70, 0x6f, + 0x69, 0x6e, 0x74, 0x65, 0x72, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x67, + 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x4c, 0x46, 0x53, 0x50, 0x6f, 0x69, 0x6e, 0x74, 0x65, 0x72, + 0x52, 0x0b, 0x6c, 0x66, 0x73, 0x50, 0x6f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x73, 0x22, 0x6b, 0x0a, + 0x19, 0x4c, 0x69, 0x73, 0x74, 0x41, 0x6c, 0x6c, 0x4c, 0x46, 0x53, 0x50, 0x6f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x38, 0x0a, 0x0a, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x42, 0x04, 0x98, 0xc6, 0x2c, 0x01, 0x52, 0x0a, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, - 0x74, 0x6f, 0x72, 0x79, 0x12, 0x19, 0x0a, 0x08, 0x62, 0x6c, 0x6f, 0x62, 0x5f, 0x69, 0x64, 0x73, - 0x18, 0x02, 0x20, 0x03, 0x28, 0x09, 0x52, 0x07, 0x62, 0x6c, 0x6f, 0x62, 0x49, 0x64, 0x73, 0x22, - 0x4f, 0x0a, 0x16, 0x47, 0x65, 0x74, 0x4c, 0x46, 0x53, 0x50, 0x6f, 0x69, 0x6e, 0x74, 0x65, 0x72, - 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x35, 0x0a, 0x0c, 0x6c, 0x66, 0x73, - 0x5f, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, - 0x12, 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x4c, 0x46, 0x53, 0x50, 0x6f, 0x69, 0x6e, - 0x74, 0x65, 0x72, 0x52, 0x0b, 0x6c, 0x66, 0x73, 0x50, 0x6f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x73, - 0x22, 0x86, 0x01, 0x0a, 0x16, 0x4c, 0x69, 0x73, 0x74, 0x4c, 0x46, 0x53, 0x50, 0x6f, 0x69, 0x6e, - 0x74, 0x65, 0x72, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x38, 0x0a, 0x0a, 0x72, - 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, - 0x12, 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, - 0x6f, 0x72, 0x79, 0x42, 0x04, 0x98, 0xc6, 0x2c, 0x01, 0x52, 0x0a, 0x72, 0x65, 0x70, 0x6f, 0x73, - 0x69, 0x74, 0x6f, 0x72, 0x79, 0x12, 0x1c, 0x0a, 0x09, 0x72, 0x65, 0x76, 0x69, 0x73, 0x69, 0x6f, - 0x6e, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x09, 0x52, 0x09, 0x72, 0x65, 0x76, 0x69, 0x73, 0x69, - 0x6f, 0x6e, 0x73, 0x12, 0x14, 0x0a, 0x05, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x18, 0x03, 0x20, 0x01, - 0x28, 0x05, 0x52, 0x05, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x22, 0x50, 0x0a, 0x17, 0x4c, 0x69, 0x73, - 0x74, 0x4c, 0x46, 0x53, 0x50, 0x6f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x73, 0x52, 0x65, 0x73, 0x70, - 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x35, 0x0a, 0x0c, 0x6c, 0x66, 0x73, 0x5f, 0x70, 0x6f, 0x69, 0x6e, - 0x74, 0x65, 0x72, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x67, 0x69, 0x74, - 0x61, 0x6c, 0x79, 0x2e, 0x4c, 0x46, 0x53, 0x50, 0x6f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x52, 0x0b, - 0x6c, 0x66, 0x73, 0x50, 0x6f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x73, 0x22, 0x6b, 0x0a, 0x19, 0x4c, - 0x69, 0x73, 0x74, 0x41, 0x6c, 0x6c, 0x4c, 0x46, 0x53, 0x50, 0x6f, 0x69, 0x6e, 0x74, 0x65, 0x72, - 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x38, 0x0a, 0x0a, 0x72, 0x65, 0x70, 0x6f, - 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x67, - 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, - 0x42, 0x04, 0x98, 0xc6, 0x2c, 0x01, 0x52, 0x0a, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, - 0x72, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, - 0x05, 0x52, 0x05, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x22, 0x53, 0x0a, 0x1a, 0x4c, 0x69, 0x73, 0x74, - 0x41, 0x6c, 0x6c, 0x4c, 0x46, 0x53, 0x50, 0x6f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x73, 0x52, 0x65, - 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x35, 0x0a, 0x0c, 0x6c, 0x66, 0x73, 0x5f, 0x70, 0x6f, - 0x69, 0x6e, 0x74, 0x65, 0x72, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x67, - 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x4c, 0x46, 0x53, 0x50, 0x6f, 0x69, 0x6e, 0x74, 0x65, 0x72, - 0x52, 0x0b, 0x6c, 0x66, 0x73, 0x50, 0x6f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x73, 0x32, 0xbc, 0x03, - 0x0a, 0x0b, 0x42, 0x6c, 0x6f, 0x62, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x44, 0x0a, - 0x07, 0x47, 0x65, 0x74, 0x42, 0x6c, 0x6f, 0x62, 0x12, 0x16, 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, - 0x79, 0x2e, 0x47, 0x65, 0x74, 0x42, 0x6c, 0x6f, 0x62, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, - 0x1a, 0x17, 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x47, 0x65, 0x74, 0x42, 0x6c, 0x6f, - 0x62, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x06, 0xfa, 0x97, 0x28, 0x02, 0x08, - 0x02, 0x30, 0x01, 0x12, 0x47, 0x0a, 0x08, 0x47, 0x65, 0x74, 0x42, 0x6c, 0x6f, 0x62, 0x73, 0x12, - 0x17, 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x47, 0x65, 0x74, 0x42, 0x6c, 0x6f, 0x62, - 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x18, 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, - 0x79, 0x2e, 0x47, 0x65, 0x74, 0x42, 0x6c, 0x6f, 0x62, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, - 0x73, 0x65, 0x22, 0x06, 0xfa, 0x97, 0x28, 0x02, 0x08, 0x02, 0x30, 0x01, 0x12, 0x59, 0x0a, 0x0e, - 0x47, 0x65, 0x74, 0x4c, 0x46, 0x53, 0x50, 0x6f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x73, 0x12, 0x1d, - 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x47, 0x65, 0x74, 0x4c, 0x46, 0x53, 0x50, 0x6f, - 0x69, 0x6e, 0x74, 0x65, 0x72, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1e, 0x2e, - 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x47, 0x65, 0x74, 0x4c, 0x46, 0x53, 0x50, 0x6f, 0x69, - 0x6e, 0x74, 0x65, 0x72, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x06, 0xfa, - 0x97, 0x28, 0x02, 0x08, 0x02, 0x30, 0x01, 0x12, 0x5c, 0x0a, 0x0f, 0x4c, 0x69, 0x73, 0x74, 0x4c, - 0x46, 0x53, 0x50, 0x6f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x73, 0x12, 0x1e, 0x2e, 0x67, 0x69, 0x74, - 0x61, 0x6c, 0x79, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x4c, 0x46, 0x53, 0x50, 0x6f, 0x69, 0x6e, 0x74, - 0x65, 0x72, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1f, 0x2e, 0x67, 0x69, 0x74, - 0x61, 0x6c, 0x79, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x4c, 0x46, 0x53, 0x50, 0x6f, 0x69, 0x6e, 0x74, + 0x74, 0x6f, 0x72, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x18, 0x03, 0x20, + 0x01, 0x28, 0x05, 0x52, 0x05, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x22, 0x53, 0x0a, 0x1a, 0x4c, 0x69, + 0x73, 0x74, 0x41, 0x6c, 0x6c, 0x4c, 0x46, 0x53, 0x50, 0x6f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x73, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x35, 0x0a, 0x0c, 0x6c, 0x66, 0x73, 0x5f, + 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x12, + 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x4c, 0x46, 0x53, 0x50, 0x6f, 0x69, 0x6e, 0x74, + 0x65, 0x72, 0x52, 0x0b, 0x6c, 0x66, 0x73, 0x50, 0x6f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x73, 0x32, + 0x88, 0x04, 0x0a, 0x0b, 0x42, 0x6c, 0x6f, 0x62, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, + 0x44, 0x0a, 0x07, 0x47, 0x65, 0x74, 0x42, 0x6c, 0x6f, 0x62, 0x12, 0x16, 0x2e, 0x67, 0x69, 0x74, + 0x61, 0x6c, 0x79, 0x2e, 0x47, 0x65, 0x74, 0x42, 0x6c, 0x6f, 0x62, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x1a, 0x17, 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x47, 0x65, 0x74, 0x42, + 0x6c, 0x6f, 0x62, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x06, 0xfa, 0x97, 0x28, + 0x02, 0x08, 0x02, 0x30, 0x01, 0x12, 0x47, 0x0a, 0x08, 0x47, 0x65, 0x74, 0x42, 0x6c, 0x6f, 0x62, + 0x73, 0x12, 0x17, 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x47, 0x65, 0x74, 0x42, 0x6c, + 0x6f, 0x62, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x18, 0x2e, 0x67, 0x69, 0x74, + 0x61, 0x6c, 0x79, 0x2e, 0x47, 0x65, 0x74, 0x42, 0x6c, 0x6f, 0x62, 0x73, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x06, 0xfa, 0x97, 0x28, 0x02, 0x08, 0x02, 0x30, 0x01, 0x12, 0x4a, + 0x0a, 0x09, 0x4c, 0x69, 0x73, 0x74, 0x42, 0x6c, 0x6f, 0x62, 0x73, 0x12, 0x18, 0x2e, 0x67, 0x69, + 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x42, 0x6c, 0x6f, 0x62, 0x73, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x19, 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x4c, + 0x69, 0x73, 0x74, 0x42, 0x6c, 0x6f, 0x62, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x22, 0x06, 0xfa, 0x97, 0x28, 0x02, 0x08, 0x02, 0x30, 0x01, 0x12, 0x59, 0x0a, 0x0e, 0x47, 0x65, + 0x74, 0x4c, 0x46, 0x53, 0x50, 0x6f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x73, 0x12, 0x1d, 0x2e, 0x67, + 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x47, 0x65, 0x74, 0x4c, 0x46, 0x53, 0x50, 0x6f, 0x69, 0x6e, + 0x74, 0x65, 0x72, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1e, 0x2e, 0x67, 0x69, + 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x47, 0x65, 0x74, 0x4c, 0x46, 0x53, 0x50, 0x6f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x06, 0xfa, 0x97, 0x28, - 0x02, 0x08, 0x02, 0x30, 0x01, 0x12, 0x65, 0x0a, 0x12, 0x4c, 0x69, 0x73, 0x74, 0x41, 0x6c, 0x6c, - 0x4c, 0x46, 0x53, 0x50, 0x6f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x73, 0x12, 0x21, 0x2e, 0x67, 0x69, - 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x41, 0x6c, 0x6c, 0x4c, 0x46, 0x53, 0x50, - 0x6f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x22, - 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x41, 0x6c, 0x6c, 0x4c, - 0x46, 0x53, 0x50, 0x6f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, - 0x73, 0x65, 0x22, 0x06, 0xfa, 0x97, 0x28, 0x02, 0x08, 0x02, 0x30, 0x01, 0x42, 0x34, 0x5a, 0x32, - 0x67, 0x69, 0x74, 0x6c, 0x61, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x69, 0x74, 0x6c, 0x61, - 0x62, 0x2d, 0x6f, 0x72, 0x67, 0x2f, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2f, 0x76, 0x31, 0x34, - 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x2f, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, - 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x02, 0x08, 0x02, 0x30, 0x01, 0x12, 0x5c, 0x0a, 0x0f, 0x4c, 0x69, 0x73, 0x74, 0x4c, 0x46, 0x53, + 0x50, 0x6f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x73, 0x12, 0x1e, 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, + 0x79, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x4c, 0x46, 0x53, 0x50, 0x6f, 0x69, 0x6e, 0x74, 0x65, 0x72, + 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1f, 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, + 0x79, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x4c, 0x46, 0x53, 0x50, 0x6f, 0x69, 0x6e, 0x74, 0x65, 0x72, + 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x06, 0xfa, 0x97, 0x28, 0x02, 0x08, + 0x02, 0x30, 0x01, 0x12, 0x65, 0x0a, 0x12, 0x4c, 0x69, 0x73, 0x74, 0x41, 0x6c, 0x6c, 0x4c, 0x46, + 0x53, 0x50, 0x6f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x73, 0x12, 0x21, 0x2e, 0x67, 0x69, 0x74, 0x61, + 0x6c, 0x79, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x41, 0x6c, 0x6c, 0x4c, 0x46, 0x53, 0x50, 0x6f, 0x69, + 0x6e, 0x74, 0x65, 0x72, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x22, 0x2e, 0x67, + 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x41, 0x6c, 0x6c, 0x4c, 0x46, 0x53, + 0x50, 0x6f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x22, 0x06, 0xfa, 0x97, 0x28, 0x02, 0x08, 0x02, 0x30, 0x01, 0x42, 0x34, 0x5a, 0x32, 0x67, 0x69, + 0x74, 0x6c, 0x61, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x69, 0x74, 0x6c, 0x61, 0x62, 0x2d, + 0x6f, 0x72, 0x67, 0x2f, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2f, 0x76, 0x31, 0x34, 0x2f, 0x70, + 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x2f, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x70, 0x62, + 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( @@ -984,50 +1213,57 @@ func file_blob_proto_rawDescGZIP() []byte { return file_blob_proto_rawDescData } -var file_blob_proto_msgTypes = make([]protoimpl.MessageInfo, 13) +var file_blob_proto_msgTypes = make([]protoimpl.MessageInfo, 16) var file_blob_proto_goTypes = []interface{}{ (*GetBlobRequest)(nil), // 0: gitaly.GetBlobRequest (*GetBlobResponse)(nil), // 1: gitaly.GetBlobResponse (*GetBlobsRequest)(nil), // 2: gitaly.GetBlobsRequest (*GetBlobsResponse)(nil), // 3: gitaly.GetBlobsResponse - (*LFSPointer)(nil), // 4: gitaly.LFSPointer - (*NewBlobObject)(nil), // 5: gitaly.NewBlobObject - (*GetLFSPointersRequest)(nil), // 6: gitaly.GetLFSPointersRequest - (*GetLFSPointersResponse)(nil), // 7: gitaly.GetLFSPointersResponse - (*ListLFSPointersRequest)(nil), // 8: gitaly.ListLFSPointersRequest - (*ListLFSPointersResponse)(nil), // 9: gitaly.ListLFSPointersResponse - (*ListAllLFSPointersRequest)(nil), // 10: gitaly.ListAllLFSPointersRequest - (*ListAllLFSPointersResponse)(nil), // 11: gitaly.ListAllLFSPointersResponse - (*GetBlobsRequest_RevisionPath)(nil), // 12: gitaly.GetBlobsRequest.RevisionPath - (*Repository)(nil), // 13: gitaly.Repository - (ObjectType)(0), // 14: gitaly.ObjectType + (*ListBlobsRequest)(nil), // 4: gitaly.ListBlobsRequest + (*ListBlobsResponse)(nil), // 5: gitaly.ListBlobsResponse + (*LFSPointer)(nil), // 6: gitaly.LFSPointer + (*NewBlobObject)(nil), // 7: gitaly.NewBlobObject + (*GetLFSPointersRequest)(nil), // 8: gitaly.GetLFSPointersRequest + (*GetLFSPointersResponse)(nil), // 9: gitaly.GetLFSPointersResponse + (*ListLFSPointersRequest)(nil), // 10: gitaly.ListLFSPointersRequest + (*ListLFSPointersResponse)(nil), // 11: gitaly.ListLFSPointersResponse + (*ListAllLFSPointersRequest)(nil), // 12: gitaly.ListAllLFSPointersRequest + (*ListAllLFSPointersResponse)(nil), // 13: gitaly.ListAllLFSPointersResponse + (*GetBlobsRequest_RevisionPath)(nil), // 14: gitaly.GetBlobsRequest.RevisionPath + (*ListBlobsResponse_Blob)(nil), // 15: gitaly.ListBlobsResponse.Blob + (*Repository)(nil), // 16: gitaly.Repository + (ObjectType)(0), // 17: gitaly.ObjectType } var file_blob_proto_depIdxs = []int32{ - 13, // 0: gitaly.GetBlobRequest.repository:type_name -> gitaly.Repository - 13, // 1: gitaly.GetBlobsRequest.repository:type_name -> gitaly.Repository - 12, // 2: gitaly.GetBlobsRequest.revision_paths:type_name -> gitaly.GetBlobsRequest.RevisionPath - 14, // 3: gitaly.GetBlobsResponse.type:type_name -> gitaly.ObjectType - 13, // 4: gitaly.GetLFSPointersRequest.repository:type_name -> gitaly.Repository - 4, // 5: gitaly.GetLFSPointersResponse.lfs_pointers:type_name -> gitaly.LFSPointer - 13, // 6: gitaly.ListLFSPointersRequest.repository:type_name -> gitaly.Repository - 4, // 7: gitaly.ListLFSPointersResponse.lfs_pointers:type_name -> gitaly.LFSPointer - 13, // 8: gitaly.ListAllLFSPointersRequest.repository:type_name -> gitaly.Repository - 4, // 9: gitaly.ListAllLFSPointersResponse.lfs_pointers:type_name -> gitaly.LFSPointer - 0, // 10: gitaly.BlobService.GetBlob:input_type -> gitaly.GetBlobRequest - 2, // 11: gitaly.BlobService.GetBlobs:input_type -> gitaly.GetBlobsRequest - 6, // 12: gitaly.BlobService.GetLFSPointers:input_type -> gitaly.GetLFSPointersRequest - 8, // 13: gitaly.BlobService.ListLFSPointers:input_type -> gitaly.ListLFSPointersRequest - 10, // 14: gitaly.BlobService.ListAllLFSPointers:input_type -> gitaly.ListAllLFSPointersRequest - 1, // 15: gitaly.BlobService.GetBlob:output_type -> gitaly.GetBlobResponse - 3, // 16: gitaly.BlobService.GetBlobs:output_type -> gitaly.GetBlobsResponse - 7, // 17: gitaly.BlobService.GetLFSPointers:output_type -> gitaly.GetLFSPointersResponse - 9, // 18: gitaly.BlobService.ListLFSPointers:output_type -> gitaly.ListLFSPointersResponse - 11, // 19: gitaly.BlobService.ListAllLFSPointers:output_type -> gitaly.ListAllLFSPointersResponse - 15, // [15:20] is the sub-list for method output_type - 10, // [10:15] is the sub-list for method input_type - 10, // [10:10] is the sub-list for extension type_name - 10, // [10:10] is the sub-list for extension extendee - 0, // [0:10] is the sub-list for field type_name + 16, // 0: gitaly.GetBlobRequest.repository:type_name -> gitaly.Repository + 16, // 1: gitaly.GetBlobsRequest.repository:type_name -> gitaly.Repository + 14, // 2: gitaly.GetBlobsRequest.revision_paths:type_name -> gitaly.GetBlobsRequest.RevisionPath + 17, // 3: gitaly.GetBlobsResponse.type:type_name -> gitaly.ObjectType + 16, // 4: gitaly.ListBlobsRequest.repository:type_name -> gitaly.Repository + 15, // 5: gitaly.ListBlobsResponse.blobs:type_name -> gitaly.ListBlobsResponse.Blob + 16, // 6: gitaly.GetLFSPointersRequest.repository:type_name -> gitaly.Repository + 6, // 7: gitaly.GetLFSPointersResponse.lfs_pointers:type_name -> gitaly.LFSPointer + 16, // 8: gitaly.ListLFSPointersRequest.repository:type_name -> gitaly.Repository + 6, // 9: gitaly.ListLFSPointersResponse.lfs_pointers:type_name -> gitaly.LFSPointer + 16, // 10: gitaly.ListAllLFSPointersRequest.repository:type_name -> gitaly.Repository + 6, // 11: gitaly.ListAllLFSPointersResponse.lfs_pointers:type_name -> gitaly.LFSPointer + 0, // 12: gitaly.BlobService.GetBlob:input_type -> gitaly.GetBlobRequest + 2, // 13: gitaly.BlobService.GetBlobs:input_type -> gitaly.GetBlobsRequest + 4, // 14: gitaly.BlobService.ListBlobs:input_type -> gitaly.ListBlobsRequest + 8, // 15: gitaly.BlobService.GetLFSPointers:input_type -> gitaly.GetLFSPointersRequest + 10, // 16: gitaly.BlobService.ListLFSPointers:input_type -> gitaly.ListLFSPointersRequest + 12, // 17: gitaly.BlobService.ListAllLFSPointers:input_type -> gitaly.ListAllLFSPointersRequest + 1, // 18: gitaly.BlobService.GetBlob:output_type -> gitaly.GetBlobResponse + 3, // 19: gitaly.BlobService.GetBlobs:output_type -> gitaly.GetBlobsResponse + 5, // 20: gitaly.BlobService.ListBlobs:output_type -> gitaly.ListBlobsResponse + 9, // 21: gitaly.BlobService.GetLFSPointers:output_type -> gitaly.GetLFSPointersResponse + 11, // 22: gitaly.BlobService.ListLFSPointers:output_type -> gitaly.ListLFSPointersResponse + 13, // 23: gitaly.BlobService.ListAllLFSPointers:output_type -> gitaly.ListAllLFSPointersResponse + 18, // [18:24] is the sub-list for method output_type + 12, // [12:18] is the sub-list for method input_type + 12, // [12:12] is the sub-list for extension type_name + 12, // [12:12] is the sub-list for extension extendee + 0, // [0:12] is the sub-list for field type_name } func init() { file_blob_proto_init() } @@ -1087,7 +1323,7 @@ func file_blob_proto_init() { } } file_blob_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*LFSPointer); i { + switch v := v.(*ListBlobsRequest); i { case 0: return &v.state case 1: @@ -1099,7 +1335,7 @@ func file_blob_proto_init() { } } file_blob_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*NewBlobObject); i { + switch v := v.(*ListBlobsResponse); i { case 0: return &v.state case 1: @@ -1111,7 +1347,7 @@ func file_blob_proto_init() { } } file_blob_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetLFSPointersRequest); i { + switch v := v.(*LFSPointer); i { case 0: return &v.state case 1: @@ -1123,7 +1359,7 @@ func file_blob_proto_init() { } } file_blob_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetLFSPointersResponse); i { + switch v := v.(*NewBlobObject); i { case 0: return &v.state case 1: @@ -1135,7 +1371,7 @@ func file_blob_proto_init() { } } file_blob_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ListLFSPointersRequest); i { + switch v := v.(*GetLFSPointersRequest); i { case 0: return &v.state case 1: @@ -1147,7 +1383,7 @@ func file_blob_proto_init() { } } file_blob_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ListLFSPointersResponse); i { + switch v := v.(*GetLFSPointersResponse); i { case 0: return &v.state case 1: @@ -1159,7 +1395,7 @@ func file_blob_proto_init() { } } file_blob_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ListAllLFSPointersRequest); i { + switch v := v.(*ListLFSPointersRequest); i { case 0: return &v.state case 1: @@ -1171,7 +1407,7 @@ func file_blob_proto_init() { } } file_blob_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ListAllLFSPointersResponse); i { + switch v := v.(*ListLFSPointersResponse); i { case 0: return &v.state case 1: @@ -1183,6 +1419,30 @@ func file_blob_proto_init() { } } file_blob_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ListAllLFSPointersRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_blob_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ListAllLFSPointersResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_blob_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*GetBlobsRequest_RevisionPath); i { case 0: return &v.state @@ -1194,6 +1454,18 @@ func file_blob_proto_init() { return nil } } + file_blob_proto_msgTypes[15].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ListBlobsResponse_Blob); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } } type x struct{} out := protoimpl.TypeBuilder{ @@ -1201,7 +1473,7 @@ func file_blob_proto_init() { GoPackagePath: reflect.TypeOf(x{}).PkgPath(), RawDescriptor: file_blob_proto_rawDesc, NumEnums: 0, - NumMessages: 13, + NumMessages: 16, NumExtensions: 0, NumServices: 1, }, diff --git a/proto/go/gitalypb/blob_grpc.pb.go b/proto/go/gitalypb/blob_grpc.pb.go index fb6ba01b7..ceacafe01 100644 --- a/proto/go/gitalypb/blob_grpc.pb.go +++ b/proto/go/gitalypb/blob_grpc.pb.go @@ -23,6 +23,10 @@ type BlobServiceClient interface { // response GetBlob(ctx context.Context, in *GetBlobRequest, opts ...grpc.CallOption) (BlobService_GetBlobClient, error) GetBlobs(ctx context.Context, in *GetBlobsRequest, opts ...grpc.CallOption) (BlobService_GetBlobsClient, error) + // ListBlobs will list all blobs reachable from a given set of revisions by + // doing a graph walk. It is not valid to pass revisions which do not resolve + // to an existing object. + ListBlobs(ctx context.Context, in *ListBlobsRequest, opts ...grpc.CallOption) (BlobService_ListBlobsClient, error) // GetLFSPointers retrieves LFS pointers from a given set of object IDs. // This RPC filters all requested objects and only returns those which refer // to a valid LFS pointer. @@ -111,8 +115,40 @@ func (x *blobServiceGetBlobsClient) Recv() (*GetBlobsResponse, error) { return m, nil } +func (c *blobServiceClient) ListBlobs(ctx context.Context, in *ListBlobsRequest, opts ...grpc.CallOption) (BlobService_ListBlobsClient, error) { + stream, err := c.cc.NewStream(ctx, &BlobService_ServiceDesc.Streams[2], "/gitaly.BlobService/ListBlobs", opts...) + if err != nil { + return nil, err + } + x := &blobServiceListBlobsClient{stream} + if err := x.ClientStream.SendMsg(in); err != nil { + return nil, err + } + if err := x.ClientStream.CloseSend(); err != nil { + return nil, err + } + return x, nil +} + +type BlobService_ListBlobsClient interface { + Recv() (*ListBlobsResponse, error) + grpc.ClientStream +} + +type blobServiceListBlobsClient struct { + grpc.ClientStream +} + +func (x *blobServiceListBlobsClient) Recv() (*ListBlobsResponse, error) { + m := new(ListBlobsResponse) + if err := x.ClientStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} + func (c *blobServiceClient) GetLFSPointers(ctx context.Context, in *GetLFSPointersRequest, opts ...grpc.CallOption) (BlobService_GetLFSPointersClient, error) { - stream, err := c.cc.NewStream(ctx, &BlobService_ServiceDesc.Streams[2], "/gitaly.BlobService/GetLFSPointers", opts...) + stream, err := c.cc.NewStream(ctx, &BlobService_ServiceDesc.Streams[3], "/gitaly.BlobService/GetLFSPointers", opts...) if err != nil { return nil, err } @@ -144,7 +180,7 @@ func (x *blobServiceGetLFSPointersClient) Recv() (*GetLFSPointersResponse, error } func (c *blobServiceClient) ListLFSPointers(ctx context.Context, in *ListLFSPointersRequest, opts ...grpc.CallOption) (BlobService_ListLFSPointersClient, error) { - stream, err := c.cc.NewStream(ctx, &BlobService_ServiceDesc.Streams[3], "/gitaly.BlobService/ListLFSPointers", opts...) + stream, err := c.cc.NewStream(ctx, &BlobService_ServiceDesc.Streams[4], "/gitaly.BlobService/ListLFSPointers", opts...) if err != nil { return nil, err } @@ -176,7 +212,7 @@ func (x *blobServiceListLFSPointersClient) Recv() (*ListLFSPointersResponse, err } func (c *blobServiceClient) ListAllLFSPointers(ctx context.Context, in *ListAllLFSPointersRequest, opts ...grpc.CallOption) (BlobService_ListAllLFSPointersClient, error) { - stream, err := c.cc.NewStream(ctx, &BlobService_ServiceDesc.Streams[4], "/gitaly.BlobService/ListAllLFSPointers", opts...) + stream, err := c.cc.NewStream(ctx, &BlobService_ServiceDesc.Streams[5], "/gitaly.BlobService/ListAllLFSPointers", opts...) if err != nil { return nil, err } @@ -216,6 +252,10 @@ type BlobServiceServer interface { // response GetBlob(*GetBlobRequest, BlobService_GetBlobServer) error GetBlobs(*GetBlobsRequest, BlobService_GetBlobsServer) error + // ListBlobs will list all blobs reachable from a given set of revisions by + // doing a graph walk. It is not valid to pass revisions which do not resolve + // to an existing object. + ListBlobs(*ListBlobsRequest, BlobService_ListBlobsServer) error // GetLFSPointers retrieves LFS pointers from a given set of object IDs. // This RPC filters all requested objects and only returns those which refer // to a valid LFS pointer. @@ -243,6 +283,9 @@ func (UnimplementedBlobServiceServer) GetBlob(*GetBlobRequest, BlobService_GetBl func (UnimplementedBlobServiceServer) GetBlobs(*GetBlobsRequest, BlobService_GetBlobsServer) error { return status.Errorf(codes.Unimplemented, "method GetBlobs not implemented") } +func (UnimplementedBlobServiceServer) ListBlobs(*ListBlobsRequest, BlobService_ListBlobsServer) error { + return status.Errorf(codes.Unimplemented, "method ListBlobs not implemented") +} func (UnimplementedBlobServiceServer) GetLFSPointers(*GetLFSPointersRequest, BlobService_GetLFSPointersServer) error { return status.Errorf(codes.Unimplemented, "method GetLFSPointers not implemented") } @@ -307,6 +350,27 @@ func (x *blobServiceGetBlobsServer) Send(m *GetBlobsResponse) error { return x.ServerStream.SendMsg(m) } +func _BlobService_ListBlobs_Handler(srv interface{}, stream grpc.ServerStream) error { + m := new(ListBlobsRequest) + if err := stream.RecvMsg(m); err != nil { + return err + } + return srv.(BlobServiceServer).ListBlobs(m, &blobServiceListBlobsServer{stream}) +} + +type BlobService_ListBlobsServer interface { + Send(*ListBlobsResponse) error + grpc.ServerStream +} + +type blobServiceListBlobsServer struct { + grpc.ServerStream +} + +func (x *blobServiceListBlobsServer) Send(m *ListBlobsResponse) error { + return x.ServerStream.SendMsg(m) +} + func _BlobService_GetLFSPointers_Handler(srv interface{}, stream grpc.ServerStream) error { m := new(GetLFSPointersRequest) if err := stream.RecvMsg(m); err != nil { @@ -389,6 +453,11 @@ var BlobService_ServiceDesc = grpc.ServiceDesc{ ServerStreams: true, }, { + StreamName: "ListBlobs", + Handler: _BlobService_ListBlobs_Handler, + ServerStreams: true, + }, + { StreamName: "GetLFSPointers", Handler: _BlobService_GetLFSPointers_Handler, ServerStreams: true, diff --git a/ruby/proto/gitaly/blob_pb.rb b/ruby/proto/gitaly/blob_pb.rb index 77d5a22f5..6805ee63b 100644 --- a/ruby/proto/gitaly/blob_pb.rb +++ b/ruby/proto/gitaly/blob_pb.rb @@ -36,6 +36,20 @@ Google::Protobuf::DescriptorPool.generated_pool.build do optional :path, :bytes, 7 optional :type, :enum, 8, "gitaly.ObjectType" end + add_message "gitaly.ListBlobsRequest" do + optional :repository, :message, 1, "gitaly.Repository" + repeated :revisions, :string, 2 + optional :limit, :uint32, 3 + optional :bytes_limit, :int64, 4 + end + add_message "gitaly.ListBlobsResponse" do + repeated :blobs, :message, 1, "gitaly.ListBlobsResponse.Blob" + end + add_message "gitaly.ListBlobsResponse.Blob" do + optional :oid, :string, 1 + optional :size, :int64, 2 + optional :data, :bytes, 3 + end add_message "gitaly.LFSPointer" do optional :size, :int64, 1 optional :data, :bytes, 2 @@ -77,6 +91,9 @@ module Gitaly GetBlobsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.GetBlobsRequest").msgclass GetBlobsRequest::RevisionPath = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.GetBlobsRequest.RevisionPath").msgclass GetBlobsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.GetBlobsResponse").msgclass + ListBlobsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.ListBlobsRequest").msgclass + ListBlobsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.ListBlobsResponse").msgclass + ListBlobsResponse::Blob = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.ListBlobsResponse.Blob").msgclass LFSPointer = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.LFSPointer").msgclass NewBlobObject = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.NewBlobObject").msgclass GetLFSPointersRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("gitaly.GetLFSPointersRequest").msgclass diff --git a/ruby/proto/gitaly/blob_services_pb.rb b/ruby/proto/gitaly/blob_services_pb.rb index 1048b21da..a6cdce7de 100644 --- a/ruby/proto/gitaly/blob_services_pb.rb +++ b/ruby/proto/gitaly/blob_services_pb.rb @@ -19,6 +19,10 @@ module Gitaly # response rpc :GetBlob, Gitaly::GetBlobRequest, stream(Gitaly::GetBlobResponse) rpc :GetBlobs, Gitaly::GetBlobsRequest, stream(Gitaly::GetBlobsResponse) + # ListBlobs will list all blobs reachable from a given set of revisions by + # doing a graph walk. It is not valid to pass revisions which do not resolve + # to an existing object. + rpc :ListBlobs, Gitaly::ListBlobsRequest, stream(Gitaly::ListBlobsResponse) # GetLFSPointers retrieves LFS pointers from a given set of object IDs. # This RPC filters all requested objects and only returns those which refer # to a valid LFS pointer. |