Skip to content

Git designed for AI agents.

6.4 KB
Raw Blame
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// 	protoc-gen-go v1.36.12
// 	protoc        v6.30.2
// source: proxy/policy/testdata/ambiguous.proto

package testdata

import (
	gitalypb "github.com/feder-cr/git-ai/proto/go/gitalypb"
	protoreflect "google.golang.org/protobuf/reflect/protoreflect"
	protoimpl "google.golang.org/protobuf/runtime/protoimpl"
	reflect "reflect"
	sync "sync"
	unsafe "unsafe"
)

const (
	// Verify that this generated code is sufficiently up-to-date.
	_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
	// Verify that runtime/protoimpl is sufficiently up-to-date.
	_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)

type NestedTarget struct {
	state         protoimpl.MessageState `protogen:"open.v1"`
	Repository    *gitalypb.Repository   `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

func (x *NestedTarget) Reset() {
	*x = NestedTarget{}
	mi := &file_proxy_policy_testdata_ambiguous_proto_msgTypes[0]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

func (x *NestedTarget) String() string {
	return protoimpl.X.MessageStringOf(x)
}

func (*NestedTarget) ProtoMessage() {}

func (x *NestedTarget) ProtoReflect() protoreflect.Message {
	mi := &file_proxy_policy_testdata_ambiguous_proto_msgTypes[0]
	if x != nil {
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
		if ms.LoadMessageInfo() == nil {
			ms.StoreMessageInfo(mi)
		}
		return ms
	}
	return mi.MessageOf(x)
}

// Deprecated: Use NestedTarget.ProtoReflect.Descriptor instead.
func (*NestedTarget) Descriptor() ([]byte, []int) {
	return file_proxy_policy_testdata_ambiguous_proto_rawDescGZIP(), []int{0}
}

func (x *NestedTarget) GetRepository() *gitalypb.Repository {
	if x != nil {
		return x.Repository
	}
	return nil
}

type AmbiguousRequest struct {
	state         protoimpl.MessageState `protogen:"open.v1"`
	Repository    *gitalypb.Repository   `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"`
	Nested        *NestedTarget          `protobuf:"bytes,2,opt,name=nested,proto3" json:"nested,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

func (x *AmbiguousRequest) Reset() {
	*x = AmbiguousRequest{}
	mi := &file_proxy_policy_testdata_ambiguous_proto_msgTypes[1]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

func (x *AmbiguousRequest) String() string {
	return protoimpl.X.MessageStringOf(x)
}

func (*AmbiguousRequest) ProtoMessage() {}

func (x *AmbiguousRequest) ProtoReflect() protoreflect.Message {
	mi := &file_proxy_policy_testdata_ambiguous_proto_msgTypes[1]
	if x != nil {
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
		if ms.LoadMessageInfo() == nil {
			ms.StoreMessageInfo(mi)
		}
		return ms
	}
	return mi.MessageOf(x)
}

// Deprecated: Use AmbiguousRequest.ProtoReflect.Descriptor instead.
func (*AmbiguousRequest) Descriptor() ([]byte, []int) {
	return file_proxy_policy_testdata_ambiguous_proto_rawDescGZIP(), []int{1}
}

func (x *AmbiguousRequest) GetRepository() *gitalypb.Repository {
	if x != nil {
		return x.Repository
	}
	return nil
}

func (x *AmbiguousRequest) GetNested() *NestedTarget {
	if x != nil {
		return x.Nested
	}
	return nil
}

var File_proxy_policy_testdata_ambiguous_proto protoreflect.FileDescriptor

const file_proxy_policy_testdata_ambiguous_proto_rawDesc = "" +
	"\n" +
	"%proxy/policy/testdata/ambiguous.proto\x12\x0fgitalyproxytest\x1a\n" +
	"lint.proto\x1a\fshared.proto\"H\n" +
	"\fNestedTarget\x128\n" +
	"\n" +
	"repository\x18\x01 \x01(\v2\x12.gitaly.RepositoryB\x04\x98\xc6,\x01R\n" +
	"repository\"\x83\x01\n" +
	"\x10AmbiguousRequest\x128\n" +
	"\n" +
	"repository\x18\x01 \x01(\v2\x12.gitaly.RepositoryB\x04\x98\xc6,\x01R\n" +
	"repository\x125\n" +
	"\x06nested\x18\x02 \x01(\v2\x1d.gitalyproxytest.NestedTargetR\x06nestedB;Z9github.com/feder-cr/git-ai/proxy/policy/testdata;testdatab\x06proto3"

var (
	file_proxy_policy_testdata_ambiguous_proto_rawDescOnce sync.Once
	file_proxy_policy_testdata_ambiguous_proto_rawDescData []byte
)

func file_proxy_policy_testdata_ambiguous_proto_rawDescGZIP() []byte {
	file_proxy_policy_testdata_ambiguous_proto_rawDescOnce.Do(func() {
		file_proxy_policy_testdata_ambiguous_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_proxy_policy_testdata_ambiguous_proto_rawDesc), len(file_proxy_policy_testdata_ambiguous_proto_rawDesc)))
	})
	return file_proxy_policy_testdata_ambiguous_proto_rawDescData
}

var file_proxy_policy_testdata_ambiguous_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
var file_proxy_policy_testdata_ambiguous_proto_goTypes = []any{
	(*NestedTarget)(nil),        // 0: gitalyproxytest.NestedTarget
	(*AmbiguousRequest)(nil),    // 1: gitalyproxytest.AmbiguousRequest
	(*gitalypb.Repository)(nil), // 2: gitaly.Repository
}
var file_proxy_policy_testdata_ambiguous_proto_depIdxs = []int32{
	2, // 0: gitalyproxytest.NestedTarget.repository:type_name -> gitaly.Repository
	2, // 1: gitalyproxytest.AmbiguousRequest.repository:type_name -> gitaly.Repository
	0, // 2: gitalyproxytest.AmbiguousRequest.nested:type_name -> gitalyproxytest.NestedTarget
	3, // [3:3] is the sub-list for method output_type
	3, // [3:3] is the sub-list for method input_type
	3, // [3:3] is the sub-list for extension type_name
	3, // [3:3] is the sub-list for extension extendee
	0, // [0:3] is the sub-list for field type_name
}

func init() { file_proxy_policy_testdata_ambiguous_proto_init() }
func file_proxy_policy_testdata_ambiguous_proto_init() {
	if File_proxy_policy_testdata_ambiguous_proto != nil {
		return
	}
	type x struct{}
	out := protoimpl.TypeBuilder{
		File: protoimpl.DescBuilder{
			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
			RawDescriptor: unsafe.Slice(unsafe.StringData(file_proxy_policy_testdata_ambiguous_proto_rawDesc), len(file_proxy_policy_testdata_ambiguous_proto_rawDesc)),
			NumEnums:      0,
			NumMessages:   2,
			NumExtensions: 0,
			NumServices:   0,
		},
		GoTypes:           file_proxy_policy_testdata_ambiguous_proto_goTypes,
		DependencyIndexes: file_proxy_policy_testdata_ambiguous_proto_depIdxs,
		MessageInfos:      file_proxy_policy_testdata_ambiguous_proto_msgTypes,
	}.Build()
	File_proxy_policy_testdata_ambiguous_proto = out.File
	file_proxy_policy_testdata_ambiguous_proto_goTypes = nil
	file_proxy_policy_testdata_ambiguous_proto_depIdxs = nil
}