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: team.proto 17 18package team_proto 19 20import ( 21 protoreflect "google.golang.org/protobuf/reflect/protoreflect" 22 protoimpl "google.golang.org/protobuf/runtime/protoimpl" 23 reflect "reflect" 24 sync "sync" 25) 26 27const ( 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 34type Team struct { 35 state protoimpl.MessageState 36 sizeCache protoimpl.SizeCache 37 unknownFields protoimpl.UnknownFields 38 39 // REQUIRED: Name of the build target 40 TargetName *string `protobuf:"bytes,1,opt,name=target_name,json=targetName" json:"target_name,omitempty"` 41 // REQUIRED: Code location of the target. 42 // To be used to support legacy/backup systems that use OWNERS file and is 43 // also required for our dashboard to support per code location basis UI 44 Path *string `protobuf:"bytes,2,opt,name=path" json:"path,omitempty"` 45 // REQUIRED: Team ID of the team that owns this target. 46 TrendyTeamId *string `protobuf:"bytes,3,opt,name=trendy_team_id,json=trendyTeamId" json:"trendy_team_id,omitempty"` 47 // OPTIONAL: Files directly owned by this module. 48 File []string `protobuf:"bytes,4,rep,name=file" json:"file,omitempty"` 49 // OPTIONAL: Is this a test-only module. 50 TestOnly *bool `protobuf:"varint,5,opt,name=test_only,json=testOnly" json:"test_only,omitempty"` 51 // OPTIONAL: Is this intended to be run as a test target. 52 // This target can be run directly as a test or passed to tradefed. 53 TopLevelTarget *bool `protobuf:"varint,6,opt,name=top_level_target,json=topLevelTarget" json:"top_level_target,omitempty"` 54 // OPTIONAL: Name of module kind, i.e. java_library 55 Kind *string `protobuf:"bytes,7,opt,name=kind" json:"kind,omitempty"` 56} 57 58func (x *Team) Reset() { 59 *x = Team{} 60 if protoimpl.UnsafeEnabled { 61 mi := &file_team_proto_msgTypes[0] 62 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 63 ms.StoreMessageInfo(mi) 64 } 65} 66 67func (x *Team) String() string { 68 return protoimpl.X.MessageStringOf(x) 69} 70 71func (*Team) ProtoMessage() {} 72 73func (x *Team) ProtoReflect() protoreflect.Message { 74 mi := &file_team_proto_msgTypes[0] 75 if protoimpl.UnsafeEnabled && x != nil { 76 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 77 if ms.LoadMessageInfo() == nil { 78 ms.StoreMessageInfo(mi) 79 } 80 return ms 81 } 82 return mi.MessageOf(x) 83} 84 85// Deprecated: Use Team.ProtoReflect.Descriptor instead. 86func (*Team) Descriptor() ([]byte, []int) { 87 return file_team_proto_rawDescGZIP(), []int{0} 88} 89 90func (x *Team) GetTargetName() string { 91 if x != nil && x.TargetName != nil { 92 return *x.TargetName 93 } 94 return "" 95} 96 97func (x *Team) GetPath() string { 98 if x != nil && x.Path != nil { 99 return *x.Path 100 } 101 return "" 102} 103 104func (x *Team) GetTrendyTeamId() string { 105 if x != nil && x.TrendyTeamId != nil { 106 return *x.TrendyTeamId 107 } 108 return "" 109} 110 111func (x *Team) GetFile() []string { 112 if x != nil { 113 return x.File 114 } 115 return nil 116} 117 118func (x *Team) GetTestOnly() bool { 119 if x != nil && x.TestOnly != nil { 120 return *x.TestOnly 121 } 122 return false 123} 124 125func (x *Team) GetTopLevelTarget() bool { 126 if x != nil && x.TopLevelTarget != nil { 127 return *x.TopLevelTarget 128 } 129 return false 130} 131 132func (x *Team) GetKind() string { 133 if x != nil && x.Kind != nil { 134 return *x.Kind 135 } 136 return "" 137} 138 139type AllTeams struct { 140 state protoimpl.MessageState 141 sizeCache protoimpl.SizeCache 142 unknownFields protoimpl.UnknownFields 143 144 Teams []*Team `protobuf:"bytes,1,rep,name=teams" json:"teams,omitempty"` 145} 146 147func (x *AllTeams) Reset() { 148 *x = AllTeams{} 149 if protoimpl.UnsafeEnabled { 150 mi := &file_team_proto_msgTypes[1] 151 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 152 ms.StoreMessageInfo(mi) 153 } 154} 155 156func (x *AllTeams) String() string { 157 return protoimpl.X.MessageStringOf(x) 158} 159 160func (*AllTeams) ProtoMessage() {} 161 162func (x *AllTeams) ProtoReflect() protoreflect.Message { 163 mi := &file_team_proto_msgTypes[1] 164 if protoimpl.UnsafeEnabled && x != nil { 165 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 166 if ms.LoadMessageInfo() == nil { 167 ms.StoreMessageInfo(mi) 168 } 169 return ms 170 } 171 return mi.MessageOf(x) 172} 173 174// Deprecated: Use AllTeams.ProtoReflect.Descriptor instead. 175func (*AllTeams) Descriptor() ([]byte, []int) { 176 return file_team_proto_rawDescGZIP(), []int{1} 177} 178 179func (x *AllTeams) GetTeams() []*Team { 180 if x != nil { 181 return x.Teams 182 } 183 return nil 184} 185 186var File_team_proto protoreflect.FileDescriptor 187 188var file_team_proto_rawDesc = []byte{ 189 0x0a, 0x0a, 0x74, 0x65, 0x61, 0x6d, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0a, 0x74, 0x65, 190 0x61, 0x6d, 0x5f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xd0, 0x01, 0x0a, 0x04, 0x54, 0x65, 0x61, 191 0x6d, 0x12, 0x1f, 0x0a, 0x0b, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 192 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x4e, 0x61, 193 0x6d, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x70, 0x61, 0x74, 0x68, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 194 0x52, 0x04, 0x70, 0x61, 0x74, 0x68, 0x12, 0x24, 0x0a, 0x0e, 0x74, 0x72, 0x65, 0x6e, 0x64, 0x79, 195 0x5f, 0x74, 0x65, 0x61, 0x6d, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 196 0x74, 0x72, 0x65, 0x6e, 0x64, 0x79, 0x54, 0x65, 0x61, 0x6d, 0x49, 0x64, 0x12, 0x12, 0x0a, 0x04, 197 0x66, 0x69, 0x6c, 0x65, 0x18, 0x04, 0x20, 0x03, 0x28, 0x09, 0x52, 0x04, 0x66, 0x69, 0x6c, 0x65, 198 0x12, 0x1b, 0x0a, 0x09, 0x74, 0x65, 0x73, 0x74, 0x5f, 0x6f, 0x6e, 0x6c, 0x79, 0x18, 0x05, 0x20, 199 0x01, 0x28, 0x08, 0x52, 0x08, 0x74, 0x65, 0x73, 0x74, 0x4f, 0x6e, 0x6c, 0x79, 0x12, 0x28, 0x0a, 200 0x10, 0x74, 0x6f, 0x70, 0x5f, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x5f, 0x74, 0x61, 0x72, 0x67, 0x65, 201 0x74, 0x18, 0x06, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0e, 0x74, 0x6f, 0x70, 0x4c, 0x65, 0x76, 0x65, 202 0x6c, 0x54, 0x61, 0x72, 0x67, 0x65, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x6b, 0x69, 0x6e, 0x64, 0x18, 203 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6b, 0x69, 0x6e, 0x64, 0x22, 0x32, 0x0a, 0x08, 0x41, 204 0x6c, 0x6c, 0x54, 0x65, 0x61, 0x6d, 0x73, 0x12, 0x26, 0x0a, 0x05, 0x74, 0x65, 0x61, 0x6d, 0x73, 205 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x10, 0x2e, 0x74, 0x65, 0x61, 0x6d, 0x5f, 0x70, 0x72, 206 0x6f, 0x74, 0x6f, 0x2e, 0x54, 0x65, 0x61, 0x6d, 0x52, 0x05, 0x74, 0x65, 0x61, 0x6d, 0x73, 0x42, 207 0x22, 0x5a, 0x20, 0x61, 0x6e, 0x64, 0x72, 0x6f, 0x69, 0x64, 0x2f, 0x73, 0x6f, 0x6f, 0x6e, 0x67, 208 0x2f, 0x61, 0x6e, 0x64, 0x72, 0x6f, 0x69, 0x64, 0x2f, 0x74, 0x65, 0x61, 0x6d, 0x5f, 0x70, 0x72, 209 0x6f, 0x74, 0x6f, 210} 211 212var ( 213 file_team_proto_rawDescOnce sync.Once 214 file_team_proto_rawDescData = file_team_proto_rawDesc 215) 216 217func file_team_proto_rawDescGZIP() []byte { 218 file_team_proto_rawDescOnce.Do(func() { 219 file_team_proto_rawDescData = protoimpl.X.CompressGZIP(file_team_proto_rawDescData) 220 }) 221 return file_team_proto_rawDescData 222} 223 224var file_team_proto_msgTypes = make([]protoimpl.MessageInfo, 2) 225var file_team_proto_goTypes = []interface{}{ 226 (*Team)(nil), // 0: team_proto.Team 227 (*AllTeams)(nil), // 1: team_proto.AllTeams 228} 229var file_team_proto_depIdxs = []int32{ 230 0, // 0: team_proto.AllTeams.teams:type_name -> team_proto.Team 231 1, // [1:1] is the sub-list for method output_type 232 1, // [1:1] is the sub-list for method input_type 233 1, // [1:1] is the sub-list for extension type_name 234 1, // [1:1] is the sub-list for extension extendee 235 0, // [0:1] is the sub-list for field type_name 236} 237 238func init() { file_team_proto_init() } 239func file_team_proto_init() { 240 if File_team_proto != nil { 241 return 242 } 243 if !protoimpl.UnsafeEnabled { 244 file_team_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { 245 switch v := v.(*Team); i { 246 case 0: 247 return &v.state 248 case 1: 249 return &v.sizeCache 250 case 2: 251 return &v.unknownFields 252 default: 253 return nil 254 } 255 } 256 file_team_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { 257 switch v := v.(*AllTeams); i { 258 case 0: 259 return &v.state 260 case 1: 261 return &v.sizeCache 262 case 2: 263 return &v.unknownFields 264 default: 265 return nil 266 } 267 } 268 } 269 type x struct{} 270 out := protoimpl.TypeBuilder{ 271 File: protoimpl.DescBuilder{ 272 GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 273 RawDescriptor: file_team_proto_rawDesc, 274 NumEnums: 0, 275 NumMessages: 2, 276 NumExtensions: 0, 277 NumServices: 0, 278 }, 279 GoTypes: file_team_proto_goTypes, 280 DependencyIndexes: file_team_proto_depIdxs, 281 MessageInfos: file_team_proto_msgTypes, 282 }.Build() 283 File_team_proto = out.File 284 file_team_proto_rawDesc = nil 285 file_team_proto_goTypes = nil 286 file_team_proto_depIdxs = nil 287} 288