diff options
author | Patrick Steinhardt <psteinhardt@gitlab.com> | 2022-11-10 12:10:43 +0300 |
---|---|---|
committer | Patrick Steinhardt <psteinhardt@gitlab.com> | 2022-11-14 11:07:31 +0300 |
commit | d247ec65163185553af587120ca9f013f06540b8 (patch) | |
tree | e511e915f9b2493429353ebb8d70b333bdbefc54 | |
parent | e8fb35a99a9ece6ed3ea2fd52817e18258d4d3ac (diff) |
tools/protoc-gen-gitaly-lint: Move test Protobuf definitions
While we were able to get rid of all custom Protobuf definitions used
for tests, this is definitely not possible for our tests that verify the
behaviour of `protoc-gen-gitaly-lint`. Its whole purpose is to lint
invalid Protobuf definitions, and we of course ain't got any in our
normal gRPC services.
We can still make the generation of this test-specific Protobuf code
easier by moving the definitions into a new `proto/testproto` directory
so that they live in the same filesystem hierarchy as the other Protobuf
definitions. This both allows us to unify the call to protoc and will
allow us to easily change the directory where the code is generated in
in a subsequent commit.
-rw-r--r-- | Makefile | 4 | ||||
-rw-r--r-- | proto/go/gitalypb/testproto/invalid.pb.go | 1286 | ||||
-rw-r--r-- | proto/go/gitalypb/testproto/invalid_grpc.pb.go (renamed from tools/protoc-gen-gitaly-lint/testdata/invalid_grpc.pb.go) | 104 | ||||
-rw-r--r-- | proto/go/gitalypb/testproto/valid.pb.go | 898 | ||||
-rw-r--r-- | proto/go/gitalypb/testproto/valid_grpc.pb.go (renamed from tools/protoc-gen-gitaly-lint/testdata/valid_grpc.pb.go) | 72 | ||||
-rw-r--r-- | proto/testproto/invalid.proto (renamed from tools/protoc-gen-gitaly-lint/testdata/invalid.proto) | 4 | ||||
-rw-r--r-- | proto/testproto/valid.proto (renamed from tools/protoc-gen-gitaly-lint/testdata/valid.proto) | 4 | ||||
-rw-r--r-- | tools/protoc-gen-gitaly-lint/lint_test.go | 52 | ||||
-rw-r--r-- | tools/protoc-gen-gitaly-lint/testdata/invalid.pb.go | 1272 | ||||
-rw-r--r-- | tools/protoc-gen-gitaly-lint/testdata/valid.pb.go | 890 |
10 files changed, 2303 insertions, 2283 deletions
@@ -482,9 +482,7 @@ proto: SHARED_PROTOC_OPTS = --plugin=${PROTOC_GEN_GO} --plugin=${PROTOC_GEN_GO_G proto: ${PROTOC} ${PROTOC_GEN_GO} ${PROTOC_GEN_GO_GRPC} ${PROTOC_GEN_GITALY_PROTOLIST} ${Q}mkdir -p ${SOURCE_DIR}/proto/go/gitalypb ${Q}rm -f ${SOURCE_DIR}/proto/go/gitalypb/*.pb.go - ${PROTOC} ${SHARED_PROTOC_OPTS} -I ${SOURCE_DIR}/proto -I ${PROTOC_INSTALL_DIR}/include --go_out=${SOURCE_DIR}/proto/go/gitalypb --gitaly-protolist_out=proto_dir=${SOURCE_DIR}/proto,gitalypb_dir=${SOURCE_DIR}/proto/go/gitalypb:${SOURCE_DIR} --go-grpc_out=${SOURCE_DIR}/proto/go/gitalypb ${SOURCE_DIR}/proto/*.proto - @ # this part is related to the generation of sources from testing proto files - ${PROTOC} ${SHARED_PROTOC_OPTS} -I ${SOURCE_DIR}/proto -I ${SOURCE_DIR}/tools -I ${PROTOC_INSTALL_DIR}/include --go_out=${SOURCE_DIR}/tools --go-grpc_out=${SOURCE_DIR}/tools ${SOURCE_DIR}/tools/protoc-gen-gitaly-lint/testdata/*.proto + ${PROTOC} ${SHARED_PROTOC_OPTS} -I ${SOURCE_DIR}/proto -I ${PROTOC_INSTALL_DIR}/include --go_out=${SOURCE_DIR}/proto/go/gitalypb --gitaly-protolist_out=proto_dir=${SOURCE_DIR}/proto,gitalypb_dir=${SOURCE_DIR}/proto/go/gitalypb:${SOURCE_DIR} --go-grpc_out=${SOURCE_DIR}/proto/go/gitalypb ${SOURCE_DIR}/proto/*.proto ${SOURCE_DIR}/proto/testproto/*.proto .PHONY: check-proto check-proto: no-proto-changes lint-proto diff --git a/proto/go/gitalypb/testproto/invalid.pb.go b/proto/go/gitalypb/testproto/invalid.pb.go new file mode 100644 index 000000000..76050be66 --- /dev/null +++ b/proto/go/gitalypb/testproto/invalid.pb.go @@ -0,0 +1,1286 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.28.1 +// protoc v3.21.7 +// source: testproto/invalid.proto + +package testproto + +import ( + gitalypb "gitlab.com/gitlab-org/gitaly/v15/proto/go/gitalypb" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + reflect "reflect" + sync "sync" +) + +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 InvalidMethodRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields +} + +func (x *InvalidMethodRequest) Reset() { + *x = InvalidMethodRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_testproto_invalid_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *InvalidMethodRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*InvalidMethodRequest) ProtoMessage() {} + +func (x *InvalidMethodRequest) ProtoReflect() protoreflect.Message { + mi := &file_testproto_invalid_proto_msgTypes[0] + 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 InvalidMethodRequest.ProtoReflect.Descriptor instead. +func (*InvalidMethodRequest) Descriptor() ([]byte, []int) { + return file_testproto_invalid_proto_rawDescGZIP(), []int{0} +} + +type InvalidMethodRequestWithRepo struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Destination *gitalypb.Repository `protobuf:"bytes,1,opt,name=destination,proto3" json:"destination,omitempty"` +} + +func (x *InvalidMethodRequestWithRepo) Reset() { + *x = InvalidMethodRequestWithRepo{} + if protoimpl.UnsafeEnabled { + mi := &file_testproto_invalid_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *InvalidMethodRequestWithRepo) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*InvalidMethodRequestWithRepo) ProtoMessage() {} + +func (x *InvalidMethodRequestWithRepo) ProtoReflect() protoreflect.Message { + mi := &file_testproto_invalid_proto_msgTypes[1] + 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 InvalidMethodRequestWithRepo.ProtoReflect.Descriptor instead. +func (*InvalidMethodRequestWithRepo) Descriptor() ([]byte, []int) { + return file_testproto_invalid_proto_rawDescGZIP(), []int{1} +} + +func (x *InvalidMethodRequestWithRepo) GetDestination() *gitalypb.Repository { + if x != nil { + return x.Destination + } + return nil +} + +type InvalidTargetType struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + WrongType int32 `protobuf:"varint,1,opt,name=wrong_type,json=wrongType,proto3" json:"wrong_type,omitempty"` +} + +func (x *InvalidTargetType) Reset() { + *x = InvalidTargetType{} + if protoimpl.UnsafeEnabled { + mi := &file_testproto_invalid_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *InvalidTargetType) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*InvalidTargetType) ProtoMessage() {} + +func (x *InvalidTargetType) ProtoReflect() protoreflect.Message { + mi := &file_testproto_invalid_proto_msgTypes[2] + 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 InvalidTargetType.ProtoReflect.Descriptor instead. +func (*InvalidTargetType) Descriptor() ([]byte, []int) { + return file_testproto_invalid_proto_rawDescGZIP(), []int{2} +} + +func (x *InvalidTargetType) GetWrongType() int32 { + if x != nil { + return x.WrongType + } + return 0 +} + +type InvalidMethodResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields +} + +func (x *InvalidMethodResponse) Reset() { + *x = InvalidMethodResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_testproto_invalid_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *InvalidMethodResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*InvalidMethodResponse) ProtoMessage() {} + +func (x *InvalidMethodResponse) ProtoReflect() protoreflect.Message { + mi := &file_testproto_invalid_proto_msgTypes[3] + 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 InvalidMethodResponse.ProtoReflect.Descriptor instead. +func (*InvalidMethodResponse) Descriptor() ([]byte, []int) { + return file_testproto_invalid_proto_rawDescGZIP(), []int{3} +} + +type InvalidNestedRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + InnerMessage *InvalidTargetType `protobuf:"bytes,1,opt,name=inner_message,json=innerMessage,proto3" json:"inner_message,omitempty"` +} + +func (x *InvalidNestedRequest) Reset() { + *x = InvalidNestedRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_testproto_invalid_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *InvalidNestedRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*InvalidNestedRequest) ProtoMessage() {} + +func (x *InvalidNestedRequest) ProtoReflect() protoreflect.Message { + mi := &file_testproto_invalid_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 InvalidNestedRequest.ProtoReflect.Descriptor instead. +func (*InvalidNestedRequest) Descriptor() ([]byte, []int) { + return file_testproto_invalid_proto_rawDescGZIP(), []int{4} +} + +func (x *InvalidNestedRequest) GetInnerMessage() *InvalidTargetType { + if x != nil { + return x.InnerMessage + } + return nil +} + +type RequestWithStorage struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + StorageName string `protobuf:"bytes,1,opt,name=storage_name,json=storageName,proto3" json:"storage_name,omitempty"` + Destination *gitalypb.Repository `protobuf:"bytes,2,opt,name=destination,proto3" json:"destination,omitempty"` +} + +func (x *RequestWithStorage) Reset() { + *x = RequestWithStorage{} + if protoimpl.UnsafeEnabled { + mi := &file_testproto_invalid_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *RequestWithStorage) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*RequestWithStorage) ProtoMessage() {} + +func (x *RequestWithStorage) ProtoReflect() protoreflect.Message { + mi := &file_testproto_invalid_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 RequestWithStorage.ProtoReflect.Descriptor instead. +func (*RequestWithStorage) Descriptor() ([]byte, []int) { + return file_testproto_invalid_proto_rawDescGZIP(), []int{5} +} + +func (x *RequestWithStorage) GetStorageName() string { + if x != nil { + return x.StorageName + } + return "" +} + +func (x *RequestWithStorage) GetDestination() *gitalypb.Repository { + if x != nil { + return x.Destination + } + return nil +} + +type RequestWithStorageAndRepo struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + StorageName string `protobuf:"bytes,1,opt,name=storage_name,json=storageName,proto3" json:"storage_name,omitempty"` + Destination *gitalypb.Repository `protobuf:"bytes,2,opt,name=destination,proto3" json:"destination,omitempty"` +} + +func (x *RequestWithStorageAndRepo) Reset() { + *x = RequestWithStorageAndRepo{} + if protoimpl.UnsafeEnabled { + mi := &file_testproto_invalid_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *RequestWithStorageAndRepo) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*RequestWithStorageAndRepo) ProtoMessage() {} + +func (x *RequestWithStorageAndRepo) ProtoReflect() protoreflect.Message { + mi := &file_testproto_invalid_proto_msgTypes[6] + 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 RequestWithStorageAndRepo.ProtoReflect.Descriptor instead. +func (*RequestWithStorageAndRepo) Descriptor() ([]byte, []int) { + return file_testproto_invalid_proto_rawDescGZIP(), []int{6} +} + +func (x *RequestWithStorageAndRepo) GetStorageName() string { + if x != nil { + return x.StorageName + } + return "" +} + +func (x *RequestWithStorageAndRepo) GetDestination() *gitalypb.Repository { + if x != nil { + return x.Destination + } + return nil +} + +type RequestWithNestedStorageAndRepo struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + InnerMessage *RequestWithStorageAndRepo `protobuf:"bytes,1,opt,name=inner_message,json=innerMessage,proto3" json:"inner_message,omitempty"` +} + +func (x *RequestWithNestedStorageAndRepo) Reset() { + *x = RequestWithNestedStorageAndRepo{} + if protoimpl.UnsafeEnabled { + mi := &file_testproto_invalid_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *RequestWithNestedStorageAndRepo) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*RequestWithNestedStorageAndRepo) ProtoMessage() {} + +func (x *RequestWithNestedStorageAndRepo) ProtoReflect() protoreflect.Message { + mi := &file_testproto_invalid_proto_msgTypes[7] + 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 RequestWithNestedStorageAndRepo.ProtoReflect.Descriptor instead. +func (*RequestWithNestedStorageAndRepo) Descriptor() ([]byte, []int) { + return file_testproto_invalid_proto_rawDescGZIP(), []int{7} +} + +func (x *RequestWithNestedStorageAndRepo) GetInnerMessage() *RequestWithStorageAndRepo { + if x != nil { + return x.InnerMessage + } + return nil +} + +type RequestWithMultipleNestedStorage struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + InnerMessage *RequestWithStorage `protobuf:"bytes,1,opt,name=inner_message,json=innerMessage,proto3" json:"inner_message,omitempty"` + StorageName string `protobuf:"bytes,2,opt,name=storage_name,json=storageName,proto3" json:"storage_name,omitempty"` +} + +func (x *RequestWithMultipleNestedStorage) Reset() { + *x = RequestWithMultipleNestedStorage{} + if protoimpl.UnsafeEnabled { + mi := &file_testproto_invalid_proto_msgTypes[8] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *RequestWithMultipleNestedStorage) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*RequestWithMultipleNestedStorage) ProtoMessage() {} + +func (x *RequestWithMultipleNestedStorage) ProtoReflect() protoreflect.Message { + mi := &file_testproto_invalid_proto_msgTypes[8] + 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 RequestWithMultipleNestedStorage.ProtoReflect.Descriptor instead. +func (*RequestWithMultipleNestedStorage) Descriptor() ([]byte, []int) { + return file_testproto_invalid_proto_rawDescGZIP(), []int{8} +} + +func (x *RequestWithMultipleNestedStorage) GetInnerMessage() *RequestWithStorage { + if x != nil { + return x.InnerMessage + } + return nil +} + +func (x *RequestWithMultipleNestedStorage) GetStorageName() string { + if x != nil { + return x.StorageName + } + return "" +} + +type RequestWithInnerNestedStorage struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Header *RequestWithInnerNestedStorage_Header `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` +} + +func (x *RequestWithInnerNestedStorage) Reset() { + *x = RequestWithInnerNestedStorage{} + if protoimpl.UnsafeEnabled { + mi := &file_testproto_invalid_proto_msgTypes[9] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *RequestWithInnerNestedStorage) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*RequestWithInnerNestedStorage) ProtoMessage() {} + +func (x *RequestWithInnerNestedStorage) ProtoReflect() protoreflect.Message { + mi := &file_testproto_invalid_proto_msgTypes[9] + 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 RequestWithInnerNestedStorage.ProtoReflect.Descriptor instead. +func (*RequestWithInnerNestedStorage) Descriptor() ([]byte, []int) { + return file_testproto_invalid_proto_rawDescGZIP(), []int{9} +} + +func (x *RequestWithInnerNestedStorage) GetHeader() *RequestWithInnerNestedStorage_Header { + if x != nil { + return x.Header + } + return nil +} + +type RequestWithWrongTypeRepository struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Header *RequestWithWrongTypeRepository_Header `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` +} + +func (x *RequestWithWrongTypeRepository) Reset() { + *x = RequestWithWrongTypeRepository{} + if protoimpl.UnsafeEnabled { + mi := &file_testproto_invalid_proto_msgTypes[10] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *RequestWithWrongTypeRepository) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*RequestWithWrongTypeRepository) ProtoMessage() {} + +func (x *RequestWithWrongTypeRepository) ProtoReflect() protoreflect.Message { + mi := &file_testproto_invalid_proto_msgTypes[10] + 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 RequestWithWrongTypeRepository.ProtoReflect.Descriptor instead. +func (*RequestWithWrongTypeRepository) Descriptor() ([]byte, []int) { + return file_testproto_invalid_proto_rawDescGZIP(), []int{10} +} + +func (x *RequestWithWrongTypeRepository) GetHeader() *RequestWithWrongTypeRepository_Header { + if x != nil { + return x.Header + } + return nil +} + +type RequestWithNestedRepoNotFlagged struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Header *RequestWithNestedRepoNotFlagged_Header `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` +} + +func (x *RequestWithNestedRepoNotFlagged) Reset() { + *x = RequestWithNestedRepoNotFlagged{} + if protoimpl.UnsafeEnabled { + mi := &file_testproto_invalid_proto_msgTypes[11] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *RequestWithNestedRepoNotFlagged) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*RequestWithNestedRepoNotFlagged) ProtoMessage() {} + +func (x *RequestWithNestedRepoNotFlagged) ProtoReflect() protoreflect.Message { + mi := &file_testproto_invalid_proto_msgTypes[11] + 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 RequestWithNestedRepoNotFlagged.ProtoReflect.Descriptor instead. +func (*RequestWithNestedRepoNotFlagged) Descriptor() ([]byte, []int) { + return file_testproto_invalid_proto_rawDescGZIP(), []int{11} +} + +func (x *RequestWithNestedRepoNotFlagged) GetHeader() *RequestWithNestedRepoNotFlagged_Header { + if x != nil { + return x.Header + } + return nil +} + +type RequestWithInnerNestedStorage_Header struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + StorageName string `protobuf:"bytes,1,opt,name=storage_name,json=storageName,proto3" json:"storage_name,omitempty"` +} + +func (x *RequestWithInnerNestedStorage_Header) Reset() { + *x = RequestWithInnerNestedStorage_Header{} + if protoimpl.UnsafeEnabled { + mi := &file_testproto_invalid_proto_msgTypes[12] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *RequestWithInnerNestedStorage_Header) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*RequestWithInnerNestedStorage_Header) ProtoMessage() {} + +func (x *RequestWithInnerNestedStorage_Header) ProtoReflect() protoreflect.Message { + mi := &file_testproto_invalid_proto_msgTypes[12] + 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 RequestWithInnerNestedStorage_Header.ProtoReflect.Descriptor instead. +func (*RequestWithInnerNestedStorage_Header) Descriptor() ([]byte, []int) { + return file_testproto_invalid_proto_rawDescGZIP(), []int{9, 0} +} + +func (x *RequestWithInnerNestedStorage_Header) GetStorageName() string { + if x != nil { + return x.StorageName + } + return "" +} + +type RequestWithWrongTypeRepository_Header struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Repository *InvalidMethodResponse `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"` +} + +func (x *RequestWithWrongTypeRepository_Header) Reset() { + *x = RequestWithWrongTypeRepository_Header{} + if protoimpl.UnsafeEnabled { + mi := &file_testproto_invalid_proto_msgTypes[13] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *RequestWithWrongTypeRepository_Header) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*RequestWithWrongTypeRepository_Header) ProtoMessage() {} + +func (x *RequestWithWrongTypeRepository_Header) ProtoReflect() protoreflect.Message { + mi := &file_testproto_invalid_proto_msgTypes[13] + 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 RequestWithWrongTypeRepository_Header.ProtoReflect.Descriptor instead. +func (*RequestWithWrongTypeRepository_Header) Descriptor() ([]byte, []int) { + return file_testproto_invalid_proto_rawDescGZIP(), []int{10, 0} +} + +func (x *RequestWithWrongTypeRepository_Header) GetRepository() *InvalidMethodResponse { + if x != nil { + return x.Repository + } + return nil +} + +type RequestWithNestedRepoNotFlagged_Header struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Repository *gitalypb.Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"` +} + +func (x *RequestWithNestedRepoNotFlagged_Header) Reset() { + *x = RequestWithNestedRepoNotFlagged_Header{} + if protoimpl.UnsafeEnabled { + mi := &file_testproto_invalid_proto_msgTypes[14] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *RequestWithNestedRepoNotFlagged_Header) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*RequestWithNestedRepoNotFlagged_Header) ProtoMessage() {} + +func (x *RequestWithNestedRepoNotFlagged_Header) ProtoReflect() protoreflect.Message { + mi := &file_testproto_invalid_proto_msgTypes[14] + 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 RequestWithNestedRepoNotFlagged_Header.ProtoReflect.Descriptor instead. +func (*RequestWithNestedRepoNotFlagged_Header) Descriptor() ([]byte, []int) { + return file_testproto_invalid_proto_rawDescGZIP(), []int{11, 0} +} + +func (x *RequestWithNestedRepoNotFlagged_Header) GetRepository() *gitalypb.Repository { + if x != nil { + return x.Repository + } + return nil +} + +var File_testproto_invalid_proto protoreflect.FileDescriptor + +var file_testproto_invalid_proto_rawDesc = []byte{ + 0x0a, 0x17, 0x74, 0x65, 0x73, 0x74, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x69, 0x6e, 0x76, 0x61, + 0x6c, 0x69, 0x64, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x09, 0x74, 0x65, 0x73, 0x74, 0x70, + 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x0a, 0x6c, 0x69, 0x6e, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, + 0x1a, 0x0c, 0x73, 0x68, 0x61, 0x72, 0x65, 0x64, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x16, + 0x0a, 0x14, 0x49, 0x6e, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x4d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0x5a, 0x0a, 0x1c, 0x49, 0x6e, 0x76, 0x61, 0x6c, 0x69, + 0x64, 0x4d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x57, 0x69, + 0x74, 0x68, 0x52, 0x65, 0x70, 0x6f, 0x12, 0x3a, 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x74, 0x69, 0x6e, + 0x61, 0x74, 0x69, 0x6f, 0x6e, 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, 0x0b, 0x64, 0x65, 0x73, 0x74, 0x69, 0x6e, 0x61, 0x74, 0x69, + 0x6f, 0x6e, 0x22, 0x38, 0x0a, 0x11, 0x49, 0x6e, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x54, 0x61, 0x72, + 0x67, 0x65, 0x74, 0x54, 0x79, 0x70, 0x65, 0x12, 0x23, 0x0a, 0x0a, 0x77, 0x72, 0x6f, 0x6e, 0x67, + 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x42, 0x04, 0x98, 0xc6, 0x2c, + 0x01, 0x52, 0x09, 0x77, 0x72, 0x6f, 0x6e, 0x67, 0x54, 0x79, 0x70, 0x65, 0x22, 0x17, 0x0a, 0x15, + 0x49, 0x6e, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x4d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x59, 0x0a, 0x14, 0x49, 0x6e, 0x76, 0x61, 0x6c, 0x69, 0x64, + 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x41, 0x0a, + 0x0d, 0x69, 0x6e, 0x6e, 0x65, 0x72, 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x70, 0x72, 0x6f, 0x74, 0x6f, + 0x2e, 0x49, 0x6e, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x54, 0x61, 0x72, 0x67, 0x65, 0x74, 0x54, 0x79, + 0x70, 0x65, 0x52, 0x0c, 0x69, 0x6e, 0x6e, 0x65, 0x72, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, + 0x22, 0x73, 0x0a, 0x12, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x57, 0x69, 0x74, 0x68, 0x53, + 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x12, 0x27, 0x0a, 0x0c, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, + 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x04, 0x88, 0xc6, + 0x2c, 0x01, 0x52, 0x0b, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x12, + 0x34, 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x74, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x52, 0x65, + 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x52, 0x0b, 0x64, 0x65, 0x73, 0x74, 0x69, 0x6e, + 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x80, 0x01, 0x0a, 0x19, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x57, 0x69, 0x74, 0x68, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x41, 0x6e, 0x64, 0x52, + 0x65, 0x70, 0x6f, 0x12, 0x27, 0x0a, 0x0c, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x5f, 0x6e, + 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x04, 0x88, 0xc6, 0x2c, 0x01, 0x52, + 0x0b, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x3a, 0x0a, 0x0b, + 0x64, 0x65, 0x73, 0x74, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, 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, 0x0b, 0x64, 0x65, 0x73, + 0x74, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x6c, 0x0a, 0x1f, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x57, 0x69, 0x74, 0x68, 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x53, 0x74, 0x6f, + 0x72, 0x61, 0x67, 0x65, 0x41, 0x6e, 0x64, 0x52, 0x65, 0x70, 0x6f, 0x12, 0x49, 0x0a, 0x0d, 0x69, + 0x6e, 0x6e, 0x65, 0x72, 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x57, 0x69, 0x74, 0x68, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, + 0x65, 0x41, 0x6e, 0x64, 0x52, 0x65, 0x70, 0x6f, 0x52, 0x0c, 0x69, 0x6e, 0x6e, 0x65, 0x72, 0x4d, + 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x22, 0x8f, 0x01, 0x0a, 0x20, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x57, 0x69, 0x74, 0x68, 0x4d, 0x75, 0x6c, 0x74, 0x69, 0x70, 0x6c, 0x65, 0x4e, 0x65, + 0x73, 0x74, 0x65, 0x64, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x12, 0x42, 0x0a, 0x0d, 0x69, + 0x6e, 0x6e, 0x65, 0x72, 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x57, 0x69, 0x74, 0x68, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, + 0x65, 0x52, 0x0c, 0x69, 0x6e, 0x6e, 0x65, 0x72, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, + 0x27, 0x0a, 0x0c, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, + 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x04, 0x88, 0xc6, 0x2c, 0x01, 0x52, 0x0b, 0x73, 0x74, 0x6f, + 0x72, 0x61, 0x67, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x22, 0x9b, 0x01, 0x0a, 0x1d, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x57, 0x69, 0x74, 0x68, 0x49, 0x6e, 0x6e, 0x65, 0x72, 0x4e, 0x65, 0x73, + 0x74, 0x65, 0x64, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x12, 0x47, 0x0a, 0x06, 0x68, 0x65, + 0x61, 0x64, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2f, 0x2e, 0x74, 0x65, 0x73, + 0x74, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x57, 0x69, + 0x74, 0x68, 0x49, 0x6e, 0x6e, 0x65, 0x72, 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x53, 0x74, 0x6f, + 0x72, 0x61, 0x67, 0x65, 0x2e, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x52, 0x06, 0x68, 0x65, 0x61, + 0x64, 0x65, 0x72, 0x1a, 0x31, 0x0a, 0x06, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x12, 0x27, 0x0a, + 0x0c, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x09, 0x42, 0x04, 0x88, 0xc6, 0x2c, 0x01, 0x52, 0x0b, 0x73, 0x74, 0x6f, 0x72, 0x61, + 0x67, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x22, 0xc2, 0x01, 0x0a, 0x1e, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x57, 0x69, 0x74, 0x68, 0x57, 0x72, 0x6f, 0x6e, 0x67, 0x54, 0x79, 0x70, 0x65, 0x52, + 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x12, 0x4e, 0x0a, 0x06, 0x68, 0x65, 0x61, + 0x64, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x30, 0x2e, 0x74, 0x65, 0x73, 0x74, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x57, 0x69, 0x74, + 0x68, 0x57, 0x72, 0x6f, 0x6e, 0x67, 0x54, 0x79, 0x70, 0x65, 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, + 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x42, 0x04, 0x98, 0xc6, 0x2c, + 0x01, 0x52, 0x06, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x1a, 0x50, 0x0a, 0x06, 0x48, 0x65, 0x61, + 0x64, 0x65, 0x72, 0x12, 0x46, 0x0a, 0x0a, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, + 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x2e, 0x49, 0x6e, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x4d, 0x65, 0x74, 0x68, 0x6f, + 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x42, 0x04, 0x90, 0xc6, 0x2c, 0x01, 0x52, + 0x0a, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x22, 0xb0, 0x01, 0x0a, 0x1f, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x57, 0x69, 0x74, 0x68, 0x4e, 0x65, 0x73, 0x74, 0x65, + 0x64, 0x52, 0x65, 0x70, 0x6f, 0x4e, 0x6f, 0x74, 0x46, 0x6c, 0x61, 0x67, 0x67, 0x65, 0x64, 0x12, + 0x4f, 0x0a, 0x06, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x31, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x57, 0x69, 0x74, 0x68, 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x52, 0x65, 0x70, + 0x6f, 0x4e, 0x6f, 0x74, 0x46, 0x6c, 0x61, 0x67, 0x67, 0x65, 0x64, 0x2e, 0x48, 0x65, 0x61, 0x64, + 0x65, 0x72, 0x42, 0x04, 0x98, 0xc6, 0x2c, 0x01, 0x52, 0x06, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, + 0x1a, 0x3c, 0x0a, 0x06, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x12, 0x32, 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, 0x52, 0x0a, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x32, 0x80, + 0x01, 0x0a, 0x1c, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x63, 0x65, 0x70, 0x74, 0x65, 0x64, 0x57, 0x69, + 0x74, 0x68, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x12, + 0x5a, 0x0a, 0x0d, 0x49, 0x6e, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x4d, 0x65, 0x74, 0x68, 0x6f, 0x64, + 0x12, 0x1f, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x49, 0x6e, 0x76, + 0x61, 0x6c, 0x69, 0x64, 0x4d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x1a, 0x20, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x49, 0x6e, + 0x76, 0x61, 0x6c, 0x69, 0x64, 0x4d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, + 0x6e, 0x73, 0x65, 0x22, 0x06, 0xfa, 0x97, 0x28, 0x02, 0x08, 0x02, 0x1a, 0x04, 0xf0, 0x97, 0x28, + 0x01, 0x32, 0x9e, 0x12, 0x0a, 0x0e, 0x49, 0x6e, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x53, 0x65, 0x72, + 0x76, 0x69, 0x63, 0x65, 0x12, 0x55, 0x0a, 0x0e, 0x49, 0x6e, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x4d, + 0x65, 0x74, 0x68, 0x6f, 0x64, 0x30, 0x12, 0x1f, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x2e, 0x49, 0x6e, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x4d, 0x65, 0x74, 0x68, 0x6f, 0x64, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x20, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x2e, 0x49, 0x6e, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x4d, 0x65, 0x74, 0x68, 0x6f, + 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x5b, 0x0a, 0x0e, 0x49, + 0x6e, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x4d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x31, 0x12, 0x1f, 0x2e, + 0x74, 0x65, 0x73, 0x74, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x49, 0x6e, 0x76, 0x61, 0x6c, 0x69, + 0x64, 0x4d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x20, + 0x2e, 0x74, 0x65, 0x73, 0x74, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x49, 0x6e, 0x76, 0x61, 0x6c, + 0x69, 0x64, 0x4d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x22, 0x06, 0xfa, 0x97, 0x28, 0x02, 0x08, 0x00, 0x12, 0x5b, 0x0a, 0x0e, 0x49, 0x6e, 0x76, 0x61, + 0x6c, 0x69, 0x64, 0x4d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x32, 0x12, 0x1f, 0x2e, 0x74, 0x65, 0x73, + 0x74, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x49, 0x6e, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x4d, 0x65, + 0x74, 0x68, 0x6f, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x20, 0x2e, 0x74, 0x65, + 0x73, 0x74, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x49, 0x6e, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x4d, + 0x65, 0x74, 0x68, 0x6f, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x06, 0xfa, + 0x97, 0x28, 0x02, 0x08, 0x02, 0x12, 0x5b, 0x0a, 0x0e, 0x49, 0x6e, 0x76, 0x61, 0x6c, 0x69, 0x64, + 0x4d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x34, 0x12, 0x1f, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x2e, 0x49, 0x6e, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x4d, 0x65, 0x74, 0x68, 0x6f, + 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x20, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x70, + 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x49, 0x6e, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x4d, 0x65, 0x74, 0x68, + 0x6f, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x06, 0xfa, 0x97, 0x28, 0x02, + 0x08, 0x01, 0x12, 0x65, 0x0a, 0x0e, 0x49, 0x6e, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x4d, 0x65, 0x74, + 0x68, 0x6f, 0x64, 0x35, 0x12, 0x29, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x70, 0x72, 0x6f, 0x74, 0x6f, + 0x2e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x57, 0x69, 0x74, 0x68, 0x57, 0x72, 0x6f, 0x6e, + 0x67, 0x54, 0x79, 0x70, 0x65, 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x1a, + 0x20, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x49, 0x6e, 0x76, 0x61, + 0x6c, 0x69, 0x64, 0x4d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x22, 0x06, 0xfa, 0x97, 0x28, 0x02, 0x08, 0x01, 0x12, 0x66, 0x0a, 0x0e, 0x49, 0x6e, 0x76, + 0x61, 0x6c, 0x69, 0x64, 0x4d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x36, 0x12, 0x2a, 0x2e, 0x74, 0x65, + 0x73, 0x74, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x57, + 0x69, 0x74, 0x68, 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x52, 0x65, 0x70, 0x6f, 0x4e, 0x6f, 0x74, + 0x46, 0x6c, 0x61, 0x67, 0x67, 0x65, 0x64, 0x1a, 0x20, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x2e, 0x49, 0x6e, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x4d, 0x65, 0x74, 0x68, 0x6f, + 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x06, 0xfa, 0x97, 0x28, 0x02, 0x08, + 0x01, 0x12, 0x58, 0x0a, 0x0e, 0x49, 0x6e, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x4d, 0x65, 0x74, 0x68, + 0x6f, 0x64, 0x37, 0x12, 0x1c, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, + 0x49, 0x6e, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x54, 0x61, 0x72, 0x67, 0x65, 0x74, 0x54, 0x79, 0x70, + 0x65, 0x1a, 0x20, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x49, 0x6e, + 0x76, 0x61, 0x6c, 0x69, 0x64, 0x4d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, + 0x6e, 0x73, 0x65, 0x22, 0x06, 0xfa, 0x97, 0x28, 0x02, 0x08, 0x01, 0x12, 0x5b, 0x0a, 0x0e, 0x49, + 0x6e, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x4d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x38, 0x12, 0x1f, 0x2e, + 0x74, 0x65, 0x73, 0x74, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x49, 0x6e, 0x76, 0x61, 0x6c, 0x69, + 0x64, 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x20, + 0x2e, 0x74, 0x65, 0x73, 0x74, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x49, 0x6e, 0x76, 0x61, 0x6c, + 0x69, 0x64, 0x4d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x22, 0x06, 0xfa, 0x97, 0x28, 0x02, 0x08, 0x01, 0x12, 0x65, 0x0a, 0x0e, 0x49, 0x6e, 0x76, 0x61, + 0x6c, 0x69, 0x64, 0x4d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x39, 0x12, 0x27, 0x2e, 0x74, 0x65, 0x73, + 0x74, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x49, 0x6e, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x4d, 0x65, + 0x74, 0x68, 0x6f, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x57, 0x69, 0x74, 0x68, 0x52, + 0x65, 0x70, 0x6f, 0x1a, 0x20, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, + 0x49, 0x6e, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x4d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x08, 0xfa, 0x97, 0x28, 0x04, 0x08, 0x01, 0x10, 0x02, 0x12, + 0x61, 0x0a, 0x0f, 0x49, 0x6e, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x4d, 0x65, 0x74, 0x68, 0x6f, 0x64, + 0x31, 0x30, 0x12, 0x24, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x57, 0x69, 0x74, 0x68, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, + 0x65, 0x41, 0x6e, 0x64, 0x52, 0x65, 0x70, 0x6f, 0x1a, 0x20, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x70, + 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x49, 0x6e, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x4d, 0x65, 0x74, 0x68, + 0x6f, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x06, 0xfa, 0x97, 0x28, 0x02, + 0x08, 0x02, 0x12, 0x67, 0x0a, 0x0f, 0x49, 0x6e, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x4d, 0x65, 0x74, + 0x68, 0x6f, 0x64, 0x31, 0x31, 0x12, 0x2a, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x70, 0x72, 0x6f, 0x74, + 0x6f, 0x2e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x57, 0x69, 0x74, 0x68, 0x4e, 0x65, 0x73, + 0x74, 0x65, 0x64, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x41, 0x6e, 0x64, 0x52, 0x65, 0x70, + 0x6f, 0x1a, 0x20, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x49, 0x6e, + 0x76, 0x61, 0x6c, 0x69, 0x64, 0x4d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, + 0x6e, 0x73, 0x65, 0x22, 0x06, 0xfa, 0x97, 0x28, 0x02, 0x08, 0x01, 0x12, 0x5b, 0x0a, 0x0f, 0x49, + 0x6e, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x4d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x31, 0x33, 0x12, 0x1c, + 0x2e, 0x74, 0x65, 0x73, 0x74, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x49, 0x6e, 0x76, 0x61, 0x6c, + 0x69, 0x64, 0x54, 0x61, 0x72, 0x67, 0x65, 0x74, 0x54, 0x79, 0x70, 0x65, 0x1a, 0x20, 0x2e, 0x74, + 0x65, 0x73, 0x74, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x49, 0x6e, 0x76, 0x61, 0x6c, 0x69, 0x64, + 0x4d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x08, + 0xfa, 0x97, 0x28, 0x04, 0x08, 0x01, 0x10, 0x02, 0x12, 0x6a, 0x0a, 0x0f, 0x49, 0x6e, 0x76, 0x61, + 0x6c, 0x69, 0x64, 0x4d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x31, 0x34, 0x12, 0x2b, 0x2e, 0x74, 0x65, + 0x73, 0x74, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x57, + 0x69, 0x74, 0x68, 0x4d, 0x75, 0x6c, 0x74, 0x69, 0x70, 0x6c, 0x65, 0x4e, 0x65, 0x73, 0x74, 0x65, + 0x64, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x1a, 0x20, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x70, + 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x49, 0x6e, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x4d, 0x65, 0x74, 0x68, + 0x6f, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x08, 0xfa, 0x97, 0x28, 0x04, + 0x08, 0x01, 0x10, 0x02, 0x12, 0x63, 0x0a, 0x0f, 0x49, 0x6e, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x4d, + 0x65, 0x74, 0x68, 0x6f, 0x64, 0x31, 0x35, 0x12, 0x24, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x2e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x57, 0x69, 0x74, 0x68, 0x53, + 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x41, 0x6e, 0x64, 0x52, 0x65, 0x70, 0x6f, 0x1a, 0x20, 0x2e, + 0x74, 0x65, 0x73, 0x74, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x49, 0x6e, 0x76, 0x61, 0x6c, 0x69, + 0x64, 0x4d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, + 0x08, 0x80, 0x98, 0x28, 0x01, 0xfa, 0x97, 0x28, 0x00, 0x12, 0x6d, 0x0a, 0x20, 0x4d, 0x61, 0x69, + 0x6e, 0x74, 0x65, 0x6e, 0x61, 0x6e, 0x63, 0x65, 0x57, 0x69, 0x74, 0x68, 0x4d, 0x69, 0x73, 0x73, + 0x69, 0x6e, 0x67, 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x12, 0x1f, 0x2e, + 0x74, 0x65, 0x73, 0x74, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x49, 0x6e, 0x76, 0x61, 0x6c, 0x69, + 0x64, 0x4d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x20, + 0x2e, 0x74, 0x65, 0x73, 0x74, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x49, 0x6e, 0x76, 0x61, 0x6c, + 0x69, 0x64, 0x4d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x22, 0x06, 0xfa, 0x97, 0x28, 0x02, 0x08, 0x03, 0x12, 0x7a, 0x0a, 0x22, 0x4d, 0x61, 0x69, 0x6e, + 0x74, 0x65, 0x6e, 0x61, 0x6e, 0x63, 0x65, 0x57, 0x69, 0x74, 0x68, 0x55, 0x6e, 0x66, 0x6c, 0x61, + 0x67, 0x67, 0x65, 0x64, 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x12, 0x2a, + 0x2e, 0x74, 0x65, 0x73, 0x74, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x57, 0x69, 0x74, 0x68, 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x52, 0x65, 0x70, 0x6f, + 0x4e, 0x6f, 0x74, 0x46, 0x6c, 0x61, 0x67, 0x67, 0x65, 0x64, 0x1a, 0x20, 0x2e, 0x74, 0x65, 0x73, + 0x74, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x49, 0x6e, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x4d, 0x65, + 0x74, 0x68, 0x6f, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x06, 0xfa, 0x97, + 0x28, 0x02, 0x08, 0x03, 0x12, 0x7f, 0x0a, 0x28, 0x4d, 0x61, 0x69, 0x6e, 0x74, 0x65, 0x6e, 0x61, + 0x6e, 0x63, 0x65, 0x57, 0x69, 0x74, 0x68, 0x57, 0x72, 0x6f, 0x6e, 0x67, 0x4e, 0x65, 0x73, 0x74, + 0x65, 0x64, 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x54, 0x79, 0x70, 0x65, + 0x12, 0x29, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x57, 0x69, 0x74, 0x68, 0x57, 0x72, 0x6f, 0x6e, 0x67, 0x54, 0x79, 0x70, + 0x65, 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x1a, 0x20, 0x2e, 0x74, 0x65, + 0x73, 0x74, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x49, 0x6e, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x4d, + 0x65, 0x74, 0x68, 0x6f, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x06, 0xfa, + 0x97, 0x28, 0x02, 0x08, 0x03, 0x12, 0x6a, 0x0a, 0x20, 0x4d, 0x61, 0x69, 0x6e, 0x74, 0x65, 0x6e, + 0x61, 0x6e, 0x63, 0x65, 0x57, 0x69, 0x74, 0x68, 0x49, 0x6e, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x54, + 0x61, 0x72, 0x67, 0x65, 0x74, 0x54, 0x79, 0x70, 0x65, 0x12, 0x1c, 0x2e, 0x74, 0x65, 0x73, 0x74, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x49, 0x6e, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x54, 0x61, 0x72, + 0x67, 0x65, 0x74, 0x54, 0x79, 0x70, 0x65, 0x1a, 0x20, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x2e, 0x49, 0x6e, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x4d, 0x65, 0x74, 0x68, 0x6f, + 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x06, 0xfa, 0x97, 0x28, 0x02, 0x08, + 0x03, 0x12, 0x70, 0x0a, 0x23, 0x4d, 0x61, 0x69, 0x6e, 0x74, 0x65, 0x6e, 0x61, 0x6e, 0x63, 0x65, + 0x57, 0x69, 0x74, 0x68, 0x49, 0x6e, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x4e, 0x65, 0x73, 0x74, 0x65, + 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1f, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x70, + 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x49, 0x6e, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x4e, 0x65, 0x73, 0x74, + 0x65, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x20, 0x2e, 0x74, 0x65, 0x73, 0x74, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x49, 0x6e, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x4d, 0x65, 0x74, + 0x68, 0x6f, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x06, 0xfa, 0x97, 0x28, + 0x02, 0x08, 0x03, 0x12, 0x75, 0x0a, 0x23, 0x4d, 0x61, 0x69, 0x6e, 0x74, 0x65, 0x6e, 0x61, 0x6e, + 0x63, 0x65, 0x57, 0x69, 0x74, 0x68, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x41, 0x6e, 0x64, + 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x12, 0x24, 0x2e, 0x74, 0x65, 0x73, + 0x74, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x57, 0x69, + 0x74, 0x68, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x41, 0x6e, 0x64, 0x52, 0x65, 0x70, 0x6f, + 0x1a, 0x20, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x49, 0x6e, 0x76, + 0x61, 0x6c, 0x69, 0x64, 0x4d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x22, 0x06, 0xfa, 0x97, 0x28, 0x02, 0x08, 0x03, 0x12, 0x81, 0x01, 0x0a, 0x29, 0x4d, + 0x61, 0x69, 0x6e, 0x74, 0x65, 0x6e, 0x61, 0x6e, 0x63, 0x65, 0x57, 0x69, 0x74, 0x68, 0x4e, 0x65, + 0x73, 0x74, 0x65, 0x64, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x41, 0x6e, 0x64, 0x52, 0x65, + 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x12, 0x2a, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x70, + 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x57, 0x69, 0x74, 0x68, + 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x41, 0x6e, 0x64, + 0x52, 0x65, 0x70, 0x6f, 0x1a, 0x20, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x70, 0x72, 0x6f, 0x74, 0x6f, + 0x2e, 0x49, 0x6e, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x4d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x06, 0xfa, 0x97, 0x28, 0x02, 0x08, 0x03, 0x12, 0x72, + 0x0a, 0x1b, 0x4d, 0x61, 0x69, 0x6e, 0x74, 0x65, 0x6e, 0x61, 0x6e, 0x63, 0x65, 0x57, 0x69, 0x74, + 0x68, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x53, 0x63, 0x6f, 0x70, 0x65, 0x12, 0x27, 0x2e, + 0x74, 0x65, 0x73, 0x74, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x49, 0x6e, 0x76, 0x61, 0x6c, 0x69, + 0x64, 0x4d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x57, 0x69, + 0x74, 0x68, 0x52, 0x65, 0x70, 0x6f, 0x1a, 0x20, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x2e, 0x49, 0x6e, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x4d, 0x65, 0x74, 0x68, 0x6f, 0x64, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x08, 0xfa, 0x97, 0x28, 0x04, 0x08, 0x03, + 0x10, 0x02, 0x42, 0x32, 0x5a, 0x30, 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, 0x35, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x74, 0x65, 0x73, + 0x74, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +} + +var ( + file_testproto_invalid_proto_rawDescOnce sync.Once + file_testproto_invalid_proto_rawDescData = file_testproto_invalid_proto_rawDesc +) + +func file_testproto_invalid_proto_rawDescGZIP() []byte { + file_testproto_invalid_proto_rawDescOnce.Do(func() { + file_testproto_invalid_proto_rawDescData = protoimpl.X.CompressGZIP(file_testproto_invalid_proto_rawDescData) + }) + return file_testproto_invalid_proto_rawDescData +} + +var file_testproto_invalid_proto_msgTypes = make([]protoimpl.MessageInfo, 15) +var file_testproto_invalid_proto_goTypes = []interface{}{ + (*InvalidMethodRequest)(nil), // 0: testproto.InvalidMethodRequest + (*InvalidMethodRequestWithRepo)(nil), // 1: testproto.InvalidMethodRequestWithRepo + (*InvalidTargetType)(nil), // 2: testproto.InvalidTargetType + (*InvalidMethodResponse)(nil), // 3: testproto.InvalidMethodResponse + (*InvalidNestedRequest)(nil), // 4: testproto.InvalidNestedRequest + (*RequestWithStorage)(nil), // 5: testproto.RequestWithStorage + (*RequestWithStorageAndRepo)(nil), // 6: testproto.RequestWithStorageAndRepo + (*RequestWithNestedStorageAndRepo)(nil), // 7: testproto.RequestWithNestedStorageAndRepo + (*RequestWithMultipleNestedStorage)(nil), // 8: testproto.RequestWithMultipleNestedStorage + (*RequestWithInnerNestedStorage)(nil), // 9: testproto.RequestWithInnerNestedStorage + (*RequestWithWrongTypeRepository)(nil), // 10: testproto.RequestWithWrongTypeRepository + (*RequestWithNestedRepoNotFlagged)(nil), // 11: testproto.RequestWithNestedRepoNotFlagged + (*RequestWithInnerNestedStorage_Header)(nil), // 12: testproto.RequestWithInnerNestedStorage.Header + (*RequestWithWrongTypeRepository_Header)(nil), // 13: testproto.RequestWithWrongTypeRepository.Header + (*RequestWithNestedRepoNotFlagged_Header)(nil), // 14: testproto.RequestWithNestedRepoNotFlagged.Header + (*gitalypb.Repository)(nil), // 15: gitaly.Repository +} +var file_testproto_invalid_proto_depIdxs = []int32{ + 15, // 0: testproto.InvalidMethodRequestWithRepo.destination:type_name -> gitaly.Repository + 2, // 1: testproto.InvalidNestedRequest.inner_message:type_name -> testproto.InvalidTargetType + 15, // 2: testproto.RequestWithStorage.destination:type_name -> gitaly.Repository + 15, // 3: testproto.RequestWithStorageAndRepo.destination:type_name -> gitaly.Repository + 6, // 4: testproto.RequestWithNestedStorageAndRepo.inner_message:type_name -> testproto.RequestWithStorageAndRepo + 5, // 5: testproto.RequestWithMultipleNestedStorage.inner_message:type_name -> testproto.RequestWithStorage + 12, // 6: testproto.RequestWithInnerNestedStorage.header:type_name -> testproto.RequestWithInnerNestedStorage.Header + 13, // 7: testproto.RequestWithWrongTypeRepository.header:type_name -> testproto.RequestWithWrongTypeRepository.Header + 14, // 8: testproto.RequestWithNestedRepoNotFlagged.header:type_name -> testproto.RequestWithNestedRepoNotFlagged.Header + 3, // 9: testproto.RequestWithWrongTypeRepository.Header.repository:type_name -> testproto.InvalidMethodResponse + 15, // 10: testproto.RequestWithNestedRepoNotFlagged.Header.repository:type_name -> gitaly.Repository + 0, // 11: testproto.InterceptedWithOperationType.InvalidMethod:input_type -> testproto.InvalidMethodRequest + 0, // 12: testproto.InvalidService.InvalidMethod0:input_type -> testproto.InvalidMethodRequest + 0, // 13: testproto.InvalidService.InvalidMethod1:input_type -> testproto.InvalidMethodRequest + 0, // 14: testproto.InvalidService.InvalidMethod2:input_type -> testproto.InvalidMethodRequest + 0, // 15: testproto.InvalidService.InvalidMethod4:input_type -> testproto.InvalidMethodRequest + 10, // 16: testproto.InvalidService.InvalidMethod5:input_type -> testproto.RequestWithWrongTypeRepository + 11, // 17: testproto.InvalidService.InvalidMethod6:input_type -> testproto.RequestWithNestedRepoNotFlagged + 2, // 18: testproto.InvalidService.InvalidMethod7:input_type -> testproto.InvalidTargetType + 4, // 19: testproto.InvalidService.InvalidMethod8:input_type -> testproto.InvalidNestedRequest + 1, // 20: testproto.InvalidService.InvalidMethod9:input_type -> testproto.InvalidMethodRequestWithRepo + 6, // 21: testproto.InvalidService.InvalidMethod10:input_type -> testproto.RequestWithStorageAndRepo + 7, // 22: testproto.InvalidService.InvalidMethod11:input_type -> testproto.RequestWithNestedStorageAndRepo + 2, // 23: testproto.InvalidService.InvalidMethod13:input_type -> testproto.InvalidTargetType + 8, // 24: testproto.InvalidService.InvalidMethod14:input_type -> testproto.RequestWithMultipleNestedStorage + 6, // 25: testproto.InvalidService.InvalidMethod15:input_type -> testproto.RequestWithStorageAndRepo + 0, // 26: testproto.InvalidService.MaintenanceWithMissingRepository:input_type -> testproto.InvalidMethodRequest + 11, // 27: testproto.InvalidService.MaintenanceWithUnflaggedRepository:input_type -> testproto.RequestWithNestedRepoNotFlagged + 10, // 28: testproto.InvalidService.MaintenanceWithWrongNestedRepositoryType:input_type -> testproto.RequestWithWrongTypeRepository + 2, // 29: testproto.InvalidService.MaintenanceWithInvalidTargetType:input_type -> testproto.InvalidTargetType + 4, // 30: testproto.InvalidService.MaintenanceWithInvalidNestedRequest:input_type -> testproto.InvalidNestedRequest + 6, // 31: testproto.InvalidService.MaintenanceWithStorageAndRepository:input_type -> testproto.RequestWithStorageAndRepo + 7, // 32: testproto.InvalidService.MaintenanceWithNestedStorageAndRepository:input_type -> testproto.RequestWithNestedStorageAndRepo + 1, // 33: testproto.InvalidService.MaintenanceWithStorageScope:input_type -> testproto.InvalidMethodRequestWithRepo + 3, // 34: testproto.InterceptedWithOperationType.InvalidMethod:output_type -> testproto.InvalidMethodResponse + 3, // 35: testproto.InvalidService.InvalidMethod0:output_type -> testproto.InvalidMethodResponse + 3, // 36: testproto.InvalidService.InvalidMethod1:output_type -> testproto.InvalidMethodResponse + 3, // 37: testproto.InvalidService.InvalidMethod2:output_type -> testproto.InvalidMethodResponse + 3, // 38: testproto.InvalidService.InvalidMethod4:output_type -> testproto.InvalidMethodResponse + 3, // 39: testproto.InvalidService.InvalidMethod5:output_type -> testproto.InvalidMethodResponse + 3, // 40: testproto.InvalidService.InvalidMethod6:output_type -> testproto.InvalidMethodResponse + 3, // 41: testproto.InvalidService.InvalidMethod7:output_type -> testproto.InvalidMethodResponse + 3, // 42: testproto.InvalidService.InvalidMethod8:output_type -> testproto.InvalidMethodResponse + 3, // 43: testproto.InvalidService.InvalidMethod9:output_type -> testproto.InvalidMethodResponse + 3, // 44: testproto.InvalidService.InvalidMethod10:output_type -> testproto.InvalidMethodResponse + 3, // 45: testproto.InvalidService.InvalidMethod11:output_type -> testproto.InvalidMethodResponse + 3, // 46: testproto.InvalidService.InvalidMethod13:output_type -> testproto.InvalidMethodResponse + 3, // 47: testproto.InvalidService.InvalidMethod14:output_type -> testproto.InvalidMethodResponse + 3, // 48: testproto.InvalidService.InvalidMethod15:output_type -> testproto.InvalidMethodResponse + 3, // 49: testproto.InvalidService.MaintenanceWithMissingRepository:output_type -> testproto.InvalidMethodResponse + 3, // 50: testproto.InvalidService.MaintenanceWithUnflaggedRepository:output_type -> testproto.InvalidMethodResponse + 3, // 51: testproto.InvalidService.MaintenanceWithWrongNestedRepositoryType:output_type -> testproto.InvalidMethodResponse + 3, // 52: testproto.InvalidService.MaintenanceWithInvalidTargetType:output_type -> testproto.InvalidMethodResponse + 3, // 53: testproto.InvalidService.MaintenanceWithInvalidNestedRequest:output_type -> testproto.InvalidMethodResponse + 3, // 54: testproto.InvalidService.MaintenanceWithStorageAndRepository:output_type -> testproto.InvalidMethodResponse + 3, // 55: testproto.InvalidService.MaintenanceWithNestedStorageAndRepository:output_type -> testproto.InvalidMethodResponse + 3, // 56: testproto.InvalidService.MaintenanceWithStorageScope:output_type -> testproto.InvalidMethodResponse + 34, // [34:57] is the sub-list for method output_type + 11, // [11:34] is the sub-list for method input_type + 11, // [11:11] is the sub-list for extension type_name + 11, // [11:11] is the sub-list for extension extendee + 0, // [0:11] is the sub-list for field type_name +} + +func init() { file_testproto_invalid_proto_init() } +func file_testproto_invalid_proto_init() { + if File_testproto_invalid_proto != nil { + return + } + if !protoimpl.UnsafeEnabled { + file_testproto_invalid_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*InvalidMethodRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_testproto_invalid_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*InvalidMethodRequestWithRepo); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_testproto_invalid_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*InvalidTargetType); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_testproto_invalid_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*InvalidMethodResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_testproto_invalid_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*InvalidNestedRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_testproto_invalid_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*RequestWithStorage); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_testproto_invalid_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*RequestWithStorageAndRepo); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_testproto_invalid_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*RequestWithNestedStorageAndRepo); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_testproto_invalid_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*RequestWithMultipleNestedStorage); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_testproto_invalid_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*RequestWithInnerNestedStorage); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_testproto_invalid_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*RequestWithWrongTypeRepository); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_testproto_invalid_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*RequestWithNestedRepoNotFlagged); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_testproto_invalid_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*RequestWithInnerNestedStorage_Header); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_testproto_invalid_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*RequestWithWrongTypeRepository_Header); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_testproto_invalid_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*RequestWithNestedRepoNotFlagged_Header); 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{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_testproto_invalid_proto_rawDesc, + NumEnums: 0, + NumMessages: 15, + NumExtensions: 0, + NumServices: 2, + }, + GoTypes: file_testproto_invalid_proto_goTypes, + DependencyIndexes: file_testproto_invalid_proto_depIdxs, + MessageInfos: file_testproto_invalid_proto_msgTypes, + }.Build() + File_testproto_invalid_proto = out.File + file_testproto_invalid_proto_rawDesc = nil + file_testproto_invalid_proto_goTypes = nil + file_testproto_invalid_proto_depIdxs = nil +} diff --git a/tools/protoc-gen-gitaly-lint/testdata/invalid_grpc.pb.go b/proto/go/gitalypb/testproto/invalid_grpc.pb.go index 8adfdf849..a1b777d8f 100644 --- a/tools/protoc-gen-gitaly-lint/testdata/invalid_grpc.pb.go +++ b/proto/go/gitalypb/testproto/invalid_grpc.pb.go @@ -2,9 +2,9 @@ // versions: // - protoc-gen-go-grpc v1.2.0 // - protoc v3.21.7 -// source: protoc-gen-gitaly-lint/testdata/invalid.proto +// source: testproto/invalid.proto -package testdata +package testproto import ( context "context" @@ -36,7 +36,7 @@ func NewInterceptedWithOperationTypeClient(cc grpc.ClientConnInterface) Intercep func (c *interceptedWithOperationTypeClient) InvalidMethod(ctx context.Context, in *InvalidMethodRequest, opts ...grpc.CallOption) (*InvalidMethodResponse, error) { out := new(InvalidMethodResponse) - err := c.cc.Invoke(ctx, "/test.InterceptedWithOperationType/InvalidMethod", in, out, opts...) + err := c.cc.Invoke(ctx, "/testproto.InterceptedWithOperationType/InvalidMethod", in, out, opts...) if err != nil { return nil, err } @@ -83,7 +83,7 @@ func _InterceptedWithOperationType_InvalidMethod_Handler(srv interface{}, ctx co } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/test.InterceptedWithOperationType/InvalidMethod", + FullMethod: "/testproto.InterceptedWithOperationType/InvalidMethod", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(InterceptedWithOperationTypeServer).InvalidMethod(ctx, req.(*InvalidMethodRequest)) @@ -95,7 +95,7 @@ func _InterceptedWithOperationType_InvalidMethod_Handler(srv interface{}, ctx co // It's only intended for direct use with grpc.RegisterService, // and not to be introspected or modified (even as a copy) var InterceptedWithOperationType_ServiceDesc = grpc.ServiceDesc{ - ServiceName: "test.InterceptedWithOperationType", + ServiceName: "testproto.InterceptedWithOperationType", HandlerType: (*InterceptedWithOperationTypeServer)(nil), Methods: []grpc.MethodDesc{ { @@ -104,7 +104,7 @@ var InterceptedWithOperationType_ServiceDesc = grpc.ServiceDesc{ }, }, Streams: []grpc.StreamDesc{}, - Metadata: "protoc-gen-gitaly-lint/testdata/invalid.proto", + Metadata: "testproto/invalid.proto", } // InvalidServiceClient is the client API for InvalidService service. @@ -159,7 +159,7 @@ func NewInvalidServiceClient(cc grpc.ClientConnInterface) InvalidServiceClient { func (c *invalidServiceClient) InvalidMethod0(ctx context.Context, in *InvalidMethodRequest, opts ...grpc.CallOption) (*InvalidMethodResponse, error) { out := new(InvalidMethodResponse) - err := c.cc.Invoke(ctx, "/test.InvalidService/InvalidMethod0", in, out, opts...) + err := c.cc.Invoke(ctx, "/testproto.InvalidService/InvalidMethod0", in, out, opts...) if err != nil { return nil, err } @@ -168,7 +168,7 @@ func (c *invalidServiceClient) InvalidMethod0(ctx context.Context, in *InvalidMe func (c *invalidServiceClient) InvalidMethod1(ctx context.Context, in *InvalidMethodRequest, opts ...grpc.CallOption) (*InvalidMethodResponse, error) { out := new(InvalidMethodResponse) - err := c.cc.Invoke(ctx, "/test.InvalidService/InvalidMethod1", in, out, opts...) + err := c.cc.Invoke(ctx, "/testproto.InvalidService/InvalidMethod1", in, out, opts...) if err != nil { return nil, err } @@ -177,7 +177,7 @@ func (c *invalidServiceClient) InvalidMethod1(ctx context.Context, in *InvalidMe func (c *invalidServiceClient) InvalidMethod2(ctx context.Context, in *InvalidMethodRequest, opts ...grpc.CallOption) (*InvalidMethodResponse, error) { out := new(InvalidMethodResponse) - err := c.cc.Invoke(ctx, "/test.InvalidService/InvalidMethod2", in, out, opts...) + err := c.cc.Invoke(ctx, "/testproto.InvalidService/InvalidMethod2", in, out, opts...) if err != nil { return nil, err } @@ -186,7 +186,7 @@ func (c *invalidServiceClient) InvalidMethod2(ctx context.Context, in *InvalidMe func (c *invalidServiceClient) InvalidMethod4(ctx context.Context, in *InvalidMethodRequest, opts ...grpc.CallOption) (*InvalidMethodResponse, error) { out := new(InvalidMethodResponse) - err := c.cc.Invoke(ctx, "/test.InvalidService/InvalidMethod4", in, out, opts...) + err := c.cc.Invoke(ctx, "/testproto.InvalidService/InvalidMethod4", in, out, opts...) if err != nil { return nil, err } @@ -195,7 +195,7 @@ func (c *invalidServiceClient) InvalidMethod4(ctx context.Context, in *InvalidMe func (c *invalidServiceClient) InvalidMethod5(ctx context.Context, in *RequestWithWrongTypeRepository, opts ...grpc.CallOption) (*InvalidMethodResponse, error) { out := new(InvalidMethodResponse) - err := c.cc.Invoke(ctx, "/test.InvalidService/InvalidMethod5", in, out, opts...) + err := c.cc.Invoke(ctx, "/testproto.InvalidService/InvalidMethod5", in, out, opts...) if err != nil { return nil, err } @@ -204,7 +204,7 @@ func (c *invalidServiceClient) InvalidMethod5(ctx context.Context, in *RequestWi func (c *invalidServiceClient) InvalidMethod6(ctx context.Context, in *RequestWithNestedRepoNotFlagged, opts ...grpc.CallOption) (*InvalidMethodResponse, error) { out := new(InvalidMethodResponse) - err := c.cc.Invoke(ctx, "/test.InvalidService/InvalidMethod6", in, out, opts...) + err := c.cc.Invoke(ctx, "/testproto.InvalidService/InvalidMethod6", in, out, opts...) if err != nil { return nil, err } @@ -213,7 +213,7 @@ func (c *invalidServiceClient) InvalidMethod6(ctx context.Context, in *RequestWi func (c *invalidServiceClient) InvalidMethod7(ctx context.Context, in *InvalidTargetType, opts ...grpc.CallOption) (*InvalidMethodResponse, error) { out := new(InvalidMethodResponse) - err := c.cc.Invoke(ctx, "/test.InvalidService/InvalidMethod7", in, out, opts...) + err := c.cc.Invoke(ctx, "/testproto.InvalidService/InvalidMethod7", in, out, opts...) if err != nil { return nil, err } @@ -222,7 +222,7 @@ func (c *invalidServiceClient) InvalidMethod7(ctx context.Context, in *InvalidTa func (c *invalidServiceClient) InvalidMethod8(ctx context.Context, in *InvalidNestedRequest, opts ...grpc.CallOption) (*InvalidMethodResponse, error) { out := new(InvalidMethodResponse) - err := c.cc.Invoke(ctx, "/test.InvalidService/InvalidMethod8", in, out, opts...) + err := c.cc.Invoke(ctx, "/testproto.InvalidService/InvalidMethod8", in, out, opts...) if err != nil { return nil, err } @@ -231,7 +231,7 @@ func (c *invalidServiceClient) InvalidMethod8(ctx context.Context, in *InvalidNe func (c *invalidServiceClient) InvalidMethod9(ctx context.Context, in *InvalidMethodRequestWithRepo, opts ...grpc.CallOption) (*InvalidMethodResponse, error) { out := new(InvalidMethodResponse) - err := c.cc.Invoke(ctx, "/test.InvalidService/InvalidMethod9", in, out, opts...) + err := c.cc.Invoke(ctx, "/testproto.InvalidService/InvalidMethod9", in, out, opts...) if err != nil { return nil, err } @@ -240,7 +240,7 @@ func (c *invalidServiceClient) InvalidMethod9(ctx context.Context, in *InvalidMe func (c *invalidServiceClient) InvalidMethod10(ctx context.Context, in *RequestWithStorageAndRepo, opts ...grpc.CallOption) (*InvalidMethodResponse, error) { out := new(InvalidMethodResponse) - err := c.cc.Invoke(ctx, "/test.InvalidService/InvalidMethod10", in, out, opts...) + err := c.cc.Invoke(ctx, "/testproto.InvalidService/InvalidMethod10", in, out, opts...) if err != nil { return nil, err } @@ -249,7 +249,7 @@ func (c *invalidServiceClient) InvalidMethod10(ctx context.Context, in *RequestW func (c *invalidServiceClient) InvalidMethod11(ctx context.Context, in *RequestWithNestedStorageAndRepo, opts ...grpc.CallOption) (*InvalidMethodResponse, error) { out := new(InvalidMethodResponse) - err := c.cc.Invoke(ctx, "/test.InvalidService/InvalidMethod11", in, out, opts...) + err := c.cc.Invoke(ctx, "/testproto.InvalidService/InvalidMethod11", in, out, opts...) if err != nil { return nil, err } @@ -258,7 +258,7 @@ func (c *invalidServiceClient) InvalidMethod11(ctx context.Context, in *RequestW func (c *invalidServiceClient) InvalidMethod13(ctx context.Context, in *InvalidTargetType, opts ...grpc.CallOption) (*InvalidMethodResponse, error) { out := new(InvalidMethodResponse) - err := c.cc.Invoke(ctx, "/test.InvalidService/InvalidMethod13", in, out, opts...) + err := c.cc.Invoke(ctx, "/testproto.InvalidService/InvalidMethod13", in, out, opts...) if err != nil { return nil, err } @@ -267,7 +267,7 @@ func (c *invalidServiceClient) InvalidMethod13(ctx context.Context, in *InvalidT func (c *invalidServiceClient) InvalidMethod14(ctx context.Context, in *RequestWithMultipleNestedStorage, opts ...grpc.CallOption) (*InvalidMethodResponse, error) { out := new(InvalidMethodResponse) - err := c.cc.Invoke(ctx, "/test.InvalidService/InvalidMethod14", in, out, opts...) + err := c.cc.Invoke(ctx, "/testproto.InvalidService/InvalidMethod14", in, out, opts...) if err != nil { return nil, err } @@ -276,7 +276,7 @@ func (c *invalidServiceClient) InvalidMethod14(ctx context.Context, in *RequestW func (c *invalidServiceClient) InvalidMethod15(ctx context.Context, in *RequestWithStorageAndRepo, opts ...grpc.CallOption) (*InvalidMethodResponse, error) { out := new(InvalidMethodResponse) - err := c.cc.Invoke(ctx, "/test.InvalidService/InvalidMethod15", in, out, opts...) + err := c.cc.Invoke(ctx, "/testproto.InvalidService/InvalidMethod15", in, out, opts...) if err != nil { return nil, err } @@ -285,7 +285,7 @@ func (c *invalidServiceClient) InvalidMethod15(ctx context.Context, in *RequestW func (c *invalidServiceClient) MaintenanceWithMissingRepository(ctx context.Context, in *InvalidMethodRequest, opts ...grpc.CallOption) (*InvalidMethodResponse, error) { out := new(InvalidMethodResponse) - err := c.cc.Invoke(ctx, "/test.InvalidService/MaintenanceWithMissingRepository", in, out, opts...) + err := c.cc.Invoke(ctx, "/testproto.InvalidService/MaintenanceWithMissingRepository", in, out, opts...) if err != nil { return nil, err } @@ -294,7 +294,7 @@ func (c *invalidServiceClient) MaintenanceWithMissingRepository(ctx context.Cont func (c *invalidServiceClient) MaintenanceWithUnflaggedRepository(ctx context.Context, in *RequestWithNestedRepoNotFlagged, opts ...grpc.CallOption) (*InvalidMethodResponse, error) { out := new(InvalidMethodResponse) - err := c.cc.Invoke(ctx, "/test.InvalidService/MaintenanceWithUnflaggedRepository", in, out, opts...) + err := c.cc.Invoke(ctx, "/testproto.InvalidService/MaintenanceWithUnflaggedRepository", in, out, opts...) if err != nil { return nil, err } @@ -303,7 +303,7 @@ func (c *invalidServiceClient) MaintenanceWithUnflaggedRepository(ctx context.Co func (c *invalidServiceClient) MaintenanceWithWrongNestedRepositoryType(ctx context.Context, in *RequestWithWrongTypeRepository, opts ...grpc.CallOption) (*InvalidMethodResponse, error) { out := new(InvalidMethodResponse) - err := c.cc.Invoke(ctx, "/test.InvalidService/MaintenanceWithWrongNestedRepositoryType", in, out, opts...) + err := c.cc.Invoke(ctx, "/testproto.InvalidService/MaintenanceWithWrongNestedRepositoryType", in, out, opts...) if err != nil { return nil, err } @@ -312,7 +312,7 @@ func (c *invalidServiceClient) MaintenanceWithWrongNestedRepositoryType(ctx cont func (c *invalidServiceClient) MaintenanceWithInvalidTargetType(ctx context.Context, in *InvalidTargetType, opts ...grpc.CallOption) (*InvalidMethodResponse, error) { out := new(InvalidMethodResponse) - err := c.cc.Invoke(ctx, "/test.InvalidService/MaintenanceWithInvalidTargetType", in, out, opts...) + err := c.cc.Invoke(ctx, "/testproto.InvalidService/MaintenanceWithInvalidTargetType", in, out, opts...) if err != nil { return nil, err } @@ -321,7 +321,7 @@ func (c *invalidServiceClient) MaintenanceWithInvalidTargetType(ctx context.Cont func (c *invalidServiceClient) MaintenanceWithInvalidNestedRequest(ctx context.Context, in *InvalidNestedRequest, opts ...grpc.CallOption) (*InvalidMethodResponse, error) { out := new(InvalidMethodResponse) - err := c.cc.Invoke(ctx, "/test.InvalidService/MaintenanceWithInvalidNestedRequest", in, out, opts...) + err := c.cc.Invoke(ctx, "/testproto.InvalidService/MaintenanceWithInvalidNestedRequest", in, out, opts...) if err != nil { return nil, err } @@ -330,7 +330,7 @@ func (c *invalidServiceClient) MaintenanceWithInvalidNestedRequest(ctx context.C func (c *invalidServiceClient) MaintenanceWithStorageAndRepository(ctx context.Context, in *RequestWithStorageAndRepo, opts ...grpc.CallOption) (*InvalidMethodResponse, error) { out := new(InvalidMethodResponse) - err := c.cc.Invoke(ctx, "/test.InvalidService/MaintenanceWithStorageAndRepository", in, out, opts...) + err := c.cc.Invoke(ctx, "/testproto.InvalidService/MaintenanceWithStorageAndRepository", in, out, opts...) if err != nil { return nil, err } @@ -339,7 +339,7 @@ func (c *invalidServiceClient) MaintenanceWithStorageAndRepository(ctx context.C func (c *invalidServiceClient) MaintenanceWithNestedStorageAndRepository(ctx context.Context, in *RequestWithNestedStorageAndRepo, opts ...grpc.CallOption) (*InvalidMethodResponse, error) { out := new(InvalidMethodResponse) - err := c.cc.Invoke(ctx, "/test.InvalidService/MaintenanceWithNestedStorageAndRepository", in, out, opts...) + err := c.cc.Invoke(ctx, "/testproto.InvalidService/MaintenanceWithNestedStorageAndRepository", in, out, opts...) if err != nil { return nil, err } @@ -348,7 +348,7 @@ func (c *invalidServiceClient) MaintenanceWithNestedStorageAndRepository(ctx con func (c *invalidServiceClient) MaintenanceWithStorageScope(ctx context.Context, in *InvalidMethodRequestWithRepo, opts ...grpc.CallOption) (*InvalidMethodResponse, error) { out := new(InvalidMethodResponse) - err := c.cc.Invoke(ctx, "/test.InvalidService/MaintenanceWithStorageScope", in, out, opts...) + err := c.cc.Invoke(ctx, "/testproto.InvalidService/MaintenanceWithStorageScope", in, out, opts...) if err != nil { return nil, err } @@ -491,7 +491,7 @@ func _InvalidService_InvalidMethod0_Handler(srv interface{}, ctx context.Context } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/test.InvalidService/InvalidMethod0", + FullMethod: "/testproto.InvalidService/InvalidMethod0", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(InvalidServiceServer).InvalidMethod0(ctx, req.(*InvalidMethodRequest)) @@ -509,7 +509,7 @@ func _InvalidService_InvalidMethod1_Handler(srv interface{}, ctx context.Context } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/test.InvalidService/InvalidMethod1", + FullMethod: "/testproto.InvalidService/InvalidMethod1", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(InvalidServiceServer).InvalidMethod1(ctx, req.(*InvalidMethodRequest)) @@ -527,7 +527,7 @@ func _InvalidService_InvalidMethod2_Handler(srv interface{}, ctx context.Context } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/test.InvalidService/InvalidMethod2", + FullMethod: "/testproto.InvalidService/InvalidMethod2", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(InvalidServiceServer).InvalidMethod2(ctx, req.(*InvalidMethodRequest)) @@ -545,7 +545,7 @@ func _InvalidService_InvalidMethod4_Handler(srv interface{}, ctx context.Context } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/test.InvalidService/InvalidMethod4", + FullMethod: "/testproto.InvalidService/InvalidMethod4", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(InvalidServiceServer).InvalidMethod4(ctx, req.(*InvalidMethodRequest)) @@ -563,7 +563,7 @@ func _InvalidService_InvalidMethod5_Handler(srv interface{}, ctx context.Context } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/test.InvalidService/InvalidMethod5", + FullMethod: "/testproto.InvalidService/InvalidMethod5", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(InvalidServiceServer).InvalidMethod5(ctx, req.(*RequestWithWrongTypeRepository)) @@ -581,7 +581,7 @@ func _InvalidService_InvalidMethod6_Handler(srv interface{}, ctx context.Context } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/test.InvalidService/InvalidMethod6", + FullMethod: "/testproto.InvalidService/InvalidMethod6", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(InvalidServiceServer).InvalidMethod6(ctx, req.(*RequestWithNestedRepoNotFlagged)) @@ -599,7 +599,7 @@ func _InvalidService_InvalidMethod7_Handler(srv interface{}, ctx context.Context } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/test.InvalidService/InvalidMethod7", + FullMethod: "/testproto.InvalidService/InvalidMethod7", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(InvalidServiceServer).InvalidMethod7(ctx, req.(*InvalidTargetType)) @@ -617,7 +617,7 @@ func _InvalidService_InvalidMethod8_Handler(srv interface{}, ctx context.Context } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/test.InvalidService/InvalidMethod8", + FullMethod: "/testproto.InvalidService/InvalidMethod8", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(InvalidServiceServer).InvalidMethod8(ctx, req.(*InvalidNestedRequest)) @@ -635,7 +635,7 @@ func _InvalidService_InvalidMethod9_Handler(srv interface{}, ctx context.Context } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/test.InvalidService/InvalidMethod9", + FullMethod: "/testproto.InvalidService/InvalidMethod9", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(InvalidServiceServer).InvalidMethod9(ctx, req.(*InvalidMethodRequestWithRepo)) @@ -653,7 +653,7 @@ func _InvalidService_InvalidMethod10_Handler(srv interface{}, ctx context.Contex } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/test.InvalidService/InvalidMethod10", + FullMethod: "/testproto.InvalidService/InvalidMethod10", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(InvalidServiceServer).InvalidMethod10(ctx, req.(*RequestWithStorageAndRepo)) @@ -671,7 +671,7 @@ func _InvalidService_InvalidMethod11_Handler(srv interface{}, ctx context.Contex } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/test.InvalidService/InvalidMethod11", + FullMethod: "/testproto.InvalidService/InvalidMethod11", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(InvalidServiceServer).InvalidMethod11(ctx, req.(*RequestWithNestedStorageAndRepo)) @@ -689,7 +689,7 @@ func _InvalidService_InvalidMethod13_Handler(srv interface{}, ctx context.Contex } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/test.InvalidService/InvalidMethod13", + FullMethod: "/testproto.InvalidService/InvalidMethod13", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(InvalidServiceServer).InvalidMethod13(ctx, req.(*InvalidTargetType)) @@ -707,7 +707,7 @@ func _InvalidService_InvalidMethod14_Handler(srv interface{}, ctx context.Contex } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/test.InvalidService/InvalidMethod14", + FullMethod: "/testproto.InvalidService/InvalidMethod14", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(InvalidServiceServer).InvalidMethod14(ctx, req.(*RequestWithMultipleNestedStorage)) @@ -725,7 +725,7 @@ func _InvalidService_InvalidMethod15_Handler(srv interface{}, ctx context.Contex } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/test.InvalidService/InvalidMethod15", + FullMethod: "/testproto.InvalidService/InvalidMethod15", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(InvalidServiceServer).InvalidMethod15(ctx, req.(*RequestWithStorageAndRepo)) @@ -743,7 +743,7 @@ func _InvalidService_MaintenanceWithMissingRepository_Handler(srv interface{}, c } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/test.InvalidService/MaintenanceWithMissingRepository", + FullMethod: "/testproto.InvalidService/MaintenanceWithMissingRepository", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(InvalidServiceServer).MaintenanceWithMissingRepository(ctx, req.(*InvalidMethodRequest)) @@ -761,7 +761,7 @@ func _InvalidService_MaintenanceWithUnflaggedRepository_Handler(srv interface{}, } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/test.InvalidService/MaintenanceWithUnflaggedRepository", + FullMethod: "/testproto.InvalidService/MaintenanceWithUnflaggedRepository", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(InvalidServiceServer).MaintenanceWithUnflaggedRepository(ctx, req.(*RequestWithNestedRepoNotFlagged)) @@ -779,7 +779,7 @@ func _InvalidService_MaintenanceWithWrongNestedRepositoryType_Handler(srv interf } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/test.InvalidService/MaintenanceWithWrongNestedRepositoryType", + FullMethod: "/testproto.InvalidService/MaintenanceWithWrongNestedRepositoryType", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(InvalidServiceServer).MaintenanceWithWrongNestedRepositoryType(ctx, req.(*RequestWithWrongTypeRepository)) @@ -797,7 +797,7 @@ func _InvalidService_MaintenanceWithInvalidTargetType_Handler(srv interface{}, c } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/test.InvalidService/MaintenanceWithInvalidTargetType", + FullMethod: "/testproto.InvalidService/MaintenanceWithInvalidTargetType", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(InvalidServiceServer).MaintenanceWithInvalidTargetType(ctx, req.(*InvalidTargetType)) @@ -815,7 +815,7 @@ func _InvalidService_MaintenanceWithInvalidNestedRequest_Handler(srv interface{} } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/test.InvalidService/MaintenanceWithInvalidNestedRequest", + FullMethod: "/testproto.InvalidService/MaintenanceWithInvalidNestedRequest", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(InvalidServiceServer).MaintenanceWithInvalidNestedRequest(ctx, req.(*InvalidNestedRequest)) @@ -833,7 +833,7 @@ func _InvalidService_MaintenanceWithStorageAndRepository_Handler(srv interface{} } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/test.InvalidService/MaintenanceWithStorageAndRepository", + FullMethod: "/testproto.InvalidService/MaintenanceWithStorageAndRepository", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(InvalidServiceServer).MaintenanceWithStorageAndRepository(ctx, req.(*RequestWithStorageAndRepo)) @@ -851,7 +851,7 @@ func _InvalidService_MaintenanceWithNestedStorageAndRepository_Handler(srv inter } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/test.InvalidService/MaintenanceWithNestedStorageAndRepository", + FullMethod: "/testproto.InvalidService/MaintenanceWithNestedStorageAndRepository", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(InvalidServiceServer).MaintenanceWithNestedStorageAndRepository(ctx, req.(*RequestWithNestedStorageAndRepo)) @@ -869,7 +869,7 @@ func _InvalidService_MaintenanceWithStorageScope_Handler(srv interface{}, ctx co } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/test.InvalidService/MaintenanceWithStorageScope", + FullMethod: "/testproto.InvalidService/MaintenanceWithStorageScope", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(InvalidServiceServer).MaintenanceWithStorageScope(ctx, req.(*InvalidMethodRequestWithRepo)) @@ -881,7 +881,7 @@ func _InvalidService_MaintenanceWithStorageScope_Handler(srv interface{}, ctx co // It's only intended for direct use with grpc.RegisterService, // and not to be introspected or modified (even as a copy) var InvalidService_ServiceDesc = grpc.ServiceDesc{ - ServiceName: "test.InvalidService", + ServiceName: "testproto.InvalidService", HandlerType: (*InvalidServiceServer)(nil), Methods: []grpc.MethodDesc{ { @@ -974,5 +974,5 @@ var InvalidService_ServiceDesc = grpc.ServiceDesc{ }, }, Streams: []grpc.StreamDesc{}, - Metadata: "protoc-gen-gitaly-lint/testdata/invalid.proto", + Metadata: "testproto/invalid.proto", } diff --git a/proto/go/gitalypb/testproto/valid.pb.go b/proto/go/gitalypb/testproto/valid.pb.go new file mode 100644 index 000000000..403c08d43 --- /dev/null +++ b/proto/go/gitalypb/testproto/valid.pb.go @@ -0,0 +1,898 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.28.1 +// protoc v3.21.7 +// source: testproto/valid.proto + +package testproto + +import ( + gitalypb "gitlab.com/gitlab-org/gitaly/v15/proto/go/gitalypb" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + reflect "reflect" + sync "sync" +) + +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 ValidRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Destination *gitalypb.Repository `protobuf:"bytes,1,opt,name=destination,proto3" json:"destination,omitempty"` +} + +func (x *ValidRequest) Reset() { + *x = ValidRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_testproto_valid_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ValidRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ValidRequest) ProtoMessage() {} + +func (x *ValidRequest) ProtoReflect() protoreflect.Message { + mi := &file_testproto_valid_proto_msgTypes[0] + 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 ValidRequest.ProtoReflect.Descriptor instead. +func (*ValidRequest) Descriptor() ([]byte, []int) { + return file_testproto_valid_proto_rawDescGZIP(), []int{0} +} + +func (x *ValidRequest) GetDestination() *gitalypb.Repository { + if x != nil { + return x.Destination + } + return nil +} + +type ValidRequestWithoutRepo struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields +} + +func (x *ValidRequestWithoutRepo) Reset() { + *x = ValidRequestWithoutRepo{} + if protoimpl.UnsafeEnabled { + mi := &file_testproto_valid_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ValidRequestWithoutRepo) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ValidRequestWithoutRepo) ProtoMessage() {} + +func (x *ValidRequestWithoutRepo) ProtoReflect() protoreflect.Message { + mi := &file_testproto_valid_proto_msgTypes[1] + 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 ValidRequestWithoutRepo.ProtoReflect.Descriptor instead. +func (*ValidRequestWithoutRepo) Descriptor() ([]byte, []int) { + return file_testproto_valid_proto_rawDescGZIP(), []int{1} +} + +type ValidStorageRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + StorageName string `protobuf:"bytes,1,opt,name=storage_name,json=storageName,proto3" json:"storage_name,omitempty"` +} + +func (x *ValidStorageRequest) Reset() { + *x = ValidStorageRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_testproto_valid_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ValidStorageRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ValidStorageRequest) ProtoMessage() {} + +func (x *ValidStorageRequest) ProtoReflect() protoreflect.Message { + mi := &file_testproto_valid_proto_msgTypes[2] + 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 ValidStorageRequest.ProtoReflect.Descriptor instead. +func (*ValidStorageRequest) Descriptor() ([]byte, []int) { + return file_testproto_valid_proto_rawDescGZIP(), []int{2} +} + +func (x *ValidStorageRequest) GetStorageName() string { + if x != nil { + return x.StorageName + } + return "" +} + +type ValidResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields +} + +func (x *ValidResponse) Reset() { + *x = ValidResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_testproto_valid_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ValidResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ValidResponse) ProtoMessage() {} + +func (x *ValidResponse) ProtoReflect() protoreflect.Message { + mi := &file_testproto_valid_proto_msgTypes[3] + 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 ValidResponse.ProtoReflect.Descriptor instead. +func (*ValidResponse) Descriptor() ([]byte, []int) { + return file_testproto_valid_proto_rawDescGZIP(), []int{3} +} + +type ValidNestedRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + InnerMessage *ValidRequest `protobuf:"bytes,1,opt,name=inner_message,json=innerMessage,proto3" json:"inner_message,omitempty"` +} + +func (x *ValidNestedRequest) Reset() { + *x = ValidNestedRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_testproto_valid_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ValidNestedRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ValidNestedRequest) ProtoMessage() {} + +func (x *ValidNestedRequest) ProtoReflect() protoreflect.Message { + mi := &file_testproto_valid_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 ValidNestedRequest.ProtoReflect.Descriptor instead. +func (*ValidNestedRequest) Descriptor() ([]byte, []int) { + return file_testproto_valid_proto_rawDescGZIP(), []int{4} +} + +func (x *ValidNestedRequest) GetInnerMessage() *ValidRequest { + if x != nil { + return x.InnerMessage + } + return nil +} + +type ValidStorageNestedRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + InnerMessage *ValidStorageRequest `protobuf:"bytes,1,opt,name=inner_message,json=innerMessage,proto3" json:"inner_message,omitempty"` +} + +func (x *ValidStorageNestedRequest) Reset() { + *x = ValidStorageNestedRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_testproto_valid_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ValidStorageNestedRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ValidStorageNestedRequest) ProtoMessage() {} + +func (x *ValidStorageNestedRequest) ProtoReflect() protoreflect.Message { + mi := &file_testproto_valid_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 ValidStorageNestedRequest.ProtoReflect.Descriptor instead. +func (*ValidStorageNestedRequest) Descriptor() ([]byte, []int) { + return file_testproto_valid_proto_rawDescGZIP(), []int{5} +} + +func (x *ValidStorageNestedRequest) GetInnerMessage() *ValidStorageRequest { + if x != nil { + return x.InnerMessage + } + return nil +} + +type ValidNestedSharedRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + NestedTargetRepo *gitalypb.ObjectPool `protobuf:"bytes,1,opt,name=nested_target_repo,json=nestedTargetRepo,proto3" json:"nested_target_repo,omitempty"` +} + +func (x *ValidNestedSharedRequest) Reset() { + *x = ValidNestedSharedRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_testproto_valid_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ValidNestedSharedRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ValidNestedSharedRequest) ProtoMessage() {} + +func (x *ValidNestedSharedRequest) ProtoReflect() protoreflect.Message { + mi := &file_testproto_valid_proto_msgTypes[6] + 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 ValidNestedSharedRequest.ProtoReflect.Descriptor instead. +func (*ValidNestedSharedRequest) Descriptor() ([]byte, []int) { + return file_testproto_valid_proto_rawDescGZIP(), []int{6} +} + +func (x *ValidNestedSharedRequest) GetNestedTargetRepo() *gitalypb.ObjectPool { + if x != nil { + return x.NestedTargetRepo + } + return nil +} + +type ValidInnerNestedRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Header *ValidInnerNestedRequest_Header `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` +} + +func (x *ValidInnerNestedRequest) Reset() { + *x = ValidInnerNestedRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_testproto_valid_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ValidInnerNestedRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ValidInnerNestedRequest) ProtoMessage() {} + +func (x *ValidInnerNestedRequest) ProtoReflect() protoreflect.Message { + mi := &file_testproto_valid_proto_msgTypes[7] + 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 ValidInnerNestedRequest.ProtoReflect.Descriptor instead. +func (*ValidInnerNestedRequest) Descriptor() ([]byte, []int) { + return file_testproto_valid_proto_rawDescGZIP(), []int{7} +} + +func (x *ValidInnerNestedRequest) GetHeader() *ValidInnerNestedRequest_Header { + if x != nil { + return x.Header + } + return nil +} + +type ValidStorageInnerNestedRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Header *ValidStorageInnerNestedRequest_Header `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` +} + +func (x *ValidStorageInnerNestedRequest) Reset() { + *x = ValidStorageInnerNestedRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_testproto_valid_proto_msgTypes[8] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ValidStorageInnerNestedRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ValidStorageInnerNestedRequest) ProtoMessage() {} + +func (x *ValidStorageInnerNestedRequest) ProtoReflect() protoreflect.Message { + mi := &file_testproto_valid_proto_msgTypes[8] + 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 ValidStorageInnerNestedRequest.ProtoReflect.Descriptor instead. +func (*ValidStorageInnerNestedRequest) Descriptor() ([]byte, []int) { + return file_testproto_valid_proto_rawDescGZIP(), []int{8} +} + +func (x *ValidStorageInnerNestedRequest) GetHeader() *ValidStorageInnerNestedRequest_Header { + if x != nil { + return x.Header + } + return nil +} + +type ValidInnerNestedRequest_Header struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Destination *gitalypb.Repository `protobuf:"bytes,1,opt,name=destination,proto3" json:"destination,omitempty"` +} + +func (x *ValidInnerNestedRequest_Header) Reset() { + *x = ValidInnerNestedRequest_Header{} + if protoimpl.UnsafeEnabled { + mi := &file_testproto_valid_proto_msgTypes[9] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ValidInnerNestedRequest_Header) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ValidInnerNestedRequest_Header) ProtoMessage() {} + +func (x *ValidInnerNestedRequest_Header) ProtoReflect() protoreflect.Message { + mi := &file_testproto_valid_proto_msgTypes[9] + 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 ValidInnerNestedRequest_Header.ProtoReflect.Descriptor instead. +func (*ValidInnerNestedRequest_Header) Descriptor() ([]byte, []int) { + return file_testproto_valid_proto_rawDescGZIP(), []int{7, 0} +} + +func (x *ValidInnerNestedRequest_Header) GetDestination() *gitalypb.Repository { + if x != nil { + return x.Destination + } + return nil +} + +type ValidStorageInnerNestedRequest_Header struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + StorageName string `protobuf:"bytes,1,opt,name=storage_name,json=storageName,proto3" json:"storage_name,omitempty"` +} + +func (x *ValidStorageInnerNestedRequest_Header) Reset() { + *x = ValidStorageInnerNestedRequest_Header{} + if protoimpl.UnsafeEnabled { + mi := &file_testproto_valid_proto_msgTypes[10] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ValidStorageInnerNestedRequest_Header) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ValidStorageInnerNestedRequest_Header) ProtoMessage() {} + +func (x *ValidStorageInnerNestedRequest_Header) ProtoReflect() protoreflect.Message { + mi := &file_testproto_valid_proto_msgTypes[10] + 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 ValidStorageInnerNestedRequest_Header.ProtoReflect.Descriptor instead. +func (*ValidStorageInnerNestedRequest_Header) Descriptor() ([]byte, []int) { + return file_testproto_valid_proto_rawDescGZIP(), []int{8, 0} +} + +func (x *ValidStorageInnerNestedRequest_Header) GetStorageName() string { + if x != nil { + return x.StorageName + } + return "" +} + +var File_testproto_valid_proto protoreflect.FileDescriptor + +var file_testproto_valid_proto_rawDesc = []byte{ + 0x0a, 0x15, 0x74, 0x65, 0x73, 0x74, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x76, 0x61, 0x6c, 0x69, + 0x64, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x09, 0x74, 0x65, 0x73, 0x74, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x1a, 0x0a, 0x6c, 0x69, 0x6e, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x0c, + 0x73, 0x68, 0x61, 0x72, 0x65, 0x64, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x4a, 0x0a, 0x0c, + 0x56, 0x61, 0x6c, 0x69, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x3a, 0x0a, 0x0b, + 0x64, 0x65, 0x73, 0x74, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 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, 0x0b, 0x64, 0x65, 0x73, + 0x74, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x19, 0x0a, 0x17, 0x56, 0x61, 0x6c, 0x69, + 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x57, 0x69, 0x74, 0x68, 0x6f, 0x75, 0x74, 0x52, + 0x65, 0x70, 0x6f, 0x22, 0x3e, 0x0a, 0x13, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x53, 0x74, 0x6f, 0x72, + 0x61, 0x67, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x27, 0x0a, 0x0c, 0x73, 0x74, + 0x6f, 0x72, 0x61, 0x67, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, + 0x42, 0x04, 0x88, 0xc6, 0x2c, 0x01, 0x52, 0x0b, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x4e, + 0x61, 0x6d, 0x65, 0x22, 0x0f, 0x0a, 0x0d, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x52, 0x0a, 0x12, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x4e, 0x65, 0x73, + 0x74, 0x65, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x3c, 0x0a, 0x0d, 0x69, 0x6e, + 0x6e, 0x65, 0x72, 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x17, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x56, 0x61, + 0x6c, 0x69, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x52, 0x0c, 0x69, 0x6e, 0x6e, 0x65, + 0x72, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x22, 0x60, 0x0a, 0x19, 0x56, 0x61, 0x6c, 0x69, + 0x64, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x43, 0x0a, 0x0d, 0x69, 0x6e, 0x6e, 0x65, 0x72, 0x5f, 0x6d, + 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x74, + 0x65, 0x73, 0x74, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x53, 0x74, + 0x6f, 0x72, 0x61, 0x67, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x52, 0x0c, 0x69, 0x6e, + 0x6e, 0x65, 0x72, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x22, 0x62, 0x0a, 0x18, 0x56, 0x61, + 0x6c, 0x69, 0x64, 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x53, 0x68, 0x61, 0x72, 0x65, 0x64, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x46, 0x0a, 0x12, 0x6e, 0x65, 0x73, 0x74, 0x65, 0x64, + 0x5f, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x5f, 0x72, 0x65, 0x70, 0x6f, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x4f, 0x62, 0x6a, 0x65, + 0x63, 0x74, 0x50, 0x6f, 0x6f, 0x6c, 0x42, 0x04, 0x98, 0xc6, 0x2c, 0x01, 0x52, 0x10, 0x6e, 0x65, + 0x73, 0x74, 0x65, 0x64, 0x54, 0x61, 0x72, 0x67, 0x65, 0x74, 0x52, 0x65, 0x70, 0x6f, 0x22, 0xa2, + 0x01, 0x0a, 0x17, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x49, 0x6e, 0x6e, 0x65, 0x72, 0x4e, 0x65, 0x73, + 0x74, 0x65, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x41, 0x0a, 0x06, 0x68, 0x65, + 0x61, 0x64, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x29, 0x2e, 0x74, 0x65, 0x73, + 0x74, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x49, 0x6e, 0x6e, 0x65, + 0x72, 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x2e, 0x48, + 0x65, 0x61, 0x64, 0x65, 0x72, 0x52, 0x06, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x1a, 0x44, 0x0a, + 0x06, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x12, 0x3a, 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x74, 0x69, + 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 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, 0x0b, 0x64, 0x65, 0x73, 0x74, 0x69, 0x6e, 0x61, 0x74, + 0x69, 0x6f, 0x6e, 0x22, 0x9d, 0x01, 0x0a, 0x1e, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x53, 0x74, 0x6f, + 0x72, 0x61, 0x67, 0x65, 0x49, 0x6e, 0x6e, 0x65, 0x72, 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x48, 0x0a, 0x06, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x30, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x2e, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x49, + 0x6e, 0x6e, 0x65, 0x72, 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x2e, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x52, 0x06, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, + 0x1a, 0x31, 0x0a, 0x06, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x12, 0x27, 0x0a, 0x0c, 0x73, 0x74, + 0x6f, 0x72, 0x61, 0x67, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, + 0x42, 0x04, 0x88, 0xc6, 0x2c, 0x01, 0x52, 0x0b, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x4e, + 0x61, 0x6d, 0x65, 0x32, 0x5b, 0x0a, 0x12, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x63, 0x65, 0x70, 0x74, + 0x65, 0x64, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x3f, 0x0a, 0x0a, 0x54, 0x65, 0x73, + 0x74, 0x4d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x12, 0x17, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x2e, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x1a, 0x18, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x56, 0x61, 0x6c, + 0x69, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x1a, 0x04, 0xf0, 0x97, 0x28, 0x01, + 0x32, 0xd0, 0x09, 0x0a, 0x0c, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, + 0x65, 0x12, 0x47, 0x0a, 0x0a, 0x54, 0x65, 0x73, 0x74, 0x4d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x12, + 0x17, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x56, 0x61, 0x6c, 0x69, + 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x18, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x70, + 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x22, 0x06, 0xfa, 0x97, 0x28, 0x02, 0x08, 0x02, 0x12, 0x48, 0x0a, 0x0b, 0x54, 0x65, + 0x73, 0x74, 0x4d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x32, 0x12, 0x17, 0x2e, 0x74, 0x65, 0x73, 0x74, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x1a, 0x18, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x56, + 0x61, 0x6c, 0x69, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x06, 0xfa, 0x97, + 0x28, 0x02, 0x08, 0x01, 0x12, 0x48, 0x0a, 0x0b, 0x54, 0x65, 0x73, 0x74, 0x4d, 0x65, 0x74, 0x68, + 0x6f, 0x64, 0x33, 0x12, 0x17, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, + 0x56, 0x61, 0x6c, 0x69, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x18, 0x2e, 0x74, + 0x65, 0x73, 0x74, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x06, 0xfa, 0x97, 0x28, 0x02, 0x08, 0x01, 0x12, 0x4e, + 0x0a, 0x0b, 0x54, 0x65, 0x73, 0x74, 0x4d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x35, 0x12, 0x1d, 0x2e, + 0x74, 0x65, 0x73, 0x74, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x4e, + 0x65, 0x73, 0x74, 0x65, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x18, 0x2e, 0x74, + 0x65, 0x73, 0x74, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x06, 0xfa, 0x97, 0x28, 0x02, 0x08, 0x01, 0x12, 0x54, + 0x0a, 0x0b, 0x54, 0x65, 0x73, 0x74, 0x4d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x36, 0x12, 0x23, 0x2e, + 0x74, 0x65, 0x73, 0x74, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x4e, + 0x65, 0x73, 0x74, 0x65, 0x64, 0x53, 0x68, 0x61, 0x72, 0x65, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x1a, 0x18, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x56, + 0x61, 0x6c, 0x69, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x06, 0xfa, 0x97, + 0x28, 0x02, 0x08, 0x01, 0x12, 0x53, 0x0a, 0x0b, 0x54, 0x65, 0x73, 0x74, 0x4d, 0x65, 0x74, 0x68, + 0x6f, 0x64, 0x37, 0x12, 0x22, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, + 0x56, 0x61, 0x6c, 0x69, 0x64, 0x49, 0x6e, 0x6e, 0x65, 0x72, 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x18, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x2e, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x22, 0x06, 0xfa, 0x97, 0x28, 0x02, 0x08, 0x01, 0x12, 0x51, 0x0a, 0x0b, 0x54, 0x65, 0x73, + 0x74, 0x4d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x38, 0x12, 0x1e, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x70, + 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, + 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x18, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x70, + 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x22, 0x08, 0xfa, 0x97, 0x28, 0x04, 0x08, 0x01, 0x10, 0x02, 0x12, 0x57, 0x0a, 0x0b, + 0x54, 0x65, 0x73, 0x74, 0x4d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x39, 0x12, 0x24, 0x2e, 0x74, 0x65, + 0x73, 0x74, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x53, 0x74, 0x6f, + 0x72, 0x61, 0x67, 0x65, 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x1a, 0x18, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x56, 0x61, + 0x6c, 0x69, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x08, 0xfa, 0x97, 0x28, + 0x04, 0x08, 0x01, 0x10, 0x02, 0x12, 0x4e, 0x0a, 0x0c, 0x54, 0x65, 0x73, 0x74, 0x4d, 0x65, 0x74, + 0x68, 0x6f, 0x64, 0x31, 0x30, 0x12, 0x1e, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x70, 0x72, 0x6f, 0x74, + 0x6f, 0x2e, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x18, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x70, 0x72, 0x6f, 0x74, + 0x6f, 0x2e, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, + 0x04, 0x80, 0x98, 0x28, 0x01, 0x12, 0x4c, 0x0a, 0x0f, 0x54, 0x65, 0x73, 0x74, 0x4d, 0x61, 0x69, + 0x6e, 0x74, 0x65, 0x6e, 0x61, 0x6e, 0x63, 0x65, 0x12, 0x17, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x70, + 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x1a, 0x18, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x56, 0x61, + 0x6c, 0x69, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x06, 0xfa, 0x97, 0x28, + 0x02, 0x08, 0x03, 0x12, 0x5d, 0x0a, 0x20, 0x54, 0x65, 0x73, 0x74, 0x4d, 0x61, 0x69, 0x6e, 0x74, + 0x65, 0x6e, 0x61, 0x6e, 0x63, 0x65, 0x57, 0x69, 0x74, 0x68, 0x45, 0x78, 0x70, 0x6c, 0x69, 0x63, + 0x69, 0x74, 0x53, 0x63, 0x6f, 0x70, 0x65, 0x12, 0x17, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x2e, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x1a, 0x18, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x56, 0x61, 0x6c, + 0x69, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x06, 0xfa, 0x97, 0x28, 0x02, + 0x08, 0x03, 0x12, 0x63, 0x0a, 0x20, 0x54, 0x65, 0x73, 0x74, 0x4d, 0x61, 0x69, 0x6e, 0x74, 0x65, + 0x6e, 0x61, 0x6e, 0x63, 0x65, 0x57, 0x69, 0x74, 0x68, 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1d, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x2e, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x18, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x70, 0x72, 0x6f, 0x74, + 0x6f, 0x2e, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, + 0x06, 0xfa, 0x97, 0x28, 0x02, 0x08, 0x03, 0x12, 0x6f, 0x0a, 0x26, 0x54, 0x65, 0x73, 0x74, 0x4d, + 0x61, 0x69, 0x6e, 0x74, 0x65, 0x6e, 0x61, 0x6e, 0x63, 0x65, 0x57, 0x69, 0x74, 0x68, 0x4e, 0x65, + 0x73, 0x74, 0x65, 0x64, 0x53, 0x68, 0x61, 0x72, 0x65, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x12, 0x23, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x56, 0x61, + 0x6c, 0x69, 0x64, 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x53, 0x68, 0x61, 0x72, 0x65, 0x64, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x18, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x2e, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x22, 0x06, 0xfa, 0x97, 0x28, 0x02, 0x08, 0x03, 0x12, 0x69, 0x0a, 0x21, 0x54, 0x65, 0x73, 0x74, + 0x4d, 0x75, 0x74, 0x61, 0x74, 0x6f, 0x72, 0x57, 0x69, 0x74, 0x68, 0x49, 0x6e, 0x6e, 0x65, 0x72, + 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x22, 0x2e, + 0x74, 0x65, 0x73, 0x74, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x49, + 0x6e, 0x6e, 0x65, 0x72, 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x1a, 0x18, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x56, 0x61, + 0x6c, 0x69, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x06, 0xfa, 0x97, 0x28, + 0x02, 0x08, 0x03, 0x42, 0x32, 0x5a, 0x30, 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, 0x35, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x74, 0x65, + 0x73, 0x74, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +} + +var ( + file_testproto_valid_proto_rawDescOnce sync.Once + file_testproto_valid_proto_rawDescData = file_testproto_valid_proto_rawDesc +) + +func file_testproto_valid_proto_rawDescGZIP() []byte { + file_testproto_valid_proto_rawDescOnce.Do(func() { + file_testproto_valid_proto_rawDescData = protoimpl.X.CompressGZIP(file_testproto_valid_proto_rawDescData) + }) + return file_testproto_valid_proto_rawDescData +} + +var file_testproto_valid_proto_msgTypes = make([]protoimpl.MessageInfo, 11) +var file_testproto_valid_proto_goTypes = []interface{}{ + (*ValidRequest)(nil), // 0: testproto.ValidRequest + (*ValidRequestWithoutRepo)(nil), // 1: testproto.ValidRequestWithoutRepo + (*ValidStorageRequest)(nil), // 2: testproto.ValidStorageRequest + (*ValidResponse)(nil), // 3: testproto.ValidResponse + (*ValidNestedRequest)(nil), // 4: testproto.ValidNestedRequest + (*ValidStorageNestedRequest)(nil), // 5: testproto.ValidStorageNestedRequest + (*ValidNestedSharedRequest)(nil), // 6: testproto.ValidNestedSharedRequest + (*ValidInnerNestedRequest)(nil), // 7: testproto.ValidInnerNestedRequest + (*ValidStorageInnerNestedRequest)(nil), // 8: testproto.ValidStorageInnerNestedRequest + (*ValidInnerNestedRequest_Header)(nil), // 9: testproto.ValidInnerNestedRequest.Header + (*ValidStorageInnerNestedRequest_Header)(nil), // 10: testproto.ValidStorageInnerNestedRequest.Header + (*gitalypb.Repository)(nil), // 11: gitaly.Repository + (*gitalypb.ObjectPool)(nil), // 12: gitaly.ObjectPool +} +var file_testproto_valid_proto_depIdxs = []int32{ + 11, // 0: testproto.ValidRequest.destination:type_name -> gitaly.Repository + 0, // 1: testproto.ValidNestedRequest.inner_message:type_name -> testproto.ValidRequest + 2, // 2: testproto.ValidStorageNestedRequest.inner_message:type_name -> testproto.ValidStorageRequest + 12, // 3: testproto.ValidNestedSharedRequest.nested_target_repo:type_name -> gitaly.ObjectPool + 9, // 4: testproto.ValidInnerNestedRequest.header:type_name -> testproto.ValidInnerNestedRequest.Header + 10, // 5: testproto.ValidStorageInnerNestedRequest.header:type_name -> testproto.ValidStorageInnerNestedRequest.Header + 11, // 6: testproto.ValidInnerNestedRequest.Header.destination:type_name -> gitaly.Repository + 0, // 7: testproto.InterceptedService.TestMethod:input_type -> testproto.ValidRequest + 0, // 8: testproto.ValidService.TestMethod:input_type -> testproto.ValidRequest + 0, // 9: testproto.ValidService.TestMethod2:input_type -> testproto.ValidRequest + 0, // 10: testproto.ValidService.TestMethod3:input_type -> testproto.ValidRequest + 4, // 11: testproto.ValidService.TestMethod5:input_type -> testproto.ValidNestedRequest + 6, // 12: testproto.ValidService.TestMethod6:input_type -> testproto.ValidNestedSharedRequest + 7, // 13: testproto.ValidService.TestMethod7:input_type -> testproto.ValidInnerNestedRequest + 2, // 14: testproto.ValidService.TestMethod8:input_type -> testproto.ValidStorageRequest + 5, // 15: testproto.ValidService.TestMethod9:input_type -> testproto.ValidStorageNestedRequest + 2, // 16: testproto.ValidService.TestMethod10:input_type -> testproto.ValidStorageRequest + 0, // 17: testproto.ValidService.TestMaintenance:input_type -> testproto.ValidRequest + 0, // 18: testproto.ValidService.TestMaintenanceWithExplicitScope:input_type -> testproto.ValidRequest + 4, // 19: testproto.ValidService.TestMaintenanceWithNestedRequest:input_type -> testproto.ValidNestedRequest + 6, // 20: testproto.ValidService.TestMaintenanceWithNestedSharedRequest:input_type -> testproto.ValidNestedSharedRequest + 7, // 21: testproto.ValidService.TestMutatorWithInnerNestedRequest:input_type -> testproto.ValidInnerNestedRequest + 3, // 22: testproto.InterceptedService.TestMethod:output_type -> testproto.ValidResponse + 3, // 23: testproto.ValidService.TestMethod:output_type -> testproto.ValidResponse + 3, // 24: testproto.ValidService.TestMethod2:output_type -> testproto.ValidResponse + 3, // 25: testproto.ValidService.TestMethod3:output_type -> testproto.ValidResponse + 3, // 26: testproto.ValidService.TestMethod5:output_type -> testproto.ValidResponse + 3, // 27: testproto.ValidService.TestMethod6:output_type -> testproto.ValidResponse + 3, // 28: testproto.ValidService.TestMethod7:output_type -> testproto.ValidResponse + 3, // 29: testproto.ValidService.TestMethod8:output_type -> testproto.ValidResponse + 3, // 30: testproto.ValidService.TestMethod9:output_type -> testproto.ValidResponse + 3, // 31: testproto.ValidService.TestMethod10:output_type -> testproto.ValidResponse + 3, // 32: testproto.ValidService.TestMaintenance:output_type -> testproto.ValidResponse + 3, // 33: testproto.ValidService.TestMaintenanceWithExplicitScope:output_type -> testproto.ValidResponse + 3, // 34: testproto.ValidService.TestMaintenanceWithNestedRequest:output_type -> testproto.ValidResponse + 3, // 35: testproto.ValidService.TestMaintenanceWithNestedSharedRequest:output_type -> testproto.ValidResponse + 3, // 36: testproto.ValidService.TestMutatorWithInnerNestedRequest:output_type -> testproto.ValidResponse + 22, // [22:37] is the sub-list for method output_type + 7, // [7:22] is the sub-list for method input_type + 7, // [7:7] is the sub-list for extension type_name + 7, // [7:7] is the sub-list for extension extendee + 0, // [0:7] is the sub-list for field type_name +} + +func init() { file_testproto_valid_proto_init() } +func file_testproto_valid_proto_init() { + if File_testproto_valid_proto != nil { + return + } + if !protoimpl.UnsafeEnabled { + file_testproto_valid_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ValidRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_testproto_valid_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ValidRequestWithoutRepo); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_testproto_valid_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ValidStorageRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_testproto_valid_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ValidResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_testproto_valid_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ValidNestedRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_testproto_valid_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ValidStorageNestedRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_testproto_valid_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ValidNestedSharedRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_testproto_valid_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ValidInnerNestedRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_testproto_valid_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ValidStorageInnerNestedRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_testproto_valid_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ValidInnerNestedRequest_Header); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_testproto_valid_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ValidStorageInnerNestedRequest_Header); 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{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_testproto_valid_proto_rawDesc, + NumEnums: 0, + NumMessages: 11, + NumExtensions: 0, + NumServices: 2, + }, + GoTypes: file_testproto_valid_proto_goTypes, + DependencyIndexes: file_testproto_valid_proto_depIdxs, + MessageInfos: file_testproto_valid_proto_msgTypes, + }.Build() + File_testproto_valid_proto = out.File + file_testproto_valid_proto_rawDesc = nil + file_testproto_valid_proto_goTypes = nil + file_testproto_valid_proto_depIdxs = nil +} diff --git a/tools/protoc-gen-gitaly-lint/testdata/valid_grpc.pb.go b/proto/go/gitalypb/testproto/valid_grpc.pb.go index 867deeb29..ce761c40a 100644 --- a/tools/protoc-gen-gitaly-lint/testdata/valid_grpc.pb.go +++ b/proto/go/gitalypb/testproto/valid_grpc.pb.go @@ -2,9 +2,9 @@ // versions: // - protoc-gen-go-grpc v1.2.0 // - protoc v3.21.7 -// source: protoc-gen-gitaly-lint/testdata/valid.proto +// source: testproto/valid.proto -package testdata +package testproto import ( context "context" @@ -35,7 +35,7 @@ func NewInterceptedServiceClient(cc grpc.ClientConnInterface) InterceptedService func (c *interceptedServiceClient) TestMethod(ctx context.Context, in *ValidRequest, opts ...grpc.CallOption) (*ValidResponse, error) { out := new(ValidResponse) - err := c.cc.Invoke(ctx, "/test.InterceptedService/TestMethod", in, out, opts...) + err := c.cc.Invoke(ctx, "/testproto.InterceptedService/TestMethod", in, out, opts...) if err != nil { return nil, err } @@ -80,7 +80,7 @@ func _InterceptedService_TestMethod_Handler(srv interface{}, ctx context.Context } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/test.InterceptedService/TestMethod", + FullMethod: "/testproto.InterceptedService/TestMethod", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(InterceptedServiceServer).TestMethod(ctx, req.(*ValidRequest)) @@ -92,7 +92,7 @@ func _InterceptedService_TestMethod_Handler(srv interface{}, ctx context.Context // It's only intended for direct use with grpc.RegisterService, // and not to be introspected or modified (even as a copy) var InterceptedService_ServiceDesc = grpc.ServiceDesc{ - ServiceName: "test.InterceptedService", + ServiceName: "testproto.InterceptedService", HandlerType: (*InterceptedServiceServer)(nil), Methods: []grpc.MethodDesc{ { @@ -101,7 +101,7 @@ var InterceptedService_ServiceDesc = grpc.ServiceDesc{ }, }, Streams: []grpc.StreamDesc{}, - Metadata: "protoc-gen-gitaly-lint/testdata/valid.proto", + Metadata: "testproto/valid.proto", } // ValidServiceClient is the client API for ValidService service. @@ -135,7 +135,7 @@ func NewValidServiceClient(cc grpc.ClientConnInterface) ValidServiceClient { func (c *validServiceClient) TestMethod(ctx context.Context, in *ValidRequest, opts ...grpc.CallOption) (*ValidResponse, error) { out := new(ValidResponse) - err := c.cc.Invoke(ctx, "/test.ValidService/TestMethod", in, out, opts...) + err := c.cc.Invoke(ctx, "/testproto.ValidService/TestMethod", in, out, opts...) if err != nil { return nil, err } @@ -144,7 +144,7 @@ func (c *validServiceClient) TestMethod(ctx context.Context, in *ValidRequest, o func (c *validServiceClient) TestMethod2(ctx context.Context, in *ValidRequest, opts ...grpc.CallOption) (*ValidResponse, error) { out := new(ValidResponse) - err := c.cc.Invoke(ctx, "/test.ValidService/TestMethod2", in, out, opts...) + err := c.cc.Invoke(ctx, "/testproto.ValidService/TestMethod2", in, out, opts...) if err != nil { return nil, err } @@ -153,7 +153,7 @@ func (c *validServiceClient) TestMethod2(ctx context.Context, in *ValidRequest, func (c *validServiceClient) TestMethod3(ctx context.Context, in *ValidRequest, opts ...grpc.CallOption) (*ValidResponse, error) { out := new(ValidResponse) - err := c.cc.Invoke(ctx, "/test.ValidService/TestMethod3", in, out, opts...) + err := c.cc.Invoke(ctx, "/testproto.ValidService/TestMethod3", in, out, opts...) if err != nil { return nil, err } @@ -162,7 +162,7 @@ func (c *validServiceClient) TestMethod3(ctx context.Context, in *ValidRequest, func (c *validServiceClient) TestMethod5(ctx context.Context, in *ValidNestedRequest, opts ...grpc.CallOption) (*ValidResponse, error) { out := new(ValidResponse) - err := c.cc.Invoke(ctx, "/test.ValidService/TestMethod5", in, out, opts...) + err := c.cc.Invoke(ctx, "/testproto.ValidService/TestMethod5", in, out, opts...) if err != nil { return nil, err } @@ -171,7 +171,7 @@ func (c *validServiceClient) TestMethod5(ctx context.Context, in *ValidNestedReq func (c *validServiceClient) TestMethod6(ctx context.Context, in *ValidNestedSharedRequest, opts ...grpc.CallOption) (*ValidResponse, error) { out := new(ValidResponse) - err := c.cc.Invoke(ctx, "/test.ValidService/TestMethod6", in, out, opts...) + err := c.cc.Invoke(ctx, "/testproto.ValidService/TestMethod6", in, out, opts...) if err != nil { return nil, err } @@ -180,7 +180,7 @@ func (c *validServiceClient) TestMethod6(ctx context.Context, in *ValidNestedSha func (c *validServiceClient) TestMethod7(ctx context.Context, in *ValidInnerNestedRequest, opts ...grpc.CallOption) (*ValidResponse, error) { out := new(ValidResponse) - err := c.cc.Invoke(ctx, "/test.ValidService/TestMethod7", in, out, opts...) + err := c.cc.Invoke(ctx, "/testproto.ValidService/TestMethod7", in, out, opts...) if err != nil { return nil, err } @@ -189,7 +189,7 @@ func (c *validServiceClient) TestMethod7(ctx context.Context, in *ValidInnerNest func (c *validServiceClient) TestMethod8(ctx context.Context, in *ValidStorageRequest, opts ...grpc.CallOption) (*ValidResponse, error) { out := new(ValidResponse) - err := c.cc.Invoke(ctx, "/test.ValidService/TestMethod8", in, out, opts...) + err := c.cc.Invoke(ctx, "/testproto.ValidService/TestMethod8", in, out, opts...) if err != nil { return nil, err } @@ -198,7 +198,7 @@ func (c *validServiceClient) TestMethod8(ctx context.Context, in *ValidStorageRe func (c *validServiceClient) TestMethod9(ctx context.Context, in *ValidStorageNestedRequest, opts ...grpc.CallOption) (*ValidResponse, error) { out := new(ValidResponse) - err := c.cc.Invoke(ctx, "/test.ValidService/TestMethod9", in, out, opts...) + err := c.cc.Invoke(ctx, "/testproto.ValidService/TestMethod9", in, out, opts...) if err != nil { return nil, err } @@ -207,7 +207,7 @@ func (c *validServiceClient) TestMethod9(ctx context.Context, in *ValidStorageNe func (c *validServiceClient) TestMethod10(ctx context.Context, in *ValidStorageRequest, opts ...grpc.CallOption) (*ValidResponse, error) { out := new(ValidResponse) - err := c.cc.Invoke(ctx, "/test.ValidService/TestMethod10", in, out, opts...) + err := c.cc.Invoke(ctx, "/testproto.ValidService/TestMethod10", in, out, opts...) if err != nil { return nil, err } @@ -216,7 +216,7 @@ func (c *validServiceClient) TestMethod10(ctx context.Context, in *ValidStorageR func (c *validServiceClient) TestMaintenance(ctx context.Context, in *ValidRequest, opts ...grpc.CallOption) (*ValidResponse, error) { out := new(ValidResponse) - err := c.cc.Invoke(ctx, "/test.ValidService/TestMaintenance", in, out, opts...) + err := c.cc.Invoke(ctx, "/testproto.ValidService/TestMaintenance", in, out, opts...) if err != nil { return nil, err } @@ -225,7 +225,7 @@ func (c *validServiceClient) TestMaintenance(ctx context.Context, in *ValidReque func (c *validServiceClient) TestMaintenanceWithExplicitScope(ctx context.Context, in *ValidRequest, opts ...grpc.CallOption) (*ValidResponse, error) { out := new(ValidResponse) - err := c.cc.Invoke(ctx, "/test.ValidService/TestMaintenanceWithExplicitScope", in, out, opts...) + err := c.cc.Invoke(ctx, "/testproto.ValidService/TestMaintenanceWithExplicitScope", in, out, opts...) if err != nil { return nil, err } @@ -234,7 +234,7 @@ func (c *validServiceClient) TestMaintenanceWithExplicitScope(ctx context.Contex func (c *validServiceClient) TestMaintenanceWithNestedRequest(ctx context.Context, in *ValidNestedRequest, opts ...grpc.CallOption) (*ValidResponse, error) { out := new(ValidResponse) - err := c.cc.Invoke(ctx, "/test.ValidService/TestMaintenanceWithNestedRequest", in, out, opts...) + err := c.cc.Invoke(ctx, "/testproto.ValidService/TestMaintenanceWithNestedRequest", in, out, opts...) if err != nil { return nil, err } @@ -243,7 +243,7 @@ func (c *validServiceClient) TestMaintenanceWithNestedRequest(ctx context.Contex func (c *validServiceClient) TestMaintenanceWithNestedSharedRequest(ctx context.Context, in *ValidNestedSharedRequest, opts ...grpc.CallOption) (*ValidResponse, error) { out := new(ValidResponse) - err := c.cc.Invoke(ctx, "/test.ValidService/TestMaintenanceWithNestedSharedRequest", in, out, opts...) + err := c.cc.Invoke(ctx, "/testproto.ValidService/TestMaintenanceWithNestedSharedRequest", in, out, opts...) if err != nil { return nil, err } @@ -252,7 +252,7 @@ func (c *validServiceClient) TestMaintenanceWithNestedSharedRequest(ctx context. func (c *validServiceClient) TestMutatorWithInnerNestedRequest(ctx context.Context, in *ValidInnerNestedRequest, opts ...grpc.CallOption) (*ValidResponse, error) { out := new(ValidResponse) - err := c.cc.Invoke(ctx, "/test.ValidService/TestMutatorWithInnerNestedRequest", in, out, opts...) + err := c.cc.Invoke(ctx, "/testproto.ValidService/TestMutatorWithInnerNestedRequest", in, out, opts...) if err != nil { return nil, err } @@ -350,7 +350,7 @@ func _ValidService_TestMethod_Handler(srv interface{}, ctx context.Context, dec } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/test.ValidService/TestMethod", + FullMethod: "/testproto.ValidService/TestMethod", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(ValidServiceServer).TestMethod(ctx, req.(*ValidRequest)) @@ -368,7 +368,7 @@ func _ValidService_TestMethod2_Handler(srv interface{}, ctx context.Context, dec } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/test.ValidService/TestMethod2", + FullMethod: "/testproto.ValidService/TestMethod2", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(ValidServiceServer).TestMethod2(ctx, req.(*ValidRequest)) @@ -386,7 +386,7 @@ func _ValidService_TestMethod3_Handler(srv interface{}, ctx context.Context, dec } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/test.ValidService/TestMethod3", + FullMethod: "/testproto.ValidService/TestMethod3", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(ValidServiceServer).TestMethod3(ctx, req.(*ValidRequest)) @@ -404,7 +404,7 @@ func _ValidService_TestMethod5_Handler(srv interface{}, ctx context.Context, dec } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/test.ValidService/TestMethod5", + FullMethod: "/testproto.ValidService/TestMethod5", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(ValidServiceServer).TestMethod5(ctx, req.(*ValidNestedRequest)) @@ -422,7 +422,7 @@ func _ValidService_TestMethod6_Handler(srv interface{}, ctx context.Context, dec } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/test.ValidService/TestMethod6", + FullMethod: "/testproto.ValidService/TestMethod6", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(ValidServiceServer).TestMethod6(ctx, req.(*ValidNestedSharedRequest)) @@ -440,7 +440,7 @@ func _ValidService_TestMethod7_Handler(srv interface{}, ctx context.Context, dec } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/test.ValidService/TestMethod7", + FullMethod: "/testproto.ValidService/TestMethod7", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(ValidServiceServer).TestMethod7(ctx, req.(*ValidInnerNestedRequest)) @@ -458,7 +458,7 @@ func _ValidService_TestMethod8_Handler(srv interface{}, ctx context.Context, dec } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/test.ValidService/TestMethod8", + FullMethod: "/testproto.ValidService/TestMethod8", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(ValidServiceServer).TestMethod8(ctx, req.(*ValidStorageRequest)) @@ -476,7 +476,7 @@ func _ValidService_TestMethod9_Handler(srv interface{}, ctx context.Context, dec } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/test.ValidService/TestMethod9", + FullMethod: "/testproto.ValidService/TestMethod9", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(ValidServiceServer).TestMethod9(ctx, req.(*ValidStorageNestedRequest)) @@ -494,7 +494,7 @@ func _ValidService_TestMethod10_Handler(srv interface{}, ctx context.Context, de } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/test.ValidService/TestMethod10", + FullMethod: "/testproto.ValidService/TestMethod10", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(ValidServiceServer).TestMethod10(ctx, req.(*ValidStorageRequest)) @@ -512,7 +512,7 @@ func _ValidService_TestMaintenance_Handler(srv interface{}, ctx context.Context, } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/test.ValidService/TestMaintenance", + FullMethod: "/testproto.ValidService/TestMaintenance", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(ValidServiceServer).TestMaintenance(ctx, req.(*ValidRequest)) @@ -530,7 +530,7 @@ func _ValidService_TestMaintenanceWithExplicitScope_Handler(srv interface{}, ctx } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/test.ValidService/TestMaintenanceWithExplicitScope", + FullMethod: "/testproto.ValidService/TestMaintenanceWithExplicitScope", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(ValidServiceServer).TestMaintenanceWithExplicitScope(ctx, req.(*ValidRequest)) @@ -548,7 +548,7 @@ func _ValidService_TestMaintenanceWithNestedRequest_Handler(srv interface{}, ctx } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/test.ValidService/TestMaintenanceWithNestedRequest", + FullMethod: "/testproto.ValidService/TestMaintenanceWithNestedRequest", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(ValidServiceServer).TestMaintenanceWithNestedRequest(ctx, req.(*ValidNestedRequest)) @@ -566,7 +566,7 @@ func _ValidService_TestMaintenanceWithNestedSharedRequest_Handler(srv interface{ } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/test.ValidService/TestMaintenanceWithNestedSharedRequest", + FullMethod: "/testproto.ValidService/TestMaintenanceWithNestedSharedRequest", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(ValidServiceServer).TestMaintenanceWithNestedSharedRequest(ctx, req.(*ValidNestedSharedRequest)) @@ -584,7 +584,7 @@ func _ValidService_TestMutatorWithInnerNestedRequest_Handler(srv interface{}, ct } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/test.ValidService/TestMutatorWithInnerNestedRequest", + FullMethod: "/testproto.ValidService/TestMutatorWithInnerNestedRequest", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(ValidServiceServer).TestMutatorWithInnerNestedRequest(ctx, req.(*ValidInnerNestedRequest)) @@ -596,7 +596,7 @@ func _ValidService_TestMutatorWithInnerNestedRequest_Handler(srv interface{}, ct // It's only intended for direct use with grpc.RegisterService, // and not to be introspected or modified (even as a copy) var ValidService_ServiceDesc = grpc.ServiceDesc{ - ServiceName: "test.ValidService", + ServiceName: "testproto.ValidService", HandlerType: (*ValidServiceServer)(nil), Methods: []grpc.MethodDesc{ { @@ -657,5 +657,5 @@ var ValidService_ServiceDesc = grpc.ServiceDesc{ }, }, Streams: []grpc.StreamDesc{}, - Metadata: "protoc-gen-gitaly-lint/testdata/valid.proto", + Metadata: "testproto/valid.proto", } diff --git a/tools/protoc-gen-gitaly-lint/testdata/invalid.proto b/proto/testproto/invalid.proto index 562700d40..d9b993c89 100644 --- a/tools/protoc-gen-gitaly-lint/testdata/invalid.proto +++ b/proto/testproto/invalid.proto @@ -1,11 +1,11 @@ syntax = "proto3"; -package test; +package testproto; import "lint.proto"; import "shared.proto"; -option go_package = "gitlab.com/gitlab-org/gitaly/tools/protoc-gen-gitaly-lint/testdata"; +option go_package = "gitlab.com/gitlab-org/gitaly/v15/proto/testproto"; message InvalidMethodRequest { } diff --git a/tools/protoc-gen-gitaly-lint/testdata/valid.proto b/proto/testproto/valid.proto index 398c1b15f..0a023d100 100644 --- a/tools/protoc-gen-gitaly-lint/testdata/valid.proto +++ b/proto/testproto/valid.proto @@ -1,11 +1,11 @@ syntax = "proto3"; -package test; +package testproto; import "lint.proto"; import "shared.proto"; -option go_package = "gitlab.com/gitlab-org/gitaly/v15/tools/protoc-gen-gitaly-lint/testdata"; +option go_package = "gitlab.com/gitlab-org/gitaly/v15/proto/testproto"; message ValidRequest { gitaly.Repository destination = 1 [(gitaly.target_repository)=true]; diff --git a/tools/protoc-gen-gitaly-lint/lint_test.go b/tools/protoc-gen-gitaly-lint/lint_test.go index 8ab86c3f5..d86847850 100644 --- a/tools/protoc-gen-gitaly-lint/lint_test.go +++ b/tools/protoc-gen-gitaly-lint/lint_test.go @@ -7,7 +7,7 @@ import ( "testing" "github.com/stretchr/testify/require" - _ "gitlab.com/gitlab-org/gitaly/v15/tools/protoc-gen-gitaly-lint/testdata" + _ "gitlab.com/gitlab-org/gitaly/v15/proto/go/gitalypb/testproto" "google.golang.org/protobuf/reflect/protodesc" protoreg "google.golang.org/protobuf/reflect/protoregistry" "google.golang.org/protobuf/types/descriptorpb" @@ -20,35 +20,35 @@ func TestLintFile(t *testing.T) { errs []error }{ { - protoPath: "protoc-gen-gitaly-lint/testdata/valid.proto", + protoPath: "testproto/valid.proto", errs: nil, }, { - protoPath: "protoc-gen-gitaly-lint/testdata/invalid.proto", + protoPath: "testproto/invalid.proto", errs: []error{ - formatError("protoc-gen-gitaly-lint/testdata/invalid.proto", "InterceptedWithOperationType", "InvalidMethod", errors.New("operation type defined on an intercepted method")), - formatError("protoc-gen-gitaly-lint/testdata/invalid.proto", "InvalidService", "InvalidMethod0", errors.New("missing op_type extension")), - formatError("protoc-gen-gitaly-lint/testdata/invalid.proto", "InvalidService", "InvalidMethod1", errors.New("op set to UNKNOWN")), - formatError("protoc-gen-gitaly-lint/testdata/invalid.proto", "InvalidService", "InvalidMethod2", errors.New("unexpected count of target_repository fields 0, expected 1, found target_repository label at: []")), - formatError("protoc-gen-gitaly-lint/testdata/invalid.proto", "InvalidService", "InvalidMethod4", errors.New("unexpected count of target_repository fields 0, expected 1, found target_repository label at: []")), - formatError("protoc-gen-gitaly-lint/testdata/invalid.proto", "InvalidService", "InvalidMethod5", errors.New("wrong type of field RequestWithWrongTypeRepository.header.repository, expected .gitaly.Repository, got .test.InvalidMethodResponse")), - formatError("protoc-gen-gitaly-lint/testdata/invalid.proto", "InvalidService", "InvalidMethod6", errors.New("unexpected count of target_repository fields 0, expected 1, found target_repository label at: []")), - formatError("protoc-gen-gitaly-lint/testdata/invalid.proto", "InvalidService", "InvalidMethod7", errors.New("unexpected count of target_repository fields 0, expected 1, found target_repository label at: []")), - formatError("protoc-gen-gitaly-lint/testdata/invalid.proto", "InvalidService", "InvalidMethod8", errors.New("unexpected count of target_repository fields 0, expected 1, found target_repository label at: []")), - formatError("protoc-gen-gitaly-lint/testdata/invalid.proto", "InvalidService", "InvalidMethod9", errors.New("unexpected count of target_repository fields 1, expected 0, found target_repository label at: [InvalidMethodRequestWithRepo.destination]")), - formatError("protoc-gen-gitaly-lint/testdata/invalid.proto", "InvalidService", "InvalidMethod10", errors.New("unexpected count of storage field 1, expected 0, found storage label at: [RequestWithStorageAndRepo.storage_name]")), - formatError("protoc-gen-gitaly-lint/testdata/invalid.proto", "InvalidService", "InvalidMethod11", errors.New("unexpected count of storage field 1, expected 0, found storage label at: [RequestWithNestedStorageAndRepo.inner_message.storage_name]")), - formatError("protoc-gen-gitaly-lint/testdata/invalid.proto", "InvalidService", "InvalidMethod13", errors.New("unexpected count of storage field 0, expected 1, found storage label at: []")), - formatError("protoc-gen-gitaly-lint/testdata/invalid.proto", "InvalidService", "InvalidMethod14", errors.New("unexpected count of storage field 2, expected 1, found storage label at: [RequestWithMultipleNestedStorage.inner_message.storage_name RequestWithMultipleNestedStorage.storage_name]")), - formatError("protoc-gen-gitaly-lint/testdata/invalid.proto", "InvalidService", "InvalidMethod15", errors.New("operation type defined on an intercepted method")), - formatError("protoc-gen-gitaly-lint/testdata/invalid.proto", "InvalidService", "MaintenanceWithMissingRepository", errors.New("unexpected count of target_repository fields 0, expected 1, found target_repository label at: []")), - formatError("protoc-gen-gitaly-lint/testdata/invalid.proto", "InvalidService", "MaintenanceWithUnflaggedRepository", errors.New("unexpected count of target_repository fields 0, expected 1, found target_repository label at: []")), - formatError("protoc-gen-gitaly-lint/testdata/invalid.proto", "InvalidService", "MaintenanceWithWrongNestedRepositoryType", errors.New("wrong type of field RequestWithWrongTypeRepository.header.repository, expected .gitaly.Repository, got .test.InvalidMethodResponse")), - formatError("protoc-gen-gitaly-lint/testdata/invalid.proto", "InvalidService", "MaintenanceWithInvalidTargetType", errors.New("unexpected count of target_repository fields 0, expected 1, found target_repository label at: []")), - formatError("protoc-gen-gitaly-lint/testdata/invalid.proto", "InvalidService", "MaintenanceWithInvalidNestedRequest", errors.New("unexpected count of target_repository fields 0, expected 1, found target_repository label at: []")), - formatError("protoc-gen-gitaly-lint/testdata/invalid.proto", "InvalidService", "MaintenanceWithStorageAndRepository", errors.New("unexpected count of storage field 1, expected 0, found storage label at: [RequestWithStorageAndRepo.storage_name]")), - formatError("protoc-gen-gitaly-lint/testdata/invalid.proto", "InvalidService", "MaintenanceWithNestedStorageAndRepository", errors.New("unexpected count of storage field 1, expected 0, found storage label at: [RequestWithNestedStorageAndRepo.inner_message.storage_name]")), - formatError("protoc-gen-gitaly-lint/testdata/invalid.proto", "InvalidService", "MaintenanceWithStorageScope", errors.New("unknown operation scope level 2")), + formatError("testproto/invalid.proto", "InterceptedWithOperationType", "InvalidMethod", errors.New("operation type defined on an intercepted method")), + formatError("testproto/invalid.proto", "InvalidService", "InvalidMethod0", errors.New("missing op_type extension")), + formatError("testproto/invalid.proto", "InvalidService", "InvalidMethod1", errors.New("op set to UNKNOWN")), + formatError("testproto/invalid.proto", "InvalidService", "InvalidMethod2", errors.New("unexpected count of target_repository fields 0, expected 1, found target_repository label at: []")), + formatError("testproto/invalid.proto", "InvalidService", "InvalidMethod4", errors.New("unexpected count of target_repository fields 0, expected 1, found target_repository label at: []")), + formatError("testproto/invalid.proto", "InvalidService", "InvalidMethod5", errors.New("wrong type of field RequestWithWrongTypeRepository.header.repository, expected .gitaly.Repository, got .testproto.InvalidMethodResponse")), + formatError("testproto/invalid.proto", "InvalidService", "InvalidMethod6", errors.New("unexpected count of target_repository fields 0, expected 1, found target_repository label at: []")), + formatError("testproto/invalid.proto", "InvalidService", "InvalidMethod7", errors.New("unexpected count of target_repository fields 0, expected 1, found target_repository label at: []")), + formatError("testproto/invalid.proto", "InvalidService", "InvalidMethod8", errors.New("unexpected count of target_repository fields 0, expected 1, found target_repository label at: []")), + formatError("testproto/invalid.proto", "InvalidService", "InvalidMethod9", errors.New("unexpected count of target_repository fields 1, expected 0, found target_repository label at: [InvalidMethodRequestWithRepo.destination]")), + formatError("testproto/invalid.proto", "InvalidService", "InvalidMethod10", errors.New("unexpected count of storage field 1, expected 0, found storage label at: [RequestWithStorageAndRepo.storage_name]")), + formatError("testproto/invalid.proto", "InvalidService", "InvalidMethod11", errors.New("unexpected count of storage field 1, expected 0, found storage label at: [RequestWithNestedStorageAndRepo.inner_message.storage_name]")), + formatError("testproto/invalid.proto", "InvalidService", "InvalidMethod13", errors.New("unexpected count of storage field 0, expected 1, found storage label at: []")), + formatError("testproto/invalid.proto", "InvalidService", "InvalidMethod14", errors.New("unexpected count of storage field 2, expected 1, found storage label at: [RequestWithMultipleNestedStorage.inner_message.storage_name RequestWithMultipleNestedStorage.storage_name]")), + formatError("testproto/invalid.proto", "InvalidService", "InvalidMethod15", errors.New("operation type defined on an intercepted method")), + formatError("testproto/invalid.proto", "InvalidService", "MaintenanceWithMissingRepository", errors.New("unexpected count of target_repository fields 0, expected 1, found target_repository label at: []")), + formatError("testproto/invalid.proto", "InvalidService", "MaintenanceWithUnflaggedRepository", errors.New("unexpected count of target_repository fields 0, expected 1, found target_repository label at: []")), + formatError("testproto/invalid.proto", "InvalidService", "MaintenanceWithWrongNestedRepositoryType", errors.New("wrong type of field RequestWithWrongTypeRepository.header.repository, expected .gitaly.Repository, got .testproto.InvalidMethodResponse")), + formatError("testproto/invalid.proto", "InvalidService", "MaintenanceWithInvalidTargetType", errors.New("unexpected count of target_repository fields 0, expected 1, found target_repository label at: []")), + formatError("testproto/invalid.proto", "InvalidService", "MaintenanceWithInvalidNestedRequest", errors.New("unexpected count of target_repository fields 0, expected 1, found target_repository label at: []")), + formatError("testproto/invalid.proto", "InvalidService", "MaintenanceWithStorageAndRepository", errors.New("unexpected count of storage field 1, expected 0, found storage label at: [RequestWithStorageAndRepo.storage_name]")), + formatError("testproto/invalid.proto", "InvalidService", "MaintenanceWithNestedStorageAndRepository", errors.New("unexpected count of storage field 1, expected 0, found storage label at: [RequestWithNestedStorageAndRepo.inner_message.storage_name]")), + formatError("testproto/invalid.proto", "InvalidService", "MaintenanceWithStorageScope", errors.New("unknown operation scope level 2")), }, }, } { diff --git a/tools/protoc-gen-gitaly-lint/testdata/invalid.pb.go b/tools/protoc-gen-gitaly-lint/testdata/invalid.pb.go deleted file mode 100644 index 8f34486e5..000000000 --- a/tools/protoc-gen-gitaly-lint/testdata/invalid.pb.go +++ /dev/null @@ -1,1272 +0,0 @@ -// Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.28.1 -// protoc v3.21.7 -// source: protoc-gen-gitaly-lint/testdata/invalid.proto - -package testdata - -import ( - gitalypb "gitlab.com/gitlab-org/gitaly/v15/proto/go/gitalypb" - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - reflect "reflect" - sync "sync" -) - -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 InvalidMethodRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields -} - -func (x *InvalidMethodRequest) Reset() { - *x = InvalidMethodRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_protoc_gen_gitaly_lint_testdata_invalid_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *InvalidMethodRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*InvalidMethodRequest) ProtoMessage() {} - -func (x *InvalidMethodRequest) ProtoReflect() protoreflect.Message { - mi := &file_protoc_gen_gitaly_lint_testdata_invalid_proto_msgTypes[0] - 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 InvalidMethodRequest.ProtoReflect.Descriptor instead. -func (*InvalidMethodRequest) Descriptor() ([]byte, []int) { - return file_protoc_gen_gitaly_lint_testdata_invalid_proto_rawDescGZIP(), []int{0} -} - -type InvalidMethodRequestWithRepo struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Destination *gitalypb.Repository `protobuf:"bytes,1,opt,name=destination,proto3" json:"destination,omitempty"` -} - -func (x *InvalidMethodRequestWithRepo) Reset() { - *x = InvalidMethodRequestWithRepo{} - if protoimpl.UnsafeEnabled { - mi := &file_protoc_gen_gitaly_lint_testdata_invalid_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *InvalidMethodRequestWithRepo) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*InvalidMethodRequestWithRepo) ProtoMessage() {} - -func (x *InvalidMethodRequestWithRepo) ProtoReflect() protoreflect.Message { - mi := &file_protoc_gen_gitaly_lint_testdata_invalid_proto_msgTypes[1] - 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 InvalidMethodRequestWithRepo.ProtoReflect.Descriptor instead. -func (*InvalidMethodRequestWithRepo) Descriptor() ([]byte, []int) { - return file_protoc_gen_gitaly_lint_testdata_invalid_proto_rawDescGZIP(), []int{1} -} - -func (x *InvalidMethodRequestWithRepo) GetDestination() *gitalypb.Repository { - if x != nil { - return x.Destination - } - return nil -} - -type InvalidTargetType struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - WrongType int32 `protobuf:"varint,1,opt,name=wrong_type,json=wrongType,proto3" json:"wrong_type,omitempty"` -} - -func (x *InvalidTargetType) Reset() { - *x = InvalidTargetType{} - if protoimpl.UnsafeEnabled { - mi := &file_protoc_gen_gitaly_lint_testdata_invalid_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *InvalidTargetType) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*InvalidTargetType) ProtoMessage() {} - -func (x *InvalidTargetType) ProtoReflect() protoreflect.Message { - mi := &file_protoc_gen_gitaly_lint_testdata_invalid_proto_msgTypes[2] - 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 InvalidTargetType.ProtoReflect.Descriptor instead. -func (*InvalidTargetType) Descriptor() ([]byte, []int) { - return file_protoc_gen_gitaly_lint_testdata_invalid_proto_rawDescGZIP(), []int{2} -} - -func (x *InvalidTargetType) GetWrongType() int32 { - if x != nil { - return x.WrongType - } - return 0 -} - -type InvalidMethodResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields -} - -func (x *InvalidMethodResponse) Reset() { - *x = InvalidMethodResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_protoc_gen_gitaly_lint_testdata_invalid_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *InvalidMethodResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*InvalidMethodResponse) ProtoMessage() {} - -func (x *InvalidMethodResponse) ProtoReflect() protoreflect.Message { - mi := &file_protoc_gen_gitaly_lint_testdata_invalid_proto_msgTypes[3] - 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 InvalidMethodResponse.ProtoReflect.Descriptor instead. -func (*InvalidMethodResponse) Descriptor() ([]byte, []int) { - return file_protoc_gen_gitaly_lint_testdata_invalid_proto_rawDescGZIP(), []int{3} -} - -type InvalidNestedRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - InnerMessage *InvalidTargetType `protobuf:"bytes,1,opt,name=inner_message,json=innerMessage,proto3" json:"inner_message,omitempty"` -} - -func (x *InvalidNestedRequest) Reset() { - *x = InvalidNestedRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_protoc_gen_gitaly_lint_testdata_invalid_proto_msgTypes[4] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *InvalidNestedRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*InvalidNestedRequest) ProtoMessage() {} - -func (x *InvalidNestedRequest) ProtoReflect() protoreflect.Message { - mi := &file_protoc_gen_gitaly_lint_testdata_invalid_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 InvalidNestedRequest.ProtoReflect.Descriptor instead. -func (*InvalidNestedRequest) Descriptor() ([]byte, []int) { - return file_protoc_gen_gitaly_lint_testdata_invalid_proto_rawDescGZIP(), []int{4} -} - -func (x *InvalidNestedRequest) GetInnerMessage() *InvalidTargetType { - if x != nil { - return x.InnerMessage - } - return nil -} - -type RequestWithStorage struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - StorageName string `protobuf:"bytes,1,opt,name=storage_name,json=storageName,proto3" json:"storage_name,omitempty"` - Destination *gitalypb.Repository `protobuf:"bytes,2,opt,name=destination,proto3" json:"destination,omitempty"` -} - -func (x *RequestWithStorage) Reset() { - *x = RequestWithStorage{} - if protoimpl.UnsafeEnabled { - mi := &file_protoc_gen_gitaly_lint_testdata_invalid_proto_msgTypes[5] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *RequestWithStorage) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*RequestWithStorage) ProtoMessage() {} - -func (x *RequestWithStorage) ProtoReflect() protoreflect.Message { - mi := &file_protoc_gen_gitaly_lint_testdata_invalid_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 RequestWithStorage.ProtoReflect.Descriptor instead. -func (*RequestWithStorage) Descriptor() ([]byte, []int) { - return file_protoc_gen_gitaly_lint_testdata_invalid_proto_rawDescGZIP(), []int{5} -} - -func (x *RequestWithStorage) GetStorageName() string { - if x != nil { - return x.StorageName - } - return "" -} - -func (x *RequestWithStorage) GetDestination() *gitalypb.Repository { - if x != nil { - return x.Destination - } - return nil -} - -type RequestWithStorageAndRepo struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - StorageName string `protobuf:"bytes,1,opt,name=storage_name,json=storageName,proto3" json:"storage_name,omitempty"` - Destination *gitalypb.Repository `protobuf:"bytes,2,opt,name=destination,proto3" json:"destination,omitempty"` -} - -func (x *RequestWithStorageAndRepo) Reset() { - *x = RequestWithStorageAndRepo{} - if protoimpl.UnsafeEnabled { - mi := &file_protoc_gen_gitaly_lint_testdata_invalid_proto_msgTypes[6] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *RequestWithStorageAndRepo) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*RequestWithStorageAndRepo) ProtoMessage() {} - -func (x *RequestWithStorageAndRepo) ProtoReflect() protoreflect.Message { - mi := &file_protoc_gen_gitaly_lint_testdata_invalid_proto_msgTypes[6] - 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 RequestWithStorageAndRepo.ProtoReflect.Descriptor instead. -func (*RequestWithStorageAndRepo) Descriptor() ([]byte, []int) { - return file_protoc_gen_gitaly_lint_testdata_invalid_proto_rawDescGZIP(), []int{6} -} - -func (x *RequestWithStorageAndRepo) GetStorageName() string { - if x != nil { - return x.StorageName - } - return "" -} - -func (x *RequestWithStorageAndRepo) GetDestination() *gitalypb.Repository { - if x != nil { - return x.Destination - } - return nil -} - -type RequestWithNestedStorageAndRepo struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - InnerMessage *RequestWithStorageAndRepo `protobuf:"bytes,1,opt,name=inner_message,json=innerMessage,proto3" json:"inner_message,omitempty"` -} - -func (x *RequestWithNestedStorageAndRepo) Reset() { - *x = RequestWithNestedStorageAndRepo{} - if protoimpl.UnsafeEnabled { - mi := &file_protoc_gen_gitaly_lint_testdata_invalid_proto_msgTypes[7] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *RequestWithNestedStorageAndRepo) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*RequestWithNestedStorageAndRepo) ProtoMessage() {} - -func (x *RequestWithNestedStorageAndRepo) ProtoReflect() protoreflect.Message { - mi := &file_protoc_gen_gitaly_lint_testdata_invalid_proto_msgTypes[7] - 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 RequestWithNestedStorageAndRepo.ProtoReflect.Descriptor instead. -func (*RequestWithNestedStorageAndRepo) Descriptor() ([]byte, []int) { - return file_protoc_gen_gitaly_lint_testdata_invalid_proto_rawDescGZIP(), []int{7} -} - -func (x *RequestWithNestedStorageAndRepo) GetInnerMessage() *RequestWithStorageAndRepo { - if x != nil { - return x.InnerMessage - } - return nil -} - -type RequestWithMultipleNestedStorage struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - InnerMessage *RequestWithStorage `protobuf:"bytes,1,opt,name=inner_message,json=innerMessage,proto3" json:"inner_message,omitempty"` - StorageName string `protobuf:"bytes,2,opt,name=storage_name,json=storageName,proto3" json:"storage_name,omitempty"` -} - -func (x *RequestWithMultipleNestedStorage) Reset() { - *x = RequestWithMultipleNestedStorage{} - if protoimpl.UnsafeEnabled { - mi := &file_protoc_gen_gitaly_lint_testdata_invalid_proto_msgTypes[8] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *RequestWithMultipleNestedStorage) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*RequestWithMultipleNestedStorage) ProtoMessage() {} - -func (x *RequestWithMultipleNestedStorage) ProtoReflect() protoreflect.Message { - mi := &file_protoc_gen_gitaly_lint_testdata_invalid_proto_msgTypes[8] - 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 RequestWithMultipleNestedStorage.ProtoReflect.Descriptor instead. -func (*RequestWithMultipleNestedStorage) Descriptor() ([]byte, []int) { - return file_protoc_gen_gitaly_lint_testdata_invalid_proto_rawDescGZIP(), []int{8} -} - -func (x *RequestWithMultipleNestedStorage) GetInnerMessage() *RequestWithStorage { - if x != nil { - return x.InnerMessage - } - return nil -} - -func (x *RequestWithMultipleNestedStorage) GetStorageName() string { - if x != nil { - return x.StorageName - } - return "" -} - -type RequestWithInnerNestedStorage struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Header *RequestWithInnerNestedStorage_Header `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` -} - -func (x *RequestWithInnerNestedStorage) Reset() { - *x = RequestWithInnerNestedStorage{} - if protoimpl.UnsafeEnabled { - mi := &file_protoc_gen_gitaly_lint_testdata_invalid_proto_msgTypes[9] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *RequestWithInnerNestedStorage) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*RequestWithInnerNestedStorage) ProtoMessage() {} - -func (x *RequestWithInnerNestedStorage) ProtoReflect() protoreflect.Message { - mi := &file_protoc_gen_gitaly_lint_testdata_invalid_proto_msgTypes[9] - 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 RequestWithInnerNestedStorage.ProtoReflect.Descriptor instead. -func (*RequestWithInnerNestedStorage) Descriptor() ([]byte, []int) { - return file_protoc_gen_gitaly_lint_testdata_invalid_proto_rawDescGZIP(), []int{9} -} - -func (x *RequestWithInnerNestedStorage) GetHeader() *RequestWithInnerNestedStorage_Header { - if x != nil { - return x.Header - } - return nil -} - -type RequestWithWrongTypeRepository struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Header *RequestWithWrongTypeRepository_Header `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` -} - -func (x *RequestWithWrongTypeRepository) Reset() { - *x = RequestWithWrongTypeRepository{} - if protoimpl.UnsafeEnabled { - mi := &file_protoc_gen_gitaly_lint_testdata_invalid_proto_msgTypes[10] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *RequestWithWrongTypeRepository) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*RequestWithWrongTypeRepository) ProtoMessage() {} - -func (x *RequestWithWrongTypeRepository) ProtoReflect() protoreflect.Message { - mi := &file_protoc_gen_gitaly_lint_testdata_invalid_proto_msgTypes[10] - 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 RequestWithWrongTypeRepository.ProtoReflect.Descriptor instead. -func (*RequestWithWrongTypeRepository) Descriptor() ([]byte, []int) { - return file_protoc_gen_gitaly_lint_testdata_invalid_proto_rawDescGZIP(), []int{10} -} - -func (x *RequestWithWrongTypeRepository) GetHeader() *RequestWithWrongTypeRepository_Header { - if x != nil { - return x.Header - } - return nil -} - -type RequestWithNestedRepoNotFlagged struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Header *RequestWithNestedRepoNotFlagged_Header `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` -} - -func (x *RequestWithNestedRepoNotFlagged) Reset() { - *x = RequestWithNestedRepoNotFlagged{} - if protoimpl.UnsafeEnabled { - mi := &file_protoc_gen_gitaly_lint_testdata_invalid_proto_msgTypes[11] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *RequestWithNestedRepoNotFlagged) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*RequestWithNestedRepoNotFlagged) ProtoMessage() {} - -func (x *RequestWithNestedRepoNotFlagged) ProtoReflect() protoreflect.Message { - mi := &file_protoc_gen_gitaly_lint_testdata_invalid_proto_msgTypes[11] - 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 RequestWithNestedRepoNotFlagged.ProtoReflect.Descriptor instead. -func (*RequestWithNestedRepoNotFlagged) Descriptor() ([]byte, []int) { - return file_protoc_gen_gitaly_lint_testdata_invalid_proto_rawDescGZIP(), []int{11} -} - -func (x *RequestWithNestedRepoNotFlagged) GetHeader() *RequestWithNestedRepoNotFlagged_Header { - if x != nil { - return x.Header - } - return nil -} - -type RequestWithInnerNestedStorage_Header struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - StorageName string `protobuf:"bytes,1,opt,name=storage_name,json=storageName,proto3" json:"storage_name,omitempty"` -} - -func (x *RequestWithInnerNestedStorage_Header) Reset() { - *x = RequestWithInnerNestedStorage_Header{} - if protoimpl.UnsafeEnabled { - mi := &file_protoc_gen_gitaly_lint_testdata_invalid_proto_msgTypes[12] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *RequestWithInnerNestedStorage_Header) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*RequestWithInnerNestedStorage_Header) ProtoMessage() {} - -func (x *RequestWithInnerNestedStorage_Header) ProtoReflect() protoreflect.Message { - mi := &file_protoc_gen_gitaly_lint_testdata_invalid_proto_msgTypes[12] - 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 RequestWithInnerNestedStorage_Header.ProtoReflect.Descriptor instead. -func (*RequestWithInnerNestedStorage_Header) Descriptor() ([]byte, []int) { - return file_protoc_gen_gitaly_lint_testdata_invalid_proto_rawDescGZIP(), []int{9, 0} -} - -func (x *RequestWithInnerNestedStorage_Header) GetStorageName() string { - if x != nil { - return x.StorageName - } - return "" -} - -type RequestWithWrongTypeRepository_Header struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Repository *InvalidMethodResponse `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"` -} - -func (x *RequestWithWrongTypeRepository_Header) Reset() { - *x = RequestWithWrongTypeRepository_Header{} - if protoimpl.UnsafeEnabled { - mi := &file_protoc_gen_gitaly_lint_testdata_invalid_proto_msgTypes[13] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *RequestWithWrongTypeRepository_Header) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*RequestWithWrongTypeRepository_Header) ProtoMessage() {} - -func (x *RequestWithWrongTypeRepository_Header) ProtoReflect() protoreflect.Message { - mi := &file_protoc_gen_gitaly_lint_testdata_invalid_proto_msgTypes[13] - 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 RequestWithWrongTypeRepository_Header.ProtoReflect.Descriptor instead. -func (*RequestWithWrongTypeRepository_Header) Descriptor() ([]byte, []int) { - return file_protoc_gen_gitaly_lint_testdata_invalid_proto_rawDescGZIP(), []int{10, 0} -} - -func (x *RequestWithWrongTypeRepository_Header) GetRepository() *InvalidMethodResponse { - if x != nil { - return x.Repository - } - return nil -} - -type RequestWithNestedRepoNotFlagged_Header struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Repository *gitalypb.Repository `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"` -} - -func (x *RequestWithNestedRepoNotFlagged_Header) Reset() { - *x = RequestWithNestedRepoNotFlagged_Header{} - if protoimpl.UnsafeEnabled { - mi := &file_protoc_gen_gitaly_lint_testdata_invalid_proto_msgTypes[14] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *RequestWithNestedRepoNotFlagged_Header) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*RequestWithNestedRepoNotFlagged_Header) ProtoMessage() {} - -func (x *RequestWithNestedRepoNotFlagged_Header) ProtoReflect() protoreflect.Message { - mi := &file_protoc_gen_gitaly_lint_testdata_invalid_proto_msgTypes[14] - 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 RequestWithNestedRepoNotFlagged_Header.ProtoReflect.Descriptor instead. -func (*RequestWithNestedRepoNotFlagged_Header) Descriptor() ([]byte, []int) { - return file_protoc_gen_gitaly_lint_testdata_invalid_proto_rawDescGZIP(), []int{11, 0} -} - -func (x *RequestWithNestedRepoNotFlagged_Header) GetRepository() *gitalypb.Repository { - if x != nil { - return x.Repository - } - return nil -} - -var File_protoc_gen_gitaly_lint_testdata_invalid_proto protoreflect.FileDescriptor - -var file_protoc_gen_gitaly_lint_testdata_invalid_proto_rawDesc = []byte{ - 0x0a, 0x2d, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x2d, 0x67, 0x65, 0x6e, 0x2d, 0x67, 0x69, 0x74, - 0x61, 0x6c, 0x79, 0x2d, 0x6c, 0x69, 0x6e, 0x74, 0x2f, 0x74, 0x65, 0x73, 0x74, 0x64, 0x61, 0x74, - 0x61, 0x2f, 0x69, 0x6e, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, - 0x04, 0x74, 0x65, 0x73, 0x74, 0x1a, 0x0a, 0x6c, 0x69, 0x6e, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x1a, 0x0c, 0x73, 0x68, 0x61, 0x72, 0x65, 0x64, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, - 0x16, 0x0a, 0x14, 0x49, 0x6e, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x4d, 0x65, 0x74, 0x68, 0x6f, 0x64, - 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0x5a, 0x0a, 0x1c, 0x49, 0x6e, 0x76, 0x61, 0x6c, - 0x69, 0x64, 0x4d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x57, - 0x69, 0x74, 0x68, 0x52, 0x65, 0x70, 0x6f, 0x12, 0x3a, 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x74, 0x69, - 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 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, 0x0b, 0x64, 0x65, 0x73, 0x74, 0x69, 0x6e, 0x61, 0x74, - 0x69, 0x6f, 0x6e, 0x22, 0x38, 0x0a, 0x11, 0x49, 0x6e, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x54, 0x61, - 0x72, 0x67, 0x65, 0x74, 0x54, 0x79, 0x70, 0x65, 0x12, 0x23, 0x0a, 0x0a, 0x77, 0x72, 0x6f, 0x6e, - 0x67, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x42, 0x04, 0x98, 0xc6, - 0x2c, 0x01, 0x52, 0x09, 0x77, 0x72, 0x6f, 0x6e, 0x67, 0x54, 0x79, 0x70, 0x65, 0x22, 0x17, 0x0a, - 0x15, 0x49, 0x6e, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x4d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x52, 0x65, - 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x54, 0x0a, 0x14, 0x49, 0x6e, 0x76, 0x61, 0x6c, 0x69, - 0x64, 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x3c, - 0x0a, 0x0d, 0x69, 0x6e, 0x6e, 0x65, 0x72, 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x49, 0x6e, 0x76, - 0x61, 0x6c, 0x69, 0x64, 0x54, 0x61, 0x72, 0x67, 0x65, 0x74, 0x54, 0x79, 0x70, 0x65, 0x52, 0x0c, - 0x69, 0x6e, 0x6e, 0x65, 0x72, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x22, 0x73, 0x0a, 0x12, - 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x57, 0x69, 0x74, 0x68, 0x53, 0x74, 0x6f, 0x72, 0x61, - 0x67, 0x65, 0x12, 0x27, 0x0a, 0x0c, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x5f, 0x6e, 0x61, - 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x04, 0x88, 0xc6, 0x2c, 0x01, 0x52, 0x0b, - 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x34, 0x0a, 0x0b, 0x64, - 0x65, 0x73, 0x74, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, - 0x32, 0x12, 0x2e, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2e, 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, - 0x74, 0x6f, 0x72, 0x79, 0x52, 0x0b, 0x64, 0x65, 0x73, 0x74, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, - 0x6e, 0x22, 0x80, 0x01, 0x0a, 0x19, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x57, 0x69, 0x74, - 0x68, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x41, 0x6e, 0x64, 0x52, 0x65, 0x70, 0x6f, 0x12, - 0x27, 0x0a, 0x0c, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x04, 0x88, 0xc6, 0x2c, 0x01, 0x52, 0x0b, 0x73, 0x74, 0x6f, - 0x72, 0x61, 0x67, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x3a, 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x74, - 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, 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, 0x0b, 0x64, 0x65, 0x73, 0x74, 0x69, 0x6e, 0x61, - 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x67, 0x0a, 0x1f, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x57, - 0x69, 0x74, 0x68, 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, - 0x41, 0x6e, 0x64, 0x52, 0x65, 0x70, 0x6f, 0x12, 0x44, 0x0a, 0x0d, 0x69, 0x6e, 0x6e, 0x65, 0x72, - 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f, - 0x2e, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x57, 0x69, 0x74, - 0x68, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x41, 0x6e, 0x64, 0x52, 0x65, 0x70, 0x6f, 0x52, - 0x0c, 0x69, 0x6e, 0x6e, 0x65, 0x72, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x22, 0x8a, 0x01, - 0x0a, 0x20, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x57, 0x69, 0x74, 0x68, 0x4d, 0x75, 0x6c, - 0x74, 0x69, 0x70, 0x6c, 0x65, 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x53, 0x74, 0x6f, 0x72, 0x61, - 0x67, 0x65, 0x12, 0x3d, 0x0a, 0x0d, 0x69, 0x6e, 0x6e, 0x65, 0x72, 0x5f, 0x6d, 0x65, 0x73, 0x73, - 0x61, 0x67, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x74, 0x65, 0x73, 0x74, - 0x2e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x57, 0x69, 0x74, 0x68, 0x53, 0x74, 0x6f, 0x72, - 0x61, 0x67, 0x65, 0x52, 0x0c, 0x69, 0x6e, 0x6e, 0x65, 0x72, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, - 0x65, 0x12, 0x27, 0x0a, 0x0c, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x5f, 0x6e, 0x61, 0x6d, - 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x04, 0x88, 0xc6, 0x2c, 0x01, 0x52, 0x0b, 0x73, - 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x22, 0x96, 0x01, 0x0a, 0x1d, 0x52, - 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x57, 0x69, 0x74, 0x68, 0x49, 0x6e, 0x6e, 0x65, 0x72, 0x4e, - 0x65, 0x73, 0x74, 0x65, 0x64, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x12, 0x42, 0x0a, 0x06, - 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2a, 0x2e, 0x74, - 0x65, 0x73, 0x74, 0x2e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x57, 0x69, 0x74, 0x68, 0x49, - 0x6e, 0x6e, 0x65, 0x72, 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, - 0x65, 0x2e, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x52, 0x06, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, - 0x1a, 0x31, 0x0a, 0x06, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x12, 0x27, 0x0a, 0x0c, 0x73, 0x74, - 0x6f, 0x72, 0x61, 0x67, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, - 0x42, 0x04, 0x88, 0xc6, 0x2c, 0x01, 0x52, 0x0b, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x4e, - 0x61, 0x6d, 0x65, 0x22, 0xb8, 0x01, 0x0a, 0x1e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x57, - 0x69, 0x74, 0x68, 0x57, 0x72, 0x6f, 0x6e, 0x67, 0x54, 0x79, 0x70, 0x65, 0x52, 0x65, 0x70, 0x6f, - 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x12, 0x49, 0x0a, 0x06, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, - 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2b, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x52, 0x65, - 0x71, 0x75, 0x65, 0x73, 0x74, 0x57, 0x69, 0x74, 0x68, 0x57, 0x72, 0x6f, 0x6e, 0x67, 0x54, 0x79, - 0x70, 0x65, 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x48, 0x65, 0x61, - 0x64, 0x65, 0x72, 0x42, 0x04, 0x98, 0xc6, 0x2c, 0x01, 0x52, 0x06, 0x68, 0x65, 0x61, 0x64, 0x65, - 0x72, 0x1a, 0x4b, 0x0a, 0x06, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x12, 0x41, 0x0a, 0x0a, 0x72, - 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, - 0x1b, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x49, 0x6e, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x4d, 0x65, - 0x74, 0x68, 0x6f, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x42, 0x04, 0x90, 0xc6, - 0x2c, 0x01, 0x52, 0x0a, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x22, 0xab, - 0x01, 0x0a, 0x1f, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x57, 0x69, 0x74, 0x68, 0x4e, 0x65, - 0x73, 0x74, 0x65, 0x64, 0x52, 0x65, 0x70, 0x6f, 0x4e, 0x6f, 0x74, 0x46, 0x6c, 0x61, 0x67, 0x67, - 0x65, 0x64, 0x12, 0x4a, 0x0a, 0x06, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x0b, 0x32, 0x2c, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x57, 0x69, 0x74, 0x68, 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x52, 0x65, 0x70, 0x6f, 0x4e, - 0x6f, 0x74, 0x46, 0x6c, 0x61, 0x67, 0x67, 0x65, 0x64, 0x2e, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, - 0x42, 0x04, 0x98, 0xc6, 0x2c, 0x01, 0x52, 0x06, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x1a, 0x3c, - 0x0a, 0x06, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x12, 0x32, 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, - 0x52, 0x0a, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x32, 0x76, 0x0a, 0x1c, - 0x49, 0x6e, 0x74, 0x65, 0x72, 0x63, 0x65, 0x70, 0x74, 0x65, 0x64, 0x57, 0x69, 0x74, 0x68, 0x4f, - 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x12, 0x50, 0x0a, 0x0d, - 0x49, 0x6e, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x4d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x12, 0x1a, 0x2e, - 0x74, 0x65, 0x73, 0x74, 0x2e, 0x49, 0x6e, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x4d, 0x65, 0x74, 0x68, - 0x6f, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1b, 0x2e, 0x74, 0x65, 0x73, 0x74, - 0x2e, 0x49, 0x6e, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x4d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x52, 0x65, - 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x06, 0xfa, 0x97, 0x28, 0x02, 0x08, 0x02, 0x1a, 0x04, - 0xf0, 0x97, 0x28, 0x01, 0x32, 0xc1, 0x10, 0x0a, 0x0e, 0x49, 0x6e, 0x76, 0x61, 0x6c, 0x69, 0x64, - 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x4b, 0x0a, 0x0e, 0x49, 0x6e, 0x76, 0x61, 0x6c, - 0x69, 0x64, 0x4d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x30, 0x12, 0x1a, 0x2e, 0x74, 0x65, 0x73, 0x74, - 0x2e, 0x49, 0x6e, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x4d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x52, 0x65, - 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1b, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x49, 0x6e, 0x76, - 0x61, 0x6c, 0x69, 0x64, 0x4d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, - 0x73, 0x65, 0x22, 0x00, 0x12, 0x51, 0x0a, 0x0e, 0x49, 0x6e, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x4d, - 0x65, 0x74, 0x68, 0x6f, 0x64, 0x31, 0x12, 0x1a, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x49, 0x6e, - 0x76, 0x61, 0x6c, 0x69, 0x64, 0x4d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, - 0x73, 0x74, 0x1a, 0x1b, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x49, 0x6e, 0x76, 0x61, 0x6c, 0x69, - 0x64, 0x4d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, - 0x06, 0xfa, 0x97, 0x28, 0x02, 0x08, 0x00, 0x12, 0x51, 0x0a, 0x0e, 0x49, 0x6e, 0x76, 0x61, 0x6c, - 0x69, 0x64, 0x4d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x32, 0x12, 0x1a, 0x2e, 0x74, 0x65, 0x73, 0x74, - 0x2e, 0x49, 0x6e, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x4d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x52, 0x65, - 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1b, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x49, 0x6e, 0x76, - 0x61, 0x6c, 0x69, 0x64, 0x4d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, - 0x73, 0x65, 0x22, 0x06, 0xfa, 0x97, 0x28, 0x02, 0x08, 0x02, 0x12, 0x51, 0x0a, 0x0e, 0x49, 0x6e, - 0x76, 0x61, 0x6c, 0x69, 0x64, 0x4d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x34, 0x12, 0x1a, 0x2e, 0x74, - 0x65, 0x73, 0x74, 0x2e, 0x49, 0x6e, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x4d, 0x65, 0x74, 0x68, 0x6f, - 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1b, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x2e, - 0x49, 0x6e, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x4d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x52, 0x65, 0x73, - 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x06, 0xfa, 0x97, 0x28, 0x02, 0x08, 0x01, 0x12, 0x5b, 0x0a, - 0x0e, 0x49, 0x6e, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x4d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x35, 0x12, - 0x24, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x57, 0x69, - 0x74, 0x68, 0x57, 0x72, 0x6f, 0x6e, 0x67, 0x54, 0x79, 0x70, 0x65, 0x52, 0x65, 0x70, 0x6f, 0x73, - 0x69, 0x74, 0x6f, 0x72, 0x79, 0x1a, 0x1b, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x49, 0x6e, 0x76, - 0x61, 0x6c, 0x69, 0x64, 0x4d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, - 0x73, 0x65, 0x22, 0x06, 0xfa, 0x97, 0x28, 0x02, 0x08, 0x01, 0x12, 0x5c, 0x0a, 0x0e, 0x49, 0x6e, - 0x76, 0x61, 0x6c, 0x69, 0x64, 0x4d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x36, 0x12, 0x25, 0x2e, 0x74, - 0x65, 0x73, 0x74, 0x2e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x57, 0x69, 0x74, 0x68, 0x4e, - 0x65, 0x73, 0x74, 0x65, 0x64, 0x52, 0x65, 0x70, 0x6f, 0x4e, 0x6f, 0x74, 0x46, 0x6c, 0x61, 0x67, - 0x67, 0x65, 0x64, 0x1a, 0x1b, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x49, 0x6e, 0x76, 0x61, 0x6c, - 0x69, 0x64, 0x4d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, - 0x22, 0x06, 0xfa, 0x97, 0x28, 0x02, 0x08, 0x01, 0x12, 0x4e, 0x0a, 0x0e, 0x49, 0x6e, 0x76, 0x61, - 0x6c, 0x69, 0x64, 0x4d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x37, 0x12, 0x17, 0x2e, 0x74, 0x65, 0x73, - 0x74, 0x2e, 0x49, 0x6e, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x54, 0x61, 0x72, 0x67, 0x65, 0x74, 0x54, - 0x79, 0x70, 0x65, 0x1a, 0x1b, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x49, 0x6e, 0x76, 0x61, 0x6c, - 0x69, 0x64, 0x4d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, - 0x22, 0x06, 0xfa, 0x97, 0x28, 0x02, 0x08, 0x01, 0x12, 0x51, 0x0a, 0x0e, 0x49, 0x6e, 0x76, 0x61, - 0x6c, 0x69, 0x64, 0x4d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x38, 0x12, 0x1a, 0x2e, 0x74, 0x65, 0x73, - 0x74, 0x2e, 0x49, 0x6e, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x52, - 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1b, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x49, 0x6e, - 0x76, 0x61, 0x6c, 0x69, 0x64, 0x4d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, - 0x6e, 0x73, 0x65, 0x22, 0x06, 0xfa, 0x97, 0x28, 0x02, 0x08, 0x01, 0x12, 0x5b, 0x0a, 0x0e, 0x49, - 0x6e, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x4d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x39, 0x12, 0x22, 0x2e, - 0x74, 0x65, 0x73, 0x74, 0x2e, 0x49, 0x6e, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x4d, 0x65, 0x74, 0x68, - 0x6f, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x57, 0x69, 0x74, 0x68, 0x52, 0x65, 0x70, - 0x6f, 0x1a, 0x1b, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x49, 0x6e, 0x76, 0x61, 0x6c, 0x69, 0x64, - 0x4d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x08, - 0xfa, 0x97, 0x28, 0x04, 0x08, 0x01, 0x10, 0x02, 0x12, 0x57, 0x0a, 0x0f, 0x49, 0x6e, 0x76, 0x61, - 0x6c, 0x69, 0x64, 0x4d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x31, 0x30, 0x12, 0x1f, 0x2e, 0x74, 0x65, - 0x73, 0x74, 0x2e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x57, 0x69, 0x74, 0x68, 0x53, 0x74, - 0x6f, 0x72, 0x61, 0x67, 0x65, 0x41, 0x6e, 0x64, 0x52, 0x65, 0x70, 0x6f, 0x1a, 0x1b, 0x2e, 0x74, - 0x65, 0x73, 0x74, 0x2e, 0x49, 0x6e, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x4d, 0x65, 0x74, 0x68, 0x6f, - 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x06, 0xfa, 0x97, 0x28, 0x02, 0x08, - 0x02, 0x12, 0x5d, 0x0a, 0x0f, 0x49, 0x6e, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x4d, 0x65, 0x74, 0x68, - 0x6f, 0x64, 0x31, 0x31, 0x12, 0x25, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x52, 0x65, 0x71, 0x75, - 0x65, 0x73, 0x74, 0x57, 0x69, 0x74, 0x68, 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x53, 0x74, 0x6f, - 0x72, 0x61, 0x67, 0x65, 0x41, 0x6e, 0x64, 0x52, 0x65, 0x70, 0x6f, 0x1a, 0x1b, 0x2e, 0x74, 0x65, - 0x73, 0x74, 0x2e, 0x49, 0x6e, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x4d, 0x65, 0x74, 0x68, 0x6f, 0x64, - 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x06, 0xfa, 0x97, 0x28, 0x02, 0x08, 0x01, - 0x12, 0x51, 0x0a, 0x0f, 0x49, 0x6e, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x4d, 0x65, 0x74, 0x68, 0x6f, - 0x64, 0x31, 0x33, 0x12, 0x17, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x49, 0x6e, 0x76, 0x61, 0x6c, - 0x69, 0x64, 0x54, 0x61, 0x72, 0x67, 0x65, 0x74, 0x54, 0x79, 0x70, 0x65, 0x1a, 0x1b, 0x2e, 0x74, - 0x65, 0x73, 0x74, 0x2e, 0x49, 0x6e, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x4d, 0x65, 0x74, 0x68, 0x6f, - 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x08, 0xfa, 0x97, 0x28, 0x04, 0x08, - 0x01, 0x10, 0x02, 0x12, 0x60, 0x0a, 0x0f, 0x49, 0x6e, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x4d, 0x65, - 0x74, 0x68, 0x6f, 0x64, 0x31, 0x34, 0x12, 0x26, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x52, 0x65, - 0x71, 0x75, 0x65, 0x73, 0x74, 0x57, 0x69, 0x74, 0x68, 0x4d, 0x75, 0x6c, 0x74, 0x69, 0x70, 0x6c, - 0x65, 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x1a, 0x1b, - 0x2e, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x49, 0x6e, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x4d, 0x65, 0x74, - 0x68, 0x6f, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x08, 0xfa, 0x97, 0x28, - 0x04, 0x08, 0x01, 0x10, 0x02, 0x12, 0x59, 0x0a, 0x0f, 0x49, 0x6e, 0x76, 0x61, 0x6c, 0x69, 0x64, - 0x4d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x31, 0x35, 0x12, 0x1f, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x2e, - 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x57, 0x69, 0x74, 0x68, 0x53, 0x74, 0x6f, 0x72, 0x61, - 0x67, 0x65, 0x41, 0x6e, 0x64, 0x52, 0x65, 0x70, 0x6f, 0x1a, 0x1b, 0x2e, 0x74, 0x65, 0x73, 0x74, - 0x2e, 0x49, 0x6e, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x4d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x52, 0x65, - 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x08, 0x80, 0x98, 0x28, 0x01, 0xfa, 0x97, 0x28, 0x00, - 0x12, 0x63, 0x0a, 0x20, 0x4d, 0x61, 0x69, 0x6e, 0x74, 0x65, 0x6e, 0x61, 0x6e, 0x63, 0x65, 0x57, - 0x69, 0x74, 0x68, 0x4d, 0x69, 0x73, 0x73, 0x69, 0x6e, 0x67, 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, - 0x74, 0x6f, 0x72, 0x79, 0x12, 0x1a, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x49, 0x6e, 0x76, 0x61, - 0x6c, 0x69, 0x64, 0x4d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, - 0x1a, 0x1b, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x49, 0x6e, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x4d, - 0x65, 0x74, 0x68, 0x6f, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x06, 0xfa, - 0x97, 0x28, 0x02, 0x08, 0x03, 0x12, 0x70, 0x0a, 0x22, 0x4d, 0x61, 0x69, 0x6e, 0x74, 0x65, 0x6e, - 0x61, 0x6e, 0x63, 0x65, 0x57, 0x69, 0x74, 0x68, 0x55, 0x6e, 0x66, 0x6c, 0x61, 0x67, 0x67, 0x65, - 0x64, 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x12, 0x25, 0x2e, 0x74, 0x65, - 0x73, 0x74, 0x2e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x57, 0x69, 0x74, 0x68, 0x4e, 0x65, - 0x73, 0x74, 0x65, 0x64, 0x52, 0x65, 0x70, 0x6f, 0x4e, 0x6f, 0x74, 0x46, 0x6c, 0x61, 0x67, 0x67, - 0x65, 0x64, 0x1a, 0x1b, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x49, 0x6e, 0x76, 0x61, 0x6c, 0x69, - 0x64, 0x4d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, - 0x06, 0xfa, 0x97, 0x28, 0x02, 0x08, 0x03, 0x12, 0x75, 0x0a, 0x28, 0x4d, 0x61, 0x69, 0x6e, 0x74, - 0x65, 0x6e, 0x61, 0x6e, 0x63, 0x65, 0x57, 0x69, 0x74, 0x68, 0x57, 0x72, 0x6f, 0x6e, 0x67, 0x4e, - 0x65, 0x73, 0x74, 0x65, 0x64, 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x54, - 0x79, 0x70, 0x65, 0x12, 0x24, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x52, 0x65, 0x71, 0x75, 0x65, - 0x73, 0x74, 0x57, 0x69, 0x74, 0x68, 0x57, 0x72, 0x6f, 0x6e, 0x67, 0x54, 0x79, 0x70, 0x65, 0x52, - 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x1a, 0x1b, 0x2e, 0x74, 0x65, 0x73, 0x74, - 0x2e, 0x49, 0x6e, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x4d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x52, 0x65, - 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x06, 0xfa, 0x97, 0x28, 0x02, 0x08, 0x03, 0x12, 0x60, - 0x0a, 0x20, 0x4d, 0x61, 0x69, 0x6e, 0x74, 0x65, 0x6e, 0x61, 0x6e, 0x63, 0x65, 0x57, 0x69, 0x74, - 0x68, 0x49, 0x6e, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x54, 0x61, 0x72, 0x67, 0x65, 0x74, 0x54, 0x79, - 0x70, 0x65, 0x12, 0x17, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x49, 0x6e, 0x76, 0x61, 0x6c, 0x69, - 0x64, 0x54, 0x61, 0x72, 0x67, 0x65, 0x74, 0x54, 0x79, 0x70, 0x65, 0x1a, 0x1b, 0x2e, 0x74, 0x65, - 0x73, 0x74, 0x2e, 0x49, 0x6e, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x4d, 0x65, 0x74, 0x68, 0x6f, 0x64, - 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x06, 0xfa, 0x97, 0x28, 0x02, 0x08, 0x03, - 0x12, 0x66, 0x0a, 0x23, 0x4d, 0x61, 0x69, 0x6e, 0x74, 0x65, 0x6e, 0x61, 0x6e, 0x63, 0x65, 0x57, - 0x69, 0x74, 0x68, 0x49, 0x6e, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64, - 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1a, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x49, - 0x6e, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x52, 0x65, 0x71, 0x75, - 0x65, 0x73, 0x74, 0x1a, 0x1b, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x49, 0x6e, 0x76, 0x61, 0x6c, - 0x69, 0x64, 0x4d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, - 0x22, 0x06, 0xfa, 0x97, 0x28, 0x02, 0x08, 0x03, 0x12, 0x6b, 0x0a, 0x23, 0x4d, 0x61, 0x69, 0x6e, - 0x74, 0x65, 0x6e, 0x61, 0x6e, 0x63, 0x65, 0x57, 0x69, 0x74, 0x68, 0x53, 0x74, 0x6f, 0x72, 0x61, - 0x67, 0x65, 0x41, 0x6e, 0x64, 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, 0x72, 0x79, 0x12, - 0x1f, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x57, 0x69, - 0x74, 0x68, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x41, 0x6e, 0x64, 0x52, 0x65, 0x70, 0x6f, - 0x1a, 0x1b, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x49, 0x6e, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x4d, - 0x65, 0x74, 0x68, 0x6f, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x06, 0xfa, - 0x97, 0x28, 0x02, 0x08, 0x03, 0x12, 0x77, 0x0a, 0x29, 0x4d, 0x61, 0x69, 0x6e, 0x74, 0x65, 0x6e, - 0x61, 0x6e, 0x63, 0x65, 0x57, 0x69, 0x74, 0x68, 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x53, 0x74, - 0x6f, 0x72, 0x61, 0x67, 0x65, 0x41, 0x6e, 0x64, 0x52, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x6f, - 0x72, 0x79, 0x12, 0x25, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x57, 0x69, 0x74, 0x68, 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x53, 0x74, 0x6f, 0x72, 0x61, - 0x67, 0x65, 0x41, 0x6e, 0x64, 0x52, 0x65, 0x70, 0x6f, 0x1a, 0x1b, 0x2e, 0x74, 0x65, 0x73, 0x74, - 0x2e, 0x49, 0x6e, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x4d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x52, 0x65, - 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x06, 0xfa, 0x97, 0x28, 0x02, 0x08, 0x03, 0x12, 0x68, - 0x0a, 0x1b, 0x4d, 0x61, 0x69, 0x6e, 0x74, 0x65, 0x6e, 0x61, 0x6e, 0x63, 0x65, 0x57, 0x69, 0x74, - 0x68, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x53, 0x63, 0x6f, 0x70, 0x65, 0x12, 0x22, 0x2e, - 0x74, 0x65, 0x73, 0x74, 0x2e, 0x49, 0x6e, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x4d, 0x65, 0x74, 0x68, - 0x6f, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x57, 0x69, 0x74, 0x68, 0x52, 0x65, 0x70, - 0x6f, 0x1a, 0x1b, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x49, 0x6e, 0x76, 0x61, 0x6c, 0x69, 0x64, - 0x4d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x08, - 0xfa, 0x97, 0x28, 0x04, 0x08, 0x03, 0x10, 0x02, 0x42, 0x44, 0x5a, 0x42, 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, 0x74, 0x6f, 0x6f, 0x6c, 0x73, 0x2f, 0x70, - 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x2d, 0x67, 0x65, 0x6e, 0x2d, 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, - 0x2d, 0x6c, 0x69, 0x6e, 0x74, 0x2f, 0x74, 0x65, 0x73, 0x74, 0x64, 0x61, 0x74, 0x61, 0x62, 0x06, - 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, -} - -var ( - file_protoc_gen_gitaly_lint_testdata_invalid_proto_rawDescOnce sync.Once - file_protoc_gen_gitaly_lint_testdata_invalid_proto_rawDescData = file_protoc_gen_gitaly_lint_testdata_invalid_proto_rawDesc -) - -func file_protoc_gen_gitaly_lint_testdata_invalid_proto_rawDescGZIP() []byte { - file_protoc_gen_gitaly_lint_testdata_invalid_proto_rawDescOnce.Do(func() { - file_protoc_gen_gitaly_lint_testdata_invalid_proto_rawDescData = protoimpl.X.CompressGZIP(file_protoc_gen_gitaly_lint_testdata_invalid_proto_rawDescData) - }) - return file_protoc_gen_gitaly_lint_testdata_invalid_proto_rawDescData -} - -var file_protoc_gen_gitaly_lint_testdata_invalid_proto_msgTypes = make([]protoimpl.MessageInfo, 15) -var file_protoc_gen_gitaly_lint_testdata_invalid_proto_goTypes = []interface{}{ - (*InvalidMethodRequest)(nil), // 0: test.InvalidMethodRequest - (*InvalidMethodRequestWithRepo)(nil), // 1: test.InvalidMethodRequestWithRepo - (*InvalidTargetType)(nil), // 2: test.InvalidTargetType - (*InvalidMethodResponse)(nil), // 3: test.InvalidMethodResponse - (*InvalidNestedRequest)(nil), // 4: test.InvalidNestedRequest - (*RequestWithStorage)(nil), // 5: test.RequestWithStorage - (*RequestWithStorageAndRepo)(nil), // 6: test.RequestWithStorageAndRepo - (*RequestWithNestedStorageAndRepo)(nil), // 7: test.RequestWithNestedStorageAndRepo - (*RequestWithMultipleNestedStorage)(nil), // 8: test.RequestWithMultipleNestedStorage - (*RequestWithInnerNestedStorage)(nil), // 9: test.RequestWithInnerNestedStorage - (*RequestWithWrongTypeRepository)(nil), // 10: test.RequestWithWrongTypeRepository - (*RequestWithNestedRepoNotFlagged)(nil), // 11: test.RequestWithNestedRepoNotFlagged - (*RequestWithInnerNestedStorage_Header)(nil), // 12: test.RequestWithInnerNestedStorage.Header - (*RequestWithWrongTypeRepository_Header)(nil), // 13: test.RequestWithWrongTypeRepository.Header - (*RequestWithNestedRepoNotFlagged_Header)(nil), // 14: test.RequestWithNestedRepoNotFlagged.Header - (*gitalypb.Repository)(nil), // 15: gitaly.Repository -} -var file_protoc_gen_gitaly_lint_testdata_invalid_proto_depIdxs = []int32{ - 15, // 0: test.InvalidMethodRequestWithRepo.destination:type_name -> gitaly.Repository - 2, // 1: test.InvalidNestedRequest.inner_message:type_name -> test.InvalidTargetType - 15, // 2: test.RequestWithStorage.destination:type_name -> gitaly.Repository - 15, // 3: test.RequestWithStorageAndRepo.destination:type_name -> gitaly.Repository - 6, // 4: test.RequestWithNestedStorageAndRepo.inner_message:type_name -> test.RequestWithStorageAndRepo - 5, // 5: test.RequestWithMultipleNestedStorage.inner_message:type_name -> test.RequestWithStorage - 12, // 6: test.RequestWithInnerNestedStorage.header:type_name -> test.RequestWithInnerNestedStorage.Header - 13, // 7: test.RequestWithWrongTypeRepository.header:type_name -> test.RequestWithWrongTypeRepository.Header - 14, // 8: test.RequestWithNestedRepoNotFlagged.header:type_name -> test.RequestWithNestedRepoNotFlagged.Header - 3, // 9: test.RequestWithWrongTypeRepository.Header.repository:type_name -> test.InvalidMethodResponse - 15, // 10: test.RequestWithNestedRepoNotFlagged.Header.repository:type_name -> gitaly.Repository - 0, // 11: test.InterceptedWithOperationType.InvalidMethod:input_type -> test.InvalidMethodRequest - 0, // 12: test.InvalidService.InvalidMethod0:input_type -> test.InvalidMethodRequest - 0, // 13: test.InvalidService.InvalidMethod1:input_type -> test.InvalidMethodRequest - 0, // 14: test.InvalidService.InvalidMethod2:input_type -> test.InvalidMethodRequest - 0, // 15: test.InvalidService.InvalidMethod4:input_type -> test.InvalidMethodRequest - 10, // 16: test.InvalidService.InvalidMethod5:input_type -> test.RequestWithWrongTypeRepository - 11, // 17: test.InvalidService.InvalidMethod6:input_type -> test.RequestWithNestedRepoNotFlagged - 2, // 18: test.InvalidService.InvalidMethod7:input_type -> test.InvalidTargetType - 4, // 19: test.InvalidService.InvalidMethod8:input_type -> test.InvalidNestedRequest - 1, // 20: test.InvalidService.InvalidMethod9:input_type -> test.InvalidMethodRequestWithRepo - 6, // 21: test.InvalidService.InvalidMethod10:input_type -> test.RequestWithStorageAndRepo - 7, // 22: test.InvalidService.InvalidMethod11:input_type -> test.RequestWithNestedStorageAndRepo - 2, // 23: test.InvalidService.InvalidMethod13:input_type -> test.InvalidTargetType - 8, // 24: test.InvalidService.InvalidMethod14:input_type -> test.RequestWithMultipleNestedStorage - 6, // 25: test.InvalidService.InvalidMethod15:input_type -> test.RequestWithStorageAndRepo - 0, // 26: test.InvalidService.MaintenanceWithMissingRepository:input_type -> test.InvalidMethodRequest - 11, // 27: test.InvalidService.MaintenanceWithUnflaggedRepository:input_type -> test.RequestWithNestedRepoNotFlagged - 10, // 28: test.InvalidService.MaintenanceWithWrongNestedRepositoryType:input_type -> test.RequestWithWrongTypeRepository - 2, // 29: test.InvalidService.MaintenanceWithInvalidTargetType:input_type -> test.InvalidTargetType - 4, // 30: test.InvalidService.MaintenanceWithInvalidNestedRequest:input_type -> test.InvalidNestedRequest - 6, // 31: test.InvalidService.MaintenanceWithStorageAndRepository:input_type -> test.RequestWithStorageAndRepo - 7, // 32: test.InvalidService.MaintenanceWithNestedStorageAndRepository:input_type -> test.RequestWithNestedStorageAndRepo - 1, // 33: test.InvalidService.MaintenanceWithStorageScope:input_type -> test.InvalidMethodRequestWithRepo - 3, // 34: test.InterceptedWithOperationType.InvalidMethod:output_type -> test.InvalidMethodResponse - 3, // 35: test.InvalidService.InvalidMethod0:output_type -> test.InvalidMethodResponse - 3, // 36: test.InvalidService.InvalidMethod1:output_type -> test.InvalidMethodResponse - 3, // 37: test.InvalidService.InvalidMethod2:output_type -> test.InvalidMethodResponse - 3, // 38: test.InvalidService.InvalidMethod4:output_type -> test.InvalidMethodResponse - 3, // 39: test.InvalidService.InvalidMethod5:output_type -> test.InvalidMethodResponse - 3, // 40: test.InvalidService.InvalidMethod6:output_type -> test.InvalidMethodResponse - 3, // 41: test.InvalidService.InvalidMethod7:output_type -> test.InvalidMethodResponse - 3, // 42: test.InvalidService.InvalidMethod8:output_type -> test.InvalidMethodResponse - 3, // 43: test.InvalidService.InvalidMethod9:output_type -> test.InvalidMethodResponse - 3, // 44: test.InvalidService.InvalidMethod10:output_type -> test.InvalidMethodResponse - 3, // 45: test.InvalidService.InvalidMethod11:output_type -> test.InvalidMethodResponse - 3, // 46: test.InvalidService.InvalidMethod13:output_type -> test.InvalidMethodResponse - 3, // 47: test.InvalidService.InvalidMethod14:output_type -> test.InvalidMethodResponse - 3, // 48: test.InvalidService.InvalidMethod15:output_type -> test.InvalidMethodResponse - 3, // 49: test.InvalidService.MaintenanceWithMissingRepository:output_type -> test.InvalidMethodResponse - 3, // 50: test.InvalidService.MaintenanceWithUnflaggedRepository:output_type -> test.InvalidMethodResponse - 3, // 51: test.InvalidService.MaintenanceWithWrongNestedRepositoryType:output_type -> test.InvalidMethodResponse - 3, // 52: test.InvalidService.MaintenanceWithInvalidTargetType:output_type -> test.InvalidMethodResponse - 3, // 53: test.InvalidService.MaintenanceWithInvalidNestedRequest:output_type -> test.InvalidMethodResponse - 3, // 54: test.InvalidService.MaintenanceWithStorageAndRepository:output_type -> test.InvalidMethodResponse - 3, // 55: test.InvalidService.MaintenanceWithNestedStorageAndRepository:output_type -> test.InvalidMethodResponse - 3, // 56: test.InvalidService.MaintenanceWithStorageScope:output_type -> test.InvalidMethodResponse - 34, // [34:57] is the sub-list for method output_type - 11, // [11:34] is the sub-list for method input_type - 11, // [11:11] is the sub-list for extension type_name - 11, // [11:11] is the sub-list for extension extendee - 0, // [0:11] is the sub-list for field type_name -} - -func init() { file_protoc_gen_gitaly_lint_testdata_invalid_proto_init() } -func file_protoc_gen_gitaly_lint_testdata_invalid_proto_init() { - if File_protoc_gen_gitaly_lint_testdata_invalid_proto != nil { - return - } - if !protoimpl.UnsafeEnabled { - file_protoc_gen_gitaly_lint_testdata_invalid_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*InvalidMethodRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_protoc_gen_gitaly_lint_testdata_invalid_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*InvalidMethodRequestWithRepo); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_protoc_gen_gitaly_lint_testdata_invalid_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*InvalidTargetType); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_protoc_gen_gitaly_lint_testdata_invalid_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*InvalidMethodResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_protoc_gen_gitaly_lint_testdata_invalid_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*InvalidNestedRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_protoc_gen_gitaly_lint_testdata_invalid_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*RequestWithStorage); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_protoc_gen_gitaly_lint_testdata_invalid_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*RequestWithStorageAndRepo); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_protoc_gen_gitaly_lint_testdata_invalid_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*RequestWithNestedStorageAndRepo); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_protoc_gen_gitaly_lint_testdata_invalid_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*RequestWithMultipleNestedStorage); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_protoc_gen_gitaly_lint_testdata_invalid_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*RequestWithInnerNestedStorage); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_protoc_gen_gitaly_lint_testdata_invalid_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*RequestWithWrongTypeRepository); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_protoc_gen_gitaly_lint_testdata_invalid_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*RequestWithNestedRepoNotFlagged); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_protoc_gen_gitaly_lint_testdata_invalid_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*RequestWithInnerNestedStorage_Header); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_protoc_gen_gitaly_lint_testdata_invalid_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*RequestWithWrongTypeRepository_Header); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_protoc_gen_gitaly_lint_testdata_invalid_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*RequestWithNestedRepoNotFlagged_Header); 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{ - File: protoimpl.DescBuilder{ - GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_protoc_gen_gitaly_lint_testdata_invalid_proto_rawDesc, - NumEnums: 0, - NumMessages: 15, - NumExtensions: 0, - NumServices: 2, - }, - GoTypes: file_protoc_gen_gitaly_lint_testdata_invalid_proto_goTypes, - DependencyIndexes: file_protoc_gen_gitaly_lint_testdata_invalid_proto_depIdxs, - MessageInfos: file_protoc_gen_gitaly_lint_testdata_invalid_proto_msgTypes, - }.Build() - File_protoc_gen_gitaly_lint_testdata_invalid_proto = out.File - file_protoc_gen_gitaly_lint_testdata_invalid_proto_rawDesc = nil - file_protoc_gen_gitaly_lint_testdata_invalid_proto_goTypes = nil - file_protoc_gen_gitaly_lint_testdata_invalid_proto_depIdxs = nil -} diff --git a/tools/protoc-gen-gitaly-lint/testdata/valid.pb.go b/tools/protoc-gen-gitaly-lint/testdata/valid.pb.go deleted file mode 100644 index b23746876..000000000 --- a/tools/protoc-gen-gitaly-lint/testdata/valid.pb.go +++ /dev/null @@ -1,890 +0,0 @@ -// Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.28.1 -// protoc v3.21.7 -// source: protoc-gen-gitaly-lint/testdata/valid.proto - -package testdata - -import ( - gitalypb "gitlab.com/gitlab-org/gitaly/v15/proto/go/gitalypb" - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - reflect "reflect" - sync "sync" -) - -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 ValidRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Destination *gitalypb.Repository `protobuf:"bytes,1,opt,name=destination,proto3" json:"destination,omitempty"` -} - -func (x *ValidRequest) Reset() { - *x = ValidRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_protoc_gen_gitaly_lint_testdata_valid_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ValidRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ValidRequest) ProtoMessage() {} - -func (x *ValidRequest) ProtoReflect() protoreflect.Message { - mi := &file_protoc_gen_gitaly_lint_testdata_valid_proto_msgTypes[0] - 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 ValidRequest.ProtoReflect.Descriptor instead. -func (*ValidRequest) Descriptor() ([]byte, []int) { - return file_protoc_gen_gitaly_lint_testdata_valid_proto_rawDescGZIP(), []int{0} -} - -func (x *ValidRequest) GetDestination() *gitalypb.Repository { - if x != nil { - return x.Destination - } - return nil -} - -type ValidRequestWithoutRepo struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields -} - -func (x *ValidRequestWithoutRepo) Reset() { - *x = ValidRequestWithoutRepo{} - if protoimpl.UnsafeEnabled { - mi := &file_protoc_gen_gitaly_lint_testdata_valid_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ValidRequestWithoutRepo) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ValidRequestWithoutRepo) ProtoMessage() {} - -func (x *ValidRequestWithoutRepo) ProtoReflect() protoreflect.Message { - mi := &file_protoc_gen_gitaly_lint_testdata_valid_proto_msgTypes[1] - 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 ValidRequestWithoutRepo.ProtoReflect.Descriptor instead. -func (*ValidRequestWithoutRepo) Descriptor() ([]byte, []int) { - return file_protoc_gen_gitaly_lint_testdata_valid_proto_rawDescGZIP(), []int{1} -} - -type ValidStorageRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - StorageName string `protobuf:"bytes,1,opt,name=storage_name,json=storageName,proto3" json:"storage_name,omitempty"` -} - -func (x *ValidStorageRequest) Reset() { - *x = ValidStorageRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_protoc_gen_gitaly_lint_testdata_valid_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ValidStorageRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ValidStorageRequest) ProtoMessage() {} - -func (x *ValidStorageRequest) ProtoReflect() protoreflect.Message { - mi := &file_protoc_gen_gitaly_lint_testdata_valid_proto_msgTypes[2] - 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 ValidStorageRequest.ProtoReflect.Descriptor instead. -func (*ValidStorageRequest) Descriptor() ([]byte, []int) { - return file_protoc_gen_gitaly_lint_testdata_valid_proto_rawDescGZIP(), []int{2} -} - -func (x *ValidStorageRequest) GetStorageName() string { - if x != nil { - return x.StorageName - } - return "" -} - -type ValidResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields -} - -func (x *ValidResponse) Reset() { - *x = ValidResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_protoc_gen_gitaly_lint_testdata_valid_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ValidResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ValidResponse) ProtoMessage() {} - -func (x *ValidResponse) ProtoReflect() protoreflect.Message { - mi := &file_protoc_gen_gitaly_lint_testdata_valid_proto_msgTypes[3] - 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 ValidResponse.ProtoReflect.Descriptor instead. -func (*ValidResponse) Descriptor() ([]byte, []int) { - return file_protoc_gen_gitaly_lint_testdata_valid_proto_rawDescGZIP(), []int{3} -} - -type ValidNestedRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - InnerMessage *ValidRequest `protobuf:"bytes,1,opt,name=inner_message,json=innerMessage,proto3" json:"inner_message,omitempty"` -} - -func (x *ValidNestedRequest) Reset() { - *x = ValidNestedRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_protoc_gen_gitaly_lint_testdata_valid_proto_msgTypes[4] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ValidNestedRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ValidNestedRequest) ProtoMessage() {} - -func (x *ValidNestedRequest) ProtoReflect() protoreflect.Message { - mi := &file_protoc_gen_gitaly_lint_testdata_valid_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 ValidNestedRequest.ProtoReflect.Descriptor instead. -func (*ValidNestedRequest) Descriptor() ([]byte, []int) { - return file_protoc_gen_gitaly_lint_testdata_valid_proto_rawDescGZIP(), []int{4} -} - -func (x *ValidNestedRequest) GetInnerMessage() *ValidRequest { - if x != nil { - return x.InnerMessage - } - return nil -} - -type ValidStorageNestedRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - InnerMessage *ValidStorageRequest `protobuf:"bytes,1,opt,name=inner_message,json=innerMessage,proto3" json:"inner_message,omitempty"` -} - -func (x *ValidStorageNestedRequest) Reset() { - *x = ValidStorageNestedRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_protoc_gen_gitaly_lint_testdata_valid_proto_msgTypes[5] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ValidStorageNestedRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ValidStorageNestedRequest) ProtoMessage() {} - -func (x *ValidStorageNestedRequest) ProtoReflect() protoreflect.Message { - mi := &file_protoc_gen_gitaly_lint_testdata_valid_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 ValidStorageNestedRequest.ProtoReflect.Descriptor instead. -func (*ValidStorageNestedRequest) Descriptor() ([]byte, []int) { - return file_protoc_gen_gitaly_lint_testdata_valid_proto_rawDescGZIP(), []int{5} -} - -func (x *ValidStorageNestedRequest) GetInnerMessage() *ValidStorageRequest { - if x != nil { - return x.InnerMessage - } - return nil -} - -type ValidNestedSharedRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - NestedTargetRepo *gitalypb.ObjectPool `protobuf:"bytes,1,opt,name=nested_target_repo,json=nestedTargetRepo,proto3" json:"nested_target_repo,omitempty"` -} - -func (x *ValidNestedSharedRequest) Reset() { - *x = ValidNestedSharedRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_protoc_gen_gitaly_lint_testdata_valid_proto_msgTypes[6] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ValidNestedSharedRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ValidNestedSharedRequest) ProtoMessage() {} - -func (x *ValidNestedSharedRequest) ProtoReflect() protoreflect.Message { - mi := &file_protoc_gen_gitaly_lint_testdata_valid_proto_msgTypes[6] - 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 ValidNestedSharedRequest.ProtoReflect.Descriptor instead. -func (*ValidNestedSharedRequest) Descriptor() ([]byte, []int) { - return file_protoc_gen_gitaly_lint_testdata_valid_proto_rawDescGZIP(), []int{6} -} - -func (x *ValidNestedSharedRequest) GetNestedTargetRepo() *gitalypb.ObjectPool { - if x != nil { - return x.NestedTargetRepo - } - return nil -} - -type ValidInnerNestedRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Header *ValidInnerNestedRequest_Header `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` -} - -func (x *ValidInnerNestedRequest) Reset() { - *x = ValidInnerNestedRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_protoc_gen_gitaly_lint_testdata_valid_proto_msgTypes[7] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ValidInnerNestedRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ValidInnerNestedRequest) ProtoMessage() {} - -func (x *ValidInnerNestedRequest) ProtoReflect() protoreflect.Message { - mi := &file_protoc_gen_gitaly_lint_testdata_valid_proto_msgTypes[7] - 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 ValidInnerNestedRequest.ProtoReflect.Descriptor instead. -func (*ValidInnerNestedRequest) Descriptor() ([]byte, []int) { - return file_protoc_gen_gitaly_lint_testdata_valid_proto_rawDescGZIP(), []int{7} -} - -func (x *ValidInnerNestedRequest) GetHeader() *ValidInnerNestedRequest_Header { - if x != nil { - return x.Header - } - return nil -} - -type ValidStorageInnerNestedRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Header *ValidStorageInnerNestedRequest_Header `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` -} - -func (x *ValidStorageInnerNestedRequest) Reset() { - *x = ValidStorageInnerNestedRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_protoc_gen_gitaly_lint_testdata_valid_proto_msgTypes[8] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ValidStorageInnerNestedRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ValidStorageInnerNestedRequest) ProtoMessage() {} - -func (x *ValidStorageInnerNestedRequest) ProtoReflect() protoreflect.Message { - mi := &file_protoc_gen_gitaly_lint_testdata_valid_proto_msgTypes[8] - 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 ValidStorageInnerNestedRequest.ProtoReflect.Descriptor instead. -func (*ValidStorageInnerNestedRequest) Descriptor() ([]byte, []int) { - return file_protoc_gen_gitaly_lint_testdata_valid_proto_rawDescGZIP(), []int{8} -} - -func (x *ValidStorageInnerNestedRequest) GetHeader() *ValidStorageInnerNestedRequest_Header { - if x != nil { - return x.Header - } - return nil -} - -type ValidInnerNestedRequest_Header struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Destination *gitalypb.Repository `protobuf:"bytes,1,opt,name=destination,proto3" json:"destination,omitempty"` -} - -func (x *ValidInnerNestedRequest_Header) Reset() { - *x = ValidInnerNestedRequest_Header{} - if protoimpl.UnsafeEnabled { - mi := &file_protoc_gen_gitaly_lint_testdata_valid_proto_msgTypes[9] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ValidInnerNestedRequest_Header) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ValidInnerNestedRequest_Header) ProtoMessage() {} - -func (x *ValidInnerNestedRequest_Header) ProtoReflect() protoreflect.Message { - mi := &file_protoc_gen_gitaly_lint_testdata_valid_proto_msgTypes[9] - 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 ValidInnerNestedRequest_Header.ProtoReflect.Descriptor instead. -func (*ValidInnerNestedRequest_Header) Descriptor() ([]byte, []int) { - return file_protoc_gen_gitaly_lint_testdata_valid_proto_rawDescGZIP(), []int{7, 0} -} - -func (x *ValidInnerNestedRequest_Header) GetDestination() *gitalypb.Repository { - if x != nil { - return x.Destination - } - return nil -} - -type ValidStorageInnerNestedRequest_Header struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - StorageName string `protobuf:"bytes,1,opt,name=storage_name,json=storageName,proto3" json:"storage_name,omitempty"` -} - -func (x *ValidStorageInnerNestedRequest_Header) Reset() { - *x = ValidStorageInnerNestedRequest_Header{} - if protoimpl.UnsafeEnabled { - mi := &file_protoc_gen_gitaly_lint_testdata_valid_proto_msgTypes[10] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ValidStorageInnerNestedRequest_Header) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ValidStorageInnerNestedRequest_Header) ProtoMessage() {} - -func (x *ValidStorageInnerNestedRequest_Header) ProtoReflect() protoreflect.Message { - mi := &file_protoc_gen_gitaly_lint_testdata_valid_proto_msgTypes[10] - 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 ValidStorageInnerNestedRequest_Header.ProtoReflect.Descriptor instead. -func (*ValidStorageInnerNestedRequest_Header) Descriptor() ([]byte, []int) { - return file_protoc_gen_gitaly_lint_testdata_valid_proto_rawDescGZIP(), []int{8, 0} -} - -func (x *ValidStorageInnerNestedRequest_Header) GetStorageName() string { - if x != nil { - return x.StorageName - } - return "" -} - -var File_protoc_gen_gitaly_lint_testdata_valid_proto protoreflect.FileDescriptor - -var file_protoc_gen_gitaly_lint_testdata_valid_proto_rawDesc = []byte{ - 0x0a, 0x2b, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x2d, 0x67, 0x65, 0x6e, 0x2d, 0x67, 0x69, 0x74, - 0x61, 0x6c, 0x79, 0x2d, 0x6c, 0x69, 0x6e, 0x74, 0x2f, 0x74, 0x65, 0x73, 0x74, 0x64, 0x61, 0x74, - 0x61, 0x2f, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x04, 0x74, - 0x65, 0x73, 0x74, 0x1a, 0x0a, 0x6c, 0x69, 0x6e, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, - 0x0c, 0x73, 0x68, 0x61, 0x72, 0x65, 0x64, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x4a, 0x0a, - 0x0c, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x3a, 0x0a, - 0x0b, 0x64, 0x65, 0x73, 0x74, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 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, 0x0b, 0x64, 0x65, - 0x73, 0x74, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x19, 0x0a, 0x17, 0x56, 0x61, 0x6c, - 0x69, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x57, 0x69, 0x74, 0x68, 0x6f, 0x75, 0x74, - 0x52, 0x65, 0x70, 0x6f, 0x22, 0x3e, 0x0a, 0x13, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x53, 0x74, 0x6f, - 0x72, 0x61, 0x67, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x27, 0x0a, 0x0c, 0x73, - 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x09, 0x42, 0x04, 0x88, 0xc6, 0x2c, 0x01, 0x52, 0x0b, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, - 0x4e, 0x61, 0x6d, 0x65, 0x22, 0x0f, 0x0a, 0x0d, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x52, 0x65, 0x73, - 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x4d, 0x0a, 0x12, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x4e, 0x65, - 0x73, 0x74, 0x65, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x37, 0x0a, 0x0d, 0x69, - 0x6e, 0x6e, 0x65, 0x72, 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x52, - 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x52, 0x0c, 0x69, 0x6e, 0x6e, 0x65, 0x72, 0x4d, 0x65, 0x73, - 0x73, 0x61, 0x67, 0x65, 0x22, 0x5b, 0x0a, 0x19, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x53, 0x74, 0x6f, - 0x72, 0x61, 0x67, 0x65, 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x12, 0x3e, 0x0a, 0x0d, 0x69, 0x6e, 0x6e, 0x65, 0x72, 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61, - 0x67, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x2e, - 0x56, 0x61, 0x6c, 0x69, 0x64, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x52, 0x65, 0x71, 0x75, - 0x65, 0x73, 0x74, 0x52, 0x0c, 0x69, 0x6e, 0x6e, 0x65, 0x72, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, - 0x65, 0x22, 0x62, 0x0a, 0x18, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64, - 0x53, 0x68, 0x61, 0x72, 0x65, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x46, 0x0a, - 0x12, 0x6e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x5f, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x5f, 0x72, - 0x65, 0x70, 0x6f, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x67, 0x69, 0x74, 0x61, - 0x6c, 0x79, 0x2e, 0x4f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x50, 0x6f, 0x6f, 0x6c, 0x42, 0x04, 0x98, - 0xc6, 0x2c, 0x01, 0x52, 0x10, 0x6e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x54, 0x61, 0x72, 0x67, 0x65, - 0x74, 0x52, 0x65, 0x70, 0x6f, 0x22, 0x9d, 0x01, 0x0a, 0x17, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x49, - 0x6e, 0x6e, 0x65, 0x72, 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x12, 0x3c, 0x0a, 0x06, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x0b, 0x32, 0x24, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x49, 0x6e, - 0x6e, 0x65, 0x72, 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, - 0x2e, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x52, 0x06, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x1a, - 0x44, 0x0a, 0x06, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x12, 0x3a, 0x0a, 0x0b, 0x64, 0x65, 0x73, - 0x74, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 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, 0x0b, 0x64, 0x65, 0x73, 0x74, 0x69, 0x6e, - 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x98, 0x01, 0x0a, 0x1e, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x53, - 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x49, 0x6e, 0x6e, 0x65, 0x72, 0x4e, 0x65, 0x73, 0x74, 0x65, - 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x43, 0x0a, 0x06, 0x68, 0x65, 0x61, 0x64, - 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2b, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x2e, - 0x56, 0x61, 0x6c, 0x69, 0x64, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x49, 0x6e, 0x6e, 0x65, - 0x72, 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x2e, 0x48, - 0x65, 0x61, 0x64, 0x65, 0x72, 0x52, 0x06, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x1a, 0x31, 0x0a, - 0x06, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x12, 0x27, 0x0a, 0x0c, 0x73, 0x74, 0x6f, 0x72, 0x61, - 0x67, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x04, 0x88, - 0xc6, 0x2c, 0x01, 0x52, 0x0b, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x4e, 0x61, 0x6d, 0x65, - 0x32, 0x51, 0x0a, 0x12, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x63, 0x65, 0x70, 0x74, 0x65, 0x64, 0x53, - 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x35, 0x0a, 0x0a, 0x54, 0x65, 0x73, 0x74, 0x4d, 0x65, - 0x74, 0x68, 0x6f, 0x64, 0x12, 0x12, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x56, 0x61, 0x6c, 0x69, - 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x13, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x2e, - 0x56, 0x61, 0x6c, 0x69, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x1a, 0x04, 0xf0, - 0x97, 0x28, 0x01, 0x32, 0xc4, 0x08, 0x0a, 0x0c, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x53, 0x65, 0x72, - 0x76, 0x69, 0x63, 0x65, 0x12, 0x3d, 0x0a, 0x0a, 0x54, 0x65, 0x73, 0x74, 0x4d, 0x65, 0x74, 0x68, - 0x6f, 0x64, 0x12, 0x12, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x52, - 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x13, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x56, 0x61, - 0x6c, 0x69, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x06, 0xfa, 0x97, 0x28, - 0x02, 0x08, 0x02, 0x12, 0x3e, 0x0a, 0x0b, 0x54, 0x65, 0x73, 0x74, 0x4d, 0x65, 0x74, 0x68, 0x6f, - 0x64, 0x32, 0x12, 0x12, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x52, - 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x13, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x56, 0x61, - 0x6c, 0x69, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x06, 0xfa, 0x97, 0x28, - 0x02, 0x08, 0x01, 0x12, 0x3e, 0x0a, 0x0b, 0x54, 0x65, 0x73, 0x74, 0x4d, 0x65, 0x74, 0x68, 0x6f, - 0x64, 0x33, 0x12, 0x12, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x52, - 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x13, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x56, 0x61, - 0x6c, 0x69, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x06, 0xfa, 0x97, 0x28, - 0x02, 0x08, 0x01, 0x12, 0x44, 0x0a, 0x0b, 0x54, 0x65, 0x73, 0x74, 0x4d, 0x65, 0x74, 0x68, 0x6f, - 0x64, 0x35, 0x12, 0x18, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x4e, - 0x65, 0x73, 0x74, 0x65, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x13, 0x2e, 0x74, - 0x65, 0x73, 0x74, 0x2e, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, - 0x65, 0x22, 0x06, 0xfa, 0x97, 0x28, 0x02, 0x08, 0x01, 0x12, 0x4a, 0x0a, 0x0b, 0x54, 0x65, 0x73, - 0x74, 0x4d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x36, 0x12, 0x1e, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x2e, - 0x56, 0x61, 0x6c, 0x69, 0x64, 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x53, 0x68, 0x61, 0x72, 0x65, - 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x13, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x2e, - 0x56, 0x61, 0x6c, 0x69, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x06, 0xfa, - 0x97, 0x28, 0x02, 0x08, 0x01, 0x12, 0x49, 0x0a, 0x0b, 0x54, 0x65, 0x73, 0x74, 0x4d, 0x65, 0x74, - 0x68, 0x6f, 0x64, 0x37, 0x12, 0x1d, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x56, 0x61, 0x6c, 0x69, - 0x64, 0x49, 0x6e, 0x6e, 0x65, 0x72, 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x52, 0x65, 0x71, 0x75, - 0x65, 0x73, 0x74, 0x1a, 0x13, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x56, 0x61, 0x6c, 0x69, 0x64, - 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x06, 0xfa, 0x97, 0x28, 0x02, 0x08, 0x01, - 0x12, 0x47, 0x0a, 0x0b, 0x54, 0x65, 0x73, 0x74, 0x4d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x38, 0x12, - 0x19, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x53, 0x74, 0x6f, 0x72, - 0x61, 0x67, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x13, 0x2e, 0x74, 0x65, 0x73, - 0x74, 0x2e, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, - 0x08, 0xfa, 0x97, 0x28, 0x04, 0x08, 0x01, 0x10, 0x02, 0x12, 0x4d, 0x0a, 0x0b, 0x54, 0x65, 0x73, - 0x74, 0x4d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x39, 0x12, 0x1f, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x2e, - 0x56, 0x61, 0x6c, 0x69, 0x64, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x4e, 0x65, 0x73, 0x74, - 0x65, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x13, 0x2e, 0x74, 0x65, 0x73, 0x74, - 0x2e, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x08, - 0xfa, 0x97, 0x28, 0x04, 0x08, 0x01, 0x10, 0x02, 0x12, 0x44, 0x0a, 0x0c, 0x54, 0x65, 0x73, 0x74, - 0x4d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x31, 0x30, 0x12, 0x19, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x2e, - 0x56, 0x61, 0x6c, 0x69, 0x64, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x52, 0x65, 0x71, 0x75, - 0x65, 0x73, 0x74, 0x1a, 0x13, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x56, 0x61, 0x6c, 0x69, 0x64, - 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x04, 0x80, 0x98, 0x28, 0x01, 0x12, 0x42, - 0x0a, 0x0f, 0x54, 0x65, 0x73, 0x74, 0x4d, 0x61, 0x69, 0x6e, 0x74, 0x65, 0x6e, 0x61, 0x6e, 0x63, - 0x65, 0x12, 0x12, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x52, 0x65, - 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x13, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x56, 0x61, 0x6c, - 0x69, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x06, 0xfa, 0x97, 0x28, 0x02, - 0x08, 0x03, 0x12, 0x53, 0x0a, 0x20, 0x54, 0x65, 0x73, 0x74, 0x4d, 0x61, 0x69, 0x6e, 0x74, 0x65, - 0x6e, 0x61, 0x6e, 0x63, 0x65, 0x57, 0x69, 0x74, 0x68, 0x45, 0x78, 0x70, 0x6c, 0x69, 0x63, 0x69, - 0x74, 0x53, 0x63, 0x6f, 0x70, 0x65, 0x12, 0x12, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x56, 0x61, - 0x6c, 0x69, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x13, 0x2e, 0x74, 0x65, 0x73, - 0x74, 0x2e, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, - 0x06, 0xfa, 0x97, 0x28, 0x02, 0x08, 0x03, 0x12, 0x59, 0x0a, 0x20, 0x54, 0x65, 0x73, 0x74, 0x4d, - 0x61, 0x69, 0x6e, 0x74, 0x65, 0x6e, 0x61, 0x6e, 0x63, 0x65, 0x57, 0x69, 0x74, 0x68, 0x4e, 0x65, - 0x73, 0x74, 0x65, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x18, 0x2e, 0x74, 0x65, - 0x73, 0x74, 0x2e, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x52, 0x65, - 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x13, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x56, 0x61, 0x6c, - 0x69, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x06, 0xfa, 0x97, 0x28, 0x02, - 0x08, 0x03, 0x12, 0x65, 0x0a, 0x26, 0x54, 0x65, 0x73, 0x74, 0x4d, 0x61, 0x69, 0x6e, 0x74, 0x65, - 0x6e, 0x61, 0x6e, 0x63, 0x65, 0x57, 0x69, 0x74, 0x68, 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x53, - 0x68, 0x61, 0x72, 0x65, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1e, 0x2e, 0x74, - 0x65, 0x73, 0x74, 0x2e, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x53, - 0x68, 0x61, 0x72, 0x65, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x13, 0x2e, 0x74, - 0x65, 0x73, 0x74, 0x2e, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, - 0x65, 0x22, 0x06, 0xfa, 0x97, 0x28, 0x02, 0x08, 0x03, 0x12, 0x5f, 0x0a, 0x21, 0x54, 0x65, 0x73, - 0x74, 0x4d, 0x75, 0x74, 0x61, 0x74, 0x6f, 0x72, 0x57, 0x69, 0x74, 0x68, 0x49, 0x6e, 0x6e, 0x65, - 0x72, 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1d, - 0x2e, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x49, 0x6e, 0x6e, 0x65, 0x72, - 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x13, 0x2e, - 0x74, 0x65, 0x73, 0x74, 0x2e, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, - 0x73, 0x65, 0x22, 0x06, 0xfa, 0x97, 0x28, 0x02, 0x08, 0x03, 0x42, 0x48, 0x5a, 0x46, 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, 0x35, 0x2f, 0x74, - 0x6f, 0x6f, 0x6c, 0x73, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x2d, 0x67, 0x65, 0x6e, 0x2d, - 0x67, 0x69, 0x74, 0x61, 0x6c, 0x79, 0x2d, 0x6c, 0x69, 0x6e, 0x74, 0x2f, 0x74, 0x65, 0x73, 0x74, - 0x64, 0x61, 0x74, 0x61, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, -} - -var ( - file_protoc_gen_gitaly_lint_testdata_valid_proto_rawDescOnce sync.Once - file_protoc_gen_gitaly_lint_testdata_valid_proto_rawDescData = file_protoc_gen_gitaly_lint_testdata_valid_proto_rawDesc -) - -func file_protoc_gen_gitaly_lint_testdata_valid_proto_rawDescGZIP() []byte { - file_protoc_gen_gitaly_lint_testdata_valid_proto_rawDescOnce.Do(func() { - file_protoc_gen_gitaly_lint_testdata_valid_proto_rawDescData = protoimpl.X.CompressGZIP(file_protoc_gen_gitaly_lint_testdata_valid_proto_rawDescData) - }) - return file_protoc_gen_gitaly_lint_testdata_valid_proto_rawDescData -} - -var file_protoc_gen_gitaly_lint_testdata_valid_proto_msgTypes = make([]protoimpl.MessageInfo, 11) -var file_protoc_gen_gitaly_lint_testdata_valid_proto_goTypes = []interface{}{ - (*ValidRequest)(nil), // 0: test.ValidRequest - (*ValidRequestWithoutRepo)(nil), // 1: test.ValidRequestWithoutRepo - (*ValidStorageRequest)(nil), // 2: test.ValidStorageRequest - (*ValidResponse)(nil), // 3: test.ValidResponse - (*ValidNestedRequest)(nil), // 4: test.ValidNestedRequest - (*ValidStorageNestedRequest)(nil), // 5: test.ValidStorageNestedRequest - (*ValidNestedSharedRequest)(nil), // 6: test.ValidNestedSharedRequest - (*ValidInnerNestedRequest)(nil), // 7: test.ValidInnerNestedRequest - (*ValidStorageInnerNestedRequest)(nil), // 8: test.ValidStorageInnerNestedRequest - (*ValidInnerNestedRequest_Header)(nil), // 9: test.ValidInnerNestedRequest.Header - (*ValidStorageInnerNestedRequest_Header)(nil), // 10: test.ValidStorageInnerNestedRequest.Header - (*gitalypb.Repository)(nil), // 11: gitaly.Repository - (*gitalypb.ObjectPool)(nil), // 12: gitaly.ObjectPool -} -var file_protoc_gen_gitaly_lint_testdata_valid_proto_depIdxs = []int32{ - 11, // 0: test.ValidRequest.destination:type_name -> gitaly.Repository - 0, // 1: test.ValidNestedRequest.inner_message:type_name -> test.ValidRequest - 2, // 2: test.ValidStorageNestedRequest.inner_message:type_name -> test.ValidStorageRequest - 12, // 3: test.ValidNestedSharedRequest.nested_target_repo:type_name -> gitaly.ObjectPool - 9, // 4: test.ValidInnerNestedRequest.header:type_name -> test.ValidInnerNestedRequest.Header - 10, // 5: test.ValidStorageInnerNestedRequest.header:type_name -> test.ValidStorageInnerNestedRequest.Header - 11, // 6: test.ValidInnerNestedRequest.Header.destination:type_name -> gitaly.Repository - 0, // 7: test.InterceptedService.TestMethod:input_type -> test.ValidRequest - 0, // 8: test.ValidService.TestMethod:input_type -> test.ValidRequest - 0, // 9: test.ValidService.TestMethod2:input_type -> test.ValidRequest - 0, // 10: test.ValidService.TestMethod3:input_type -> test.ValidRequest - 4, // 11: test.ValidService.TestMethod5:input_type -> test.ValidNestedRequest - 6, // 12: test.ValidService.TestMethod6:input_type -> test.ValidNestedSharedRequest - 7, // 13: test.ValidService.TestMethod7:input_type -> test.ValidInnerNestedRequest - 2, // 14: test.ValidService.TestMethod8:input_type -> test.ValidStorageRequest - 5, // 15: test.ValidService.TestMethod9:input_type -> test.ValidStorageNestedRequest - 2, // 16: test.ValidService.TestMethod10:input_type -> test.ValidStorageRequest - 0, // 17: test.ValidService.TestMaintenance:input_type -> test.ValidRequest - 0, // 18: test.ValidService.TestMaintenanceWithExplicitScope:input_type -> test.ValidRequest - 4, // 19: test.ValidService.TestMaintenanceWithNestedRequest:input_type -> test.ValidNestedRequest - 6, // 20: test.ValidService.TestMaintenanceWithNestedSharedRequest:input_type -> test.ValidNestedSharedRequest - 7, // 21: test.ValidService.TestMutatorWithInnerNestedRequest:input_type -> test.ValidInnerNestedRequest - 3, // 22: test.InterceptedService.TestMethod:output_type -> test.ValidResponse - 3, // 23: test.ValidService.TestMethod:output_type -> test.ValidResponse - 3, // 24: test.ValidService.TestMethod2:output_type -> test.ValidResponse - 3, // 25: test.ValidService.TestMethod3:output_type -> test.ValidResponse - 3, // 26: test.ValidService.TestMethod5:output_type -> test.ValidResponse - 3, // 27: test.ValidService.TestMethod6:output_type -> test.ValidResponse - 3, // 28: test.ValidService.TestMethod7:output_type -> test.ValidResponse - 3, // 29: test.ValidService.TestMethod8:output_type -> test.ValidResponse - 3, // 30: test.ValidService.TestMethod9:output_type -> test.ValidResponse - 3, // 31: test.ValidService.TestMethod10:output_type -> test.ValidResponse - 3, // 32: test.ValidService.TestMaintenance:output_type -> test.ValidResponse - 3, // 33: test.ValidService.TestMaintenanceWithExplicitScope:output_type -> test.ValidResponse - 3, // 34: test.ValidService.TestMaintenanceWithNestedRequest:output_type -> test.ValidResponse - 3, // 35: test.ValidService.TestMaintenanceWithNestedSharedRequest:output_type -> test.ValidResponse - 3, // 36: test.ValidService.TestMutatorWithInnerNestedRequest:output_type -> test.ValidResponse - 22, // [22:37] is the sub-list for method output_type - 7, // [7:22] is the sub-list for method input_type - 7, // [7:7] is the sub-list for extension type_name - 7, // [7:7] is the sub-list for extension extendee - 0, // [0:7] is the sub-list for field type_name -} - -func init() { file_protoc_gen_gitaly_lint_testdata_valid_proto_init() } -func file_protoc_gen_gitaly_lint_testdata_valid_proto_init() { - if File_protoc_gen_gitaly_lint_testdata_valid_proto != nil { - return - } - if !protoimpl.UnsafeEnabled { - file_protoc_gen_gitaly_lint_testdata_valid_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ValidRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_protoc_gen_gitaly_lint_testdata_valid_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ValidRequestWithoutRepo); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_protoc_gen_gitaly_lint_testdata_valid_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ValidStorageRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_protoc_gen_gitaly_lint_testdata_valid_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ValidResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_protoc_gen_gitaly_lint_testdata_valid_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ValidNestedRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_protoc_gen_gitaly_lint_testdata_valid_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ValidStorageNestedRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_protoc_gen_gitaly_lint_testdata_valid_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ValidNestedSharedRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_protoc_gen_gitaly_lint_testdata_valid_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ValidInnerNestedRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_protoc_gen_gitaly_lint_testdata_valid_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ValidStorageInnerNestedRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_protoc_gen_gitaly_lint_testdata_valid_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ValidInnerNestedRequest_Header); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_protoc_gen_gitaly_lint_testdata_valid_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ValidStorageInnerNestedRequest_Header); 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{ - File: protoimpl.DescBuilder{ - GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_protoc_gen_gitaly_lint_testdata_valid_proto_rawDesc, - NumEnums: 0, - NumMessages: 11, - NumExtensions: 0, - NumServices: 2, - }, - GoTypes: file_protoc_gen_gitaly_lint_testdata_valid_proto_goTypes, - DependencyIndexes: file_protoc_gen_gitaly_lint_testdata_valid_proto_depIdxs, - MessageInfos: file_protoc_gen_gitaly_lint_testdata_valid_proto_msgTypes, - }.Build() - File_protoc_gen_gitaly_lint_testdata_valid_proto = out.File - file_protoc_gen_gitaly_lint_testdata_valid_proto_rawDesc = nil - file_protoc_gen_gitaly_lint_testdata_valid_proto_goTypes = nil - file_protoc_gen_gitaly_lint_testdata_valid_proto_depIdxs = nil -} |