Aditya Choudhary | 8094b6b | 2023-10-12 19:40:17 +0000 | [diff] [blame] | 1 | // you may not use this file except in compliance with the License. |
| 2 | // You may obtain a copy of the License at |
| 3 | // |
| 4 | // http://www.apache.org/licenses/LICENSE-2.0 |
| 5 | // |
| 6 | // Unless required by applicable law or agreed to in writing, software |
| 7 | // distributed under the License is distributed on an "AS IS" BASIS, |
| 8 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 9 | // See the License for the specific language governing permissions and |
| 10 | // limitations under the License. |
| 11 | |
| 12 | // Code generated by protoc-gen-go. DO NOT EDIT. |
| 13 | // versions: |
| 14 | // protoc-gen-go v1.30.0 |
| 15 | // protoc v3.21.12 |
| 16 | // source: code_metadata.proto |
| 17 | |
| 18 | package code_metadata_proto |
| 19 | |
| 20 | import ( |
| 21 | protoreflect "google.golang.org/protobuf/reflect/protoreflect" |
| 22 | protoimpl "google.golang.org/protobuf/runtime/protoimpl" |
| 23 | reflect "reflect" |
| 24 | sync "sync" |
| 25 | ) |
| 26 | |
| 27 | const ( |
| 28 | // Verify that this generated code is sufficiently up-to-date. |
| 29 | _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) |
| 30 | // Verify that runtime/protoimpl is sufficiently up-to-date. |
| 31 | _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) |
| 32 | ) |
| 33 | |
| 34 | type CodeMetadata struct { |
| 35 | state protoimpl.MessageState |
| 36 | sizeCache protoimpl.SizeCache |
| 37 | unknownFields protoimpl.UnknownFields |
| 38 | |
| 39 | // List of all code targets and their metadata. |
| 40 | TargetOwnershipList []*CodeMetadata_TargetOwnership `protobuf:"bytes,1,rep,name=target_ownership_list,json=targetOwnershipList" json:"target_ownership_list,omitempty"` |
| 41 | } |
| 42 | |
| 43 | func (x *CodeMetadata) Reset() { |
| 44 | *x = CodeMetadata{} |
| 45 | if protoimpl.UnsafeEnabled { |
| 46 | mi := &file_code_metadata_proto_msgTypes[0] |
| 47 | ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 48 | ms.StoreMessageInfo(mi) |
| 49 | } |
| 50 | } |
| 51 | |
| 52 | func (x *CodeMetadata) String() string { |
| 53 | return protoimpl.X.MessageStringOf(x) |
| 54 | } |
| 55 | |
| 56 | func (*CodeMetadata) ProtoMessage() {} |
| 57 | |
| 58 | func (x *CodeMetadata) ProtoReflect() protoreflect.Message { |
| 59 | mi := &file_code_metadata_proto_msgTypes[0] |
| 60 | if protoimpl.UnsafeEnabled && x != nil { |
| 61 | ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 62 | if ms.LoadMessageInfo() == nil { |
| 63 | ms.StoreMessageInfo(mi) |
| 64 | } |
| 65 | return ms |
| 66 | } |
| 67 | return mi.MessageOf(x) |
| 68 | } |
| 69 | |
| 70 | // Deprecated: Use CodeMetadata.ProtoReflect.Descriptor instead. |
| 71 | func (*CodeMetadata) Descriptor() ([]byte, []int) { |
| 72 | return file_code_metadata_proto_rawDescGZIP(), []int{0} |
| 73 | } |
| 74 | |
| 75 | func (x *CodeMetadata) GetTargetOwnershipList() []*CodeMetadata_TargetOwnership { |
| 76 | if x != nil { |
| 77 | return x.TargetOwnershipList |
| 78 | } |
| 79 | return nil |
| 80 | } |
| 81 | |
| 82 | type CodeMetadata_TargetOwnership struct { |
| 83 | state protoimpl.MessageState |
| 84 | sizeCache protoimpl.SizeCache |
| 85 | unknownFields protoimpl.UnknownFields |
| 86 | |
| 87 | // REQUIRED: Name of the build target |
| 88 | TargetName *string `protobuf:"bytes,1,opt,name=target_name,json=targetName" json:"target_name,omitempty"` |
| 89 | // REQUIRED: Code location of the target. |
| 90 | // To be used to support legacy/backup systems that use OWNERS file and is |
| 91 | // also required for our dashboard to support per code location basis UI |
| 92 | Path *string `protobuf:"bytes,2,opt,name=path" json:"path,omitempty"` |
| 93 | // REQUIRED: Team ID of the team that owns this target. |
| 94 | TrendyTeamId *string `protobuf:"bytes,3,opt,name=trendy_team_id,json=trendyTeamId" json:"trendy_team_id,omitempty"` |
| 95 | // OPTIONAL: The src files of the target. |
| 96 | // To be used to determine ownership of a file for ownership |
| 97 | SourceFiles []string `protobuf:"bytes,4,rep,name=source_files,json=sourceFiles" json:"source_files,omitempty"` |
| 98 | } |
| 99 | |
| 100 | func (x *CodeMetadata_TargetOwnership) Reset() { |
| 101 | *x = CodeMetadata_TargetOwnership{} |
| 102 | if protoimpl.UnsafeEnabled { |
| 103 | mi := &file_code_metadata_proto_msgTypes[1] |
| 104 | ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 105 | ms.StoreMessageInfo(mi) |
| 106 | } |
| 107 | } |
| 108 | |
| 109 | func (x *CodeMetadata_TargetOwnership) String() string { |
| 110 | return protoimpl.X.MessageStringOf(x) |
| 111 | } |
| 112 | |
| 113 | func (*CodeMetadata_TargetOwnership) ProtoMessage() {} |
| 114 | |
| 115 | func (x *CodeMetadata_TargetOwnership) ProtoReflect() protoreflect.Message { |
| 116 | mi := &file_code_metadata_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 CodeMetadata_TargetOwnership.ProtoReflect.Descriptor instead. |
| 128 | func (*CodeMetadata_TargetOwnership) Descriptor() ([]byte, []int) { |
| 129 | return file_code_metadata_proto_rawDescGZIP(), []int{0, 0} |
| 130 | } |
| 131 | |
| 132 | func (x *CodeMetadata_TargetOwnership) GetTargetName() string { |
| 133 | if x != nil && x.TargetName != nil { |
| 134 | return *x.TargetName |
| 135 | } |
| 136 | return "" |
| 137 | } |
| 138 | |
| 139 | func (x *CodeMetadata_TargetOwnership) GetPath() string { |
| 140 | if x != nil && x.Path != nil { |
| 141 | return *x.Path |
| 142 | } |
| 143 | return "" |
| 144 | } |
| 145 | |
| 146 | func (x *CodeMetadata_TargetOwnership) GetTrendyTeamId() string { |
| 147 | if x != nil && x.TrendyTeamId != nil { |
| 148 | return *x.TrendyTeamId |
| 149 | } |
| 150 | return "" |
| 151 | } |
| 152 | |
| 153 | func (x *CodeMetadata_TargetOwnership) GetSourceFiles() []string { |
| 154 | if x != nil { |
| 155 | return x.SourceFiles |
| 156 | } |
| 157 | return nil |
| 158 | } |
| 159 | |
| 160 | var File_code_metadata_proto protoreflect.FileDescriptor |
| 161 | |
| 162 | var file_code_metadata_proto_rawDesc = []byte{ |
| 163 | 0x0a, 0x13, 0x63, 0x6f, 0x64, 0x65, 0x5f, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x2e, |
| 164 | 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x13, 0x63, 0x6f, 0x64, 0x65, 0x5f, 0x6d, 0x65, 0x74, 0x61, |
| 165 | 0x64, 0x61, 0x74, 0x61, 0x5f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x87, 0x02, 0x0a, 0x0c, 0x43, |
| 166 | 0x6f, 0x64, 0x65, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0x65, 0x0a, 0x15, 0x74, |
| 167 | 0x61, 0x72, 0x67, 0x65, 0x74, 0x5f, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x73, 0x68, 0x69, 0x70, 0x5f, |
| 168 | 0x6c, 0x69, 0x73, 0x74, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x31, 0x2e, 0x63, 0x6f, 0x64, |
| 169 | 0x65, 0x5f, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x5f, 0x70, 0x72, 0x6f, 0x74, 0x6f, |
| 170 | 0x2e, 0x43, 0x6f, 0x64, 0x65, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x54, 0x61, |
| 171 | 0x72, 0x67, 0x65, 0x74, 0x4f, 0x77, 0x6e, 0x65, 0x72, 0x73, 0x68, 0x69, 0x70, 0x52, 0x13, 0x74, |
| 172 | 0x61, 0x72, 0x67, 0x65, 0x74, 0x4f, 0x77, 0x6e, 0x65, 0x72, 0x73, 0x68, 0x69, 0x70, 0x4c, 0x69, |
| 173 | 0x73, 0x74, 0x1a, 0x8f, 0x01, 0x0a, 0x0f, 0x54, 0x61, 0x72, 0x67, 0x65, 0x74, 0x4f, 0x77, 0x6e, |
| 174 | 0x65, 0x72, 0x73, 0x68, 0x69, 0x70, 0x12, 0x1f, 0x0a, 0x0b, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, |
| 175 | 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x74, 0x61, 0x72, |
| 176 | 0x67, 0x65, 0x74, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x70, 0x61, 0x74, 0x68, 0x18, |
| 177 | 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x70, 0x61, 0x74, 0x68, 0x12, 0x24, 0x0a, 0x0e, 0x74, |
| 178 | 0x72, 0x65, 0x6e, 0x64, 0x79, 0x5f, 0x74, 0x65, 0x61, 0x6d, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, |
| 179 | 0x01, 0x28, 0x09, 0x52, 0x0c, 0x74, 0x72, 0x65, 0x6e, 0x64, 0x79, 0x54, 0x65, 0x61, 0x6d, 0x49, |
| 180 | 0x64, 0x12, 0x21, 0x0a, 0x0c, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x66, 0x69, 0x6c, 0x65, |
| 181 | 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0b, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x46, |
| 182 | 0x69, 0x6c, 0x65, 0x73, 0x42, 0x2b, 0x5a, 0x29, 0x61, 0x6e, 0x64, 0x72, 0x6f, 0x69, 0x64, 0x2f, |
| 183 | 0x73, 0x6f, 0x6f, 0x6e, 0x67, 0x2f, 0x74, 0x65, 0x73, 0x74, 0x69, 0x6e, 0x67, 0x2f, 0x63, 0x6f, |
| 184 | 0x64, 0x65, 0x5f, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x5f, 0x70, 0x72, 0x6f, 0x74, |
| 185 | 0x6f, |
| 186 | } |
| 187 | |
| 188 | var ( |
| 189 | file_code_metadata_proto_rawDescOnce sync.Once |
| 190 | file_code_metadata_proto_rawDescData = file_code_metadata_proto_rawDesc |
| 191 | ) |
| 192 | |
| 193 | func file_code_metadata_proto_rawDescGZIP() []byte { |
| 194 | file_code_metadata_proto_rawDescOnce.Do(func() { |
| 195 | file_code_metadata_proto_rawDescData = protoimpl.X.CompressGZIP(file_code_metadata_proto_rawDescData) |
| 196 | }) |
| 197 | return file_code_metadata_proto_rawDescData |
| 198 | } |
| 199 | |
| 200 | var file_code_metadata_proto_msgTypes = make([]protoimpl.MessageInfo, 2) |
| 201 | var file_code_metadata_proto_goTypes = []interface{}{ |
| 202 | (*CodeMetadata)(nil), // 0: code_metadata_proto.CodeMetadata |
| 203 | (*CodeMetadata_TargetOwnership)(nil), // 1: code_metadata_proto.CodeMetadata.TargetOwnership |
| 204 | } |
| 205 | var file_code_metadata_proto_depIdxs = []int32{ |
| 206 | 1, // 0: code_metadata_proto.CodeMetadata.target_ownership_list:type_name -> code_metadata_proto.CodeMetadata.TargetOwnership |
| 207 | 1, // [1:1] is the sub-list for method output_type |
| 208 | 1, // [1:1] is the sub-list for method input_type |
| 209 | 1, // [1:1] is the sub-list for extension type_name |
| 210 | 1, // [1:1] is the sub-list for extension extendee |
| 211 | 0, // [0:1] is the sub-list for field type_name |
| 212 | } |
| 213 | |
| 214 | func init() { file_code_metadata_proto_init() } |
| 215 | func file_code_metadata_proto_init() { |
| 216 | if File_code_metadata_proto != nil { |
| 217 | return |
| 218 | } |
| 219 | if !protoimpl.UnsafeEnabled { |
| 220 | file_code_metadata_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { |
| 221 | switch v := v.(*CodeMetadata); i { |
| 222 | case 0: |
| 223 | return &v.state |
| 224 | case 1: |
| 225 | return &v.sizeCache |
| 226 | case 2: |
| 227 | return &v.unknownFields |
| 228 | default: |
| 229 | return nil |
| 230 | } |
| 231 | } |
| 232 | file_code_metadata_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { |
| 233 | switch v := v.(*CodeMetadata_TargetOwnership); i { |
| 234 | case 0: |
| 235 | return &v.state |
| 236 | case 1: |
| 237 | return &v.sizeCache |
| 238 | case 2: |
| 239 | return &v.unknownFields |
| 240 | default: |
| 241 | return nil |
| 242 | } |
| 243 | } |
| 244 | } |
| 245 | type x struct{} |
| 246 | out := protoimpl.TypeBuilder{ |
| 247 | File: protoimpl.DescBuilder{ |
| 248 | GoPackagePath: reflect.TypeOf(x{}).PkgPath(), |
| 249 | RawDescriptor: file_code_metadata_proto_rawDesc, |
| 250 | NumEnums: 0, |
| 251 | NumMessages: 2, |
| 252 | NumExtensions: 0, |
| 253 | NumServices: 0, |
| 254 | }, |
| 255 | GoTypes: file_code_metadata_proto_goTypes, |
| 256 | DependencyIndexes: file_code_metadata_proto_depIdxs, |
| 257 | MessageInfos: file_code_metadata_proto_msgTypes, |
| 258 | }.Build() |
| 259 | File_code_metadata_proto = out.File |
| 260 | file_code_metadata_proto_rawDesc = nil |
| 261 | file_code_metadata_proto_goTypes = nil |
| 262 | file_code_metadata_proto_depIdxs = nil |
| 263 | } |