github.com/kaydxh/golang@v0.0.131/pkg/resolver/resolver.pb.go (about) 1 /* 2 *Copyright (c) 2022, kaydxh 3 * 4 *Permission is hereby granted, free of charge, to any person obtaining a copy 5 *of this software and associated documentation files (the "Software"), to deal 6 *in the Software without restriction, including without limitation the rights 7 *to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 8 *copies of the Software, and to permit persons to whom the Software is 9 *furnished to do so, subject to the following conditions: 10 * 11 *The above copyright notice and this permission notice shall be included in all 12 *copies or substantial portions of the Software. 13 * 14 *THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 15 *IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 16 *FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 17 *AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 18 *LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 19 *OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 20 *SOFTWARE. 21 */ 22 // Code generated by protoc-gen-go. DO NOT EDIT. 23 // versions: 24 // protoc-gen-go v1.27.0 25 // protoc v3.13.0 26 // source: pkg/resolver/resolver.proto 27 28 package resolver 29 30 import ( 31 duration "github.com/golang/protobuf/ptypes/duration" 32 protoreflect "google.golang.org/protobuf/reflect/protoreflect" 33 protoimpl "google.golang.org/protobuf/runtime/protoimpl" 34 reflect "reflect" 35 sync "sync" 36 ) 37 38 const ( 39 // Verify that this generated code is sufficiently up-to-date. 40 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) 41 // Verify that runtime/protoimpl is sufficiently up-to-date. 42 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) 43 ) 44 45 type Resolver_ResolverType int32 46 47 const ( 48 Resolver_resolver_type_dns Resolver_ResolverType = 0 49 Resolver_resolver_type_consul Resolver_ResolverType = 1 50 Resolver_resolver_type_k8s Resolver_ResolverType = 2 51 ) 52 53 // Enum value maps for Resolver_ResolverType. 54 var ( 55 Resolver_ResolverType_name = map[int32]string{ 56 0: "resolver_type_dns", 57 1: "resolver_type_consul", 58 2: "resolver_type_k8s", 59 } 60 Resolver_ResolverType_value = map[string]int32{ 61 "resolver_type_dns": 0, 62 "resolver_type_consul": 1, 63 "resolver_type_k8s": 2, 64 } 65 ) 66 67 func (x Resolver_ResolverType) Enum() *Resolver_ResolverType { 68 p := new(Resolver_ResolverType) 69 *p = x 70 return p 71 } 72 73 func (x Resolver_ResolverType) String() string { 74 return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) 75 } 76 77 func (Resolver_ResolverType) Descriptor() protoreflect.EnumDescriptor { 78 return file_pkg_resolver_resolver_proto_enumTypes[0].Descriptor() 79 } 80 81 func (Resolver_ResolverType) Type() protoreflect.EnumType { 82 return &file_pkg_resolver_resolver_proto_enumTypes[0] 83 } 84 85 func (x Resolver_ResolverType) Number() protoreflect.EnumNumber { 86 return protoreflect.EnumNumber(x) 87 } 88 89 // Deprecated: Use Resolver_ResolverType.Descriptor instead. 90 func (Resolver_ResolverType) EnumDescriptor() ([]byte, []int) { 91 return file_pkg_resolver_resolver_proto_rawDescGZIP(), []int{0, 0} 92 } 93 94 type Resolver_LoadBalanceMode int32 95 96 const ( 97 Resolver_load_balance_mode_random Resolver_LoadBalanceMode = 0 98 Resolver_load_balance_mode_consist Resolver_LoadBalanceMode = 1 99 ) 100 101 // Enum value maps for Resolver_LoadBalanceMode. 102 var ( 103 Resolver_LoadBalanceMode_name = map[int32]string{ 104 0: "load_balance_mode_random", 105 1: "load_balance_mode_consist", 106 } 107 Resolver_LoadBalanceMode_value = map[string]int32{ 108 "load_balance_mode_random": 0, 109 "load_balance_mode_consist": 1, 110 } 111 ) 112 113 func (x Resolver_LoadBalanceMode) Enum() *Resolver_LoadBalanceMode { 114 p := new(Resolver_LoadBalanceMode) 115 *p = x 116 return p 117 } 118 119 func (x Resolver_LoadBalanceMode) String() string { 120 return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) 121 } 122 123 func (Resolver_LoadBalanceMode) Descriptor() protoreflect.EnumDescriptor { 124 return file_pkg_resolver_resolver_proto_enumTypes[1].Descriptor() 125 } 126 127 func (Resolver_LoadBalanceMode) Type() protoreflect.EnumType { 128 return &file_pkg_resolver_resolver_proto_enumTypes[1] 129 } 130 131 func (x Resolver_LoadBalanceMode) Number() protoreflect.EnumNumber { 132 return protoreflect.EnumNumber(x) 133 } 134 135 // Deprecated: Use Resolver_LoadBalanceMode.Descriptor instead. 136 func (Resolver_LoadBalanceMode) EnumDescriptor() ([]byte, []int) { 137 return file_pkg_resolver_resolver_proto_rawDescGZIP(), []int{0, 1} 138 } 139 140 type Resolver struct { 141 state protoimpl.MessageState 142 sizeCache protoimpl.SizeCache 143 unknownFields protoimpl.UnknownFields 144 145 Enabled bool `protobuf:"varint,1,opt,name=enabled,proto3" json:"enabled,omitempty"` 146 ResolverType Resolver_ResolverType `protobuf:"varint,2,opt,name=resolver_type,json=resolverType,proto3,enum=go.pkg.resolver.Resolver_ResolverType" json:"resolver_type,omitempty"` 147 LoadBalanceMode Resolver_LoadBalanceMode `protobuf:"varint,3,opt,name=load_balance_mode,json=loadBalanceMode,proto3,enum=go.pkg.resolver.Resolver_LoadBalanceMode" json:"load_balance_mode,omitempty"` 148 ResolveInterval *duration.Duration `protobuf:"bytes,4,opt,name=resolve_interval,json=resolveInterval,proto3" json:"resolve_interval,omitempty"` 149 Domains []string `protobuf:"bytes,5,rep,name=domains,proto3" json:"domains,omitempty"` 150 K8S *Resolver_K8S `protobuf:"bytes,6,opt,name=k8s,proto3" json:"k8s,omitempty"` 151 } 152 153 func (x *Resolver) Reset() { 154 *x = Resolver{} 155 if protoimpl.UnsafeEnabled { 156 mi := &file_pkg_resolver_resolver_proto_msgTypes[0] 157 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 158 ms.StoreMessageInfo(mi) 159 } 160 } 161 162 func (x *Resolver) String() string { 163 return protoimpl.X.MessageStringOf(x) 164 } 165 166 func (*Resolver) ProtoMessage() {} 167 168 func (x *Resolver) ProtoReflect() protoreflect.Message { 169 mi := &file_pkg_resolver_resolver_proto_msgTypes[0] 170 if protoimpl.UnsafeEnabled && x != nil { 171 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 172 if ms.LoadMessageInfo() == nil { 173 ms.StoreMessageInfo(mi) 174 } 175 return ms 176 } 177 return mi.MessageOf(x) 178 } 179 180 // Deprecated: Use Resolver.ProtoReflect.Descriptor instead. 181 func (*Resolver) Descriptor() ([]byte, []int) { 182 return file_pkg_resolver_resolver_proto_rawDescGZIP(), []int{0} 183 } 184 185 func (x *Resolver) GetEnabled() bool { 186 if x != nil { 187 return x.Enabled 188 } 189 return false 190 } 191 192 func (x *Resolver) GetResolverType() Resolver_ResolverType { 193 if x != nil { 194 return x.ResolverType 195 } 196 return Resolver_resolver_type_dns 197 } 198 199 func (x *Resolver) GetLoadBalanceMode() Resolver_LoadBalanceMode { 200 if x != nil { 201 return x.LoadBalanceMode 202 } 203 return Resolver_load_balance_mode_random 204 } 205 206 func (x *Resolver) GetResolveInterval() *duration.Duration { 207 if x != nil { 208 return x.ResolveInterval 209 } 210 return nil 211 } 212 213 func (x *Resolver) GetDomains() []string { 214 if x != nil { 215 return x.Domains 216 } 217 return nil 218 } 219 220 func (x *Resolver) GetK8S() *Resolver_K8S { 221 if x != nil { 222 return x.K8S 223 } 224 return nil 225 } 226 227 type Resolver_K8S struct { 228 state protoimpl.MessageState 229 sizeCache protoimpl.SizeCache 230 unknownFields protoimpl.UnknownFields 231 232 ServiceNames []string `protobuf:"bytes,1,rep,name=service_names,json=serviceNames,proto3" json:"service_names,omitempty"` 233 NodeGroup string `protobuf:"bytes,2,opt,name=node_group,json=nodeGroup,proto3" json:"node_group,omitempty"` 234 NodeUnit string `protobuf:"bytes,3,opt,name=node_unit,json=nodeUnit,proto3" json:"node_unit,omitempty"` 235 } 236 237 func (x *Resolver_K8S) Reset() { 238 *x = Resolver_K8S{} 239 if protoimpl.UnsafeEnabled { 240 mi := &file_pkg_resolver_resolver_proto_msgTypes[1] 241 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 242 ms.StoreMessageInfo(mi) 243 } 244 } 245 246 func (x *Resolver_K8S) String() string { 247 return protoimpl.X.MessageStringOf(x) 248 } 249 250 func (*Resolver_K8S) ProtoMessage() {} 251 252 func (x *Resolver_K8S) ProtoReflect() protoreflect.Message { 253 mi := &file_pkg_resolver_resolver_proto_msgTypes[1] 254 if protoimpl.UnsafeEnabled && x != nil { 255 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 256 if ms.LoadMessageInfo() == nil { 257 ms.StoreMessageInfo(mi) 258 } 259 return ms 260 } 261 return mi.MessageOf(x) 262 } 263 264 // Deprecated: Use Resolver_K8S.ProtoReflect.Descriptor instead. 265 func (*Resolver_K8S) Descriptor() ([]byte, []int) { 266 return file_pkg_resolver_resolver_proto_rawDescGZIP(), []int{0, 0} 267 } 268 269 func (x *Resolver_K8S) GetServiceNames() []string { 270 if x != nil { 271 return x.ServiceNames 272 } 273 return nil 274 } 275 276 func (x *Resolver_K8S) GetNodeGroup() string { 277 if x != nil { 278 return x.NodeGroup 279 } 280 return "" 281 } 282 283 func (x *Resolver_K8S) GetNodeUnit() string { 284 if x != nil { 285 return x.NodeUnit 286 } 287 return "" 288 } 289 290 var File_pkg_resolver_resolver_proto protoreflect.FileDescriptor 291 292 var file_pkg_resolver_resolver_proto_rawDesc = []byte{ 293 0x0a, 0x1b, 0x70, 0x6b, 0x67, 0x2f, 0x72, 0x65, 0x73, 0x6f, 0x6c, 0x76, 0x65, 0x72, 0x2f, 0x72, 294 0x65, 0x73, 0x6f, 0x6c, 0x76, 0x65, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0f, 0x67, 295 0x6f, 0x2e, 0x70, 0x6b, 0x67, 0x2e, 0x72, 0x65, 0x73, 0x6f, 0x6c, 0x76, 0x65, 0x72, 0x1a, 0x1e, 296 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 297 0x64, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xe9, 298 0x04, 0x0a, 0x08, 0x52, 0x65, 0x73, 0x6f, 0x6c, 0x76, 0x65, 0x72, 0x12, 0x18, 0x0a, 0x07, 0x65, 299 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x07, 0x65, 0x6e, 300 0x61, 0x62, 0x6c, 0x65, 0x64, 0x12, 0x4b, 0x0a, 0x0d, 0x72, 0x65, 0x73, 0x6f, 0x6c, 0x76, 0x65, 301 0x72, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x26, 0x2e, 0x67, 302 0x6f, 0x2e, 0x70, 0x6b, 0x67, 0x2e, 0x72, 0x65, 0x73, 0x6f, 0x6c, 0x76, 0x65, 0x72, 0x2e, 0x52, 303 0x65, 0x73, 0x6f, 0x6c, 0x76, 0x65, 0x72, 0x2e, 0x52, 0x65, 0x73, 0x6f, 0x6c, 0x76, 0x65, 0x72, 304 0x54, 0x79, 0x70, 0x65, 0x52, 0x0c, 0x72, 0x65, 0x73, 0x6f, 0x6c, 0x76, 0x65, 0x72, 0x54, 0x79, 305 0x70, 0x65, 0x12, 0x55, 0x0a, 0x11, 0x6c, 0x6f, 0x61, 0x64, 0x5f, 0x62, 0x61, 0x6c, 0x61, 0x6e, 306 0x63, 0x65, 0x5f, 0x6d, 0x6f, 0x64, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x29, 0x2e, 307 0x67, 0x6f, 0x2e, 0x70, 0x6b, 0x67, 0x2e, 0x72, 0x65, 0x73, 0x6f, 0x6c, 0x76, 0x65, 0x72, 0x2e, 308 0x52, 0x65, 0x73, 0x6f, 0x6c, 0x76, 0x65, 0x72, 0x2e, 0x4c, 0x6f, 0x61, 0x64, 0x42, 0x61, 0x6c, 309 0x61, 0x6e, 0x63, 0x65, 0x4d, 0x6f, 0x64, 0x65, 0x52, 0x0f, 0x6c, 0x6f, 0x61, 0x64, 0x42, 0x61, 310 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x4d, 0x6f, 0x64, 0x65, 0x12, 0x44, 0x0a, 0x10, 0x72, 0x65, 0x73, 311 0x6f, 0x6c, 0x76, 0x65, 0x5f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x76, 0x61, 0x6c, 0x18, 0x04, 0x20, 312 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 313 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x44, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x0f, 314 0x72, 0x65, 0x73, 0x6f, 0x6c, 0x76, 0x65, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x76, 0x61, 0x6c, 0x12, 315 0x18, 0x0a, 0x07, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x09, 316 0x52, 0x07, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x73, 0x12, 0x2f, 0x0a, 0x03, 0x6b, 0x38, 0x73, 317 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x67, 0x6f, 0x2e, 0x70, 0x6b, 0x67, 0x2e, 318 0x72, 0x65, 0x73, 0x6f, 0x6c, 0x76, 0x65, 0x72, 0x2e, 0x52, 0x65, 0x73, 0x6f, 0x6c, 0x76, 0x65, 319 0x72, 0x2e, 0x4b, 0x38, 0x73, 0x52, 0x03, 0x6b, 0x38, 0x73, 0x1a, 0x66, 0x0a, 0x03, 0x4b, 0x38, 320 0x73, 0x12, 0x23, 0x0a, 0x0d, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 321 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0c, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 322 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x73, 0x12, 0x1d, 0x0a, 0x0a, 0x6e, 0x6f, 0x64, 0x65, 0x5f, 0x67, 323 0x72, 0x6f, 0x75, 0x70, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x6e, 0x6f, 0x64, 0x65, 324 0x47, 0x72, 0x6f, 0x75, 0x70, 0x12, 0x1b, 0x0a, 0x09, 0x6e, 0x6f, 0x64, 0x65, 0x5f, 0x75, 0x6e, 325 0x69, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x6e, 0x6f, 0x64, 0x65, 0x55, 0x6e, 326 0x69, 0x74, 0x22, 0x56, 0x0a, 0x0c, 0x52, 0x65, 0x73, 0x6f, 0x6c, 0x76, 0x65, 0x72, 0x54, 0x79, 327 0x70, 0x65, 0x12, 0x15, 0x0a, 0x11, 0x72, 0x65, 0x73, 0x6f, 0x6c, 0x76, 0x65, 0x72, 0x5f, 0x74, 328 0x79, 0x70, 0x65, 0x5f, 0x64, 0x6e, 0x73, 0x10, 0x00, 0x12, 0x18, 0x0a, 0x14, 0x72, 0x65, 0x73, 329 0x6f, 0x6c, 0x76, 0x65, 0x72, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x5f, 0x63, 0x6f, 0x6e, 0x73, 0x75, 330 0x6c, 0x10, 0x01, 0x12, 0x15, 0x0a, 0x11, 0x72, 0x65, 0x73, 0x6f, 0x6c, 0x76, 0x65, 0x72, 0x5f, 331 0x74, 0x79, 0x70, 0x65, 0x5f, 0x6b, 0x38, 0x73, 0x10, 0x02, 0x22, 0x4e, 0x0a, 0x0f, 0x4c, 0x6f, 332 0x61, 0x64, 0x42, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x4d, 0x6f, 0x64, 0x65, 0x12, 0x1c, 0x0a, 333 0x18, 0x6c, 0x6f, 0x61, 0x64, 0x5f, 0x62, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x5f, 0x6d, 0x6f, 334 0x64, 0x65, 0x5f, 0x72, 0x61, 0x6e, 0x64, 0x6f, 0x6d, 0x10, 0x00, 0x12, 0x1d, 0x0a, 0x19, 0x6c, 335 0x6f, 0x61, 0x64, 0x5f, 0x62, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x5f, 0x6d, 0x6f, 0x64, 0x65, 336 0x5f, 0x63, 0x6f, 0x6e, 0x73, 0x69, 0x73, 0x74, 0x10, 0x01, 0x42, 0x2c, 0x5a, 0x2a, 0x67, 0x69, 337 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x6b, 0x61, 0x79, 0x64, 0x78, 0x68, 0x2f, 338 0x67, 0x6f, 0x2e, 0x70, 0x6b, 0x67, 0x2e, 0x72, 0x65, 0x73, 0x6f, 0x6c, 0x76, 0x65, 0x72, 0x3b, 339 0x72, 0x65, 0x73, 0x6f, 0x6c, 0x76, 0x65, 0x72, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, 340 } 341 342 var ( 343 file_pkg_resolver_resolver_proto_rawDescOnce sync.Once 344 file_pkg_resolver_resolver_proto_rawDescData = file_pkg_resolver_resolver_proto_rawDesc 345 ) 346 347 func file_pkg_resolver_resolver_proto_rawDescGZIP() []byte { 348 file_pkg_resolver_resolver_proto_rawDescOnce.Do(func() { 349 file_pkg_resolver_resolver_proto_rawDescData = protoimpl.X.CompressGZIP(file_pkg_resolver_resolver_proto_rawDescData) 350 }) 351 return file_pkg_resolver_resolver_proto_rawDescData 352 } 353 354 var file_pkg_resolver_resolver_proto_enumTypes = make([]protoimpl.EnumInfo, 2) 355 var file_pkg_resolver_resolver_proto_msgTypes = make([]protoimpl.MessageInfo, 2) 356 var file_pkg_resolver_resolver_proto_goTypes = []interface{}{ 357 (Resolver_ResolverType)(0), // 0: go.pkg.resolver.Resolver.ResolverType 358 (Resolver_LoadBalanceMode)(0), // 1: go.pkg.resolver.Resolver.LoadBalanceMode 359 (*Resolver)(nil), // 2: go.pkg.resolver.Resolver 360 (*Resolver_K8S)(nil), // 3: go.pkg.resolver.Resolver.K8s 361 (*duration.Duration)(nil), // 4: google.protobuf.Duration 362 } 363 var file_pkg_resolver_resolver_proto_depIdxs = []int32{ 364 0, // 0: go.pkg.resolver.Resolver.resolver_type:type_name -> go.pkg.resolver.Resolver.ResolverType 365 1, // 1: go.pkg.resolver.Resolver.load_balance_mode:type_name -> go.pkg.resolver.Resolver.LoadBalanceMode 366 4, // 2: go.pkg.resolver.Resolver.resolve_interval:type_name -> google.protobuf.Duration 367 3, // 3: go.pkg.resolver.Resolver.k8s:type_name -> go.pkg.resolver.Resolver.K8s 368 4, // [4:4] is the sub-list for method output_type 369 4, // [4:4] is the sub-list for method input_type 370 4, // [4:4] is the sub-list for extension type_name 371 4, // [4:4] is the sub-list for extension extendee 372 0, // [0:4] is the sub-list for field type_name 373 } 374 375 func init() { file_pkg_resolver_resolver_proto_init() } 376 func file_pkg_resolver_resolver_proto_init() { 377 if File_pkg_resolver_resolver_proto != nil { 378 return 379 } 380 if !protoimpl.UnsafeEnabled { 381 file_pkg_resolver_resolver_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { 382 switch v := v.(*Resolver); i { 383 case 0: 384 return &v.state 385 case 1: 386 return &v.sizeCache 387 case 2: 388 return &v.unknownFields 389 default: 390 return nil 391 } 392 } 393 file_pkg_resolver_resolver_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { 394 switch v := v.(*Resolver_K8S); i { 395 case 0: 396 return &v.state 397 case 1: 398 return &v.sizeCache 399 case 2: 400 return &v.unknownFields 401 default: 402 return nil 403 } 404 } 405 } 406 type x struct{} 407 out := protoimpl.TypeBuilder{ 408 File: protoimpl.DescBuilder{ 409 GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 410 RawDescriptor: file_pkg_resolver_resolver_proto_rawDesc, 411 NumEnums: 2, 412 NumMessages: 2, 413 NumExtensions: 0, 414 NumServices: 0, 415 }, 416 GoTypes: file_pkg_resolver_resolver_proto_goTypes, 417 DependencyIndexes: file_pkg_resolver_resolver_proto_depIdxs, 418 EnumInfos: file_pkg_resolver_resolver_proto_enumTypes, 419 MessageInfos: file_pkg_resolver_resolver_proto_msgTypes, 420 }.Build() 421 File_pkg_resolver_resolver_proto = out.File 422 file_pkg_resolver_resolver_proto_rawDesc = nil 423 file_pkg_resolver_resolver_proto_goTypes = nil 424 file_pkg_resolver_resolver_proto_depIdxs = nil 425 }