github.com/team-ide/go-dialect@v1.9.20/vitess/vtrpc/vtrpc.pb.go (about) 1 // 2 //Copyright 2019 The Vitess Authors. 3 // 4 //Licensed under the Apache License, Version 2.0 (the "License"); 5 //you may not use this file except in compliance with the License. 6 //You may obtain a copy of the License at 7 // 8 //http://www.apache.org/licenses/LICENSE-2.0 9 // 10 //Unless required by applicable law or agreed to in writing, software 11 //distributed under the License is distributed on an "AS IS" BASIS, 12 //WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 //See the License for the specific language governing permissions and 14 //limitations under the License. 15 16 // This file contains useful data structures for RPCs in Vitess. 17 18 // Code generated by protoc-gen-go. DO NOT EDIT. 19 // versions: 20 // protoc-gen-go v1.27.1 21 // protoc v3.19.4 22 // source: vtrpc.proto 23 24 package vtrpc 25 26 import ( 27 protoreflect "google.golang.org/protobuf/reflect/protoreflect" 28 protoimpl "google.golang.org/protobuf/runtime/protoimpl" 29 reflect "reflect" 30 sync "sync" 31 ) 32 33 const ( 34 // Verify that this generated code is sufficiently up-to-date. 35 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) 36 // Verify that runtime/protoimpl is sufficiently up-to-date. 37 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) 38 ) 39 40 // Code represents canonical error codes. The names, numbers and comments 41 // must match the ones defined by grpc (0-16): 42 // https://godoc.org/google.golang.org/grpc/codes. 43 // 17+ are custom codes 44 type Code int32 45 46 const ( 47 // OK is returned on success. 48 Code_OK Code = 0 49 // CANCELED indicates the operation was cancelled (typically by the caller). 50 Code_CANCELED Code = 1 51 // UNKNOWN error. An example of where this error may be returned is 52 // if a Status value received from another address space belongs to 53 // an error-space that is not known in this address space. Also 54 // errors raised by APIs that do not return enough error information 55 // may be converted to this error. 56 Code_UNKNOWN Code = 2 57 // INVALID_ARGUMENT indicates client specified an invalid argument. 58 // Note that this differs from FAILED_PRECONDITION. It indicates arguments 59 // that are problematic regardless of the state of the system 60 // (e.g., a malformed file name). 61 Code_INVALID_ARGUMENT Code = 3 62 // DEADLINE_EXCEEDED means operation expired before completion. 63 // For operations that change the state of the system, this error may be 64 // returned even if the operation has completed successfully. For 65 // example, a successful response from a server could have been delayed 66 // long enough for the deadline to expire. 67 Code_DEADLINE_EXCEEDED Code = 4 68 // NOT_FOUND means some requested entity (e.g., file or directory) was 69 // not found. 70 Code_NOT_FOUND Code = 5 71 // ALREADY_EXISTS means an attempt to create an entity failed because one 72 // already exists. 73 Code_ALREADY_EXISTS Code = 6 74 // PERMISSION_DENIED indicates the caller does not have permission to 75 // execute the specified operation. It must not be used for rejections 76 // caused by exhausting some resource (use RESOURCE_EXHAUSTED 77 // instead for those errors). It must not be 78 // used if the caller cannot be identified (use Unauthenticated 79 // instead for those errors). 80 Code_PERMISSION_DENIED Code = 7 81 // RESOURCE_EXHAUSTED indicates some resource has been exhausted, perhaps 82 // a per-user quota, or perhaps the entire file system is out of space. 83 Code_RESOURCE_EXHAUSTED Code = 8 84 // FAILED_PRECONDITION indicates operation was rejected because the 85 // system is not in a state required for the operation's execution. 86 // For example, directory to be deleted may be non-empty, an rmdir 87 // operation is applied to a non-directory, etc. 88 // 89 // A litmus test that may help a service implementor in deciding 90 // between FAILED_PRECONDITION, ABORTED, and UNAVAILABLE: 91 // (a) Use UNAVAILABLE if the client can retry just the failing call. 92 // (b) Use ABORTED if the client should retry at a higher-level 93 // (e.g., restarting a read-modify-write sequence). 94 // (c) Use FAILED_PRECONDITION if the client should not retry until 95 // the system state has been explicitly fixed. E.g., if an "rmdir" 96 // fails because the directory is non-empty, FAILED_PRECONDITION 97 // should be returned since the client should not retry unless 98 // they have first fixed up the directory by deleting files from it. 99 // (d) Use FAILED_PRECONDITION if the client performs conditional 100 // REST Get/Update/Delete on a resource and the resource on the 101 // server does not match the condition. E.g., conflicting 102 // read-modify-write on the same resource. 103 Code_FAILED_PRECONDITION Code = 9 104 // ABORTED indicates the operation was aborted, typically due to a 105 // concurrency issue like sequencer check failures, transaction aborts, 106 // etc. 107 // 108 // See litmus test above for deciding between FAILED_PRECONDITION, 109 // ABORTED, and UNAVAILABLE. 110 Code_ABORTED Code = 10 111 // OUT_OF_RANGE means operation was attempted past the valid range. 112 // E.g., seeking or reading past end of file. 113 // 114 // Unlike INVALID_ARGUMENT, this error indicates a problem that may 115 // be fixed if the system state changes. For example, a 32-bit file 116 // system will generate INVALID_ARGUMENT if asked to read at an 117 // offset that is not in the range [0,2^32-1], but it will generate 118 // OUT_OF_RANGE if asked to read from an offset past the current 119 // file size. 120 // 121 // There is a fair bit of overlap between FAILED_PRECONDITION and 122 // OUT_OF_RANGE. We recommend using OUT_OF_RANGE (the more specific 123 // error) when it applies so that callers who are iterating through 124 // a space can easily look for an OUT_OF_RANGE error to detect when 125 // they are done. 126 Code_OUT_OF_RANGE Code = 11 127 // UNIMPLEMENTED indicates operation is not implemented or not 128 // supported/enabled in this service. 129 Code_UNIMPLEMENTED Code = 12 130 // INTERNAL errors. Means some invariants expected by underlying 131 // system has been broken. If you see one of these errors, 132 // something is very broken. 133 Code_INTERNAL Code = 13 134 // UNAVAILABLE indicates the service is currently unavailable. 135 // This is a most likely a transient condition and may be corrected 136 // by retrying with a backoff. 137 // 138 // See litmus test above for deciding between FAILED_PRECONDITION, 139 // ABORTED, and UNAVAILABLE. 140 Code_UNAVAILABLE Code = 14 141 // DATA_LOSS indicates unrecoverable data loss or corruption. 142 Code_DATA_LOSS Code = 15 143 // UNAUTHENTICATED indicates the request does not have valid 144 // authentication credentials for the operation. 145 Code_UNAUTHENTICATED Code = 16 146 // CLUSTER_EVENT indicates that a cluster operation might be in effect 147 Code_CLUSTER_EVENT Code = 17 148 // Topo server connection is read-only 149 Code_READ_ONLY Code = 18 150 ) 151 152 // Enum value maps for Code. 153 var ( 154 Code_name = map[int32]string{ 155 0: "OK", 156 1: "CANCELED", 157 2: "UNKNOWN", 158 3: "INVALID_ARGUMENT", 159 4: "DEADLINE_EXCEEDED", 160 5: "NOT_FOUND", 161 6: "ALREADY_EXISTS", 162 7: "PERMISSION_DENIED", 163 8: "RESOURCE_EXHAUSTED", 164 9: "FAILED_PRECONDITION", 165 10: "ABORTED", 166 11: "OUT_OF_RANGE", 167 12: "UNIMPLEMENTED", 168 13: "INTERNAL", 169 14: "UNAVAILABLE", 170 15: "DATA_LOSS", 171 16: "UNAUTHENTICATED", 172 17: "CLUSTER_EVENT", 173 18: "READ_ONLY", 174 } 175 Code_value = map[string]int32{ 176 "OK": 0, 177 "CANCELED": 1, 178 "UNKNOWN": 2, 179 "INVALID_ARGUMENT": 3, 180 "DEADLINE_EXCEEDED": 4, 181 "NOT_FOUND": 5, 182 "ALREADY_EXISTS": 6, 183 "PERMISSION_DENIED": 7, 184 "RESOURCE_EXHAUSTED": 8, 185 "FAILED_PRECONDITION": 9, 186 "ABORTED": 10, 187 "OUT_OF_RANGE": 11, 188 "UNIMPLEMENTED": 12, 189 "INTERNAL": 13, 190 "UNAVAILABLE": 14, 191 "DATA_LOSS": 15, 192 "UNAUTHENTICATED": 16, 193 "CLUSTER_EVENT": 17, 194 "READ_ONLY": 18, 195 } 196 ) 197 198 func (x Code) Enum() *Code { 199 p := new(Code) 200 *p = x 201 return p 202 } 203 204 func (x Code) String() string { 205 return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) 206 } 207 208 func (Code) Descriptor() protoreflect.EnumDescriptor { 209 return file_vtrpc_proto_enumTypes[0].Descriptor() 210 } 211 212 func (Code) Type() protoreflect.EnumType { 213 return &file_vtrpc_proto_enumTypes[0] 214 } 215 216 func (x Code) Number() protoreflect.EnumNumber { 217 return protoreflect.EnumNumber(x) 218 } 219 220 // Deprecated: Use Code.Descriptor instead. 221 func (Code) EnumDescriptor() ([]byte, []int) { 222 return file_vtrpc_proto_rawDescGZIP(), []int{0} 223 } 224 225 // CallerID is passed along RPCs to identify the originating client 226 // for a request. It is not meant to be secure, but only 227 // informational. The client can put whatever info they want in these 228 // fields, and they will be trusted by the servers. The fields will 229 // just be used for logging purposes, and to easily find a client. 230 // VtGate propagates it to VtTablet, and VtTablet may use this 231 // information for monitoring purposes, to display on dashboards, or 232 // for denying access to tables during a migration. 233 type CallerID struct { 234 state protoimpl.MessageState 235 sizeCache protoimpl.SizeCache 236 unknownFields protoimpl.UnknownFields 237 238 // principal is the effective user identifier. It is usually filled in 239 // with whoever made the request to the appserver, if the request 240 // came from an automated job or another system component. 241 // If the request comes directly from the Internet, or if the Vitess client 242 // takes action on its own accord, it is okay for this field to be absent. 243 Principal string `protobuf:"bytes,1,opt,name=principal,proto3" json:"principal,omitempty"` 244 // component describes the running process of the effective caller. 245 // It can for instance be the hostname:port of the servlet initiating the 246 // database call, or the container engine ID used by the servlet. 247 Component string `protobuf:"bytes,2,opt,name=component,proto3" json:"component,omitempty"` 248 // subcomponent describes a component inisde the immediate caller which 249 // is responsible for generating is request. Suggested values are a 250 // servlet name or an API endpoint name. 251 Subcomponent string `protobuf:"bytes,3,opt,name=subcomponent,proto3" json:"subcomponent,omitempty"` 252 } 253 254 func (x *CallerID) Reset() { 255 *x = CallerID{} 256 if protoimpl.UnsafeEnabled { 257 mi := &file_vtrpc_proto_msgTypes[0] 258 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 259 ms.StoreMessageInfo(mi) 260 } 261 } 262 263 func (x *CallerID) String() string { 264 return protoimpl.X.MessageStringOf(x) 265 } 266 267 func (*CallerID) ProtoMessage() {} 268 269 func (x *CallerID) ProtoReflect() protoreflect.Message { 270 mi := &file_vtrpc_proto_msgTypes[0] 271 if protoimpl.UnsafeEnabled && x != nil { 272 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 273 if ms.LoadMessageInfo() == nil { 274 ms.StoreMessageInfo(mi) 275 } 276 return ms 277 } 278 return mi.MessageOf(x) 279 } 280 281 // Deprecated: Use CallerID.ProtoReflect.Descriptor instead. 282 func (*CallerID) Descriptor() ([]byte, []int) { 283 return file_vtrpc_proto_rawDescGZIP(), []int{0} 284 } 285 286 func (x *CallerID) GetPrincipal() string { 287 if x != nil { 288 return x.Principal 289 } 290 return "" 291 } 292 293 func (x *CallerID) GetComponent() string { 294 if x != nil { 295 return x.Component 296 } 297 return "" 298 } 299 300 func (x *CallerID) GetSubcomponent() string { 301 if x != nil { 302 return x.Subcomponent 303 } 304 return "" 305 } 306 307 // RPCError is an application-level error structure returned by 308 // VtTablet (and passed along by VtGate if appropriate). 309 // We use this so the clients don't have to parse the error messages, 310 // but instead can depend on the value of the code. 311 type RPCError struct { 312 state protoimpl.MessageState 313 sizeCache protoimpl.SizeCache 314 unknownFields protoimpl.UnknownFields 315 316 Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` 317 Code Code `protobuf:"varint,3,opt,name=code,proto3,enum=vtrpc.Code" json:"code,omitempty"` 318 } 319 320 func (x *RPCError) Reset() { 321 *x = RPCError{} 322 if protoimpl.UnsafeEnabled { 323 mi := &file_vtrpc_proto_msgTypes[1] 324 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 325 ms.StoreMessageInfo(mi) 326 } 327 } 328 329 func (x *RPCError) String() string { 330 return protoimpl.X.MessageStringOf(x) 331 } 332 333 func (*RPCError) ProtoMessage() {} 334 335 func (x *RPCError) ProtoReflect() protoreflect.Message { 336 mi := &file_vtrpc_proto_msgTypes[1] 337 if protoimpl.UnsafeEnabled && x != nil { 338 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 339 if ms.LoadMessageInfo() == nil { 340 ms.StoreMessageInfo(mi) 341 } 342 return ms 343 } 344 return mi.MessageOf(x) 345 } 346 347 // Deprecated: Use RPCError.ProtoReflect.Descriptor instead. 348 func (*RPCError) Descriptor() ([]byte, []int) { 349 return file_vtrpc_proto_rawDescGZIP(), []int{1} 350 } 351 352 func (x *RPCError) GetMessage() string { 353 if x != nil { 354 return x.Message 355 } 356 return "" 357 } 358 359 func (x *RPCError) GetCode() Code { 360 if x != nil { 361 return x.Code 362 } 363 return Code_OK 364 } 365 366 var File_vtrpc_proto protoreflect.FileDescriptor 367 368 var file_vtrpc_proto_rawDesc = []byte{ 369 0x0a, 0x0b, 0x76, 0x74, 0x72, 0x70, 0x63, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x05, 0x76, 370 0x74, 0x72, 0x70, 0x63, 0x22, 0x6a, 0x0a, 0x08, 0x43, 0x61, 0x6c, 0x6c, 0x65, 0x72, 0x49, 0x44, 371 0x12, 0x1c, 0x0a, 0x09, 0x70, 0x72, 0x69, 0x6e, 0x63, 0x69, 0x70, 0x61, 0x6c, 0x18, 0x01, 0x20, 372 0x01, 0x28, 0x09, 0x52, 0x09, 0x70, 0x72, 0x69, 0x6e, 0x63, 0x69, 0x70, 0x61, 0x6c, 0x12, 0x1c, 373 0x0a, 0x09, 0x63, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 374 0x09, 0x52, 0x09, 0x63, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x12, 0x22, 0x0a, 0x0c, 375 0x73, 0x75, 0x62, 0x63, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x18, 0x03, 0x20, 0x01, 376 0x28, 0x09, 0x52, 0x0c, 0x73, 0x75, 0x62, 0x63, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, 377 0x22, 0x58, 0x0a, 0x08, 0x52, 0x50, 0x43, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x12, 0x18, 0x0a, 0x07, 378 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6d, 379 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x1f, 0x0a, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x03, 380 0x20, 0x01, 0x28, 0x0e, 0x32, 0x0b, 0x2e, 0x76, 0x74, 0x72, 0x70, 0x63, 0x2e, 0x43, 0x6f, 0x64, 381 0x65, 0x52, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x4a, 0x04, 0x08, 0x01, 0x10, 0x02, 0x52, 0x0b, 0x6c, 382 0x65, 0x67, 0x61, 0x63, 0x79, 0x5f, 0x63, 0x6f, 0x64, 0x65, 0x2a, 0xd8, 0x02, 0x0a, 0x04, 0x43, 383 0x6f, 0x64, 0x65, 0x12, 0x06, 0x0a, 0x02, 0x4f, 0x4b, 0x10, 0x00, 0x12, 0x0c, 0x0a, 0x08, 0x43, 384 0x41, 0x4e, 0x43, 0x45, 0x4c, 0x45, 0x44, 0x10, 0x01, 0x12, 0x0b, 0x0a, 0x07, 0x55, 0x4e, 0x4b, 385 0x4e, 0x4f, 0x57, 0x4e, 0x10, 0x02, 0x12, 0x14, 0x0a, 0x10, 0x49, 0x4e, 0x56, 0x41, 0x4c, 0x49, 386 0x44, 0x5f, 0x41, 0x52, 0x47, 0x55, 0x4d, 0x45, 0x4e, 0x54, 0x10, 0x03, 0x12, 0x15, 0x0a, 0x11, 387 0x44, 0x45, 0x41, 0x44, 0x4c, 0x49, 0x4e, 0x45, 0x5f, 0x45, 0x58, 0x43, 0x45, 0x45, 0x44, 0x45, 388 0x44, 0x10, 0x04, 0x12, 0x0d, 0x0a, 0x09, 0x4e, 0x4f, 0x54, 0x5f, 0x46, 0x4f, 0x55, 0x4e, 0x44, 389 0x10, 0x05, 0x12, 0x12, 0x0a, 0x0e, 0x41, 0x4c, 0x52, 0x45, 0x41, 0x44, 0x59, 0x5f, 0x45, 0x58, 390 0x49, 0x53, 0x54, 0x53, 0x10, 0x06, 0x12, 0x15, 0x0a, 0x11, 0x50, 0x45, 0x52, 0x4d, 0x49, 0x53, 391 0x53, 0x49, 0x4f, 0x4e, 0x5f, 0x44, 0x45, 0x4e, 0x49, 0x45, 0x44, 0x10, 0x07, 0x12, 0x16, 0x0a, 392 0x12, 0x52, 0x45, 0x53, 0x4f, 0x55, 0x52, 0x43, 0x45, 0x5f, 0x45, 0x58, 0x48, 0x41, 0x55, 0x53, 393 0x54, 0x45, 0x44, 0x10, 0x08, 0x12, 0x17, 0x0a, 0x13, 0x46, 0x41, 0x49, 0x4c, 0x45, 0x44, 0x5f, 394 0x50, 0x52, 0x45, 0x43, 0x4f, 0x4e, 0x44, 0x49, 0x54, 0x49, 0x4f, 0x4e, 0x10, 0x09, 0x12, 0x0b, 395 0x0a, 0x07, 0x41, 0x42, 0x4f, 0x52, 0x54, 0x45, 0x44, 0x10, 0x0a, 0x12, 0x10, 0x0a, 0x0c, 0x4f, 396 0x55, 0x54, 0x5f, 0x4f, 0x46, 0x5f, 0x52, 0x41, 0x4e, 0x47, 0x45, 0x10, 0x0b, 0x12, 0x11, 0x0a, 397 0x0d, 0x55, 0x4e, 0x49, 0x4d, 0x50, 0x4c, 0x45, 0x4d, 0x45, 0x4e, 0x54, 0x45, 0x44, 0x10, 0x0c, 398 0x12, 0x0c, 0x0a, 0x08, 0x49, 0x4e, 0x54, 0x45, 0x52, 0x4e, 0x41, 0x4c, 0x10, 0x0d, 0x12, 0x0f, 399 0x0a, 0x0b, 0x55, 0x4e, 0x41, 0x56, 0x41, 0x49, 0x4c, 0x41, 0x42, 0x4c, 0x45, 0x10, 0x0e, 0x12, 400 0x0d, 0x0a, 0x09, 0x44, 0x41, 0x54, 0x41, 0x5f, 0x4c, 0x4f, 0x53, 0x53, 0x10, 0x0f, 0x12, 0x13, 401 0x0a, 0x0f, 0x55, 0x4e, 0x41, 0x55, 0x54, 0x48, 0x45, 0x4e, 0x54, 0x49, 0x43, 0x41, 0x54, 0x45, 402 0x44, 0x10, 0x10, 0x12, 0x11, 0x0a, 0x0d, 0x43, 0x4c, 0x55, 0x53, 0x54, 0x45, 0x52, 0x5f, 0x45, 403 0x56, 0x45, 0x4e, 0x54, 0x10, 0x11, 0x12, 0x0d, 0x0a, 0x09, 0x52, 0x45, 0x41, 0x44, 0x5f, 0x4f, 404 0x4e, 0x4c, 0x59, 0x10, 0x12, 0x42, 0x35, 0x0a, 0x0f, 0x69, 0x6f, 0x2e, 0x76, 0x69, 0x74, 0x65, 405 0x73, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x5a, 0x22, 0x76, 0x69, 0x74, 0x65, 0x73, 0x73, 406 0x2e, 0x69, 0x6f, 0x2f, 0x76, 0x69, 0x74, 0x65, 0x73, 0x73, 0x2f, 0x67, 0x6f, 0x2f, 0x76, 0x74, 407 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x76, 0x74, 0x72, 0x70, 0x63, 0x62, 0x06, 0x70, 0x72, 408 0x6f, 0x74, 0x6f, 0x33, 409 } 410 411 var ( 412 file_vtrpc_proto_rawDescOnce sync.Once 413 file_vtrpc_proto_rawDescData = file_vtrpc_proto_rawDesc 414 ) 415 416 func file_vtrpc_proto_rawDescGZIP() []byte { 417 file_vtrpc_proto_rawDescOnce.Do(func() { 418 file_vtrpc_proto_rawDescData = protoimpl.X.CompressGZIP(file_vtrpc_proto_rawDescData) 419 }) 420 return file_vtrpc_proto_rawDescData 421 } 422 423 var file_vtrpc_proto_enumTypes = make([]protoimpl.EnumInfo, 1) 424 var file_vtrpc_proto_msgTypes = make([]protoimpl.MessageInfo, 2) 425 var file_vtrpc_proto_goTypes = []interface{}{ 426 (Code)(0), // 0: vtrpc.Code 427 (*CallerID)(nil), // 1: vtrpc.CallerID 428 (*RPCError)(nil), // 2: vtrpc.RPCError 429 } 430 var file_vtrpc_proto_depIdxs = []int32{ 431 0, // 0: vtrpc.RPCError.code:type_name -> vtrpc.Code 432 1, // [1:1] is the sub-list for method output_type 433 1, // [1:1] is the sub-list for method input_type 434 1, // [1:1] is the sub-list for extension type_name 435 1, // [1:1] is the sub-list for extension extendee 436 0, // [0:1] is the sub-list for field type_name 437 } 438 439 func init() { file_vtrpc_proto_init() } 440 func file_vtrpc_proto_init() { 441 if File_vtrpc_proto != nil { 442 return 443 } 444 if !protoimpl.UnsafeEnabled { 445 file_vtrpc_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { 446 switch v := v.(*CallerID); i { 447 case 0: 448 return &v.state 449 case 1: 450 return &v.sizeCache 451 case 2: 452 return &v.unknownFields 453 default: 454 return nil 455 } 456 } 457 file_vtrpc_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { 458 switch v := v.(*RPCError); i { 459 case 0: 460 return &v.state 461 case 1: 462 return &v.sizeCache 463 case 2: 464 return &v.unknownFields 465 default: 466 return nil 467 } 468 } 469 } 470 type x struct{} 471 out := protoimpl.TypeBuilder{ 472 File: protoimpl.DescBuilder{ 473 GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 474 RawDescriptor: file_vtrpc_proto_rawDesc, 475 NumEnums: 1, 476 NumMessages: 2, 477 NumExtensions: 0, 478 NumServices: 0, 479 }, 480 GoTypes: file_vtrpc_proto_goTypes, 481 DependencyIndexes: file_vtrpc_proto_depIdxs, 482 EnumInfos: file_vtrpc_proto_enumTypes, 483 MessageInfos: file_vtrpc_proto_msgTypes, 484 }.Build() 485 File_vtrpc_proto = out.File 486 file_vtrpc_proto_rawDesc = nil 487 file_vtrpc_proto_goTypes = nil 488 file_vtrpc_proto_depIdxs = nil 489 }