1// Copyright 2024 Google Inc. All Rights Reserved. 2// 3// Licensed under the Apache License, Version 2.0 (the "License"); 4// you may not use this file except in compliance with the License. 5// You may obtain a copy of the License at 6// 7// http://www.apache.org/licenses/LICENSE-2.0 8// 9// Unless required by applicable law or agreed to in writing, software 10// distributed under the License is distributed on an "AS IS" BASIS, 11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12// See the License for the specific language governing permissions and 13// limitations under the License. 14 15// Code generated by protoc-gen-go. DO NOT EDIT. 16// versions: 17// protoc-gen-go v1.30.0 18// protoc v3.21.12 19// source: source_tree.proto 20 21package main 22 23import ( 24 protoreflect "google.golang.org/protobuf/reflect/protoreflect" 25 protoimpl "google.golang.org/protobuf/runtime/protoimpl" 26 reflect "reflect" 27 sync "sync" 28) 29 30const ( 31 // Verify that this generated code is sufficiently up-to-date. 32 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) 33 // Verify that runtime/protoimpl is sufficiently up-to-date. 34 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) 35) 36 37type SourceFile struct { 38 state protoimpl.MessageState 39 sizeCache protoimpl.SizeCache 40 unknownFields protoimpl.UnknownFields 41 42 Path *string `protobuf:"bytes,1,opt,name=path" json:"path,omitempty"` 43 SizeBytes *int32 `protobuf:"varint,2,opt,name=size_bytes,json=sizeBytes" json:"size_bytes,omitempty"` 44} 45 46func (x *SourceFile) Reset() { 47 *x = SourceFile{} 48 if protoimpl.UnsafeEnabled { 49 mi := &file_source_tree_proto_msgTypes[0] 50 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 51 ms.StoreMessageInfo(mi) 52 } 53} 54 55func (x *SourceFile) String() string { 56 return protoimpl.X.MessageStringOf(x) 57} 58 59func (*SourceFile) ProtoMessage() {} 60 61func (x *SourceFile) ProtoReflect() protoreflect.Message { 62 mi := &file_source_tree_proto_msgTypes[0] 63 if protoimpl.UnsafeEnabled && x != nil { 64 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 65 if ms.LoadMessageInfo() == nil { 66 ms.StoreMessageInfo(mi) 67 } 68 return ms 69 } 70 return mi.MessageOf(x) 71} 72 73// Deprecated: Use SourceFile.ProtoReflect.Descriptor instead. 74func (*SourceFile) Descriptor() ([]byte, []int) { 75 return file_source_tree_proto_rawDescGZIP(), []int{0} 76} 77 78func (x *SourceFile) GetPath() string { 79 if x != nil && x.Path != nil { 80 return *x.Path 81 } 82 return "" 83} 84 85func (x *SourceFile) GetSizeBytes() int32 { 86 if x != nil && x.SizeBytes != nil { 87 return *x.SizeBytes 88 } 89 return 0 90} 91 92type SourceTree struct { 93 state protoimpl.MessageState 94 sizeCache protoimpl.SizeCache 95 unknownFields protoimpl.UnknownFields 96 97 Files []*SourceFile `protobuf:"bytes,1,rep,name=files" json:"files,omitempty"` 98} 99 100func (x *SourceTree) Reset() { 101 *x = SourceTree{} 102 if protoimpl.UnsafeEnabled { 103 mi := &file_source_tree_proto_msgTypes[1] 104 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 105 ms.StoreMessageInfo(mi) 106 } 107} 108 109func (x *SourceTree) String() string { 110 return protoimpl.X.MessageStringOf(x) 111} 112 113func (*SourceTree) ProtoMessage() {} 114 115func (x *SourceTree) ProtoReflect() protoreflect.Message { 116 mi := &file_source_tree_proto_msgTypes[1] 117 if protoimpl.UnsafeEnabled && x != nil { 118 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 119 if ms.LoadMessageInfo() == nil { 120 ms.StoreMessageInfo(mi) 121 } 122 return ms 123 } 124 return mi.MessageOf(x) 125} 126 127// Deprecated: Use SourceTree.ProtoReflect.Descriptor instead. 128func (*SourceTree) Descriptor() ([]byte, []int) { 129 return file_source_tree_proto_rawDescGZIP(), []int{1} 130} 131 132func (x *SourceTree) GetFiles() []*SourceFile { 133 if x != nil { 134 return x.Files 135 } 136 return nil 137} 138 139var File_source_tree_proto protoreflect.FileDescriptor 140 141var file_source_tree_proto_rawDesc = []byte{ 142 0x0a, 0x11, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x74, 0x72, 0x65, 0x65, 0x2e, 0x70, 0x72, 143 0x6f, 0x74, 0x6f, 0x12, 0x0c, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x66, 0x69, 0x6c, 0x65, 144 0x73, 0x22, 0x3f, 0x0a, 0x0a, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x46, 0x69, 0x6c, 0x65, 0x12, 145 0x12, 0x0a, 0x04, 0x70, 0x61, 0x74, 0x68, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x70, 146 0x61, 0x74, 0x68, 0x12, 0x1d, 0x0a, 0x0a, 0x73, 0x69, 0x7a, 0x65, 0x5f, 0x62, 0x79, 0x74, 0x65, 147 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x09, 0x73, 0x69, 0x7a, 0x65, 0x42, 0x79, 0x74, 148 0x65, 0x73, 0x22, 0x3c, 0x0a, 0x0a, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x54, 0x72, 0x65, 0x65, 149 0x12, 0x2e, 0x0a, 0x05, 0x66, 0x69, 0x6c, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 150 0x18, 0x2e, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x66, 0x69, 0x6c, 0x65, 0x73, 0x2e, 0x53, 151 0x6f, 0x75, 0x72, 0x63, 0x65, 0x46, 0x69, 0x6c, 0x65, 0x52, 0x05, 0x66, 0x69, 0x6c, 0x65, 0x73, 152 0x42, 0x08, 0x5a, 0x06, 0x2e, 0x2f, 0x6d, 0x61, 0x69, 0x6e, 153} 154 155var ( 156 file_source_tree_proto_rawDescOnce sync.Once 157 file_source_tree_proto_rawDescData = file_source_tree_proto_rawDesc 158) 159 160func file_source_tree_proto_rawDescGZIP() []byte { 161 file_source_tree_proto_rawDescOnce.Do(func() { 162 file_source_tree_proto_rawDescData = protoimpl.X.CompressGZIP(file_source_tree_proto_rawDescData) 163 }) 164 return file_source_tree_proto_rawDescData 165} 166 167var file_source_tree_proto_msgTypes = make([]protoimpl.MessageInfo, 2) 168var file_source_tree_proto_goTypes = []interface{}{ 169 (*SourceFile)(nil), // 0: source_files.SourceFile 170 (*SourceTree)(nil), // 1: source_files.SourceTree 171} 172var file_source_tree_proto_depIdxs = []int32{ 173 0, // 0: source_files.SourceTree.files:type_name -> source_files.SourceFile 174 1, // [1:1] is the sub-list for method output_type 175 1, // [1:1] is the sub-list for method input_type 176 1, // [1:1] is the sub-list for extension type_name 177 1, // [1:1] is the sub-list for extension extendee 178 0, // [0:1] is the sub-list for field type_name 179} 180 181func init() { file_source_tree_proto_init() } 182func file_source_tree_proto_init() { 183 if File_source_tree_proto != nil { 184 return 185 } 186 if !protoimpl.UnsafeEnabled { 187 file_source_tree_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { 188 switch v := v.(*SourceFile); i { 189 case 0: 190 return &v.state 191 case 1: 192 return &v.sizeCache 193 case 2: 194 return &v.unknownFields 195 default: 196 return nil 197 } 198 } 199 file_source_tree_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { 200 switch v := v.(*SourceTree); i { 201 case 0: 202 return &v.state 203 case 1: 204 return &v.sizeCache 205 case 2: 206 return &v.unknownFields 207 default: 208 return nil 209 } 210 } 211 } 212 type x struct{} 213 out := protoimpl.TypeBuilder{ 214 File: protoimpl.DescBuilder{ 215 GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 216 RawDescriptor: file_source_tree_proto_rawDesc, 217 NumEnums: 0, 218 NumMessages: 2, 219 NumExtensions: 0, 220 NumServices: 0, 221 }, 222 GoTypes: file_source_tree_proto_goTypes, 223 DependencyIndexes: file_source_tree_proto_depIdxs, 224 MessageInfos: file_source_tree_proto_msgTypes, 225 }.Build() 226 File_source_tree_proto = out.File 227 file_source_tree_proto_rawDesc = nil 228 file_source_tree_proto_goTypes = nil 229 file_source_tree_proto_depIdxs = nil 230} 231