khenaidoo | ac63710 | 2019-01-14 15:44:34 -0500 | [diff] [blame] | 1 | // Code generated by protoc-gen-gogo. DO NOT EDIT. |
| 2 | // source: descriptor.proto |
| 3 | |
| 4 | package descriptor |
| 5 | |
| 6 | import fmt "fmt" |
| 7 | import strings "strings" |
| 8 | import github_com_gogo_protobuf_proto "github.com/gogo/protobuf/proto" |
| 9 | import sort "sort" |
| 10 | import strconv "strconv" |
| 11 | import reflect "reflect" |
| 12 | import proto "github.com/gogo/protobuf/proto" |
| 13 | import math "math" |
| 14 | |
| 15 | // Reference imports to suppress errors if they are not otherwise used. |
| 16 | var _ = proto.Marshal |
| 17 | var _ = fmt.Errorf |
| 18 | var _ = math.Inf |
| 19 | |
| 20 | func (this *FileDescriptorSet) GoString() string { |
| 21 | if this == nil { |
| 22 | return "nil" |
| 23 | } |
| 24 | s := make([]string, 0, 5) |
| 25 | s = append(s, "&descriptor.FileDescriptorSet{") |
| 26 | if this.File != nil { |
| 27 | s = append(s, "File: "+fmt.Sprintf("%#v", this.File)+",\n") |
| 28 | } |
| 29 | if this.XXX_unrecognized != nil { |
| 30 | s = append(s, "XXX_unrecognized:"+fmt.Sprintf("%#v", this.XXX_unrecognized)+",\n") |
| 31 | } |
| 32 | s = append(s, "}") |
| 33 | return strings.Join(s, "") |
| 34 | } |
| 35 | func (this *FileDescriptorProto) GoString() string { |
| 36 | if this == nil { |
| 37 | return "nil" |
| 38 | } |
| 39 | s := make([]string, 0, 16) |
| 40 | s = append(s, "&descriptor.FileDescriptorProto{") |
| 41 | if this.Name != nil { |
| 42 | s = append(s, "Name: "+valueToGoStringDescriptor(this.Name, "string")+",\n") |
| 43 | } |
| 44 | if this.Package != nil { |
| 45 | s = append(s, "Package: "+valueToGoStringDescriptor(this.Package, "string")+",\n") |
| 46 | } |
| 47 | if this.Dependency != nil { |
| 48 | s = append(s, "Dependency: "+fmt.Sprintf("%#v", this.Dependency)+",\n") |
| 49 | } |
| 50 | if this.PublicDependency != nil { |
| 51 | s = append(s, "PublicDependency: "+fmt.Sprintf("%#v", this.PublicDependency)+",\n") |
| 52 | } |
| 53 | if this.WeakDependency != nil { |
| 54 | s = append(s, "WeakDependency: "+fmt.Sprintf("%#v", this.WeakDependency)+",\n") |
| 55 | } |
| 56 | if this.MessageType != nil { |
| 57 | s = append(s, "MessageType: "+fmt.Sprintf("%#v", this.MessageType)+",\n") |
| 58 | } |
| 59 | if this.EnumType != nil { |
| 60 | s = append(s, "EnumType: "+fmt.Sprintf("%#v", this.EnumType)+",\n") |
| 61 | } |
| 62 | if this.Service != nil { |
| 63 | s = append(s, "Service: "+fmt.Sprintf("%#v", this.Service)+",\n") |
| 64 | } |
| 65 | if this.Extension != nil { |
| 66 | s = append(s, "Extension: "+fmt.Sprintf("%#v", this.Extension)+",\n") |
| 67 | } |
| 68 | if this.Options != nil { |
| 69 | s = append(s, "Options: "+fmt.Sprintf("%#v", this.Options)+",\n") |
| 70 | } |
| 71 | if this.SourceCodeInfo != nil { |
| 72 | s = append(s, "SourceCodeInfo: "+fmt.Sprintf("%#v", this.SourceCodeInfo)+",\n") |
| 73 | } |
| 74 | if this.Syntax != nil { |
| 75 | s = append(s, "Syntax: "+valueToGoStringDescriptor(this.Syntax, "string")+",\n") |
| 76 | } |
| 77 | if this.XXX_unrecognized != nil { |
| 78 | s = append(s, "XXX_unrecognized:"+fmt.Sprintf("%#v", this.XXX_unrecognized)+",\n") |
| 79 | } |
| 80 | s = append(s, "}") |
| 81 | return strings.Join(s, "") |
| 82 | } |
| 83 | func (this *DescriptorProto) GoString() string { |
| 84 | if this == nil { |
| 85 | return "nil" |
| 86 | } |
| 87 | s := make([]string, 0, 14) |
| 88 | s = append(s, "&descriptor.DescriptorProto{") |
| 89 | if this.Name != nil { |
| 90 | s = append(s, "Name: "+valueToGoStringDescriptor(this.Name, "string")+",\n") |
| 91 | } |
| 92 | if this.Field != nil { |
| 93 | s = append(s, "Field: "+fmt.Sprintf("%#v", this.Field)+",\n") |
| 94 | } |
| 95 | if this.Extension != nil { |
| 96 | s = append(s, "Extension: "+fmt.Sprintf("%#v", this.Extension)+",\n") |
| 97 | } |
| 98 | if this.NestedType != nil { |
| 99 | s = append(s, "NestedType: "+fmt.Sprintf("%#v", this.NestedType)+",\n") |
| 100 | } |
| 101 | if this.EnumType != nil { |
| 102 | s = append(s, "EnumType: "+fmt.Sprintf("%#v", this.EnumType)+",\n") |
| 103 | } |
| 104 | if this.ExtensionRange != nil { |
| 105 | s = append(s, "ExtensionRange: "+fmt.Sprintf("%#v", this.ExtensionRange)+",\n") |
| 106 | } |
| 107 | if this.OneofDecl != nil { |
| 108 | s = append(s, "OneofDecl: "+fmt.Sprintf("%#v", this.OneofDecl)+",\n") |
| 109 | } |
| 110 | if this.Options != nil { |
| 111 | s = append(s, "Options: "+fmt.Sprintf("%#v", this.Options)+",\n") |
| 112 | } |
| 113 | if this.ReservedRange != nil { |
| 114 | s = append(s, "ReservedRange: "+fmt.Sprintf("%#v", this.ReservedRange)+",\n") |
| 115 | } |
| 116 | if this.ReservedName != nil { |
| 117 | s = append(s, "ReservedName: "+fmt.Sprintf("%#v", this.ReservedName)+",\n") |
| 118 | } |
| 119 | if this.XXX_unrecognized != nil { |
| 120 | s = append(s, "XXX_unrecognized:"+fmt.Sprintf("%#v", this.XXX_unrecognized)+",\n") |
| 121 | } |
| 122 | s = append(s, "}") |
| 123 | return strings.Join(s, "") |
| 124 | } |
| 125 | func (this *DescriptorProto_ExtensionRange) GoString() string { |
| 126 | if this == nil { |
| 127 | return "nil" |
| 128 | } |
| 129 | s := make([]string, 0, 7) |
| 130 | s = append(s, "&descriptor.DescriptorProto_ExtensionRange{") |
| 131 | if this.Start != nil { |
| 132 | s = append(s, "Start: "+valueToGoStringDescriptor(this.Start, "int32")+",\n") |
| 133 | } |
| 134 | if this.End != nil { |
| 135 | s = append(s, "End: "+valueToGoStringDescriptor(this.End, "int32")+",\n") |
| 136 | } |
| 137 | if this.Options != nil { |
| 138 | s = append(s, "Options: "+fmt.Sprintf("%#v", this.Options)+",\n") |
| 139 | } |
| 140 | if this.XXX_unrecognized != nil { |
| 141 | s = append(s, "XXX_unrecognized:"+fmt.Sprintf("%#v", this.XXX_unrecognized)+",\n") |
| 142 | } |
| 143 | s = append(s, "}") |
| 144 | return strings.Join(s, "") |
| 145 | } |
| 146 | func (this *DescriptorProto_ReservedRange) GoString() string { |
| 147 | if this == nil { |
| 148 | return "nil" |
| 149 | } |
| 150 | s := make([]string, 0, 6) |
| 151 | s = append(s, "&descriptor.DescriptorProto_ReservedRange{") |
| 152 | if this.Start != nil { |
| 153 | s = append(s, "Start: "+valueToGoStringDescriptor(this.Start, "int32")+",\n") |
| 154 | } |
| 155 | if this.End != nil { |
| 156 | s = append(s, "End: "+valueToGoStringDescriptor(this.End, "int32")+",\n") |
| 157 | } |
| 158 | if this.XXX_unrecognized != nil { |
| 159 | s = append(s, "XXX_unrecognized:"+fmt.Sprintf("%#v", this.XXX_unrecognized)+",\n") |
| 160 | } |
| 161 | s = append(s, "}") |
| 162 | return strings.Join(s, "") |
| 163 | } |
| 164 | func (this *ExtensionRangeOptions) GoString() string { |
| 165 | if this == nil { |
| 166 | return "nil" |
| 167 | } |
| 168 | s := make([]string, 0, 5) |
| 169 | s = append(s, "&descriptor.ExtensionRangeOptions{") |
| 170 | if this.UninterpretedOption != nil { |
| 171 | s = append(s, "UninterpretedOption: "+fmt.Sprintf("%#v", this.UninterpretedOption)+",\n") |
| 172 | } |
| 173 | s = append(s, "XXX_InternalExtensions: "+extensionToGoStringDescriptor(this)+",\n") |
| 174 | if this.XXX_unrecognized != nil { |
| 175 | s = append(s, "XXX_unrecognized:"+fmt.Sprintf("%#v", this.XXX_unrecognized)+",\n") |
| 176 | } |
| 177 | s = append(s, "}") |
| 178 | return strings.Join(s, "") |
| 179 | } |
| 180 | func (this *FieldDescriptorProto) GoString() string { |
| 181 | if this == nil { |
| 182 | return "nil" |
| 183 | } |
| 184 | s := make([]string, 0, 14) |
| 185 | s = append(s, "&descriptor.FieldDescriptorProto{") |
| 186 | if this.Name != nil { |
| 187 | s = append(s, "Name: "+valueToGoStringDescriptor(this.Name, "string")+",\n") |
| 188 | } |
| 189 | if this.Number != nil { |
| 190 | s = append(s, "Number: "+valueToGoStringDescriptor(this.Number, "int32")+",\n") |
| 191 | } |
| 192 | if this.Label != nil { |
| 193 | s = append(s, "Label: "+valueToGoStringDescriptor(this.Label, "FieldDescriptorProto_Label")+",\n") |
| 194 | } |
| 195 | if this.Type != nil { |
| 196 | s = append(s, "Type: "+valueToGoStringDescriptor(this.Type, "FieldDescriptorProto_Type")+",\n") |
| 197 | } |
| 198 | if this.TypeName != nil { |
| 199 | s = append(s, "TypeName: "+valueToGoStringDescriptor(this.TypeName, "string")+",\n") |
| 200 | } |
| 201 | if this.Extendee != nil { |
| 202 | s = append(s, "Extendee: "+valueToGoStringDescriptor(this.Extendee, "string")+",\n") |
| 203 | } |
| 204 | if this.DefaultValue != nil { |
| 205 | s = append(s, "DefaultValue: "+valueToGoStringDescriptor(this.DefaultValue, "string")+",\n") |
| 206 | } |
| 207 | if this.OneofIndex != nil { |
| 208 | s = append(s, "OneofIndex: "+valueToGoStringDescriptor(this.OneofIndex, "int32")+",\n") |
| 209 | } |
| 210 | if this.JsonName != nil { |
| 211 | s = append(s, "JsonName: "+valueToGoStringDescriptor(this.JsonName, "string")+",\n") |
| 212 | } |
| 213 | if this.Options != nil { |
| 214 | s = append(s, "Options: "+fmt.Sprintf("%#v", this.Options)+",\n") |
| 215 | } |
| 216 | if this.XXX_unrecognized != nil { |
| 217 | s = append(s, "XXX_unrecognized:"+fmt.Sprintf("%#v", this.XXX_unrecognized)+",\n") |
| 218 | } |
| 219 | s = append(s, "}") |
| 220 | return strings.Join(s, "") |
| 221 | } |
| 222 | func (this *OneofDescriptorProto) GoString() string { |
| 223 | if this == nil { |
| 224 | return "nil" |
| 225 | } |
| 226 | s := make([]string, 0, 6) |
| 227 | s = append(s, "&descriptor.OneofDescriptorProto{") |
| 228 | if this.Name != nil { |
| 229 | s = append(s, "Name: "+valueToGoStringDescriptor(this.Name, "string")+",\n") |
| 230 | } |
| 231 | if this.Options != nil { |
| 232 | s = append(s, "Options: "+fmt.Sprintf("%#v", this.Options)+",\n") |
| 233 | } |
| 234 | if this.XXX_unrecognized != nil { |
| 235 | s = append(s, "XXX_unrecognized:"+fmt.Sprintf("%#v", this.XXX_unrecognized)+",\n") |
| 236 | } |
| 237 | s = append(s, "}") |
| 238 | return strings.Join(s, "") |
| 239 | } |
| 240 | func (this *EnumDescriptorProto) GoString() string { |
| 241 | if this == nil { |
| 242 | return "nil" |
| 243 | } |
| 244 | s := make([]string, 0, 9) |
| 245 | s = append(s, "&descriptor.EnumDescriptorProto{") |
| 246 | if this.Name != nil { |
| 247 | s = append(s, "Name: "+valueToGoStringDescriptor(this.Name, "string")+",\n") |
| 248 | } |
| 249 | if this.Value != nil { |
| 250 | s = append(s, "Value: "+fmt.Sprintf("%#v", this.Value)+",\n") |
| 251 | } |
| 252 | if this.Options != nil { |
| 253 | s = append(s, "Options: "+fmt.Sprintf("%#v", this.Options)+",\n") |
| 254 | } |
| 255 | if this.ReservedRange != nil { |
| 256 | s = append(s, "ReservedRange: "+fmt.Sprintf("%#v", this.ReservedRange)+",\n") |
| 257 | } |
| 258 | if this.ReservedName != nil { |
| 259 | s = append(s, "ReservedName: "+fmt.Sprintf("%#v", this.ReservedName)+",\n") |
| 260 | } |
| 261 | if this.XXX_unrecognized != nil { |
| 262 | s = append(s, "XXX_unrecognized:"+fmt.Sprintf("%#v", this.XXX_unrecognized)+",\n") |
| 263 | } |
| 264 | s = append(s, "}") |
| 265 | return strings.Join(s, "") |
| 266 | } |
| 267 | func (this *EnumDescriptorProto_EnumReservedRange) GoString() string { |
| 268 | if this == nil { |
| 269 | return "nil" |
| 270 | } |
| 271 | s := make([]string, 0, 6) |
| 272 | s = append(s, "&descriptor.EnumDescriptorProto_EnumReservedRange{") |
| 273 | if this.Start != nil { |
| 274 | s = append(s, "Start: "+valueToGoStringDescriptor(this.Start, "int32")+",\n") |
| 275 | } |
| 276 | if this.End != nil { |
| 277 | s = append(s, "End: "+valueToGoStringDescriptor(this.End, "int32")+",\n") |
| 278 | } |
| 279 | if this.XXX_unrecognized != nil { |
| 280 | s = append(s, "XXX_unrecognized:"+fmt.Sprintf("%#v", this.XXX_unrecognized)+",\n") |
| 281 | } |
| 282 | s = append(s, "}") |
| 283 | return strings.Join(s, "") |
| 284 | } |
| 285 | func (this *EnumValueDescriptorProto) GoString() string { |
| 286 | if this == nil { |
| 287 | return "nil" |
| 288 | } |
| 289 | s := make([]string, 0, 7) |
| 290 | s = append(s, "&descriptor.EnumValueDescriptorProto{") |
| 291 | if this.Name != nil { |
| 292 | s = append(s, "Name: "+valueToGoStringDescriptor(this.Name, "string")+",\n") |
| 293 | } |
| 294 | if this.Number != nil { |
| 295 | s = append(s, "Number: "+valueToGoStringDescriptor(this.Number, "int32")+",\n") |
| 296 | } |
| 297 | if this.Options != nil { |
| 298 | s = append(s, "Options: "+fmt.Sprintf("%#v", this.Options)+",\n") |
| 299 | } |
| 300 | if this.XXX_unrecognized != nil { |
| 301 | s = append(s, "XXX_unrecognized:"+fmt.Sprintf("%#v", this.XXX_unrecognized)+",\n") |
| 302 | } |
| 303 | s = append(s, "}") |
| 304 | return strings.Join(s, "") |
| 305 | } |
| 306 | func (this *ServiceDescriptorProto) GoString() string { |
| 307 | if this == nil { |
| 308 | return "nil" |
| 309 | } |
| 310 | s := make([]string, 0, 7) |
| 311 | s = append(s, "&descriptor.ServiceDescriptorProto{") |
| 312 | if this.Name != nil { |
| 313 | s = append(s, "Name: "+valueToGoStringDescriptor(this.Name, "string")+",\n") |
| 314 | } |
| 315 | if this.Method != nil { |
| 316 | s = append(s, "Method: "+fmt.Sprintf("%#v", this.Method)+",\n") |
| 317 | } |
| 318 | if this.Options != nil { |
| 319 | s = append(s, "Options: "+fmt.Sprintf("%#v", this.Options)+",\n") |
| 320 | } |
| 321 | if this.XXX_unrecognized != nil { |
| 322 | s = append(s, "XXX_unrecognized:"+fmt.Sprintf("%#v", this.XXX_unrecognized)+",\n") |
| 323 | } |
| 324 | s = append(s, "}") |
| 325 | return strings.Join(s, "") |
| 326 | } |
| 327 | func (this *MethodDescriptorProto) GoString() string { |
| 328 | if this == nil { |
| 329 | return "nil" |
| 330 | } |
| 331 | s := make([]string, 0, 10) |
| 332 | s = append(s, "&descriptor.MethodDescriptorProto{") |
| 333 | if this.Name != nil { |
| 334 | s = append(s, "Name: "+valueToGoStringDescriptor(this.Name, "string")+",\n") |
| 335 | } |
| 336 | if this.InputType != nil { |
| 337 | s = append(s, "InputType: "+valueToGoStringDescriptor(this.InputType, "string")+",\n") |
| 338 | } |
| 339 | if this.OutputType != nil { |
| 340 | s = append(s, "OutputType: "+valueToGoStringDescriptor(this.OutputType, "string")+",\n") |
| 341 | } |
| 342 | if this.Options != nil { |
| 343 | s = append(s, "Options: "+fmt.Sprintf("%#v", this.Options)+",\n") |
| 344 | } |
| 345 | if this.ClientStreaming != nil { |
| 346 | s = append(s, "ClientStreaming: "+valueToGoStringDescriptor(this.ClientStreaming, "bool")+",\n") |
| 347 | } |
| 348 | if this.ServerStreaming != nil { |
| 349 | s = append(s, "ServerStreaming: "+valueToGoStringDescriptor(this.ServerStreaming, "bool")+",\n") |
| 350 | } |
| 351 | if this.XXX_unrecognized != nil { |
| 352 | s = append(s, "XXX_unrecognized:"+fmt.Sprintf("%#v", this.XXX_unrecognized)+",\n") |
| 353 | } |
| 354 | s = append(s, "}") |
| 355 | return strings.Join(s, "") |
| 356 | } |
| 357 | func (this *FileOptions) GoString() string { |
| 358 | if this == nil { |
| 359 | return "nil" |
| 360 | } |
| 361 | s := make([]string, 0, 23) |
| 362 | s = append(s, "&descriptor.FileOptions{") |
| 363 | if this.JavaPackage != nil { |
| 364 | s = append(s, "JavaPackage: "+valueToGoStringDescriptor(this.JavaPackage, "string")+",\n") |
| 365 | } |
| 366 | if this.JavaOuterClassname != nil { |
| 367 | s = append(s, "JavaOuterClassname: "+valueToGoStringDescriptor(this.JavaOuterClassname, "string")+",\n") |
| 368 | } |
| 369 | if this.JavaMultipleFiles != nil { |
| 370 | s = append(s, "JavaMultipleFiles: "+valueToGoStringDescriptor(this.JavaMultipleFiles, "bool")+",\n") |
| 371 | } |
| 372 | if this.JavaGenerateEqualsAndHash != nil { |
| 373 | s = append(s, "JavaGenerateEqualsAndHash: "+valueToGoStringDescriptor(this.JavaGenerateEqualsAndHash, "bool")+",\n") |
| 374 | } |
| 375 | if this.JavaStringCheckUtf8 != nil { |
| 376 | s = append(s, "JavaStringCheckUtf8: "+valueToGoStringDescriptor(this.JavaStringCheckUtf8, "bool")+",\n") |
| 377 | } |
| 378 | if this.OptimizeFor != nil { |
| 379 | s = append(s, "OptimizeFor: "+valueToGoStringDescriptor(this.OptimizeFor, "FileOptions_OptimizeMode")+",\n") |
| 380 | } |
| 381 | if this.GoPackage != nil { |
| 382 | s = append(s, "GoPackage: "+valueToGoStringDescriptor(this.GoPackage, "string")+",\n") |
| 383 | } |
| 384 | if this.CcGenericServices != nil { |
| 385 | s = append(s, "CcGenericServices: "+valueToGoStringDescriptor(this.CcGenericServices, "bool")+",\n") |
| 386 | } |
| 387 | if this.JavaGenericServices != nil { |
| 388 | s = append(s, "JavaGenericServices: "+valueToGoStringDescriptor(this.JavaGenericServices, "bool")+",\n") |
| 389 | } |
| 390 | if this.PyGenericServices != nil { |
| 391 | s = append(s, "PyGenericServices: "+valueToGoStringDescriptor(this.PyGenericServices, "bool")+",\n") |
| 392 | } |
| 393 | if this.PhpGenericServices != nil { |
| 394 | s = append(s, "PhpGenericServices: "+valueToGoStringDescriptor(this.PhpGenericServices, "bool")+",\n") |
| 395 | } |
| 396 | if this.Deprecated != nil { |
| 397 | s = append(s, "Deprecated: "+valueToGoStringDescriptor(this.Deprecated, "bool")+",\n") |
| 398 | } |
| 399 | if this.CcEnableArenas != nil { |
| 400 | s = append(s, "CcEnableArenas: "+valueToGoStringDescriptor(this.CcEnableArenas, "bool")+",\n") |
| 401 | } |
| 402 | if this.ObjcClassPrefix != nil { |
| 403 | s = append(s, "ObjcClassPrefix: "+valueToGoStringDescriptor(this.ObjcClassPrefix, "string")+",\n") |
| 404 | } |
| 405 | if this.CsharpNamespace != nil { |
| 406 | s = append(s, "CsharpNamespace: "+valueToGoStringDescriptor(this.CsharpNamespace, "string")+",\n") |
| 407 | } |
| 408 | if this.SwiftPrefix != nil { |
| 409 | s = append(s, "SwiftPrefix: "+valueToGoStringDescriptor(this.SwiftPrefix, "string")+",\n") |
| 410 | } |
| 411 | if this.PhpClassPrefix != nil { |
| 412 | s = append(s, "PhpClassPrefix: "+valueToGoStringDescriptor(this.PhpClassPrefix, "string")+",\n") |
| 413 | } |
| 414 | if this.PhpNamespace != nil { |
| 415 | s = append(s, "PhpNamespace: "+valueToGoStringDescriptor(this.PhpNamespace, "string")+",\n") |
| 416 | } |
| 417 | if this.UninterpretedOption != nil { |
| 418 | s = append(s, "UninterpretedOption: "+fmt.Sprintf("%#v", this.UninterpretedOption)+",\n") |
| 419 | } |
| 420 | s = append(s, "XXX_InternalExtensions: "+extensionToGoStringDescriptor(this)+",\n") |
| 421 | if this.XXX_unrecognized != nil { |
| 422 | s = append(s, "XXX_unrecognized:"+fmt.Sprintf("%#v", this.XXX_unrecognized)+",\n") |
| 423 | } |
| 424 | s = append(s, "}") |
| 425 | return strings.Join(s, "") |
| 426 | } |
| 427 | func (this *MessageOptions) GoString() string { |
| 428 | if this == nil { |
| 429 | return "nil" |
| 430 | } |
| 431 | s := make([]string, 0, 9) |
| 432 | s = append(s, "&descriptor.MessageOptions{") |
| 433 | if this.MessageSetWireFormat != nil { |
| 434 | s = append(s, "MessageSetWireFormat: "+valueToGoStringDescriptor(this.MessageSetWireFormat, "bool")+",\n") |
| 435 | } |
| 436 | if this.NoStandardDescriptorAccessor != nil { |
| 437 | s = append(s, "NoStandardDescriptorAccessor: "+valueToGoStringDescriptor(this.NoStandardDescriptorAccessor, "bool")+",\n") |
| 438 | } |
| 439 | if this.Deprecated != nil { |
| 440 | s = append(s, "Deprecated: "+valueToGoStringDescriptor(this.Deprecated, "bool")+",\n") |
| 441 | } |
| 442 | if this.MapEntry != nil { |
| 443 | s = append(s, "MapEntry: "+valueToGoStringDescriptor(this.MapEntry, "bool")+",\n") |
| 444 | } |
| 445 | if this.UninterpretedOption != nil { |
| 446 | s = append(s, "UninterpretedOption: "+fmt.Sprintf("%#v", this.UninterpretedOption)+",\n") |
| 447 | } |
| 448 | s = append(s, "XXX_InternalExtensions: "+extensionToGoStringDescriptor(this)+",\n") |
| 449 | if this.XXX_unrecognized != nil { |
| 450 | s = append(s, "XXX_unrecognized:"+fmt.Sprintf("%#v", this.XXX_unrecognized)+",\n") |
| 451 | } |
| 452 | s = append(s, "}") |
| 453 | return strings.Join(s, "") |
| 454 | } |
| 455 | func (this *FieldOptions) GoString() string { |
| 456 | if this == nil { |
| 457 | return "nil" |
| 458 | } |
| 459 | s := make([]string, 0, 11) |
| 460 | s = append(s, "&descriptor.FieldOptions{") |
| 461 | if this.Ctype != nil { |
| 462 | s = append(s, "Ctype: "+valueToGoStringDescriptor(this.Ctype, "FieldOptions_CType")+",\n") |
| 463 | } |
| 464 | if this.Packed != nil { |
| 465 | s = append(s, "Packed: "+valueToGoStringDescriptor(this.Packed, "bool")+",\n") |
| 466 | } |
| 467 | if this.Jstype != nil { |
| 468 | s = append(s, "Jstype: "+valueToGoStringDescriptor(this.Jstype, "FieldOptions_JSType")+",\n") |
| 469 | } |
| 470 | if this.Lazy != nil { |
| 471 | s = append(s, "Lazy: "+valueToGoStringDescriptor(this.Lazy, "bool")+",\n") |
| 472 | } |
| 473 | if this.Deprecated != nil { |
| 474 | s = append(s, "Deprecated: "+valueToGoStringDescriptor(this.Deprecated, "bool")+",\n") |
| 475 | } |
| 476 | if this.Weak != nil { |
| 477 | s = append(s, "Weak: "+valueToGoStringDescriptor(this.Weak, "bool")+",\n") |
| 478 | } |
| 479 | if this.UninterpretedOption != nil { |
| 480 | s = append(s, "UninterpretedOption: "+fmt.Sprintf("%#v", this.UninterpretedOption)+",\n") |
| 481 | } |
| 482 | s = append(s, "XXX_InternalExtensions: "+extensionToGoStringDescriptor(this)+",\n") |
| 483 | if this.XXX_unrecognized != nil { |
| 484 | s = append(s, "XXX_unrecognized:"+fmt.Sprintf("%#v", this.XXX_unrecognized)+",\n") |
| 485 | } |
| 486 | s = append(s, "}") |
| 487 | return strings.Join(s, "") |
| 488 | } |
| 489 | func (this *OneofOptions) GoString() string { |
| 490 | if this == nil { |
| 491 | return "nil" |
| 492 | } |
| 493 | s := make([]string, 0, 5) |
| 494 | s = append(s, "&descriptor.OneofOptions{") |
| 495 | if this.UninterpretedOption != nil { |
| 496 | s = append(s, "UninterpretedOption: "+fmt.Sprintf("%#v", this.UninterpretedOption)+",\n") |
| 497 | } |
| 498 | s = append(s, "XXX_InternalExtensions: "+extensionToGoStringDescriptor(this)+",\n") |
| 499 | if this.XXX_unrecognized != nil { |
| 500 | s = append(s, "XXX_unrecognized:"+fmt.Sprintf("%#v", this.XXX_unrecognized)+",\n") |
| 501 | } |
| 502 | s = append(s, "}") |
| 503 | return strings.Join(s, "") |
| 504 | } |
| 505 | func (this *EnumOptions) GoString() string { |
| 506 | if this == nil { |
| 507 | return "nil" |
| 508 | } |
| 509 | s := make([]string, 0, 7) |
| 510 | s = append(s, "&descriptor.EnumOptions{") |
| 511 | if this.AllowAlias != nil { |
| 512 | s = append(s, "AllowAlias: "+valueToGoStringDescriptor(this.AllowAlias, "bool")+",\n") |
| 513 | } |
| 514 | if this.Deprecated != nil { |
| 515 | s = append(s, "Deprecated: "+valueToGoStringDescriptor(this.Deprecated, "bool")+",\n") |
| 516 | } |
| 517 | if this.UninterpretedOption != nil { |
| 518 | s = append(s, "UninterpretedOption: "+fmt.Sprintf("%#v", this.UninterpretedOption)+",\n") |
| 519 | } |
| 520 | s = append(s, "XXX_InternalExtensions: "+extensionToGoStringDescriptor(this)+",\n") |
| 521 | if this.XXX_unrecognized != nil { |
| 522 | s = append(s, "XXX_unrecognized:"+fmt.Sprintf("%#v", this.XXX_unrecognized)+",\n") |
| 523 | } |
| 524 | s = append(s, "}") |
| 525 | return strings.Join(s, "") |
| 526 | } |
| 527 | func (this *EnumValueOptions) GoString() string { |
| 528 | if this == nil { |
| 529 | return "nil" |
| 530 | } |
| 531 | s := make([]string, 0, 6) |
| 532 | s = append(s, "&descriptor.EnumValueOptions{") |
| 533 | if this.Deprecated != nil { |
| 534 | s = append(s, "Deprecated: "+valueToGoStringDescriptor(this.Deprecated, "bool")+",\n") |
| 535 | } |
| 536 | if this.UninterpretedOption != nil { |
| 537 | s = append(s, "UninterpretedOption: "+fmt.Sprintf("%#v", this.UninterpretedOption)+",\n") |
| 538 | } |
| 539 | s = append(s, "XXX_InternalExtensions: "+extensionToGoStringDescriptor(this)+",\n") |
| 540 | if this.XXX_unrecognized != nil { |
| 541 | s = append(s, "XXX_unrecognized:"+fmt.Sprintf("%#v", this.XXX_unrecognized)+",\n") |
| 542 | } |
| 543 | s = append(s, "}") |
| 544 | return strings.Join(s, "") |
| 545 | } |
| 546 | func (this *ServiceOptions) GoString() string { |
| 547 | if this == nil { |
| 548 | return "nil" |
| 549 | } |
| 550 | s := make([]string, 0, 6) |
| 551 | s = append(s, "&descriptor.ServiceOptions{") |
| 552 | if this.Deprecated != nil { |
| 553 | s = append(s, "Deprecated: "+valueToGoStringDescriptor(this.Deprecated, "bool")+",\n") |
| 554 | } |
| 555 | if this.UninterpretedOption != nil { |
| 556 | s = append(s, "UninterpretedOption: "+fmt.Sprintf("%#v", this.UninterpretedOption)+",\n") |
| 557 | } |
| 558 | s = append(s, "XXX_InternalExtensions: "+extensionToGoStringDescriptor(this)+",\n") |
| 559 | if this.XXX_unrecognized != nil { |
| 560 | s = append(s, "XXX_unrecognized:"+fmt.Sprintf("%#v", this.XXX_unrecognized)+",\n") |
| 561 | } |
| 562 | s = append(s, "}") |
| 563 | return strings.Join(s, "") |
| 564 | } |
| 565 | func (this *MethodOptions) GoString() string { |
| 566 | if this == nil { |
| 567 | return "nil" |
| 568 | } |
| 569 | s := make([]string, 0, 7) |
| 570 | s = append(s, "&descriptor.MethodOptions{") |
| 571 | if this.Deprecated != nil { |
| 572 | s = append(s, "Deprecated: "+valueToGoStringDescriptor(this.Deprecated, "bool")+",\n") |
| 573 | } |
| 574 | if this.IdempotencyLevel != nil { |
| 575 | s = append(s, "IdempotencyLevel: "+valueToGoStringDescriptor(this.IdempotencyLevel, "MethodOptions_IdempotencyLevel")+",\n") |
| 576 | } |
| 577 | if this.UninterpretedOption != nil { |
| 578 | s = append(s, "UninterpretedOption: "+fmt.Sprintf("%#v", this.UninterpretedOption)+",\n") |
| 579 | } |
| 580 | s = append(s, "XXX_InternalExtensions: "+extensionToGoStringDescriptor(this)+",\n") |
| 581 | if this.XXX_unrecognized != nil { |
| 582 | s = append(s, "XXX_unrecognized:"+fmt.Sprintf("%#v", this.XXX_unrecognized)+",\n") |
| 583 | } |
| 584 | s = append(s, "}") |
| 585 | return strings.Join(s, "") |
| 586 | } |
| 587 | func (this *UninterpretedOption) GoString() string { |
| 588 | if this == nil { |
| 589 | return "nil" |
| 590 | } |
| 591 | s := make([]string, 0, 11) |
| 592 | s = append(s, "&descriptor.UninterpretedOption{") |
| 593 | if this.Name != nil { |
| 594 | s = append(s, "Name: "+fmt.Sprintf("%#v", this.Name)+",\n") |
| 595 | } |
| 596 | if this.IdentifierValue != nil { |
| 597 | s = append(s, "IdentifierValue: "+valueToGoStringDescriptor(this.IdentifierValue, "string")+",\n") |
| 598 | } |
| 599 | if this.PositiveIntValue != nil { |
| 600 | s = append(s, "PositiveIntValue: "+valueToGoStringDescriptor(this.PositiveIntValue, "uint64")+",\n") |
| 601 | } |
| 602 | if this.NegativeIntValue != nil { |
| 603 | s = append(s, "NegativeIntValue: "+valueToGoStringDescriptor(this.NegativeIntValue, "int64")+",\n") |
| 604 | } |
| 605 | if this.DoubleValue != nil { |
| 606 | s = append(s, "DoubleValue: "+valueToGoStringDescriptor(this.DoubleValue, "float64")+",\n") |
| 607 | } |
| 608 | if this.StringValue != nil { |
| 609 | s = append(s, "StringValue: "+valueToGoStringDescriptor(this.StringValue, "byte")+",\n") |
| 610 | } |
| 611 | if this.AggregateValue != nil { |
| 612 | s = append(s, "AggregateValue: "+valueToGoStringDescriptor(this.AggregateValue, "string")+",\n") |
| 613 | } |
| 614 | if this.XXX_unrecognized != nil { |
| 615 | s = append(s, "XXX_unrecognized:"+fmt.Sprintf("%#v", this.XXX_unrecognized)+",\n") |
| 616 | } |
| 617 | s = append(s, "}") |
| 618 | return strings.Join(s, "") |
| 619 | } |
| 620 | func (this *UninterpretedOption_NamePart) GoString() string { |
| 621 | if this == nil { |
| 622 | return "nil" |
| 623 | } |
| 624 | s := make([]string, 0, 6) |
| 625 | s = append(s, "&descriptor.UninterpretedOption_NamePart{") |
| 626 | if this.NamePart != nil { |
| 627 | s = append(s, "NamePart: "+valueToGoStringDescriptor(this.NamePart, "string")+",\n") |
| 628 | } |
| 629 | if this.IsExtension != nil { |
| 630 | s = append(s, "IsExtension: "+valueToGoStringDescriptor(this.IsExtension, "bool")+",\n") |
| 631 | } |
| 632 | if this.XXX_unrecognized != nil { |
| 633 | s = append(s, "XXX_unrecognized:"+fmt.Sprintf("%#v", this.XXX_unrecognized)+",\n") |
| 634 | } |
| 635 | s = append(s, "}") |
| 636 | return strings.Join(s, "") |
| 637 | } |
| 638 | func (this *SourceCodeInfo) GoString() string { |
| 639 | if this == nil { |
| 640 | return "nil" |
| 641 | } |
| 642 | s := make([]string, 0, 5) |
| 643 | s = append(s, "&descriptor.SourceCodeInfo{") |
| 644 | if this.Location != nil { |
| 645 | s = append(s, "Location: "+fmt.Sprintf("%#v", this.Location)+",\n") |
| 646 | } |
| 647 | if this.XXX_unrecognized != nil { |
| 648 | s = append(s, "XXX_unrecognized:"+fmt.Sprintf("%#v", this.XXX_unrecognized)+",\n") |
| 649 | } |
| 650 | s = append(s, "}") |
| 651 | return strings.Join(s, "") |
| 652 | } |
| 653 | func (this *SourceCodeInfo_Location) GoString() string { |
| 654 | if this == nil { |
| 655 | return "nil" |
| 656 | } |
| 657 | s := make([]string, 0, 9) |
| 658 | s = append(s, "&descriptor.SourceCodeInfo_Location{") |
| 659 | if this.Path != nil { |
| 660 | s = append(s, "Path: "+fmt.Sprintf("%#v", this.Path)+",\n") |
| 661 | } |
| 662 | if this.Span != nil { |
| 663 | s = append(s, "Span: "+fmt.Sprintf("%#v", this.Span)+",\n") |
| 664 | } |
| 665 | if this.LeadingComments != nil { |
| 666 | s = append(s, "LeadingComments: "+valueToGoStringDescriptor(this.LeadingComments, "string")+",\n") |
| 667 | } |
| 668 | if this.TrailingComments != nil { |
| 669 | s = append(s, "TrailingComments: "+valueToGoStringDescriptor(this.TrailingComments, "string")+",\n") |
| 670 | } |
| 671 | if this.LeadingDetachedComments != nil { |
| 672 | s = append(s, "LeadingDetachedComments: "+fmt.Sprintf("%#v", this.LeadingDetachedComments)+",\n") |
| 673 | } |
| 674 | if this.XXX_unrecognized != nil { |
| 675 | s = append(s, "XXX_unrecognized:"+fmt.Sprintf("%#v", this.XXX_unrecognized)+",\n") |
| 676 | } |
| 677 | s = append(s, "}") |
| 678 | return strings.Join(s, "") |
| 679 | } |
| 680 | func (this *GeneratedCodeInfo) GoString() string { |
| 681 | if this == nil { |
| 682 | return "nil" |
| 683 | } |
| 684 | s := make([]string, 0, 5) |
| 685 | s = append(s, "&descriptor.GeneratedCodeInfo{") |
| 686 | if this.Annotation != nil { |
| 687 | s = append(s, "Annotation: "+fmt.Sprintf("%#v", this.Annotation)+",\n") |
| 688 | } |
| 689 | if this.XXX_unrecognized != nil { |
| 690 | s = append(s, "XXX_unrecognized:"+fmt.Sprintf("%#v", this.XXX_unrecognized)+",\n") |
| 691 | } |
| 692 | s = append(s, "}") |
| 693 | return strings.Join(s, "") |
| 694 | } |
| 695 | func (this *GeneratedCodeInfo_Annotation) GoString() string { |
| 696 | if this == nil { |
| 697 | return "nil" |
| 698 | } |
| 699 | s := make([]string, 0, 8) |
| 700 | s = append(s, "&descriptor.GeneratedCodeInfo_Annotation{") |
| 701 | if this.Path != nil { |
| 702 | s = append(s, "Path: "+fmt.Sprintf("%#v", this.Path)+",\n") |
| 703 | } |
| 704 | if this.SourceFile != nil { |
| 705 | s = append(s, "SourceFile: "+valueToGoStringDescriptor(this.SourceFile, "string")+",\n") |
| 706 | } |
| 707 | if this.Begin != nil { |
| 708 | s = append(s, "Begin: "+valueToGoStringDescriptor(this.Begin, "int32")+",\n") |
| 709 | } |
| 710 | if this.End != nil { |
| 711 | s = append(s, "End: "+valueToGoStringDescriptor(this.End, "int32")+",\n") |
| 712 | } |
| 713 | if this.XXX_unrecognized != nil { |
| 714 | s = append(s, "XXX_unrecognized:"+fmt.Sprintf("%#v", this.XXX_unrecognized)+",\n") |
| 715 | } |
| 716 | s = append(s, "}") |
| 717 | return strings.Join(s, "") |
| 718 | } |
| 719 | func valueToGoStringDescriptor(v interface{}, typ string) string { |
| 720 | rv := reflect.ValueOf(v) |
| 721 | if rv.IsNil() { |
| 722 | return "nil" |
| 723 | } |
| 724 | pv := reflect.Indirect(rv).Interface() |
| 725 | return fmt.Sprintf("func(v %v) *%v { return &v } ( %#v )", typ, typ, pv) |
| 726 | } |
| 727 | func extensionToGoStringDescriptor(m github_com_gogo_protobuf_proto.Message) string { |
| 728 | e := github_com_gogo_protobuf_proto.GetUnsafeExtensionsMap(m) |
| 729 | if e == nil { |
| 730 | return "nil" |
| 731 | } |
| 732 | s := "proto.NewUnsafeXXX_InternalExtensions(map[int32]proto.Extension{" |
| 733 | keys := make([]int, 0, len(e)) |
| 734 | for k := range e { |
| 735 | keys = append(keys, int(k)) |
| 736 | } |
| 737 | sort.Ints(keys) |
| 738 | ss := []string{} |
| 739 | for _, k := range keys { |
| 740 | ss = append(ss, strconv.Itoa(k)+": "+e[int32(k)].GoString()) |
| 741 | } |
| 742 | s += strings.Join(ss, ",") + "})" |
| 743 | return s |
| 744 | } |