#Region "Microsoft.VisualBasic::fb6cde20e9c66219cb837069d7f425dc, Google.Protobuf\Reflection\Descriptor\Descriptor.vb"
' Author:
'
' asuka (amethyst.asuka@gcmodeller.org)
' xie (genetics@smrucc.org)
' xieguigang (xie.guigang@live.com)
'
' Copyright (c) 2018 GPL3 Licensed
'
'
' GNU GENERAL PUBLIC LICENSE (GPL3)
'
'
' This program is free software: you can redistribute it and/or modify
' it under the terms of the GNU General Public License as published by
' the Free Software Foundation, either version 3 of the License, or
' (at your option) any later version.
'
' This program is distributed in the hope that it will be useful,
' but WITHOUT ANY WARRANTY; without even the implied warranty of
' MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
' GNU General Public License for more details.
'
' You should have received a copy of the GNU General Public License
' along with this program. If not, see .
' /********************************************************************************/
' Summaries:
' Module DescriptorReflection
'
' Properties: Descriptor
'
' Constructor: (+1 Overloads) Sub New
'
' Class FileDescriptorSet
'
' Properties: Descriptor, DescriptorProp, File, Parser
'
' Constructor: (+2 Overloads) Sub New
'
' Function: CalculateSize, Clone, (+2 Overloads) Equals, GetHashCode, ToString
'
' Sub: (+2 Overloads) MergeFrom, OnConstruction, WriteTo
'
' Class FileDescriptorProto
'
' Properties: Dependency, Descriptor, DescriptorProp, EnumType, Extension
' MessageType, Name, Options, Package, Parser
' PublicDependency, Service, SourceCodeInfo, Syntax, WeakDependency
'
' Constructor: (+2 Overloads) Sub New
'
' Function: CalculateSize, Clone, (+2 Overloads) Equals, GetHashCode, ToString
'
' Sub: (+2 Overloads) MergeFrom, OnConstruction, WriteTo
'
' Class DescriptorProto
'
' Properties: Descriptor, DescriptorProp, EnumType, Extension, ExtensionRange
' Field, Name, NestedType, OneofDecl, Options
' Parser, ReservedName, ReservedRange
'
' Constructor: (+2 Overloads) Sub New
'
' Function: CalculateSize, Clone, (+2 Overloads) Equals, GetHashCode, ToString
'
' Sub: (+2 Overloads) MergeFrom, OnConstruction, WriteTo
' Class Types
'
'
' Class ExtensionRange
'
' Properties: [End], Descriptor, DescriptorProp, Parser, Start
'
' Constructor: (+2 Overloads) Sub New
'
' Function: CalculateSize, Clone, (+2 Overloads) Equals, GetHashCode, ToString
'
' Sub: (+2 Overloads) MergeFrom, OnConstruction, WriteTo
'
' Class ReservedRange
'
' Properties: [End], Descriptor, DescriptorProp, Parser, Start
'
' Constructor: (+2 Overloads) Sub New
'
' Function: CalculateSize, Clone, (+2 Overloads) Equals, GetHashCode, ToString
'
' Sub: (+2 Overloads) MergeFrom, OnConstruction, WriteTo
'
'
'
'
'
' Class FieldDescriptorProto
'
' Properties: DefaultValue, Descriptor, DescriptorProp, Extendee, JsonName
' Label, Name, Number, OneofIndex, Options
' Parser, Type, TypeName
'
' Constructor: (+2 Overloads) Sub New
'
' Function: CalculateSize, Clone, (+2 Overloads) Equals, GetHashCode, ToString
'
' Sub: (+2 Overloads) MergeFrom, OnConstruction, WriteTo
' Class Types
'
'
' Enum Type
'
' (+6 Overloads) Get, Return
'
'
'
' Enum Label
'
'
'
'
'
'
'
'
'
'
'
'
' Class OneofDescriptorProto
'
' Properties: Descriptor, DescriptorProp, Name, Options, Parser
'
' Constructor: (+2 Overloads) Sub New
'
' Function: CalculateSize, Clone, (+2 Overloads) Equals, GetHashCode, ToString
'
' Sub: (+2 Overloads) MergeFrom, OnConstruction, WriteTo
'
' Class EnumDescriptorProto
'
' Properties: Descriptor, DescriptorProp, Name, Options, Parser
' Value
'
' Constructor: (+2 Overloads) Sub New
'
' Function: CalculateSize, Clone, (+2 Overloads) Equals, GetHashCode, ToString
'
' Sub: (+2 Overloads) MergeFrom, OnConstruction, WriteTo
'
' Class EnumValueDescriptorProto
'
' Properties: Descriptor, DescriptorProp, Name, Number, Options
' Parser
'
' Constructor: (+2 Overloads) Sub New
'
' Function: CalculateSize, Clone, (+2 Overloads) Equals, GetHashCode, ToString
'
' Sub: (+2 Overloads) MergeFrom, OnConstruction, WriteTo
'
' Class ServiceDescriptorProto
'
' Properties: Descriptor, DescriptorProp, Method, Name, Options
' Parser
'
' Constructor: (+2 Overloads) Sub New
'
' Function: CalculateSize, Clone, (+2 Overloads) Equals, GetHashCode, ToString
'
' Sub: (+2 Overloads) MergeFrom, OnConstruction, WriteTo
'
' Class MethodDescriptorProto
'
' Properties: ClientStreaming, Descriptor, DescriptorProp, InputType, Name
' Options, OutputType, Parser, ServerStreaming
'
' Constructor: (+2 Overloads) Sub New
'
' Function: CalculateSize, Clone, (+2 Overloads) Equals, GetHashCode, ToString
'
' Sub: (+2 Overloads) MergeFrom, OnConstruction, WriteTo
'
' Class FileOptions
'
' Properties: CcEnableArenas, CcGenericServices, CsharpNamespace, Deprecated, Descriptor
' DescriptorProp, GoPackage, JavaGenerateEqualsAndHash, JavaGenericServices, JavaMultipleFiles
' JavaOuterClassname, JavaPackage, JavaStringCheckUtf8, ObjcClassPrefix, OptimizeFor
' Parser, PyGenericServices, UninterpretedOption
'
' Constructor: (+2 Overloads) Sub New
'
' Function: CalculateSize, Clone, (+2 Overloads) Equals, GetHashCode, ToString
'
' Sub: (+2 Overloads) MergeFrom, OnConstruction, WriteTo
' Class Types
'
'
' Enum OptimizeMode
'
'
'
'
'
'
'
'
'
'
' Class MessageOptions
'
' Properties: Deprecated, Descriptor, DescriptorProp, MapEntry, MessageSetWireFormat
' NoStandardDescriptorAccessor, Parser, UninterpretedOption
'
' Constructor: (+2 Overloads) Sub New
'
' Function: CalculateSize, Clone, (+2 Overloads) Equals, GetHashCode, ToString
'
' Sub: (+2 Overloads) MergeFrom, OnConstruction, WriteTo
'
' Class FieldOptions
'
' Properties: [Ctype], Deprecated, Descriptor, DescriptorProp, Jstype
' Lazy, Packed, Parser, UninterpretedOption, Weak
'
' Constructor: (+2 Overloads) Sub New
'
' Function: CalculateSize, Clone, (+2 Overloads) Equals, GetHashCode, ToString
'
' Sub: (+2 Overloads) MergeFrom, OnConstruction, WriteTo
' Class Types
'
'
' Enum [CType]
'
' (+6 Overloads) Get, Return
'
'
'
' Enum JSType
'
'
'
'
'
'
'
'
'
'
'
'
' Class OneofOptions
'
' Properties: Descriptor, DescriptorProp, Parser, UninterpretedOption
'
' Constructor: (+2 Overloads) Sub New
'
' Function: CalculateSize, Clone, (+2 Overloads) Equals, GetHashCode, ToString
'
' Sub: (+2 Overloads) MergeFrom, OnConstruction, WriteTo
'
' Class EnumOptions
'
' Properties: AllowAlias, Deprecated, Descriptor, DescriptorProp, Parser
' UninterpretedOption
'
' Constructor: (+2 Overloads) Sub New
'
' Function: CalculateSize, Clone, (+2 Overloads) Equals, GetHashCode, ToString
'
' Sub: (+2 Overloads) MergeFrom, OnConstruction, WriteTo
'
' Class EnumValueOptions
'
' Properties: Deprecated, Descriptor, DescriptorProp, Parser, UninterpretedOption
'
' Constructor: (+2 Overloads) Sub New
'
' Function: CalculateSize, Clone, (+2 Overloads) Equals, GetHashCode, ToString
'
' Sub: (+2 Overloads) MergeFrom, OnConstruction, WriteTo
'
' Class ServiceOptions
'
' Properties: Deprecated, Descriptor, DescriptorProp, Parser, UninterpretedOption
'
' Constructor: (+2 Overloads) Sub New
'
' Function: CalculateSize, Clone, (+2 Overloads) Equals, GetHashCode, ToString
'
' Sub: (+2 Overloads) MergeFrom, OnConstruction, WriteTo
'
' Class MethodOptions
'
' Properties: Deprecated, Descriptor, DescriptorProp, Parser, UninterpretedOption
'
' Constructor: (+2 Overloads) Sub New
'
' Function: CalculateSize, Clone, (+2 Overloads) Equals, GetHashCode, ToString
'
' Sub: (+2 Overloads) MergeFrom, OnConstruction, WriteTo
'
' Class UninterpretedOption
'
' Properties: AggregateValue, Descriptor, DescriptorProp, DoubleValue, IdentifierValue
' Name, NegativeIntValue, Parser, PositiveIntValue, StringValue
'
' Constructor: (+2 Overloads) Sub New
'
' Function: CalculateSize, Clone, (+2 Overloads) Equals, GetHashCode, ToString
'
' Sub: (+2 Overloads) MergeFrom, OnConstruction, WriteTo
' Class Types
'
'
' Class NamePart
'
' Properties: Descriptor, DescriptorProp, IsExtension, NamePart_, Parser
'
' Constructor: (+2 Overloads) Sub New
'
' Function: CalculateSize, Clone, (+2 Overloads) Equals, GetHashCode, ToString
'
' Sub: (+2 Overloads) MergeFrom, OnConstruction, WriteTo
'
'
'
'
'
' Class SourceCodeInfo
'
' Properties: Descriptor, DescriptorProp, Location, Parser
'
' Constructor: (+2 Overloads) Sub New
'
' Function: CalculateSize, Clone, (+2 Overloads) Equals, GetHashCode, ToString
'
' Sub: (+2 Overloads) MergeFrom, OnConstruction, WriteTo
' Class Types
'
'
' Class Location
'
' Properties: Descriptor, DescriptorProp, LeadingComments, LeadingDetachedComments, Parser
' Path, Span, TrailingComments
'
' Constructor: (+2 Overloads) Sub New
'
' Function: CalculateSize, Clone, (+2 Overloads) Equals, GetHashCode, ToString
'
' Sub: (+2 Overloads) MergeFrom, OnConstruction, WriteTo
'
'
'
'
'
' Class GeneratedCodeInfo
'
' Properties: Annotation, Descriptor, DescriptorProp, Parser
'
' Constructor: (+2 Overloads) Sub New
'
' Function: CalculateSize, Clone, (+2 Overloads) Equals, GetHashCode, ToString
'
' Sub: (+2 Overloads) MergeFrom, OnConstruction, WriteTo
' Class Types
'
'
' Class Annotation
'
' Properties: [End], Begin, Descriptor, DescriptorProp, Parser
' Path, SourceFile
'
' Constructor: (+2 Overloads) Sub New
'
' Function: CalculateSize, Clone, (+2 Overloads) Equals, GetHashCode, ToString
'
' Sub: (+2 Overloads) MergeFrom, OnConstruction, WriteTo
'
'
'
'
'
'
' /********************************************************************************/
#End Region
' Generated by the protocol buffer compiler. DO NOT EDIT!
' source: google/protobuf/descriptor.proto
#Region "Designer generated code"
Imports Microsoft.VisualBasic.Language
Imports pbc = Google.Protobuf.Collections
Namespace Google.Protobuf.Reflection
''' Holder for reflection information generated from google/protobuf/descriptor.proto
Partial Friend Module DescriptorReflection
#Region "Descriptor"
''' File descriptor for google/protobuf/descriptor.proto
Public ReadOnly Property Descriptor As FileDescriptor
Get
Return descriptorField
End Get
End Property
Private descriptorField As FileDescriptor
Sub New()
Dim descriptorData As Byte() = Global.System.Convert.FromBase64String(String.Concat("CiBnb29nbGUvcHJvdG9idWYvZGVzY3JpcHRvci5wcm90bxIPZ29vZ2xlLnBy", "b3RvYnVmIkcKEUZpbGVEZXNjcmlwdG9yU2V0EjIKBGZpbGUYASADKAsyJC5n", "b29nbGUucHJvdG9idWYuRmlsZURlc2NyaXB0b3JQcm90byLbAwoTRmlsZURl", "c2NyaXB0b3JQcm90bxIMCgRuYW1lGAEgASgJEg8KB3BhY2thZ2UYAiABKAkS", "EgoKZGVwZW5kZW5jeRgDIAMoCRIZChFwdWJsaWNfZGVwZW5kZW5jeRgKIAMo", "BRIXCg93ZWFrX2RlcGVuZGVuY3kYCyADKAUSNgoMbWVzc2FnZV90eXBlGAQg", "AygLMiAuZ29vZ2xlLnByb3RvYnVmLkRlc2NyaXB0b3JQcm90bxI3CgllbnVt", "X3R5cGUYBSADKAsyJC5nb29nbGUucHJvdG9idWYuRW51bURlc2NyaXB0b3JQ", "cm90bxI4CgdzZXJ2aWNlGAYgAygLMicuZ29vZ2xlLnByb3RvYnVmLlNlcnZp", "Y2VEZXNjcmlwdG9yUHJvdG8SOAoJZXh0ZW5zaW9uGAcgAygLMiUuZ29vZ2xl", "LnByb3RvYnVmLkZpZWxkRGVzY3JpcHRvclByb3RvEi0KB29wdGlvbnMYCCAB", "KAsyHC5nb29nbGUucHJvdG9idWYuRmlsZU9wdGlvbnMSOQoQc291cmNlX2Nv", "ZGVfaW5mbxgJIAEoCzIfLmdvb2dsZS5wcm90b2J1Zi5Tb3VyY2VDb2RlSW5m", "bxIOCgZzeW50YXgYDCABKAki8AQKD0Rlc2NyaXB0b3JQcm90bxIMCgRuYW1l", "GAEgASgJEjQKBWZpZWxkGAIgAygLMiUuZ29vZ2xlLnByb3RvYnVmLkZpZWxk", "RGVzY3JpcHRvclByb3RvEjgKCWV4dGVuc2lvbhgGIAMoCzIlLmdvb2dsZS5w", "cm90b2J1Zi5GaWVsZERlc2NyaXB0b3JQcm90bxI1CgtuZXN0ZWRfdHlwZRgD", "IAMoCzIgLmdvb2dsZS5wcm90b2J1Zi5EZXNjcmlwdG9yUHJvdG8SNwoJZW51", "bV90eXBlGAQgAygLMiQuZ29vZ2xlLnByb3RvYnVmLkVudW1EZXNjcmlwdG9y", "UHJvdG8SSAoPZXh0ZW5zaW9uX3JhbmdlGAUgAygLMi8uZ29vZ2xlLnByb3Rv", "YnVmLkRlc2NyaXB0b3JQcm90by5FeHRlbnNpb25SYW5nZRI5CgpvbmVvZl9k", "ZWNsGAggAygLMiUuZ29vZ2xlLnByb3RvYnVmLk9uZW9mRGVzY3JpcHRvclBy", "b3RvEjAKB29wdGlvbnMYByABKAsyHy5nb29nbGUucHJvdG9idWYuTWVzc2Fn", "ZU9wdGlvbnMSRgoOcmVzZXJ2ZWRfcmFuZ2UYCSADKAsyLi5nb29nbGUucHJv", "dG9idWYuRGVzY3JpcHRvclByb3RvLlJlc2VydmVkUmFuZ2USFQoNcmVzZXJ2", "ZWRfbmFtZRgKIAMoCRosCg5FeHRlbnNpb25SYW5nZRINCgVzdGFydBgBIAEo", "BRILCgNlbmQYAiABKAUaKwoNUmVzZXJ2ZWRSYW5nZRINCgVzdGFydBgBIAEo", "BRILCgNlbmQYAiABKAUivAUKFEZpZWxkRGVzY3JpcHRvclByb3RvEgwKBG5h", "bWUYASABKAkSDgoGbnVtYmVyGAMgASgFEjoKBWxhYmVsGAQgASgOMisuZ29v", "Z2xlLnByb3RvYnVmLkZpZWxkRGVzY3JpcHRvclByb3RvLkxhYmVsEjgKBHR5", "cGUYBSABKA4yKi5nb29nbGUucHJvdG9idWYuRmllbGREZXNjcmlwdG9yUHJv", "dG8uVHlwZRIRCgl0eXBlX25hbWUYBiABKAkSEAoIZXh0ZW5kZWUYAiABKAkS", "FQoNZGVmYXVsdF92YWx1ZRgHIAEoCRITCgtvbmVvZl9pbmRleBgJIAEoBRIR", "Cglqc29uX25hbWUYCiABKAkSLgoHb3B0aW9ucxgIIAEoCzIdLmdvb2dsZS5w", "cm90b2J1Zi5GaWVsZE9wdGlvbnMitgIKBFR5cGUSDwoLVFlQRV9ET1VCTEUQ", "ARIOCgpUWVBFX0ZMT0FUEAISDgoKVFlQRV9JTlQ2NBADEg8KC1RZUEVfVUlO", "VDY0EAQSDgoKVFlQRV9JTlQzMhAFEhAKDFRZUEVfRklYRUQ2NBAGEhAKDFRZ", "UEVfRklYRUQzMhAHEg0KCVRZUEVfQk9PTBAIEg8KC1RZUEVfU1RSSU5HEAkS", "DgoKVFlQRV9HUk9VUBAKEhAKDFRZUEVfTUVTU0FHRRALEg4KClRZUEVfQllU", "RVMQDBIPCgtUWVBFX1VJTlQzMhANEg0KCVRZUEVfRU5VTRAOEhEKDVRZUEVf", "U0ZJWEVEMzIQDxIRCg1UWVBFX1NGSVhFRDY0EBASDwoLVFlQRV9TSU5UMzIQ", "ERIPCgtUWVBFX1NJTlQ2NBASIkMKBUxhYmVsEhIKDkxBQkVMX09QVElPTkFM", "EAESEgoOTEFCRUxfUkVRVUlSRUQQAhISCg5MQUJFTF9SRVBFQVRFRBADIlQK", "FE9uZW9mRGVzY3JpcHRvclByb3RvEgwKBG5hbWUYASABKAkSLgoHb3B0aW9u", "cxgCIAEoCzIdLmdvb2dsZS5wcm90b2J1Zi5PbmVvZk9wdGlvbnMijAEKE0Vu", "dW1EZXNjcmlwdG9yUHJvdG8SDAoEbmFtZRgBIAEoCRI4CgV2YWx1ZRgCIAMo", "CzIpLmdvb2dsZS5wcm90b2J1Zi5FbnVtVmFsdWVEZXNjcmlwdG9yUHJvdG8S", "LQoHb3B0aW9ucxgDIAEoCzIcLmdvb2dsZS5wcm90b2J1Zi5FbnVtT3B0aW9u", "cyJsChhFbnVtVmFsdWVEZXNjcmlwdG9yUHJvdG8SDAoEbmFtZRgBIAEoCRIO", "CgZudW1iZXIYAiABKAUSMgoHb3B0aW9ucxgDIAEoCzIhLmdvb2dsZS5wcm90", "b2J1Zi5FbnVtVmFsdWVPcHRpb25zIpABChZTZXJ2aWNlRGVzY3JpcHRvclBy", "b3RvEgwKBG5hbWUYASABKAkSNgoGbWV0aG9kGAIgAygLMiYuZ29vZ2xlLnBy", "b3RvYnVmLk1ldGhvZERlc2NyaXB0b3JQcm90bxIwCgdvcHRpb25zGAMgASgL", "Mh8uZ29vZ2xlLnByb3RvYnVmLlNlcnZpY2VPcHRpb25zIsEBChVNZXRob2RE", "ZXNjcmlwdG9yUHJvdG8SDAoEbmFtZRgBIAEoCRISCgppbnB1dF90eXBlGAIg", "ASgJEhMKC291dHB1dF90eXBlGAMgASgJEi8KB29wdGlvbnMYBCABKAsyHi5n", "b29nbGUucHJvdG9idWYuTWV0aG9kT3B0aW9ucxIfChBjbGllbnRfc3RyZWFt", "aW5nGAUgASgIOgVmYWxzZRIfChBzZXJ2ZXJfc3RyZWFtaW5nGAYgASgIOgVm", "YWxzZSKHBQoLRmlsZU9wdGlvbnMSFAoMamF2YV9wYWNrYWdlGAEgASgJEhwK", "FGphdmFfb3V0ZXJfY2xhc3NuYW1lGAggASgJEiIKE2phdmFfbXVsdGlwbGVf", "ZmlsZXMYCiABKAg6BWZhbHNlEiwKHWphdmFfZ2VuZXJhdGVfZXF1YWxzX2Fu", "ZF9oYXNoGBQgASgIOgVmYWxzZRIlChZqYXZhX3N0cmluZ19jaGVja191dGY4", "GBsgASgIOgVmYWxzZRJGCgxvcHRpbWl6ZV9mb3IYCSABKA4yKS5nb29nbGUu", "cHJvdG9idWYuRmlsZU9wdGlvbnMuT3B0aW1pemVNb2RlOgVTUEVFRBISCgpn", "b19wYWNrYWdlGAsgASgJEiIKE2NjX2dlbmVyaWNfc2VydmljZXMYECABKAg6", "BWZhbHNlEiQKFWphdmFfZ2VuZXJpY19zZXJ2aWNlcxgRIAEoCDoFZmFsc2US", "IgoTcHlfZ2VuZXJpY19zZXJ2aWNlcxgSIAEoCDoFZmFsc2USGQoKZGVwcmVj", "YXRlZBgXIAEoCDoFZmFsc2USHwoQY2NfZW5hYmxlX2FyZW5hcxgfIAEoCDoF", "ZmFsc2USGQoRb2JqY19jbGFzc19wcmVmaXgYJCABKAkSGAoQY3NoYXJwX25h", "bWVzcGFjZRglIAEoCRJDChR1bmludGVycHJldGVkX29wdGlvbhjnByADKAsy", "JC5nb29nbGUucHJvdG9idWYuVW5pbnRlcnByZXRlZE9wdGlvbiI6CgxPcHRp", "bWl6ZU1vZGUSCQoFU1BFRUQQARINCglDT0RFX1NJWkUQAhIQCgxMSVRFX1JV", "TlRJTUUQAyoJCOgHEICAgIACSgQIJhAnIuYBCg5NZXNzYWdlT3B0aW9ucxIm", "ChdtZXNzYWdlX3NldF93aXJlX2Zvcm1hdBgBIAEoCDoFZmFsc2USLgofbm9f", "c3RhbmRhcmRfZGVzY3JpcHRvcl9hY2Nlc3NvchgCIAEoCDoFZmFsc2USGQoK", "ZGVwcmVjYXRlZBgDIAEoCDoFZmFsc2USEQoJbWFwX2VudHJ5GAcgASgIEkMK", "FHVuaW50ZXJwcmV0ZWRfb3B0aW9uGOcHIAMoCzIkLmdvb2dsZS5wcm90b2J1", "Zi5VbmludGVycHJldGVkT3B0aW9uKgkI6AcQgICAgAIimAMKDEZpZWxkT3B0", "aW9ucxI6CgVjdHlwZRgBIAEoDjIjLmdvb2dsZS5wcm90b2J1Zi5GaWVsZE9w", "dGlvbnMuQ1R5cGU6BlNUUklORxIOCgZwYWNrZWQYAiABKAgSPwoGanN0eXBl", "GAYgASgOMiQuZ29vZ2xlLnByb3RvYnVmLkZpZWxkT3B0aW9ucy5KU1R5cGU6", "CUpTX05PUk1BTBITCgRsYXp5GAUgASgIOgVmYWxzZRIZCgpkZXByZWNhdGVk", "GAMgASgIOgVmYWxzZRITCgR3ZWFrGAogASgIOgVmYWxzZRJDChR1bmludGVy", "cHJldGVkX29wdGlvbhjnByADKAsyJC5nb29nbGUucHJvdG9idWYuVW5pbnRl", "cnByZXRlZE9wdGlvbiIvCgVDVHlwZRIKCgZTVFJJTkcQABIICgRDT1JEEAES", "EAoMU1RSSU5HX1BJRUNFEAIiNQoGSlNUeXBlEg0KCUpTX05PUk1BTBAAEg0K", "CUpTX1NUUklORxABEg0KCUpTX05VTUJFUhACKgkI6AcQgICAgAIiXgoMT25l", "b2ZPcHRpb25zEkMKFHVuaW50ZXJwcmV0ZWRfb3B0aW9uGOcHIAMoCzIkLmdv", "b2dsZS5wcm90b2J1Zi5VbmludGVycHJldGVkT3B0aW9uKgkI6AcQgICAgAIi", "jQEKC0VudW1PcHRpb25zEhMKC2FsbG93X2FsaWFzGAIgASgIEhkKCmRlcHJl", "Y2F0ZWQYAyABKAg6BWZhbHNlEkMKFHVuaW50ZXJwcmV0ZWRfb3B0aW9uGOcH", "IAMoCzIkLmdvb2dsZS5wcm90b2J1Zi5VbmludGVycHJldGVkT3B0aW9uKgkI", "6AcQgICAgAIifQoQRW51bVZhbHVlT3B0aW9ucxIZCgpkZXByZWNhdGVkGAEg", "ASgIOgVmYWxzZRJDChR1bmludGVycHJldGVkX29wdGlvbhjnByADKAsyJC5n", "b29nbGUucHJvdG9idWYuVW5pbnRlcnByZXRlZE9wdGlvbioJCOgHEICAgIAC", "InsKDlNlcnZpY2VPcHRpb25zEhkKCmRlcHJlY2F0ZWQYISABKAg6BWZhbHNl", "EkMKFHVuaW50ZXJwcmV0ZWRfb3B0aW9uGOcHIAMoCzIkLmdvb2dsZS5wcm90", "b2J1Zi5VbmludGVycHJldGVkT3B0aW9uKgkI6AcQgICAgAIiegoNTWV0aG9k", "T3B0aW9ucxIZCgpkZXByZWNhdGVkGCEgASgIOgVmYWxzZRJDChR1bmludGVy", "cHJldGVkX29wdGlvbhjnByADKAsyJC5nb29nbGUucHJvdG9idWYuVW5pbnRl", "cnByZXRlZE9wdGlvbioJCOgHEICAgIACIp4CChNVbmludGVycHJldGVkT3B0", "aW9uEjsKBG5hbWUYAiADKAsyLS5nb29nbGUucHJvdG9idWYuVW5pbnRlcnBy", "ZXRlZE9wdGlvbi5OYW1lUGFydBIYChBpZGVudGlmaWVyX3ZhbHVlGAMgASgJ", "EhoKEnBvc2l0aXZlX2ludF92YWx1ZRgEIAEoBBIaChJuZWdhdGl2ZV9pbnRf", "dmFsdWUYBSABKAMSFAoMZG91YmxlX3ZhbHVlGAYgASgBEhQKDHN0cmluZ192", "YWx1ZRgHIAEoDBIXCg9hZ2dyZWdhdGVfdmFsdWUYCCABKAkaMwoITmFtZVBh", "cnQSEQoJbmFtZV9wYXJ0GAEgAigJEhQKDGlzX2V4dGVuc2lvbhgCIAIoCCLV", "AQoOU291cmNlQ29kZUluZm8SOgoIbG9jYXRpb24YASADKAsyKC5nb29nbGUu", "cHJvdG9idWYuU291cmNlQ29kZUluZm8uTG9jYXRpb24ahgEKCExvY2F0aW9u", "EhAKBHBhdGgYASADKAVCAhABEhAKBHNwYW4YAiADKAVCAhABEhgKEGxlYWRp", "bmdfY29tbWVudHMYAyABKAkSGQoRdHJhaWxpbmdfY29tbWVudHMYBCABKAkS", "IQoZbGVhZGluZ19kZXRhY2hlZF9jb21tZW50cxgGIAMoCSKnAQoRR2VuZXJh", "dGVkQ29kZUluZm8SQQoKYW5ub3RhdGlvbhgBIAMoCzItLmdvb2dsZS5wcm90", "b2J1Zi5HZW5lcmF0ZWRDb2RlSW5mby5Bbm5vdGF0aW9uGk8KCkFubm90YXRp", "b24SEAoEcGF0aBgBIAMoBUICEAESEwoLc291cmNlX2ZpbGUYAiABKAkSDQoF", "YmVnaW4YAyABKAUSCwoDZW5kGAQgASgFQlsKE2NvbS5nb29nbGUucHJvdG9i", "dWZCEERlc2NyaXB0b3JQcm90b3NIAVoKZGVzY3JpcHRvcqABAaICA0dQQqoC", "Gkdvb2dsZS5Qcm90b2J1Zi5SZWZsZWN0aW9u"))
descriptorField = FileDescriptor.FromGeneratedCode(descriptorData, New FileDescriptor() {}, New GeneratedClrTypeInfo(Nothing, New GeneratedClrTypeInfo() {New GeneratedClrTypeInfo(GetType(Global.Google.Protobuf.Reflection.FileDescriptorSet), Global.Google.Protobuf.Reflection.FileDescriptorSet.Parser, {"File"}, Nothing, Nothing, Nothing), New GeneratedClrTypeInfo(GetType(Global.Google.Protobuf.Reflection.FileDescriptorProto), Global.Google.Protobuf.Reflection.FileDescriptorProto.Parser, {"Name", "Package", "Dependency", "PublicDependency", "WeakDependency", "MessageType", "EnumType", "Service", "Extension", "Options", "SourceCodeInfo", "Syntax"}, Nothing, Nothing, Nothing), New GeneratedClrTypeInfo(GetType(Global.Google.Protobuf.Reflection.DescriptorProto), Global.Google.Protobuf.Reflection.DescriptorProto.Parser, {"Name", "Field", "Extension", "NestedType", "EnumType", "ExtensionRange", "OneofDecl", "Options", "ReservedRange", "ReservedName"}, Nothing, Nothing, New GeneratedClrTypeInfo() {New GeneratedClrTypeInfo(GetType(Global.Google.Protobuf.Reflection.DescriptorProto.Types.ExtensionRange), Global.Google.Protobuf.Reflection.DescriptorProto.Types.ExtensionRange.Parser, {"Start", "End"}, Nothing, Nothing, Nothing), New GeneratedClrTypeInfo(GetType(Global.Google.Protobuf.Reflection.DescriptorProto.Types.ReservedRange), Global.Google.Protobuf.Reflection.DescriptorProto.Types.ReservedRange.Parser, {"Start", "End"}, Nothing, Nothing, Nothing)}), New GeneratedClrTypeInfo(GetType(Global.Google.Protobuf.Reflection.FieldDescriptorProto), Global.Google.Protobuf.Reflection.FieldDescriptorProto.Parser, {"Name", "Number", "Label", "Type", "TypeName", "Extendee", "DefaultValue", "OneofIndex", "JsonName", "Options"}, Nothing, {GetType(Global.Google.Protobuf.Reflection.FieldDescriptorProto.Types.Type), GetType(Global.Google.Protobuf.Reflection.FieldDescriptorProto.Types.Label)}, Nothing), New GeneratedClrTypeInfo(GetType(Global.Google.Protobuf.Reflection.OneofDescriptorProto), Global.Google.Protobuf.Reflection.OneofDescriptorProto.Parser, {"Name", "Options"}, Nothing, Nothing, Nothing), New GeneratedClrTypeInfo(GetType(Global.Google.Protobuf.Reflection.EnumDescriptorProto), Global.Google.Protobuf.Reflection.EnumDescriptorProto.Parser, {"Name", "Value", "Options"}, Nothing, Nothing, Nothing), New GeneratedClrTypeInfo(GetType(Global.Google.Protobuf.Reflection.EnumValueDescriptorProto), Global.Google.Protobuf.Reflection.EnumValueDescriptorProto.Parser, {"Name", "Number", "Options"}, Nothing, Nothing, Nothing), New GeneratedClrTypeInfo(GetType(Global.Google.Protobuf.Reflection.ServiceDescriptorProto), Global.Google.Protobuf.Reflection.ServiceDescriptorProto.Parser, {"Name", "Method", "Options"}, Nothing, Nothing, Nothing), New GeneratedClrTypeInfo(GetType(Global.Google.Protobuf.Reflection.MethodDescriptorProto), Global.Google.Protobuf.Reflection.MethodDescriptorProto.Parser, {"Name", "InputType", "OutputType", "Options", "ClientStreaming", "ServerStreaming"}, Nothing, Nothing, Nothing), New GeneratedClrTypeInfo(GetType(Global.Google.Protobuf.Reflection.FileOptions), Global.Google.Protobuf.Reflection.FileOptions.Parser, {"JavaPackage", "JavaOuterClassname", "JavaMultipleFiles", "JavaGenerateEqualsAndHash", "JavaStringCheckUtf8", "OptimizeFor", "GoPackage", "CcGenericServices", "JavaGenericServices", "PyGenericServices", "Deprecated", "CcEnableArenas", "ObjcClassPrefix", "CsharpNamespace", "UninterpretedOption"}, Nothing, {GetType(Global.Google.Protobuf.Reflection.FileOptions.Types.OptimizeMode)}, Nothing), New GeneratedClrTypeInfo(GetType(Global.Google.Protobuf.Reflection.MessageOptions), Global.Google.Protobuf.Reflection.MessageOptions.Parser, {"MessageSetWireFormat", "NoStandardDescriptorAccessor", "Deprecated", "MapEntry", "UninterpretedOption"}, Nothing, Nothing, Nothing), New GeneratedClrTypeInfo(GetType(Global.Google.Protobuf.Reflection.FieldOptions), Global.Google.Protobuf.Reflection.FieldOptions.Parser, {"Ctype", "Packed", "Jstype", "Lazy", "Deprecated", "Weak", "UninterpretedOption"}, Nothing, {GetType(Global.Google.Protobuf.Reflection.FieldOptions.Types.CType), GetType(Global.Google.Protobuf.Reflection.FieldOptions.Types.JSType)}, Nothing), New GeneratedClrTypeInfo(GetType(Global.Google.Protobuf.Reflection.OneofOptions), Global.Google.Protobuf.Reflection.OneofOptions.Parser, {"UninterpretedOption"}, Nothing, Nothing, Nothing), New GeneratedClrTypeInfo(GetType(Global.Google.Protobuf.Reflection.EnumOptions), Global.Google.Protobuf.Reflection.EnumOptions.Parser, {"AllowAlias", "Deprecated", "UninterpretedOption"}, Nothing, Nothing, Nothing), New GeneratedClrTypeInfo(GetType(Global.Google.Protobuf.Reflection.EnumValueOptions), Global.Google.Protobuf.Reflection.EnumValueOptions.Parser, {"Deprecated", "UninterpretedOption"}, Nothing, Nothing, Nothing), New GeneratedClrTypeInfo(GetType(Global.Google.Protobuf.Reflection.ServiceOptions), Global.Google.Protobuf.Reflection.ServiceOptions.Parser, {"Deprecated", "UninterpretedOption"}, Nothing, Nothing, Nothing), New GeneratedClrTypeInfo(GetType(Global.Google.Protobuf.Reflection.MethodOptions), Global.Google.Protobuf.Reflection.MethodOptions.Parser, {"Deprecated", "UninterpretedOption"}, Nothing, Nothing, Nothing), New GeneratedClrTypeInfo(GetType(Global.Google.Protobuf.Reflection.UninterpretedOption), Global.Google.Protobuf.Reflection.UninterpretedOption.Parser, {"Name", "IdentifierValue", "PositiveIntValue", "NegativeIntValue", "DoubleValue", "StringValue", "AggregateValue"}, Nothing, Nothing, New GeneratedClrTypeInfo() {New GeneratedClrTypeInfo(GetType(Global.Google.Protobuf.Reflection.UninterpretedOption.Types.NamePart), Global.Google.Protobuf.Reflection.UninterpretedOption.Types.NamePart.Parser, {"NamePart_", "IsExtension"}, Nothing, Nothing, Nothing)}), New GeneratedClrTypeInfo(GetType(Global.Google.Protobuf.Reflection.SourceCodeInfo), Global.Google.Protobuf.Reflection.SourceCodeInfo.Parser, {"Location"}, Nothing, Nothing, New GeneratedClrTypeInfo() {New GeneratedClrTypeInfo(GetType(Global.Google.Protobuf.Reflection.SourceCodeInfo.Types.Location), Global.Google.Protobuf.Reflection.SourceCodeInfo.Types.Location.Parser, {"Path", "Span", "LeadingComments", "TrailingComments", "LeadingDetachedComments"}, Nothing, Nothing, Nothing)}), New GeneratedClrTypeInfo(GetType(Global.Google.Protobuf.Reflection.GeneratedCodeInfo), Global.Google.Protobuf.Reflection.GeneratedCodeInfo.Parser, {"Annotation"}, Nothing, Nothing, New GeneratedClrTypeInfo() {New GeneratedClrTypeInfo(GetType(Global.Google.Protobuf.Reflection.GeneratedCodeInfo.Types.Annotation), Global.Google.Protobuf.Reflection.GeneratedCodeInfo.Types.Annotation.Parser, {"Path", "SourceFile", "Begin", "End"}, Nothing, Nothing, Nothing)})}))
End Sub
#End Region
End Module
#Region "Messages"
'''
''' The protocol compiler can output a FileDescriptorSet containing the .proto
''' files it parses.
'''
Partial Friend NotInheritable Class FileDescriptorSet
Implements IMessageType(Of FileDescriptorSet)
Private Shared ReadOnly _parser As MessageParserType(Of FileDescriptorSet) = New MessageParserType(Of FileDescriptorSet)(Function() New FileDescriptorSet())
Public Shared ReadOnly Property Parser As MessageParserType(Of FileDescriptorSet)
Get
Return _parser
End Get
End Property
Public Shared ReadOnly Property DescriptorProp As MessageDescriptor
Get
Return Global.Google.Protobuf.Reflection.DescriptorReflection.Descriptor.MessageTypes(0)
End Get
End Property
Private ReadOnly Property Descriptor As MessageDescriptor Implements IMessage.Descriptor
Get
Return DescriptorProp
End Get
End Property
Public Sub New()
OnConstruction()
End Sub
Partial Private Sub OnConstruction()
End Sub
Public Sub New(other As FileDescriptorSet)
Me.New()
file_ = other.file_.Clone()
End Sub
Public Function Clone() As FileDescriptorSet Implements IDeepCloneable(Of FileDescriptorSet).Clone
Return New FileDescriptorSet(Me)
End Function
''' Field number for the "file" field.
Public Const FileFieldNumber As Integer = 1
Private Shared ReadOnly _repeated_file_codec As FieldCodecType(Of Global.Google.Protobuf.Reflection.FileDescriptorProto) = FieldCodec.ForMessage(10, Global.Google.Protobuf.Reflection.FileDescriptorProto.Parser)
Private ReadOnly file_ As pbc.RepeatedField(Of Global.Google.Protobuf.Reflection.FileDescriptorProto) = New pbc.RepeatedField(Of Global.Google.Protobuf.Reflection.FileDescriptorProto)()
Public ReadOnly Property File As pbc.RepeatedField(Of Global.Google.Protobuf.Reflection.FileDescriptorProto)
Get
Return file_
End Get
End Property
Public Overrides Function Equals(other As Object) As Boolean
Return Equals(TryCast(other, FileDescriptorSet))
End Function
Public Overloads Function Equals(other As FileDescriptorSet) As Boolean Implements IEquatable(Of FileDescriptorSet).Equals
If ReferenceEquals(other, Nothing) Then
Return False
End If
If ReferenceEquals(other, Me) Then
Return True
End If
If Not file_.Equals(other.file_) Then Return False
Return True
End Function
Public Overrides Function GetHashCode() As Integer
Dim hash = 1
hash = hash Xor file_.GetHashCode()
Return hash
End Function
Public Overrides Function ToString() As String
Return JsonFormatter.ToDiagnosticString(Me)
End Function
Public Sub WriteTo(output As CodedOutputStream) Implements IMessage.WriteTo
file_.WriteTo(output, _repeated_file_codec)
End Sub
Public Function CalculateSize() As Integer Implements IMessage.CalculateSize
Dim size = 0
size += file_.CalculateSize(_repeated_file_codec)
Return size
End Function
Public Sub MergeFrom(other As FileDescriptorSet) Implements IMessageType(Of FileDescriptorSet).MergeFrom
If other Is Nothing Then
Return
End If
file_.Add(other.file_)
End Sub
Public Sub MergeFrom(input As CodedInputStream) Implements IMessage.MergeFrom
Dim tag As New Value(Of UInteger)
While ((tag = input.ReadTag())) <> 0
Select Case tag.Value
Case 10
file_.AddEntriesFrom(input, _repeated_file_codec)
Case Else
input.SkipLastField()
End Select
End While
End Sub
End Class
'''
''' Describes a complete .proto file.
'''
Partial Friend NotInheritable Class FileDescriptorProto
Implements IMessageType(Of FileDescriptorProto)
Private Shared ReadOnly _parser As MessageParserType(Of FileDescriptorProto) = New MessageParserType(Of FileDescriptorProto)(Function() New FileDescriptorProto())
Public Shared ReadOnly Property Parser As MessageParserType(Of FileDescriptorProto)
Get
Return _parser
End Get
End Property
Public Shared ReadOnly Property DescriptorProp As MessageDescriptor
Get
Return Global.Google.Protobuf.Reflection.DescriptorReflection.Descriptor.MessageTypes(1)
End Get
End Property
Private ReadOnly Property Descriptor As MessageDescriptor Implements IMessage.Descriptor
Get
Return DescriptorProp
End Get
End Property
Public Sub New()
OnConstruction()
End Sub
Partial Private Sub OnConstruction()
End Sub
Public Sub New(other As FileDescriptorProto)
Me.New()
name_ = other.name_
package_ = other.package_
dependency_ = other.dependency_.Clone()
publicDependency_ = other.publicDependency_.Clone()
weakDependency_ = other.weakDependency_.Clone()
messageType_ = other.messageType_.Clone()
enumType_ = other.enumType_.Clone()
service_ = other.service_.Clone()
extension_ = other.extension_.Clone()
Options = If(other.options_ IsNot Nothing, other.Options.Clone(), Nothing)
SourceCodeInfo = If(other.sourceCodeInfo_ IsNot Nothing, other.SourceCodeInfo.Clone(), Nothing)
syntax_ = other.syntax_
End Sub
Public Function Clone() As FileDescriptorProto Implements IDeepCloneable(Of FileDescriptorProto).Clone
Return New FileDescriptorProto(Me)
End Function
''' Field number for the "name" field.
Public Const NameFieldNumber As Integer = 1
Private name_ As String = ""
'''
''' file name, relative to root of source tree
'''
Public Property Name As String
Get
Return name_
End Get
Set(value As String)
name_ = CheckNotNull(value, "value")
End Set
End Property
''' Field number for the "package" field.
Public Const PackageFieldNumber As Integer = 2
Private package_ As String = ""
'''
''' e.g. "foo", "foo.bar", etc.
'''
Public Property Package As String
Get
Return package_
End Get
Set(value As String)
package_ = CheckNotNull(value, "value")
End Set
End Property
''' Field number for the "dependency" field.
Public Const DependencyFieldNumber As Integer = 3
Private Shared ReadOnly _repeated_dependency_codec As FieldCodecType(Of String) = ForString(26)
Private ReadOnly dependency_ As pbc.RepeatedField(Of String) = New pbc.RepeatedField(Of String)()
'''
''' Names of files imported by this file.
'''
Public ReadOnly Property Dependency As pbc.RepeatedField(Of String)
Get
Return dependency_
End Get
End Property
''' Field number for the "public_dependency" field.
Public Const PublicDependencyFieldNumber As Integer = 10
Private Shared ReadOnly _repeated_publicDependency_codec As FieldCodecType(Of Integer) = ForInt32(80)
Private ReadOnly publicDependency_ As pbc.RepeatedField(Of Integer) = New pbc.RepeatedField(Of Integer)()
'''
''' Indexes of the public imported files in the dependency list above.
'''
Public ReadOnly Property PublicDependency As pbc.RepeatedField(Of Integer)
Get
Return publicDependency_
End Get
End Property
''' Field number for the "weak_dependency" field.
Public Const WeakDependencyFieldNumber As Integer = 11
Private Shared ReadOnly _repeated_weakDependency_codec As FieldCodecType(Of Integer) = ForInt32(88)
Private ReadOnly weakDependency_ As pbc.RepeatedField(Of Integer) = New pbc.RepeatedField(Of Integer)()
'''
''' Indexes of the weak imported files in the dependency list.
''' For Google-internal migration only. Do not use.
'''
Public ReadOnly Property WeakDependency As pbc.RepeatedField(Of Integer)
Get
Return weakDependency_
End Get
End Property
''' Field number for the "message_type" field.
Public Const MessageTypeFieldNumber As Integer = 4
Private Shared ReadOnly _repeated_messageType_codec As FieldCodecType(Of Global.Google.Protobuf.Reflection.DescriptorProto) = FieldCodec.ForMessage(34, Global.Google.Protobuf.Reflection.DescriptorProto.Parser)
Private ReadOnly messageType_ As pbc.RepeatedField(Of Global.Google.Protobuf.Reflection.DescriptorProto) = New pbc.RepeatedField(Of Global.Google.Protobuf.Reflection.DescriptorProto)()
'''
''' All top-level definitions in this file.
'''
Public ReadOnly Property MessageType As pbc.RepeatedField(Of Global.Google.Protobuf.Reflection.DescriptorProto)
Get
Return messageType_
End Get
End Property
''' Field number for the "enum_type" field.
Public Const EnumTypeFieldNumber As Integer = 5
Private Shared ReadOnly _repeated_enumType_codec As FieldCodecType(Of Global.Google.Protobuf.Reflection.EnumDescriptorProto) = FieldCodec.ForMessage(42, Global.Google.Protobuf.Reflection.EnumDescriptorProto.Parser)
Private ReadOnly enumType_ As pbc.RepeatedField(Of Global.Google.Protobuf.Reflection.EnumDescriptorProto) = New pbc.RepeatedField(Of Global.Google.Protobuf.Reflection.EnumDescriptorProto)()
Public ReadOnly Property EnumType As pbc.RepeatedField(Of Global.Google.Protobuf.Reflection.EnumDescriptorProto)
Get
Return enumType_
End Get
End Property
''' Field number for the "service" field.
Public Const ServiceFieldNumber As Integer = 6
Private Shared ReadOnly _repeated_service_codec As FieldCodecType(Of Global.Google.Protobuf.Reflection.ServiceDescriptorProto) = FieldCodec.ForMessage(50, Global.Google.Protobuf.Reflection.ServiceDescriptorProto.Parser)
Private ReadOnly service_ As pbc.RepeatedField(Of Global.Google.Protobuf.Reflection.ServiceDescriptorProto) = New pbc.RepeatedField(Of Global.Google.Protobuf.Reflection.ServiceDescriptorProto)()
Public ReadOnly Property Service As pbc.RepeatedField(Of Global.Google.Protobuf.Reflection.ServiceDescriptorProto)
Get
Return service_
End Get
End Property
''' Field number for the "extension" field.
Public Const ExtensionFieldNumber As Integer = 7
Private Shared ReadOnly _repeated_extension_codec As FieldCodecType(Of Global.Google.Protobuf.Reflection.FieldDescriptorProto) = FieldCodec.ForMessage(58, Global.Google.Protobuf.Reflection.FieldDescriptorProto.Parser)
Private ReadOnly extension_ As pbc.RepeatedField(Of Global.Google.Protobuf.Reflection.FieldDescriptorProto) = New pbc.RepeatedField(Of Global.Google.Protobuf.Reflection.FieldDescriptorProto)()
Public ReadOnly Property Extension As pbc.RepeatedField(Of Global.Google.Protobuf.Reflection.FieldDescriptorProto)
Get
Return extension_
End Get
End Property
''' Field number for the "options" field.
Public Const OptionsFieldNumber As Integer = 8
Private options_ As Global.Google.Protobuf.Reflection.FileOptions
Public Property Options As Global.Google.Protobuf.Reflection.FileOptions
Get
Return options_
End Get
Set(value As Global.Google.Protobuf.Reflection.FileOptions)
options_ = value
End Set
End Property
''' Field number for the "source_code_info" field.
Public Const SourceCodeInfoFieldNumber As Integer = 9
Private sourceCodeInfo_ As Global.Google.Protobuf.Reflection.SourceCodeInfo
'''
''' This field contains optional information about the original source code.
''' You may safely remove this entire field without harming runtime
''' functionality of the descriptors -- the information is needed only by
''' development tools.
'''
Public Property SourceCodeInfo As Global.Google.Protobuf.Reflection.SourceCodeInfo
Get
Return sourceCodeInfo_
End Get
Set(value As Global.Google.Protobuf.Reflection.SourceCodeInfo)
sourceCodeInfo_ = value
End Set
End Property
''' Field number for the "syntax" field.
Public Const SyntaxFieldNumber As Integer = 12
Private syntax_ As String = ""
'''
''' The syntax of the proto file.
''' The supported values are "proto2" and "proto3".
'''
Public Property Syntax As String
Get
Return syntax_
End Get
Set(value As String)
syntax_ = CheckNotNull(value, "value")
End Set
End Property
Public Overrides Function Equals(other As Object) As Boolean
Return Equals(TryCast(other, FileDescriptorProto))
End Function
Public Overloads Function Equals(other As FileDescriptorProto) As Boolean Implements IEquatable(Of FileDescriptorProto).Equals
If ReferenceEquals(other, Nothing) Then
Return False
End If
If ReferenceEquals(other, Me) Then
Return True
End If
If Not Equals(Name, other.Name) Then Return False
If Not Equals(Package, other.Package) Then Return False
If Not dependency_.Equals(other.dependency_) Then Return False
If Not publicDependency_.Equals(other.publicDependency_) Then Return False
If Not weakDependency_.Equals(other.weakDependency_) Then Return False
If Not messageType_.Equals(other.messageType_) Then Return False
If Not enumType_.Equals(other.enumType_) Then Return False
If Not service_.Equals(other.service_) Then Return False
If Not extension_.Equals(other.extension_) Then Return False
If Not Object.Equals(Options, other.Options) Then Return False
If Not Object.Equals(SourceCodeInfo, other.SourceCodeInfo) Then Return False
If Not Equals(Syntax, other.Syntax) Then Return False
Return True
End Function
Public Overrides Function GetHashCode() As Integer
Dim hash = 1
If Name.Length <> 0 Then hash = hash Xor Name.GetHashCode()
If Package.Length <> 0 Then hash = hash Xor Package.GetHashCode()
hash = hash Xor dependency_.GetHashCode()
hash = hash Xor publicDependency_.GetHashCode()
hash = hash Xor weakDependency_.GetHashCode()
hash = hash Xor messageType_.GetHashCode()
hash = hash Xor enumType_.GetHashCode()
hash = hash Xor service_.GetHashCode()
hash = hash Xor extension_.GetHashCode()
If options_ IsNot Nothing Then hash = hash Xor Options.GetHashCode()
If sourceCodeInfo_ IsNot Nothing Then hash = hash Xor SourceCodeInfo.GetHashCode()
If Syntax.Length <> 0 Then hash = hash Xor Syntax.GetHashCode()
Return hash
End Function
Public Overrides Function ToString() As String
Return JsonFormatter.ToDiagnosticString(Me)
End Function
Public Sub WriteTo(output As CodedOutputStream) Implements IMessage.WriteTo
If Name.Length <> 0 Then
output.WriteRawTag(10)
output.WriteString(Name)
End If
If Package.Length <> 0 Then
output.WriteRawTag(18)
output.WriteString(Package)
End If
dependency_.WriteTo(output, _repeated_dependency_codec)
messageType_.WriteTo(output, _repeated_messageType_codec)
enumType_.WriteTo(output, _repeated_enumType_codec)
service_.WriteTo(output, _repeated_service_codec)
extension_.WriteTo(output, _repeated_extension_codec)
If options_ IsNot Nothing Then
output.WriteRawTag(66)
output.WriteMessage(Options)
End If
If sourceCodeInfo_ IsNot Nothing Then
output.WriteRawTag(74)
output.WriteMessage(SourceCodeInfo)
End If
publicDependency_.WriteTo(output, _repeated_publicDependency_codec)
weakDependency_.WriteTo(output, _repeated_weakDependency_codec)
If Syntax.Length <> 0 Then
output.WriteRawTag(98)
output.WriteString(Syntax)
End If
End Sub
Public Function CalculateSize() As Integer Implements IMessage.CalculateSize
Dim size = 0
If Name.Length <> 0 Then
size += 1 + CodedOutputStream.ComputeStringSize(Name)
End If
If Package.Length <> 0 Then
size += 1 + CodedOutputStream.ComputeStringSize(Package)
End If
size += dependency_.CalculateSize(_repeated_dependency_codec)
size += publicDependency_.CalculateSize(_repeated_publicDependency_codec)
size += weakDependency_.CalculateSize(_repeated_weakDependency_codec)
size += messageType_.CalculateSize(_repeated_messageType_codec)
size += enumType_.CalculateSize(_repeated_enumType_codec)
size += service_.CalculateSize(_repeated_service_codec)
size += extension_.CalculateSize(_repeated_extension_codec)
If options_ IsNot Nothing Then
size += 1 + CodedOutputStream.ComputeMessageSize(Options)
End If
If sourceCodeInfo_ IsNot Nothing Then
size += 1 + CodedOutputStream.ComputeMessageSize(SourceCodeInfo)
End If
If Syntax.Length <> 0 Then
size += 1 + CodedOutputStream.ComputeStringSize(Syntax)
End If
Return size
End Function
Public Sub MergeFrom(other As FileDescriptorProto) Implements IMessageType(Of FileDescriptorProto).MergeFrom
If other Is Nothing Then
Return
End If
If other.Name.Length <> 0 Then
Name = other.Name
End If
If other.Package.Length <> 0 Then
Package = other.Package
End If
dependency_.Add(other.dependency_)
publicDependency_.Add(other.publicDependency_)
weakDependency_.Add(other.weakDependency_)
messageType_.Add(other.messageType_)
enumType_.Add(other.enumType_)
service_.Add(other.service_)
extension_.Add(other.extension_)
If other.options_ IsNot Nothing Then
If options_ Is Nothing Then
options_ = New Global.Google.Protobuf.Reflection.FileOptions()
End If
Options.MergeFrom(other.Options)
End If
If other.sourceCodeInfo_ IsNot Nothing Then
If sourceCodeInfo_ Is Nothing Then
sourceCodeInfo_ = New Global.Google.Protobuf.Reflection.SourceCodeInfo()
End If
SourceCodeInfo.MergeFrom(other.SourceCodeInfo)
End If
If other.Syntax.Length <> 0 Then
Syntax = other.Syntax
End If
End Sub
Public Sub MergeFrom(input As CodedInputStream) Implements IMessage.MergeFrom
Dim tag As New Value(Of UInteger)
While ((tag = input.ReadTag())) <> 0
Select Case tag.Value
Case 10
Name = input.ReadString()
Case 18
Package = input.ReadString()
Case 26
dependency_.AddEntriesFrom(input, _repeated_dependency_codec)
Case 34
messageType_.AddEntriesFrom(input, _repeated_messageType_codec)
Case 42
enumType_.AddEntriesFrom(input, _repeated_enumType_codec)
Case 50
service_.AddEntriesFrom(input, _repeated_service_codec)
Case 58
extension_.AddEntriesFrom(input, _repeated_extension_codec)
Case 66
If options_ Is Nothing Then
options_ = New Global.Google.Protobuf.Reflection.FileOptions()
End If
input.ReadMessage(options_)
Case 74
If sourceCodeInfo_ Is Nothing Then
sourceCodeInfo_ = New Global.Google.Protobuf.Reflection.SourceCodeInfo()
End If
input.ReadMessage(sourceCodeInfo_)
Case 82, 80
publicDependency_.AddEntriesFrom(input, _repeated_publicDependency_codec)
Case 90, 88
weakDependency_.AddEntriesFrom(input, _repeated_weakDependency_codec)
Case 98
Syntax = input.ReadString()
Case Else
input.SkipLastField()
End Select
End While
End Sub
End Class
'''
''' Describes a message type.
'''
Partial Friend NotInheritable Class DescriptorProto
Implements IMessageType(Of DescriptorProto)
Private Shared ReadOnly _parser As MessageParserType(Of DescriptorProto) = New MessageParserType(Of DescriptorProto)(Function() New DescriptorProto())
Public Shared ReadOnly Property Parser As MessageParserType(Of DescriptorProto)
Get
Return _parser
End Get
End Property
Public Shared ReadOnly Property DescriptorProp As MessageDescriptor
Get
Return Global.Google.Protobuf.Reflection.DescriptorReflection.Descriptor.MessageTypes(2)
End Get
End Property
Private ReadOnly Property Descriptor As MessageDescriptor Implements IMessage.Descriptor
Get
Return DescriptorProp
End Get
End Property
Public Sub New()
OnConstruction()
End Sub
Partial Private Sub OnConstruction()
End Sub
Public Sub New(other As DescriptorProto)
Me.New()
name_ = other.name_
field_ = other.field_.Clone()
extension_ = other.extension_.Clone()
nestedType_ = other.nestedType_.Clone()
enumType_ = other.enumType_.Clone()
extensionRange_ = other.extensionRange_.Clone()
oneofDecl_ = other.oneofDecl_.Clone()
Options = If(other.options_ IsNot Nothing, other.Options.Clone(), Nothing)
reservedRange_ = other.reservedRange_.Clone()
reservedName_ = other.reservedName_.Clone()
End Sub
Public Function Clone() As DescriptorProto Implements IDeepCloneable(Of DescriptorProto).Clone
Return New DescriptorProto(Me)
End Function
''' Field number for the "name" field.
Public Const NameFieldNumber As Integer = 1
Private name_ As String = ""
Public Property Name As String
Get
Return name_
End Get
Set(value As String)
name_ = CheckNotNull(value, "value")
End Set
End Property
''' Field number for the "field" field.
Public Const FieldFieldNumber As Integer = 2
Private Shared ReadOnly _repeated_field_codec As FieldCodecType(Of Global.Google.Protobuf.Reflection.FieldDescriptorProto) = FieldCodec.ForMessage(18, Global.Google.Protobuf.Reflection.FieldDescriptorProto.Parser)
Private ReadOnly field_ As pbc.RepeatedField(Of Global.Google.Protobuf.Reflection.FieldDescriptorProto) = New pbc.RepeatedField(Of Global.Google.Protobuf.Reflection.FieldDescriptorProto)()
Public ReadOnly Property Field As pbc.RepeatedField(Of Global.Google.Protobuf.Reflection.FieldDescriptorProto)
Get
Return field_
End Get
End Property
''' Field number for the "extension" field.
Public Const ExtensionFieldNumber As Integer = 6
Private Shared ReadOnly _repeated_extension_codec As FieldCodecType(Of Global.Google.Protobuf.Reflection.FieldDescriptorProto) = FieldCodec.ForMessage(50, Global.Google.Protobuf.Reflection.FieldDescriptorProto.Parser)
Private ReadOnly extension_ As pbc.RepeatedField(Of Global.Google.Protobuf.Reflection.FieldDescriptorProto) = New pbc.RepeatedField(Of Global.Google.Protobuf.Reflection.FieldDescriptorProto)()
Public ReadOnly Property Extension As pbc.RepeatedField(Of Global.Google.Protobuf.Reflection.FieldDescriptorProto)
Get
Return extension_
End Get
End Property
''' Field number for the "nested_type" field.
Public Const NestedTypeFieldNumber As Integer = 3
Private Shared ReadOnly _repeated_nestedType_codec As FieldCodecType(Of Global.Google.Protobuf.Reflection.DescriptorProto) = FieldCodec.ForMessage(26, Global.Google.Protobuf.Reflection.DescriptorProto.Parser)
Private ReadOnly nestedType_ As pbc.RepeatedField(Of Global.Google.Protobuf.Reflection.DescriptorProto) = New pbc.RepeatedField(Of Global.Google.Protobuf.Reflection.DescriptorProto)()
Public ReadOnly Property NestedType As pbc.RepeatedField(Of Global.Google.Protobuf.Reflection.DescriptorProto)
Get
Return nestedType_
End Get
End Property
''' Field number for the "enum_type" field.
Public Const EnumTypeFieldNumber As Integer = 4
Private Shared ReadOnly _repeated_enumType_codec As FieldCodecType(Of Global.Google.Protobuf.Reflection.EnumDescriptorProto) = FieldCodec.ForMessage(34, Global.Google.Protobuf.Reflection.EnumDescriptorProto.Parser)
Private ReadOnly enumType_ As pbc.RepeatedField(Of Global.Google.Protobuf.Reflection.EnumDescriptorProto) = New pbc.RepeatedField(Of Global.Google.Protobuf.Reflection.EnumDescriptorProto)()
Public ReadOnly Property EnumType As pbc.RepeatedField(Of Global.Google.Protobuf.Reflection.EnumDescriptorProto)
Get
Return enumType_
End Get
End Property
''' Field number for the "extension_range" field.
Public Const ExtensionRangeFieldNumber As Integer = 5
Private Shared ReadOnly _repeated_extensionRange_codec As FieldCodecType(Of Global.Google.Protobuf.Reflection.DescriptorProto.Types.ExtensionRange) = FieldCodec.ForMessage(42, Global.Google.Protobuf.Reflection.DescriptorProto.Types.ExtensionRange.Parser)
Private ReadOnly extensionRange_ As pbc.RepeatedField(Of Global.Google.Protobuf.Reflection.DescriptorProto.Types.ExtensionRange) = New pbc.RepeatedField(Of Global.Google.Protobuf.Reflection.DescriptorProto.Types.ExtensionRange)()
Public ReadOnly Property ExtensionRange As pbc.RepeatedField(Of Global.Google.Protobuf.Reflection.DescriptorProto.Types.ExtensionRange)
Get
Return extensionRange_
End Get
End Property
''' Field number for the "oneof_decl" field.
Public Const OneofDeclFieldNumber As Integer = 8
Private Shared ReadOnly _repeated_oneofDecl_codec As FieldCodecType(Of Global.Google.Protobuf.Reflection.OneofDescriptorProto) = FieldCodec.ForMessage(66, Global.Google.Protobuf.Reflection.OneofDescriptorProto.Parser)
Private ReadOnly oneofDecl_ As pbc.RepeatedField(Of Global.Google.Protobuf.Reflection.OneofDescriptorProto) = New pbc.RepeatedField(Of Global.Google.Protobuf.Reflection.OneofDescriptorProto)()
Public ReadOnly Property OneofDecl As pbc.RepeatedField(Of Global.Google.Protobuf.Reflection.OneofDescriptorProto)
Get
Return oneofDecl_
End Get
End Property
''' Field number for the "options" field.
Public Const OptionsFieldNumber As Integer = 7
Private options_ As Global.Google.Protobuf.Reflection.MessageOptions
Public Property Options As Global.Google.Protobuf.Reflection.MessageOptions
Get
Return options_
End Get
Set(value As Global.Google.Protobuf.Reflection.MessageOptions)
options_ = value
End Set
End Property
''' Field number for the "reserved_range" field.
Public Const ReservedRangeFieldNumber As Integer = 9
Private Shared ReadOnly _repeated_reservedRange_codec As FieldCodecType(Of Global.Google.Protobuf.Reflection.DescriptorProto.Types.ReservedRange) = FieldCodec.ForMessage(74, Global.Google.Protobuf.Reflection.DescriptorProto.Types.ReservedRange.Parser)
Private ReadOnly reservedRange_ As pbc.RepeatedField(Of Global.Google.Protobuf.Reflection.DescriptorProto.Types.ReservedRange) = New pbc.RepeatedField(Of Global.Google.Protobuf.Reflection.DescriptorProto.Types.ReservedRange)()
Public ReadOnly Property ReservedRange As pbc.RepeatedField(Of Global.Google.Protobuf.Reflection.DescriptorProto.Types.ReservedRange)
Get
Return reservedRange_
End Get
End Property
''' Field number for the "reserved_name" field.
Public Const ReservedNameFieldNumber As Integer = 10
Private Shared ReadOnly _repeated_reservedName_codec As FieldCodecType(Of String) = ForString(82)
Private ReadOnly reservedName_ As pbc.RepeatedField(Of String) = New pbc.RepeatedField(Of String)()
'''
''' Reserved field names, which may not be used by fields in the same message.
''' A given name may only be reserved once.
'''
Public ReadOnly Property ReservedName As pbc.RepeatedField(Of String)
Get
Return reservedName_
End Get
End Property
Public Overrides Function Equals(other As Object) As Boolean
Return Equals(TryCast(other, DescriptorProto))
End Function
Public Overloads Function Equals(other As DescriptorProto) As Boolean Implements IEquatable(Of DescriptorProto).Equals
If ReferenceEquals(other, Nothing) Then
Return False
End If
If ReferenceEquals(other, Me) Then
Return True
End If
If Not Equals(Name, other.Name) Then Return False
If Not field_.Equals(other.field_) Then Return False
If Not extension_.Equals(other.extension_) Then Return False
If Not nestedType_.Equals(other.nestedType_) Then Return False
If Not enumType_.Equals(other.enumType_) Then Return False
If Not extensionRange_.Equals(other.extensionRange_) Then Return False
If Not oneofDecl_.Equals(other.oneofDecl_) Then Return False
If Not Object.Equals(Options, other.Options) Then Return False
If Not reservedRange_.Equals(other.reservedRange_) Then Return False
If Not reservedName_.Equals(other.reservedName_) Then Return False
Return True
End Function
Public Overrides Function GetHashCode() As Integer
Dim hash = 1
If Name.Length <> 0 Then hash = hash Xor Name.GetHashCode()
hash = hash Xor field_.GetHashCode()
hash = hash Xor extension_.GetHashCode()
hash = hash Xor nestedType_.GetHashCode()
hash = hash Xor enumType_.GetHashCode()
hash = hash Xor extensionRange_.GetHashCode()
hash = hash Xor oneofDecl_.GetHashCode()
If options_ IsNot Nothing Then hash = hash Xor Options.GetHashCode()
hash = hash Xor reservedRange_.GetHashCode()
hash = hash Xor reservedName_.GetHashCode()
Return hash
End Function
Public Overrides Function ToString() As String
Return JsonFormatter.ToDiagnosticString(Me)
End Function
Public Sub WriteTo(output As CodedOutputStream) Implements IMessage.WriteTo
If Name.Length <> 0 Then
output.WriteRawTag(10)
output.WriteString(Name)
End If
field_.WriteTo(output, _repeated_field_codec)
nestedType_.WriteTo(output, _repeated_nestedType_codec)
enumType_.WriteTo(output, _repeated_enumType_codec)
extensionRange_.WriteTo(output, _repeated_extensionRange_codec)
extension_.WriteTo(output, _repeated_extension_codec)
If options_ IsNot Nothing Then
output.WriteRawTag(58)
output.WriteMessage(Options)
End If
oneofDecl_.WriteTo(output, _repeated_oneofDecl_codec)
reservedRange_.WriteTo(output, _repeated_reservedRange_codec)
reservedName_.WriteTo(output, _repeated_reservedName_codec)
End Sub
Public Function CalculateSize() As Integer Implements IMessage.CalculateSize
Dim size = 0
If Name.Length <> 0 Then
size += 1 + CodedOutputStream.ComputeStringSize(Name)
End If
size += field_.CalculateSize(_repeated_field_codec)
size += extension_.CalculateSize(_repeated_extension_codec)
size += nestedType_.CalculateSize(_repeated_nestedType_codec)
size += enumType_.CalculateSize(_repeated_enumType_codec)
size += extensionRange_.CalculateSize(_repeated_extensionRange_codec)
size += oneofDecl_.CalculateSize(_repeated_oneofDecl_codec)
If options_ IsNot Nothing Then
size += 1 + CodedOutputStream.ComputeMessageSize(Options)
End If
size += reservedRange_.CalculateSize(_repeated_reservedRange_codec)
size += reservedName_.CalculateSize(_repeated_reservedName_codec)
Return size
End Function
Public Sub MergeFrom(other As DescriptorProto) Implements IMessageType(Of DescriptorProto).MergeFrom
If other Is Nothing Then
Return
End If
If other.Name.Length <> 0 Then
Name = other.Name
End If
field_.Add(other.field_)
extension_.Add(other.extension_)
nestedType_.Add(other.nestedType_)
enumType_.Add(other.enumType_)
extensionRange_.Add(other.extensionRange_)
oneofDecl_.Add(other.oneofDecl_)
If other.options_ IsNot Nothing Then
If options_ Is Nothing Then
options_ = New Global.Google.Protobuf.Reflection.MessageOptions()
End If
Options.MergeFrom(other.Options)
End If
reservedRange_.Add(other.reservedRange_)
reservedName_.Add(other.reservedName_)
End Sub
Public Sub MergeFrom(input As CodedInputStream) Implements IMessage.MergeFrom
Dim tag As New Value(Of UInteger)
While ((tag = input.ReadTag())) <> 0
Select Case tag.Value
Case 10
Name = input.ReadString()
Case 18
field_.AddEntriesFrom(input, _repeated_field_codec)
Case 26
nestedType_.AddEntriesFrom(input, _repeated_nestedType_codec)
Case 34
enumType_.AddEntriesFrom(input, _repeated_enumType_codec)
Case 42
extensionRange_.AddEntriesFrom(input, _repeated_extensionRange_codec)
Case 50
extension_.AddEntriesFrom(input, _repeated_extension_codec)
Case 58
If options_ Is Nothing Then
options_ = New Global.Google.Protobuf.Reflection.MessageOptions()
End If
input.ReadMessage(options_)
Case 66
oneofDecl_.AddEntriesFrom(input, _repeated_oneofDecl_codec)
Case 74
reservedRange_.AddEntriesFrom(input, _repeated_reservedRange_codec)
Case 82
reservedName_.AddEntriesFrom(input, _repeated_reservedName_codec)
Case Else
input.SkipLastField()
End Select
End While
End Sub
#Region "Nested types"
''' Container for nested types declared in the DescriptorProto message type.
Partial Public NotInheritable Class Types
Partial Friend NotInheritable Class ExtensionRange
Implements IMessageType(Of ExtensionRange)
Private Shared ReadOnly _parser As MessageParserType(Of ExtensionRange) = New MessageParserType(Of ExtensionRange)(Function() New ExtensionRange())
Public Shared ReadOnly Property Parser As MessageParserType(Of ExtensionRange)
Get
Return _parser
End Get
End Property
Public Shared ReadOnly Property DescriptorProp As MessageDescriptor
Get
Return Global.Google.Protobuf.Reflection.DescriptorProto.DescriptorProp.NestedTypes(0)
End Get
End Property
Private ReadOnly Property Descriptor As MessageDescriptor Implements IMessage.Descriptor
Get
Return DescriptorProp
End Get
End Property
Public Sub New()
OnConstruction()
End Sub
Partial Private Sub OnConstruction()
End Sub
Public Sub New(other As ExtensionRange)
Me.New()
start_ = other.start_
end_ = other.end_
End Sub
Public Function Clone() As ExtensionRange Implements IDeepCloneable(Of ExtensionRange).Clone
Return New ExtensionRange(Me)
End Function
''' Field number for the "start" field.
Public Const StartFieldNumber As Integer = 1
Private start_ As Integer
Public Property Start As Integer
Get
Return start_
End Get
Set(value As Integer)
start_ = value
End Set
End Property
''' Field number for the "end" field.
Public Const EndFieldNumber As Integer = 2
Private end_ As Integer
Public Property [End] As Integer
Get
Return end_
End Get
Set(value As Integer)
end_ = value
End Set
End Property
Public Overrides Function Equals(other As Object) As Boolean
Return Equals(TryCast(other, ExtensionRange))
End Function
Public Overloads Function Equals(other As ExtensionRange) As Boolean Implements IEquatable(Of ExtensionRange).Equals
If ReferenceEquals(other, Nothing) Then
Return False
End If
If ReferenceEquals(other, Me) Then
Return True
End If
If Start <> other.Start Then Return False
If [End] <> other.End Then Return False
Return True
End Function
Public Overrides Function GetHashCode() As Integer
Dim hash = 1
If Start <> 0 Then hash = hash Xor Start.GetHashCode()
If [End] <> 0 Then hash = hash Xor [End].GetHashCode()
Return hash
End Function
Public Overrides Function ToString() As String
Return JsonFormatter.ToDiagnosticString(Me)
End Function
Public Sub WriteTo(output As CodedOutputStream) Implements IMessage.WriteTo
If Start <> 0 Then
output.WriteRawTag(8)
output.WriteInt32(Start)
End If
If [End] <> 0 Then
output.WriteRawTag(16)
output.WriteInt32([End])
End If
End Sub
Public Function CalculateSize() As Integer Implements IMessage.CalculateSize
Dim size = 0
If Start <> 0 Then
size += 1 + CodedOutputStream.ComputeInt32Size(Start)
End If
If [End] <> 0 Then
size += 1 + CodedOutputStream.ComputeInt32Size([End])
End If
Return size
End Function
Public Sub MergeFrom(other As ExtensionRange) Implements IMessageType(Of ExtensionRange).MergeFrom
If other Is Nothing Then
Return
End If
If other.Start <> 0 Then
Start = other.Start
End If
If other.End <> 0 Then
[End] = other.End
End If
End Sub
Public Sub MergeFrom(input As CodedInputStream) Implements IMessage.MergeFrom
Dim tag As New Value(Of UInteger)
While ((tag = input.ReadTag())) <> 0
Select Case tag.Value
Case 8
Start = input.ReadInt32()
Case 16
[End] = input.ReadInt32()
Case Else
input.SkipLastField()
End Select
End While
End Sub
End Class
'''
''' Range of reserved tag numbers. Reserved tag numbers may not be used by
''' fields or extension ranges in the same message. Reserved ranges may
''' not overlap.
'''
Partial Friend NotInheritable Class ReservedRange
Implements IMessageType(Of ReservedRange)
Private Shared ReadOnly _parser As MessageParserType(Of ReservedRange) = New MessageParserType(Of ReservedRange)(Function() New ReservedRange())
Public Shared ReadOnly Property Parser As MessageParserType(Of ReservedRange)
Get
Return _parser
End Get
End Property
Public Shared ReadOnly Property DescriptorProp As MessageDescriptor
Get
Return Global.Google.Protobuf.Reflection.DescriptorProto.DescriptorProp.NestedTypes(1)
End Get
End Property
Private ReadOnly Property Descriptor As MessageDescriptor Implements IMessage.Descriptor
Get
Return DescriptorProp
End Get
End Property
Public Sub New()
OnConstruction()
End Sub
Partial Private Sub OnConstruction()
End Sub
Public Sub New(other As ReservedRange)
Me.New()
start_ = other.start_
end_ = other.end_
End Sub
Public Function Clone() As ReservedRange Implements IDeepCloneable(Of ReservedRange).Clone
Return New ReservedRange(Me)
End Function
''' Field number for the "start" field.
Public Const StartFieldNumber As Integer = 1
Private start_ As Integer
'''
''' Inclusive.
'''
Public Property Start As Integer
Get
Return start_
End Get
Set(value As Integer)
start_ = value
End Set
End Property
''' Field number for the "end" field.
Public Const EndFieldNumber As Integer = 2
Private end_ As Integer
'''
''' Exclusive.
'''
Public Property [End] As Integer
Get
Return end_
End Get
Set(value As Integer)
end_ = value
End Set
End Property
Public Overrides Function Equals(other As Object) As Boolean
Return Equals(TryCast(other, ReservedRange))
End Function
Public Overloads Function Equals(other As ReservedRange) As Boolean Implements IEquatable(Of ReservedRange).Equals
If ReferenceEquals(other, Nothing) Then
Return False
End If
If ReferenceEquals(other, Me) Then
Return True
End If
If Start <> other.Start Then Return False
If [End] <> other.End Then Return False
Return True
End Function
Public Overrides Function GetHashCode() As Integer
Dim hash = 1
If Start <> 0 Then hash = hash Xor Start.GetHashCode()
If [End] <> 0 Then hash = hash Xor [End].GetHashCode()
Return hash
End Function
Public Overrides Function ToString() As String
Return JsonFormatter.ToDiagnosticString(Me)
End Function
Public Sub WriteTo(output As CodedOutputStream) Implements IMessage.WriteTo
If Start <> 0 Then
output.WriteRawTag(8)
output.WriteInt32(Start)
End If
If [End] <> 0 Then
output.WriteRawTag(16)
output.WriteInt32([End])
End If
End Sub
Public Function CalculateSize() As Integer Implements IMessage.CalculateSize
Dim size = 0
If Start <> 0 Then
size += 1 + CodedOutputStream.ComputeInt32Size(Start)
End If
If [End] <> 0 Then
size += 1 + CodedOutputStream.ComputeInt32Size([End])
End If
Return size
End Function
Public Sub MergeFrom(other As ReservedRange) Implements IMessageType(Of ReservedRange).MergeFrom
If other Is Nothing Then
Return
End If
If other.Start <> 0 Then
Start = other.Start
End If
If other.End <> 0 Then
[End] = other.End
End If
End Sub
Public Sub MergeFrom(input As CodedInputStream) Implements IMessage.MergeFrom
Dim tag As New Value(Of UInteger)
While ((tag = input.ReadTag())) <> 0
Select Case tag.Value
Case 8
Start = input.ReadInt32()
Case 16
[End] = input.ReadInt32()
Case Else
input.SkipLastField()
End Select
End While
End Sub
End Class
End Class
#End Region
End Class
'''
''' Describes a field within a message.
'''
Partial Friend NotInheritable Class FieldDescriptorProto
Implements IMessageType(Of FieldDescriptorProto)
Private Shared ReadOnly _parser As MessageParserType(Of FieldDescriptorProto) = New MessageParserType(Of FieldDescriptorProto)(Function() New FieldDescriptorProto())
Public Shared ReadOnly Property Parser As MessageParserType(Of FieldDescriptorProto)
Get
Return _parser
End Get
End Property
Public Shared ReadOnly Property DescriptorProp As MessageDescriptor
Get
Return Global.Google.Protobuf.Reflection.DescriptorReflection.Descriptor.MessageTypes(3)
End Get
End Property
Private ReadOnly Property Descriptor As MessageDescriptor Implements IMessage.Descriptor
Get
Return DescriptorProp
End Get
End Property
Public Sub New()
Me.OnConstruction()
End Sub
Partial Private Sub OnConstruction()
End Sub
Public Sub New(other As FieldDescriptorProto)
Me.New()
name_ = other.name_
number_ = other.number_
label_ = other.label_
type_ = other.type_
typeName_ = other.typeName_
extendee_ = other.extendee_
defaultValue_ = other.defaultValue_
oneofIndex_ = other.oneofIndex_
jsonName_ = other.jsonName_
Options = If(other.options_ IsNot Nothing, other.Options.Clone(), Nothing)
End Sub
Public Function Clone() As FieldDescriptorProto Implements IDeepCloneable(Of FieldDescriptorProto).Clone
Return New FieldDescriptorProto(Me)
End Function
''' Field number for the "name" field.
Public Const NameFieldNumber As Integer = 1
Private name_ As String = ""
Public Property Name As String
Get
Return name_
End Get
Set(value As String)
name_ = CheckNotNull(value, "value")
End Set
End Property
''' Field number for the "number" field.
Public Const NumberFieldNumber As Integer = 3
Private number_ As Integer
Public Property Number As Integer
Get
Return number_
End Get
Set(value As Integer)
number_ = value
End Set
End Property
''' Field number for the "label" field.
Public Const LabelFieldNumber As Integer = 4
Private label_ As Global.Google.Protobuf.Reflection.FieldDescriptorProto.Types.Label = 0
Public Property Label As Global.Google.Protobuf.Reflection.FieldDescriptorProto.Types.Label
Get
Return label_
End Get
Set(value As Global.Google.Protobuf.Reflection.FieldDescriptorProto.Types.Label)
label_ = value
End Set
End Property
''' Field number for the "type" field.
Public Const TypeFieldNumber As Integer = 5
Private type_ As Global.Google.Protobuf.Reflection.FieldDescriptorProto.Types.Type = 0
'''
''' If type_name is set, this need not be set. If both this and type_name
''' are set, this must be one of TYPE_ENUM, TYPE_MESSAGE or TYPE_GROUP.
'''
Public Property Type As Global.Google.Protobuf.Reflection.FieldDescriptorProto.Types.Type
Get
Return type_
End Get
Set(value As Global.Google.Protobuf.Reflection.FieldDescriptorProto.Types.Type)
type_ = value
End Set
End Property
''' Field number for the "type_name" field.
Public Const TypeNameFieldNumber As Integer = 6
Private typeName_ As String = ""
'''
''' For message and enum types, this is the name of the type. If the name
''' starts with a '.', it is fully-qualified. Otherwise, C++-like scoping
''' rules are used to find the type (i.e. first the nested types within this
''' message are searched, then within the parent, on up to the root
''' namespace).
'''
Public Property TypeName As String
Get
Return typeName_
End Get
Set(value As String)
typeName_ = CheckNotNull(value, "value")
End Set
End Property
''' Field number for the "extendee" field.
Public Const ExtendeeFieldNumber As Integer = 2
Private extendee_ As String = ""
'''
''' For extensions, this is the name of the type being extended. It is
''' resolved in the same manner as type_name.
'''
Public Property Extendee As String
Get
Return extendee_
End Get
Set(value As String)
extendee_ = CheckNotNull(value, "value")
End Set
End Property
''' Field number for the "default_value" field.
Public Const DefaultValueFieldNumber As Integer = 7
Private defaultValue_ As String = ""
'''
''' For numeric types, contains the original text representation of the value.
''' For booleans, "true" or "false".
''' For strings, contains the default text contents (not escaped in any way).
''' For bytes, contains the C escaped value. All bytes >= 128 are escaped.
''' TODO(kenton): Base-64 encode?
'''
Public Property DefaultValue As String
Get
Return defaultValue_
End Get
Set(value As String)
defaultValue_ = CheckNotNull(value, "value")
End Set
End Property
''' Field number for the "oneof_index" field.
Public Const OneofIndexFieldNumber As Integer = 9
Private oneofIndex_ As Integer
'''
''' If set, gives the index of a oneof in the containing type's oneof_decl
''' list. This field is a member of that oneof.
'''
Public Property OneofIndex As Integer
Get
Return oneofIndex_
End Get
Set(value As Integer)
oneofIndex_ = value
End Set
End Property
''' Field number for the "json_name" field.
Public Const JsonNameFieldNumber As Integer = 10
Private jsonName_ As String = ""
'''
''' JSON name of this field. The value is set by protocol compiler. If the
''' user has set a "json_name" option on this field, that option's value
''' will be used. Otherwise, it's deduced from the field's name by converting
''' it to camelCase.
'''
Public Property JsonName As String
Get
Return jsonName_
End Get
Set(value As String)
jsonName_ = CheckNotNull(value, "value")
End Set
End Property
''' Field number for the "options" field.
Public Const OptionsFieldNumber As Integer = 8
Private options_ As Global.Google.Protobuf.Reflection.FieldOptions
Public Property Options As Global.Google.Protobuf.Reflection.FieldOptions
Get
Return options_
End Get
Set(value As Global.Google.Protobuf.Reflection.FieldOptions)
options_ = value
End Set
End Property
Public Overrides Function Equals(other As Object) As Boolean
Return Equals(TryCast(other, FieldDescriptorProto))
End Function
Public Overloads Function Equals(other As FieldDescriptorProto) As Boolean Implements IEquatable(Of FieldDescriptorProto).Equals
If ReferenceEquals(other, Nothing) Then
Return False
End If
If ReferenceEquals(other, Me) Then
Return True
End If
If Not Equals(Name, other.Name) Then Return False
If Number <> other.Number Then Return False
If Label <> other.Label Then Return False
If Type <> other.Type Then Return False
If Not Equals(TypeName, other.TypeName) Then Return False
If Not Equals(Extendee, other.Extendee) Then Return False
If Not Equals(DefaultValue, other.DefaultValue) Then Return False
If OneofIndex <> other.OneofIndex Then Return False
If Not Equals(JsonName, other.JsonName) Then Return False
If Not Object.Equals(Options, other.Options) Then Return False
Return True
End Function
Public Overrides Function GetHashCode() As Integer
Dim hash = 1
If Name.Length <> 0 Then hash = hash Xor Name.GetHashCode()
If Number <> 0 Then hash = hash Xor Number.GetHashCode()
If Label <> 0 Then hash = hash Xor Label.GetHashCode()
If Type <> 0 Then hash = hash Xor Type.GetHashCode()
If TypeName.Length <> 0 Then hash = hash Xor TypeName.GetHashCode()
If Extendee.Length <> 0 Then hash = hash Xor Extendee.GetHashCode()
If DefaultValue.Length <> 0 Then hash = hash Xor DefaultValue.GetHashCode()
If OneofIndex <> 0 Then hash = hash Xor OneofIndex.GetHashCode()
If JsonName.Length <> 0 Then hash = hash Xor JsonName.GetHashCode()
If options_ IsNot Nothing Then hash = hash Xor Options.GetHashCode()
Return hash
End Function
Public Overrides Function ToString() As String
Return JsonFormatter.ToDiagnosticString(Me)
End Function
Public Sub WriteTo(output As CodedOutputStream) Implements IMessage.WriteTo
If Name.Length <> 0 Then
output.WriteRawTag(10)
output.WriteString(Name)
End If
If Extendee.Length <> 0 Then
output.WriteRawTag(18)
output.WriteString(Extendee)
End If
If Number <> 0 Then
output.WriteRawTag(24)
output.WriteInt32(Number)
End If
If Label <> 0 Then
output.WriteRawTag(32)
output.WriteEnum(CInt(Label))
End If
If Type <> 0 Then
output.WriteRawTag(40)
output.WriteEnum(CInt(Type))
End If
If TypeName.Length <> 0 Then
output.WriteRawTag(50)
output.WriteString(TypeName)
End If
If DefaultValue.Length <> 0 Then
output.WriteRawTag(58)
output.WriteString(DefaultValue)
End If
If options_ IsNot Nothing Then
output.WriteRawTag(66)
output.WriteMessage(Options)
End If
If OneofIndex <> 0 Then
output.WriteRawTag(72)
output.WriteInt32(OneofIndex)
End If
If JsonName.Length <> 0 Then
output.WriteRawTag(82)
output.WriteString(JsonName)
End If
End Sub
Public Function CalculateSize() As Integer Implements IMessage.CalculateSize
Dim size = 0
If Name.Length <> 0 Then
size += 1 + CodedOutputStream.ComputeStringSize(Name)
End If
If Number <> 0 Then
size += 1 + CodedOutputStream.ComputeInt32Size(Number)
End If
If Label <> 0 Then
size += 1 + CodedOutputStream.ComputeEnumSize(CInt(Label))
End If
If Type <> 0 Then
size += 1 + CodedOutputStream.ComputeEnumSize(CInt(Type))
End If
If TypeName.Length <> 0 Then
size += 1 + CodedOutputStream.ComputeStringSize(TypeName)
End If
If Extendee.Length <> 0 Then
size += 1 + CodedOutputStream.ComputeStringSize(Extendee)
End If
If DefaultValue.Length <> 0 Then
size += 1 + CodedOutputStream.ComputeStringSize(DefaultValue)
End If
If OneofIndex <> 0 Then
size += 1 + CodedOutputStream.ComputeInt32Size(OneofIndex)
End If
If JsonName.Length <> 0 Then
size += 1 + CodedOutputStream.ComputeStringSize(JsonName)
End If
If options_ IsNot Nothing Then
size += 1 + CodedOutputStream.ComputeMessageSize(Options)
End If
Return size
End Function
Public Sub MergeFrom(other As FieldDescriptorProto) Implements IMessageType(Of FieldDescriptorProto).MergeFrom
If other Is Nothing Then
Return
End If
If other.Name.Length <> 0 Then
Name = other.Name
End If
If other.Number <> 0 Then
Number = other.Number
End If
If other.Label <> 0 Then
Label = other.Label
End If
If other.Type <> 0 Then
Type = other.Type
End If
If other.TypeName.Length <> 0 Then
TypeName = other.TypeName
End If
If other.Extendee.Length <> 0 Then
Extendee = other.Extendee
End If
If other.DefaultValue.Length <> 0 Then
DefaultValue = other.DefaultValue
End If
If other.OneofIndex <> 0 Then
OneofIndex = other.OneofIndex
End If
If other.JsonName.Length <> 0 Then
JsonName = other.JsonName
End If
If other.options_ IsNot Nothing Then
If options_ Is Nothing Then
options_ = New Global.Google.Protobuf.Reflection.FieldOptions()
End If
Options.MergeFrom(other.Options)
End If
End Sub
Public Sub MergeFrom(input As CodedInputStream) Implements IMessage.MergeFrom
Dim tag As New Value(Of UInteger)
While ((tag = input.ReadTag())) <> 0
Select Case tag.Value
Case 10
Name = input.ReadString()
Case 18
Extendee = input.ReadString()
Case 24
Number = input.ReadInt32()
Case 32
label_ = CType(input.ReadEnum(), Global.Google.Protobuf.Reflection.FieldDescriptorProto.Types.Label)
Case 40
type_ = CType(input.ReadEnum(), Global.Google.Protobuf.Reflection.FieldDescriptorProto.Types.Type)
Case 50
TypeName = input.ReadString()
Case 58
DefaultValue = input.ReadString()
Case 66
If options_ Is Nothing Then
options_ = New Global.Google.Protobuf.Reflection.FieldOptions()
End If
input.ReadMessage(options_)
Case 72
OneofIndex = input.ReadInt32()
Case 82
JsonName = input.ReadString()
Case Else
input.SkipLastField()
End Select
End While
End Sub
#Region "Nested types"
''' Container for nested types declared in the FieldDescriptorProto message type.
Partial Public NotInheritable Class Types
Friend Enum Type
'''
''' 0 is reserved for errors.
''' Order is weird for historical reasons.
'''
[Double] = 1
Float = 2
'''
''' Not ZigZag encoded. Negative numbers take 10 bytes. Use TYPE_SINT64 if
''' negative values are likely.
'''
Int64 = 3
Uint64 = 4
'''
''' Not ZigZag encoded. Negative numbers take 10 bytes. Use TYPE_SINT32 if
''' negative values are likely.
'''
Int32 = 5
Fixed64 = 6
Fixed32 = 7
Bool = 8
[String] = 9
'''
''' Tag-delimited aggregate.
'''
Group = 10
'''
''' Length-delimited aggregate.
'''
Message = 11
'''
''' New in version 2.
'''
Bytes = 12
Uint32 = 13
[Enum] = 14
Sfixed32 = 15
Sfixed64 = 16
'''
''' Uses ZigZag encoding.
'''
Sint32 = 17
'''
''' Uses ZigZag encoding.
'''
Sint64 = 18
End Enum
Friend Enum Label
'''
''' 0 is reserved for errors
'''
[Optional] = 1
Required = 2
'''
''' TODO(sanjay): Should we add LABEL_MAP?
'''
Repeated = 3
End Enum
End Class
#End Region
End Class
'''
''' Describes a oneof.
'''
Partial Friend NotInheritable Class OneofDescriptorProto
Implements IMessageType(Of OneofDescriptorProto)
Private Shared ReadOnly _parser As MessageParserType(Of OneofDescriptorProto) = New MessageParserType(Of OneofDescriptorProto)(Function() New OneofDescriptorProto())
Public Shared ReadOnly Property Parser As MessageParserType(Of OneofDescriptorProto)
Get
Return _parser
End Get
End Property
Public Shared ReadOnly Property DescriptorProp As MessageDescriptor
Get
Return Global.Google.Protobuf.Reflection.DescriptorReflection.Descriptor.MessageTypes(4)
End Get
End Property
Private ReadOnly Property Descriptor As MessageDescriptor Implements IMessage.Descriptor
Get
Return DescriptorProp
End Get
End Property
Public Sub New()
OnConstruction()
End Sub
Partial Private Sub OnConstruction()
End Sub
Public Sub New(other As OneofDescriptorProto)
Me.New()
name_ = other.name_
Options = If(other.options_ IsNot Nothing, other.Options.Clone(), Nothing)
End Sub
Public Function Clone() As OneofDescriptorProto Implements IDeepCloneable(Of OneofDescriptorProto).Clone
Return New OneofDescriptorProto(Me)
End Function
''' Field number for the "name" field.
Public Const NameFieldNumber As Integer = 1
Private name_ As String = ""
Public Property Name As String
Get
Return name_
End Get
Set(value As String)
name_ = CheckNotNull(value, "value")
End Set
End Property
''' Field number for the "options" field.
Public Const OptionsFieldNumber As Integer = 2
Private options_ As Global.Google.Protobuf.Reflection.OneofOptions
Public Property Options As Global.Google.Protobuf.Reflection.OneofOptions
Get
Return options_
End Get
Set(value As Global.Google.Protobuf.Reflection.OneofOptions)
options_ = value
End Set
End Property
Public Overrides Function Equals(other As Object) As Boolean
Return Equals(TryCast(other, OneofDescriptorProto))
End Function
Public Overloads Function Equals(other As OneofDescriptorProto) As Boolean Implements IEquatable(Of OneofDescriptorProto).Equals
If ReferenceEquals(other, Nothing) Then
Return False
End If
If ReferenceEquals(other, Me) Then
Return True
End If
If Not Equals(Name, other.Name) Then Return False
If Not Object.Equals(Options, other.Options) Then Return False
Return True
End Function
Public Overrides Function GetHashCode() As Integer
Dim hash = 1
If Name.Length <> 0 Then hash = hash Xor Name.GetHashCode()
If options_ IsNot Nothing Then hash = hash Xor Options.GetHashCode()
Return hash
End Function
Public Overrides Function ToString() As String
Return JsonFormatter.ToDiagnosticString(Me)
End Function
Public Sub WriteTo(output As CodedOutputStream) Implements IMessage.WriteTo
If Name.Length <> 0 Then
output.WriteRawTag(10)
output.WriteString(Name)
End If
If options_ IsNot Nothing Then
output.WriteRawTag(18)
output.WriteMessage(Options)
End If
End Sub
Public Function CalculateSize() As Integer Implements IMessage.CalculateSize
Dim size = 0
If Name.Length <> 0 Then
size += 1 + CodedOutputStream.ComputeStringSize(Name)
End If
If options_ IsNot Nothing Then
size += 1 + CodedOutputStream.ComputeMessageSize(Options)
End If
Return size
End Function
Public Sub MergeFrom(other As OneofDescriptorProto) Implements IMessageType(Of OneofDescriptorProto).MergeFrom
If other Is Nothing Then
Return
End If
If other.Name.Length <> 0 Then
Name = other.Name
End If
If other.options_ IsNot Nothing Then
If options_ Is Nothing Then
options_ = New Global.Google.Protobuf.Reflection.OneofOptions()
End If
Options.MergeFrom(other.Options)
End If
End Sub
Public Sub MergeFrom(input As CodedInputStream) Implements IMessage.MergeFrom
Dim tag As New Value(Of UInteger)
While ((tag = input.ReadTag())) <> 0
Select Case tag.Value
Case 10
Name = input.ReadString()
Case 18
If options_ Is Nothing Then
options_ = New Global.Google.Protobuf.Reflection.OneofOptions()
End If
input.ReadMessage(options_)
Case Else
input.SkipLastField()
End Select
End While
End Sub
End Class
'''
''' Describes an enum type.
'''
Partial Friend NotInheritable Class EnumDescriptorProto
Implements IMessageType(Of EnumDescriptorProto)
Private Shared ReadOnly _parser As MessageParserType(Of EnumDescriptorProto) = New MessageParserType(Of EnumDescriptorProto)(Function() New EnumDescriptorProto())
Public Shared ReadOnly Property Parser As MessageParserType(Of EnumDescriptorProto)
Get
Return _parser
End Get
End Property
Public Shared ReadOnly Property DescriptorProp As MessageDescriptor
Get
Return Global.Google.Protobuf.Reflection.DescriptorReflection.Descriptor.MessageTypes(5)
End Get
End Property
Private ReadOnly Property Descriptor As MessageDescriptor Implements IMessage.Descriptor
Get
Return DescriptorProp
End Get
End Property
Public Sub New()
OnConstruction()
End Sub
Partial Private Sub OnConstruction()
End Sub
Public Sub New(other As EnumDescriptorProto)
Me.New()
name_ = other.name_
value_ = other.value_.Clone()
Options = If(other.options_ IsNot Nothing, other.Options.Clone(), Nothing)
End Sub
Public Function Clone() As EnumDescriptorProto Implements IDeepCloneable(Of EnumDescriptorProto).Clone
Return New EnumDescriptorProto(Me)
End Function
''' Field number for the "name" field.
Public Const NameFieldNumber As Integer = 1
Private name_ As String = ""
Public Property Name As String
Get
Return name_
End Get
Set(value As String)
name_ = CheckNotNull(value, "value")
End Set
End Property
''' Field number for the "value" field.
Public Const ValueFieldNumber As Integer = 2
Private Shared ReadOnly _repeated_value_codec As FieldCodecType(Of Global.Google.Protobuf.Reflection.EnumValueDescriptorProto) = FieldCodec.ForMessage(18, Global.Google.Protobuf.Reflection.EnumValueDescriptorProto.Parser)
Private ReadOnly value_ As pbc.RepeatedField(Of Global.Google.Protobuf.Reflection.EnumValueDescriptorProto) = New pbc.RepeatedField(Of Global.Google.Protobuf.Reflection.EnumValueDescriptorProto)()
Public ReadOnly Property Value As pbc.RepeatedField(Of Global.Google.Protobuf.Reflection.EnumValueDescriptorProto)
Get
Return value_
End Get
End Property
''' Field number for the "options" field.
Public Const OptionsFieldNumber As Integer = 3
Private options_ As Global.Google.Protobuf.Reflection.EnumOptions
Public Property Options As Global.Google.Protobuf.Reflection.EnumOptions
Get
Return options_
End Get
Set(value As Global.Google.Protobuf.Reflection.EnumOptions)
options_ = value
End Set
End Property
Public Overrides Function Equals(other As Object) As Boolean
Return Equals(TryCast(other, EnumDescriptorProto))
End Function
Public Overloads Function Equals(other As EnumDescriptorProto) As Boolean Implements IEquatable(Of EnumDescriptorProto).Equals
If ReferenceEquals(other, Nothing) Then
Return False
End If
If ReferenceEquals(other, Me) Then
Return True
End If
If Not Equals(Name, other.Name) Then Return False
If Not value_.Equals(other.value_) Then Return False
If Not Object.Equals(Options, other.Options) Then Return False
Return True
End Function
Public Overrides Function GetHashCode() As Integer
Dim hash = 1
If Name.Length <> 0 Then hash = hash Xor Name.GetHashCode()
hash = hash Xor value_.GetHashCode()
If options_ IsNot Nothing Then hash = hash Xor Options.GetHashCode()
Return hash
End Function
Public Overrides Function ToString() As String
Return JsonFormatter.ToDiagnosticString(Me)
End Function
Public Sub WriteTo(output As CodedOutputStream) Implements IMessage.WriteTo
If Name.Length <> 0 Then
output.WriteRawTag(10)
output.WriteString(Name)
End If
value_.WriteTo(output, _repeated_value_codec)
If options_ IsNot Nothing Then
output.WriteRawTag(26)
output.WriteMessage(Options)
End If
End Sub
Public Function CalculateSize() As Integer Implements IMessage.CalculateSize
Dim size = 0
If Name.Length <> 0 Then
size += 1 + CodedOutputStream.ComputeStringSize(Name)
End If
size += value_.CalculateSize(_repeated_value_codec)
If options_ IsNot Nothing Then
size += 1 + CodedOutputStream.ComputeMessageSize(Options)
End If
Return size
End Function
Public Sub MergeFrom(other As EnumDescriptorProto) Implements IMessageType(Of EnumDescriptorProto).MergeFrom
If other Is Nothing Then
Return
End If
If other.Name.Length <> 0 Then
Name = other.Name
End If
value_.Add(other.value_)
If other.options_ IsNot Nothing Then
If options_ Is Nothing Then
options_ = New Global.Google.Protobuf.Reflection.EnumOptions()
End If
Options.MergeFrom(other.Options)
End If
End Sub
Public Sub MergeFrom(input As CodedInputStream) Implements IMessage.MergeFrom
Dim tag As New Value(Of UInteger)
While ((tag = input.ReadTag())) <> 0
Select Case tag.Value
Case 10
Name = input.ReadString()
Case 18
value_.AddEntriesFrom(input, _repeated_value_codec)
Case 26
If options_ Is Nothing Then
options_ = New Global.Google.Protobuf.Reflection.EnumOptions()
End If
input.ReadMessage(options_)
Case Else
input.SkipLastField()
End Select
End While
End Sub
End Class
'''
''' Describes a value within an enum.
'''
Partial Friend NotInheritable Class EnumValueDescriptorProto
Implements IMessageType(Of EnumValueDescriptorProto)
Private Shared ReadOnly _parser As MessageParserType(Of EnumValueDescriptorProto) = New MessageParserType(Of EnumValueDescriptorProto)(Function() New EnumValueDescriptorProto())
Public Shared ReadOnly Property Parser As MessageParserType(Of EnumValueDescriptorProto)
Get
Return _parser
End Get
End Property
Public Shared ReadOnly Property DescriptorProp As MessageDescriptor
Get
Return Global.Google.Protobuf.Reflection.DescriptorReflection.Descriptor.MessageTypes(6)
End Get
End Property
Private ReadOnly Property Descriptor As MessageDescriptor Implements IMessage.Descriptor
Get
Return DescriptorProp
End Get
End Property
Public Sub New()
OnConstruction()
End Sub
Partial Private Sub OnConstruction()
End Sub
Public Sub New(other As EnumValueDescriptorProto)
Me.New()
name_ = other.name_
number_ = other.number_
Options = If(other.options_ IsNot Nothing, other.Options.Clone(), Nothing)
End Sub
Public Function Clone() As EnumValueDescriptorProto Implements IDeepCloneable(Of EnumValueDescriptorProto).Clone
Return New EnumValueDescriptorProto(Me)
End Function
''' Field number for the "name" field.
Public Const NameFieldNumber As Integer = 1
Private name_ As String = ""
Public Property Name As String
Get
Return name_
End Get
Set(value As String)
name_ = CheckNotNull(value, "value")
End Set
End Property
''' Field number for the "number" field.
Public Const NumberFieldNumber As Integer = 2
Private number_ As Integer
Public Property Number As Integer
Get
Return number_
End Get
Set(value As Integer)
number_ = value
End Set
End Property
''' Field number for the "options" field.
Public Const OptionsFieldNumber As Integer = 3
Private options_ As Global.Google.Protobuf.Reflection.EnumValueOptions
Public Property Options As Global.Google.Protobuf.Reflection.EnumValueOptions
Get
Return options_
End Get
Set(value As Global.Google.Protobuf.Reflection.EnumValueOptions)
options_ = value
End Set
End Property
Public Overrides Function Equals(other As Object) As Boolean
Return Equals(TryCast(other, EnumValueDescriptorProto))
End Function
Public Overloads Function Equals(other As EnumValueDescriptorProto) As Boolean Implements IEquatable(Of EnumValueDescriptorProto).Equals
If ReferenceEquals(other, Nothing) Then
Return False
End If
If ReferenceEquals(other, Me) Then
Return True
End If
If Not Equals(Name, other.Name) Then Return False
If Number <> other.Number Then Return False
If Not Object.Equals(Options, other.Options) Then Return False
Return True
End Function
Public Overrides Function GetHashCode() As Integer
Dim hash = 1
If Name.Length <> 0 Then hash = hash Xor Name.GetHashCode()
If Number <> 0 Then hash = hash Xor Number.GetHashCode()
If options_ IsNot Nothing Then hash = hash Xor Options.GetHashCode()
Return hash
End Function
Public Overrides Function ToString() As String
Return JsonFormatter.ToDiagnosticString(Me)
End Function
Public Sub WriteTo(output As CodedOutputStream) Implements IMessage.WriteTo
If Name.Length <> 0 Then
output.WriteRawTag(10)
output.WriteString(Name)
End If
If Number <> 0 Then
output.WriteRawTag(16)
output.WriteInt32(Number)
End If
If options_ IsNot Nothing Then
output.WriteRawTag(26)
output.WriteMessage(Options)
End If
End Sub
Public Function CalculateSize() As Integer Implements IMessage.CalculateSize
Dim size = 0
If Name.Length <> 0 Then
size += 1 + CodedOutputStream.ComputeStringSize(Name)
End If
If Number <> 0 Then
size += 1 + CodedOutputStream.ComputeInt32Size(Number)
End If
If options_ IsNot Nothing Then
size += 1 + CodedOutputStream.ComputeMessageSize(Options)
End If
Return size
End Function
Public Sub MergeFrom(other As EnumValueDescriptorProto) Implements IMessageType(Of EnumValueDescriptorProto).MergeFrom
If other Is Nothing Then
Return
End If
If other.Name.Length <> 0 Then
Name = other.Name
End If
If other.Number <> 0 Then
Number = other.Number
End If
If other.options_ IsNot Nothing Then
If options_ Is Nothing Then
options_ = New Global.Google.Protobuf.Reflection.EnumValueOptions()
End If
Options.MergeFrom(other.Options)
End If
End Sub
Public Sub MergeFrom(input As CodedInputStream) Implements IMessage.MergeFrom
Dim tag As New Value(Of UInteger)
While ((tag = input.ReadTag())) <> 0
Select Case tag.Value
Case 10
Name = input.ReadString()
Case 16
Number = input.ReadInt32()
Case 26
If options_ Is Nothing Then
options_ = New Global.Google.Protobuf.Reflection.EnumValueOptions()
End If
input.ReadMessage(options_)
Case Else
input.SkipLastField()
End Select
End While
End Sub
End Class
'''
''' Describes a service.
'''
Partial Friend NotInheritable Class ServiceDescriptorProto
Implements IMessageType(Of ServiceDescriptorProto)
Private Shared ReadOnly _parser As MessageParserType(Of ServiceDescriptorProto) = New MessageParserType(Of ServiceDescriptorProto)(Function() New ServiceDescriptorProto())
Public Shared ReadOnly Property Parser As MessageParserType(Of ServiceDescriptorProto)
Get
Return _parser
End Get
End Property
Public Shared ReadOnly Property DescriptorProp As MessageDescriptor
Get
Return Global.Google.Protobuf.Reflection.DescriptorReflection.Descriptor.MessageTypes(7)
End Get
End Property
Private ReadOnly Property Descriptor As MessageDescriptor Implements IMessage.Descriptor
Get
Return DescriptorProp
End Get
End Property
Public Sub New()
OnConstruction()
End Sub
Partial Private Sub OnConstruction()
End Sub
Public Sub New(other As ServiceDescriptorProto)
Me.New()
name_ = other.name_
method_ = other.method_.Clone()
Options = If(other.options_ IsNot Nothing, other.Options.Clone(), Nothing)
End Sub
Public Function Clone() As ServiceDescriptorProto Implements IDeepCloneable(Of ServiceDescriptorProto).Clone
Return New ServiceDescriptorProto(Me)
End Function
''' Field number for the "name" field.
Public Const NameFieldNumber As Integer = 1
Private name_ As String = ""
Public Property Name As String
Get
Return name_
End Get
Set(value As String)
name_ = CheckNotNull(value, "value")
End Set
End Property
''' Field number for the "method" field.
Public Const MethodFieldNumber As Integer = 2
Private Shared ReadOnly _repeated_method_codec As FieldCodecType(Of Global.Google.Protobuf.Reflection.MethodDescriptorProto) = FieldCodec.ForMessage(18, Global.Google.Protobuf.Reflection.MethodDescriptorProto.Parser)
Private ReadOnly method_ As pbc.RepeatedField(Of Global.Google.Protobuf.Reflection.MethodDescriptorProto) = New pbc.RepeatedField(Of Global.Google.Protobuf.Reflection.MethodDescriptorProto)()
Public ReadOnly Property Method As pbc.RepeatedField(Of Global.Google.Protobuf.Reflection.MethodDescriptorProto)
Get
Return method_
End Get
End Property
''' Field number for the "options" field.
Public Const OptionsFieldNumber As Integer = 3
Private options_ As Global.Google.Protobuf.Reflection.ServiceOptions
Public Property Options As Global.Google.Protobuf.Reflection.ServiceOptions
Get
Return options_
End Get
Set(value As Global.Google.Protobuf.Reflection.ServiceOptions)
options_ = value
End Set
End Property
Public Overrides Function Equals(other As Object) As Boolean
Return Equals(TryCast(other, ServiceDescriptorProto))
End Function
Public Overloads Function Equals(other As ServiceDescriptorProto) As Boolean Implements IEquatable(Of ServiceDescriptorProto).Equals
If ReferenceEquals(other, Nothing) Then
Return False
End If
If ReferenceEquals(other, Me) Then
Return True
End If
If Not Equals(Name, other.Name) Then Return False
If Not method_.Equals(other.method_) Then Return False
If Not Object.Equals(Options, other.Options) Then Return False
Return True
End Function
Public Overrides Function GetHashCode() As Integer
Dim hash = 1
If Name.Length <> 0 Then hash = hash Xor Name.GetHashCode()
hash = hash Xor method_.GetHashCode()
If options_ IsNot Nothing Then hash = hash Xor Options.GetHashCode()
Return hash
End Function
Public Overrides Function ToString() As String
Return JsonFormatter.ToDiagnosticString(Me)
End Function
Public Sub WriteTo(output As CodedOutputStream) Implements IMessage.WriteTo
If Name.Length <> 0 Then
output.WriteRawTag(10)
output.WriteString(Name)
End If
method_.WriteTo(output, _repeated_method_codec)
If options_ IsNot Nothing Then
output.WriteRawTag(26)
output.WriteMessage(Options)
End If
End Sub
Public Function CalculateSize() As Integer Implements IMessage.CalculateSize
Dim size = 0
If Name.Length <> 0 Then
size += 1 + CodedOutputStream.ComputeStringSize(Name)
End If
size += method_.CalculateSize(_repeated_method_codec)
If options_ IsNot Nothing Then
size += 1 + CodedOutputStream.ComputeMessageSize(Options)
End If
Return size
End Function
Public Sub MergeFrom(other As ServiceDescriptorProto) Implements IMessageType(Of ServiceDescriptorProto).MergeFrom
If other Is Nothing Then
Return
End If
If other.Name.Length <> 0 Then
Name = other.Name
End If
method_.Add(other.method_)
If other.options_ IsNot Nothing Then
If options_ Is Nothing Then
options_ = New Global.Google.Protobuf.Reflection.ServiceOptions()
End If
Options.MergeFrom(other.Options)
End If
End Sub
Public Sub MergeFrom(input As CodedInputStream) Implements IMessage.MergeFrom
Dim tag As New Value(Of UInteger)
While ((tag = input.ReadTag())) <> 0
Select Case tag
Case 10
Name = input.ReadString()
Case 18
method_.AddEntriesFrom(input, _repeated_method_codec)
Case 26
If options_ Is Nothing Then
options_ = New Global.Google.Protobuf.Reflection.ServiceOptions()
End If
input.ReadMessage(options_)
Case Else
input.SkipLastField()
End Select
End While
End Sub
End Class
'''
''' Describes a method of a service.
'''
Partial Friend NotInheritable Class MethodDescriptorProto
Implements IMessageType(Of MethodDescriptorProto)
Private Shared ReadOnly _parser As MessageParserType(Of MethodDescriptorProto) = New MessageParserType(Of MethodDescriptorProto)(Function() New MethodDescriptorProto())
Public Shared ReadOnly Property Parser As MessageParserType(Of MethodDescriptorProto)
Get
Return _parser
End Get
End Property
Public Shared ReadOnly Property DescriptorProp As MessageDescriptor
Get
Return Global.Google.Protobuf.Reflection.DescriptorReflection.Descriptor.MessageTypes(8)
End Get
End Property
Private ReadOnly Property Descriptor As MessageDescriptor Implements IMessage.Descriptor
Get
Return DescriptorProp
End Get
End Property
Public Sub New()
OnConstruction()
End Sub
Partial Private Sub OnConstruction()
End Sub
Public Sub New(other As MethodDescriptorProto)
Me.New()
name_ = other.name_
inputType_ = other.inputType_
outputType_ = other.outputType_
Options = If(other.options_ IsNot Nothing, other.Options.Clone(), Nothing)
clientStreaming_ = other.clientStreaming_
serverStreaming_ = other.serverStreaming_
End Sub
Public Function Clone() As MethodDescriptorProto Implements IDeepCloneable(Of MethodDescriptorProto).Clone
Return New MethodDescriptorProto(Me)
End Function
''' Field number for the "name" field.
Public Const NameFieldNumber As Integer = 1
Private name_ As String = ""
Public Property Name As String
Get
Return name_
End Get
Set(value As String)
name_ = CheckNotNull(value, "value")
End Set
End Property
''' Field number for the "input_type" field.
Public Const InputTypeFieldNumber As Integer = 2
Private inputType_ As String = ""
'''
''' Input and output type names. These are resolved in the same way as
''' FieldDescriptorProto.type_name, but must refer to a message type.
'''
Public Property InputType As String
Get
Return inputType_
End Get
Set(value As String)
inputType_ = CheckNotNull(value, "value")
End Set
End Property
''' Field number for the "output_type" field.
Public Const OutputTypeFieldNumber As Integer = 3
Private outputType_ As String = ""
Public Property OutputType As String
Get
Return outputType_
End Get
Set(value As String)
outputType_ = CheckNotNull(value, "value")
End Set
End Property
''' Field number for the "options" field.
Public Const OptionsFieldNumber As Integer = 4
Private options_ As Global.Google.Protobuf.Reflection.MethodOptions
Public Property Options As Global.Google.Protobuf.Reflection.MethodOptions
Get
Return options_
End Get
Set(value As Global.Google.Protobuf.Reflection.MethodOptions)
options_ = value
End Set
End Property
''' Field number for the "client_streaming" field.
Public Const ClientStreamingFieldNumber As Integer = 5
Private clientStreaming_ As Boolean
'''
''' Identifies if client streams multiple client messages
'''
Public Property ClientStreaming As Boolean
Get
Return clientStreaming_
End Get
Set(value As Boolean)
clientStreaming_ = value
End Set
End Property
''' Field number for the "server_streaming" field.
Public Const ServerStreamingFieldNumber As Integer = 6
Private serverStreaming_ As Boolean
'''
''' Identifies if server streams multiple server messages
'''
Public Property ServerStreaming As Boolean
Get
Return serverStreaming_
End Get
Set(value As Boolean)
serverStreaming_ = value
End Set
End Property
Public Overrides Function Equals(other As Object) As Boolean
Return Equals(TryCast(other, MethodDescriptorProto))
End Function
Public Overloads Function Equals(other As MethodDescriptorProto) As Boolean Implements IEquatable(Of MethodDescriptorProto).Equals
If ReferenceEquals(other, Nothing) Then
Return False
End If
If ReferenceEquals(other, Me) Then
Return True
End If
If Not Equals(Name, other.Name) Then Return False
If Not Equals(InputType, other.InputType) Then Return False
If Not Equals(OutputType, other.OutputType) Then Return False
If Not Object.Equals(Options, other.Options) Then Return False
If ClientStreaming <> other.ClientStreaming Then Return False
If ServerStreaming <> other.ServerStreaming Then Return False
Return True
End Function
Public Overrides Function GetHashCode() As Integer
Dim hash = 1
If Name.Length <> 0 Then hash = hash Xor Name.GetHashCode()
If InputType.Length <> 0 Then hash = hash Xor InputType.GetHashCode()
If OutputType.Length <> 0 Then hash = hash Xor OutputType.GetHashCode()
If options_ IsNot Nothing Then hash = hash Xor Options.GetHashCode()
If ClientStreaming <> False Then hash = hash Xor ClientStreaming.GetHashCode()
If ServerStreaming <> False Then hash = hash Xor ServerStreaming.GetHashCode()
Return hash
End Function
Public Overrides Function ToString() As String
Return JsonFormatter.ToDiagnosticString(Me)
End Function
Public Sub WriteTo(output As CodedOutputStream) Implements IMessage.WriteTo
If Name.Length <> 0 Then
output.WriteRawTag(10)
output.WriteString(Name)
End If
If InputType.Length <> 0 Then
output.WriteRawTag(18)
output.WriteString(InputType)
End If
If OutputType.Length <> 0 Then
output.WriteRawTag(26)
output.WriteString(OutputType)
End If
If options_ IsNot Nothing Then
output.WriteRawTag(34)
output.WriteMessage(Options)
End If
If ClientStreaming <> False Then
output.WriteRawTag(40)
output.WriteBool(ClientStreaming)
End If
If ServerStreaming <> False Then
output.WriteRawTag(48)
output.WriteBool(ServerStreaming)
End If
End Sub
Public Function CalculateSize() As Integer Implements IMessage.CalculateSize
Dim size = 0
If Name.Length <> 0 Then
size += 1 + CodedOutputStream.ComputeStringSize(Name)
End If
If InputType.Length <> 0 Then
size += 1 + CodedOutputStream.ComputeStringSize(InputType)
End If
If OutputType.Length <> 0 Then
size += 1 + CodedOutputStream.ComputeStringSize(OutputType)
End If
If options_ IsNot Nothing Then
size += 1 + CodedOutputStream.ComputeMessageSize(Options)
End If
If ClientStreaming <> False Then
size += 1 + 1
End If
If ServerStreaming <> False Then
size += 1 + 1
End If
Return size
End Function
Public Sub MergeFrom(other As MethodDescriptorProto) Implements IMessageType(Of MethodDescriptorProto).MergeFrom
If other Is Nothing Then
Return
End If
If other.Name.Length <> 0 Then
Name = other.Name
End If
If other.InputType.Length <> 0 Then
InputType = other.InputType
End If
If other.OutputType.Length <> 0 Then
OutputType = other.OutputType
End If
If other.options_ IsNot Nothing Then
If options_ Is Nothing Then
options_ = New Global.Google.Protobuf.Reflection.MethodOptions()
End If
Options.MergeFrom(other.Options)
End If
If other.ClientStreaming <> False Then
ClientStreaming = other.ClientStreaming
End If
If other.ServerStreaming <> False Then
ServerStreaming = other.ServerStreaming
End If
End Sub
Public Sub MergeFrom(input As CodedInputStream) Implements IMessage.MergeFrom
Dim tag As New Value(Of UInteger)
While ((tag = input.ReadTag())) <> 0
Select Case tag.Value
Case 10
Name = input.ReadString()
Case 18
InputType = input.ReadString()
Case 26
OutputType = input.ReadString()
Case 34
If options_ Is Nothing Then
options_ = New Global.Google.Protobuf.Reflection.MethodOptions()
End If
input.ReadMessage(options_)
Case 40
ClientStreaming = input.ReadBool()
Case 48
ServerStreaming = input.ReadBool()
Case Else
input.SkipLastField()
End Select
End While
End Sub
End Class
Partial Friend NotInheritable Class FileOptions
Implements IMessageType(Of FileOptions)
Private Shared ReadOnly _parser As MessageParserType(Of FileOptions) = New MessageParserType(Of FileOptions)(Function() New FileOptions())
Public Shared ReadOnly Property Parser As MessageParserType(Of FileOptions)
Get
Return _parser
End Get
End Property
Public Shared ReadOnly Property DescriptorProp As MessageDescriptor
Get
Return Global.Google.Protobuf.Reflection.DescriptorReflection.Descriptor.MessageTypes(9)
End Get
End Property
Private ReadOnly Property Descriptor As MessageDescriptor Implements IMessage.Descriptor
Get
Return DescriptorProp
End Get
End Property
Public Sub New()
OnConstruction()
End Sub
Partial Private Sub OnConstruction()
End Sub
Public Sub New(other As FileOptions)
Me.New()
javaPackage_ = other.javaPackage_
javaOuterClassname_ = other.javaOuterClassname_
javaMultipleFiles_ = other.javaMultipleFiles_
javaGenerateEqualsAndHash_ = other.javaGenerateEqualsAndHash_
javaStringCheckUtf8_ = other.javaStringCheckUtf8_
optimizeFor_ = other.optimizeFor_
goPackage_ = other.goPackage_
ccGenericServices_ = other.ccGenericServices_
javaGenericServices_ = other.javaGenericServices_
pyGenericServices_ = other.pyGenericServices_
deprecated_ = other.deprecated_
ccEnableArenas_ = other.ccEnableArenas_
objcClassPrefix_ = other.objcClassPrefix_
csharpNamespace_ = other.csharpNamespace_
uninterpretedOption_ = other.uninterpretedOption_.Clone()
End Sub
Public Function Clone() As FileOptions Implements IDeepCloneable(Of FileOptions).Clone
Return New FileOptions(Me)
End Function
''' Field number for the "java_package" field.
Public Const JavaPackageFieldNumber As Integer = 1
Private javaPackage_ As String = ""
'''
''' Sets the Java package where classes generated from this .proto will be
''' placed. By default, the proto package is used, but this is often
''' inappropriate because proto packages do not normally start with backwards
''' domain names.
'''
Public Property JavaPackage As String
Get
Return javaPackage_
End Get
Set(value As String)
javaPackage_ = CheckNotNull(value, "value")
End Set
End Property
''' Field number for the "java_outer_classname" field.
Public Const JavaOuterClassnameFieldNumber As Integer = 8
Private javaOuterClassname_ As String = ""
'''
''' If set, all the classes from the .proto file are wrapped in a single
''' outer class with the given name. This applies to both Proto1
''' (equivalent to the old "--one_java_file" option) and Proto2 (where
''' a .proto always translates to a single class, but you may want to
''' explicitly choose the class name).
'''
Public Property JavaOuterClassname As String
Get
Return javaOuterClassname_
End Get
Set(value As String)
javaOuterClassname_ = CheckNotNull(value, "value")
End Set
End Property
''' Field number for the "java_multiple_files" field.
Public Const JavaMultipleFilesFieldNumber As Integer = 10
Private javaMultipleFiles_ As Boolean
'''
''' If set true, then the Java code generator will generate a separate .java
''' file for each top-level message, enum, and service defined in the .proto
''' file. Thus, these types will *not* be nested inside the outer class
''' named by java_outer_classname. However, the outer class will still be
''' generated to contain the file's getDescriptor() method as well as any
''' top-level extensions defined in the file.
'''
Public Property JavaMultipleFiles As Boolean
Get
Return javaMultipleFiles_
End Get
Set(value As Boolean)
javaMultipleFiles_ = value
End Set
End Property
''' Field number for the "java_generate_equals_and_hash" field.
Public Const JavaGenerateEqualsAndHashFieldNumber As Integer = 20
Private javaGenerateEqualsAndHash_ As Boolean
'''
''' If set true, then the Java code generator will generate equals() and
''' hashCode() methods for all messages defined in the .proto file.
''' This increases generated code size, potentially substantially for large
''' protos, which may harm a memory-constrained application.
''' - In the full runtime this is a speed optimization, as the
''' AbstractMessage base class includes reflection-based implementations of
''' these methods.
''' - In the lite runtime, setting this option changes the semantics of
''' equals() and hashCode() to more closely match those of the full runtime;
''' the generated methods compute their results based on field values rather
''' than object identity. (Implementations should not assume that hashcodes
''' will be consistent across runtimes or versions of the protocol compiler.)
'''
Public Property JavaGenerateEqualsAndHash As Boolean
Get
Return javaGenerateEqualsAndHash_
End Get
Set(value As Boolean)
javaGenerateEqualsAndHash_ = value
End Set
End Property
''' Field number for the "java_string_check_utf8" field.
Public Const JavaStringCheckUtf8FieldNumber As Integer = 27
Private javaStringCheckUtf8_ As Boolean
'''
''' If set true, then the Java2 code generator will generate code that
''' throws an exception whenever an attempt is made to assign a non-UTF-8
''' byte sequence to a string field.
''' Message reflection will do the same.
''' However, an extension field still accepts non-UTF-8 byte sequences.
''' This option has no effect on when used with the lite runtime.
'''
Public Property JavaStringCheckUtf8 As Boolean
Get
Return javaStringCheckUtf8_
End Get
Set(value As Boolean)
javaStringCheckUtf8_ = value
End Set
End Property
''' Field number for the "optimize_for" field.
Public Const OptimizeForFieldNumber As Integer = 9
Private optimizeFor_ As Global.Google.Protobuf.Reflection.FileOptions.Types.OptimizeMode = 0
Public Property OptimizeFor As Global.Google.Protobuf.Reflection.FileOptions.Types.OptimizeMode
Get
Return optimizeFor_
End Get
Set(value As Global.Google.Protobuf.Reflection.FileOptions.Types.OptimizeMode)
optimizeFor_ = value
End Set
End Property
''' Field number for the "go_package" field.
Public Const GoPackageFieldNumber As Integer = 11
Private goPackage_ As String = ""
'''
''' Sets the Go package where structs generated from this .proto will be
''' placed. If omitted, the Go package will be derived from the following:
''' - The basename of the package import path, if provided.
''' - Otherwise, the package statement in the .proto file, if present.
''' - Otherwise, the basename of the .proto file, without extension.
'''
Public Property GoPackage As String
Get
Return goPackage_
End Get
Set(value As String)
goPackage_ = CheckNotNull(value, "value")
End Set
End Property
''' Field number for the "cc_generic_services" field.
Public Const CcGenericServicesFieldNumber As Integer = 16
Private ccGenericServices_ As Boolean
'''
''' Should generic services be generated in each language? "Generic" services
''' are not specific to any particular RPC system. They are generated by the
''' main code generators in each language (without additional plugins).
''' Generic services were the only kind of service generation supported by
''' early versions of google.protobuf.
'''
''' Generic services are now considered deprecated in favor of using plugins
''' that generate code specific to your particular RPC system. Therefore,
''' these default to false. Old code which depends on generic services should
''' explicitly set them to true.
'''
Public Property CcGenericServices As Boolean
Get
Return ccGenericServices_
End Get
Set(value As Boolean)
ccGenericServices_ = value
End Set
End Property
''' Field number for the "java_generic_services" field.
Public Const JavaGenericServicesFieldNumber As Integer = 17
Private javaGenericServices_ As Boolean
Public Property JavaGenericServices As Boolean
Get
Return javaGenericServices_
End Get
Set(value As Boolean)
javaGenericServices_ = value
End Set
End Property
''' Field number for the "py_generic_services" field.
Public Const PyGenericServicesFieldNumber As Integer = 18
Private pyGenericServices_ As Boolean
Public Property PyGenericServices As Boolean
Get
Return pyGenericServices_
End Get
Set(value As Boolean)
pyGenericServices_ = value
End Set
End Property
''' Field number for the "deprecated" field.
Public Const DeprecatedFieldNumber As Integer = 23
Private deprecated_ As Boolean
'''
''' Is this file deprecated?
''' Depending on the target platform, this can emit Deprecated annotations
''' for everything in the file, or it will be completely ignored; in the very
''' least, this is a formalization for deprecating files.
'''
Public Property Deprecated As Boolean
Get
Return deprecated_
End Get
Set(value As Boolean)
deprecated_ = value
End Set
End Property
''' Field number for the "cc_enable_arenas" field.
Public Const CcEnableArenasFieldNumber As Integer = 31
Private ccEnableArenas_ As Boolean
'''
''' Enables the use of arenas for the proto messages in this file. This applies
''' only to generated classes for C++.
'''
Public Property CcEnableArenas As Boolean
Get
Return ccEnableArenas_
End Get
Set(value As Boolean)
ccEnableArenas_ = value
End Set
End Property
''' Field number for the "objc_class_prefix" field.
Public Const ObjcClassPrefixFieldNumber As Integer = 36
Private objcClassPrefix_ As String = ""
'''
''' Sets the objective c class prefix which is prepended to all objective c
''' generated classes from this .proto. There is no default.
'''
Public Property ObjcClassPrefix As String
Get
Return objcClassPrefix_
End Get
Set(value As String)
objcClassPrefix_ = CheckNotNull(value, "value")
End Set
End Property
''' Field number for the "csharp_namespace" field.
Public Const CsharpNamespaceFieldNumber As Integer = 37
Private csharpNamespace_ As String = ""
'''
''' Namespace for generated classes; defaults to the package.
'''
Public Property CsharpNamespace As String
Get
Return csharpNamespace_
End Get
Set(value As String)
csharpNamespace_ = CheckNotNull(value, "value")
End Set
End Property
''' Field number for the "uninterpreted_option" field.
Public Const UninterpretedOptionFieldNumber As Integer = 999
Private Shared ReadOnly _repeated_uninterpretedOption_codec As FieldCodecType(Of Global.Google.Protobuf.Reflection.UninterpretedOption) = FieldCodec.ForMessage(7994, Global.Google.Protobuf.Reflection.UninterpretedOption.Parser)
Private ReadOnly uninterpretedOption_ As pbc.RepeatedField(Of Global.Google.Protobuf.Reflection.UninterpretedOption) = New pbc.RepeatedField(Of Global.Google.Protobuf.Reflection.UninterpretedOption)()
'''
''' The parser stores options it doesn't recognize here. See above.
'''
Public ReadOnly Property UninterpretedOption As pbc.RepeatedField(Of Global.Google.Protobuf.Reflection.UninterpretedOption)
Get
Return uninterpretedOption_
End Get
End Property
Public Overrides Function Equals(other As Object) As Boolean
Return Equals(TryCast(other, FileOptions))
End Function
Public Overloads Function Equals(other As FileOptions) As Boolean Implements IEquatable(Of FileOptions).Equals
If ReferenceEquals(other, Nothing) Then
Return False
End If
If ReferenceEquals(other, Me) Then
Return True
End If
If Not Equals(JavaPackage, other.JavaPackage) Then Return False
If Not Equals(JavaOuterClassname, other.JavaOuterClassname) Then Return False
If JavaMultipleFiles <> other.JavaMultipleFiles Then Return False
If JavaGenerateEqualsAndHash <> other.JavaGenerateEqualsAndHash Then Return False
If JavaStringCheckUtf8 <> other.JavaStringCheckUtf8 Then Return False
If OptimizeFor <> other.OptimizeFor Then Return False
If Not Equals(GoPackage, other.GoPackage) Then Return False
If CcGenericServices <> other.CcGenericServices Then Return False
If JavaGenericServices <> other.JavaGenericServices Then Return False
If PyGenericServices <> other.PyGenericServices Then Return False
If Deprecated <> other.Deprecated Then Return False
If CcEnableArenas <> other.CcEnableArenas Then Return False
If Not Equals(ObjcClassPrefix, other.ObjcClassPrefix) Then Return False
If Not Equals(CsharpNamespace, other.CsharpNamespace) Then Return False
If Not uninterpretedOption_.Equals(other.uninterpretedOption_) Then Return False
Return True
End Function