' Generated by the protocol buffer compiler. DO NOT EDIT! ' source: google/protobuf/source_context.proto #Region "Designer generated code" Imports Microsoft.VisualBasic.Language Imports pbr = Google.Protobuf.Reflection Namespace Google.Protobuf.WellKnownTypes ''' Holder for reflection information generated from google/protobuf/source_context.proto Public Partial Module SourceContextReflection #Region "Descriptor" ''' File descriptor for google/protobuf/source_context.proto Public ReadOnly Property Descriptor As pbr.FileDescriptor Get Return descriptorField End Get End Property Private descriptorField As pbr.FileDescriptor Sub New() Dim descriptorData As Byte() = Global.System.Convert.FromBase64String(String.Concat("CiRnb29nbGUvcHJvdG9idWYvc291cmNlX2NvbnRleHQucHJvdG8SD2dvb2ds", "ZS5wcm90b2J1ZiIiCg1Tb3VyY2VDb250ZXh0EhEKCWZpbGVfbmFtZRgBIAEo", "CUJVChNjb20uZ29vZ2xlLnByb3RvYnVmQhJTb3VyY2VDb250ZXh0UHJvdG9Q", "AaABAaICA0dQQqoCHkdvb2dsZS5Qcm90b2J1Zi5XZWxsS25vd25UeXBlc2IG", "cHJvdG8z")) descriptorField = pbr.FileDescriptor.FromGeneratedCode(descriptorData, New pbr.FileDescriptor() {}, New pbr.GeneratedClrTypeInfo(Nothing, New pbr.GeneratedClrTypeInfo() {New pbr.GeneratedClrTypeInfo(GetType(Global.Google.Protobuf.WellKnownTypes.SourceContext), Global.Google.Protobuf.WellKnownTypes.SourceContext.Parser, {"FileName"}, Nothing, Nothing, Nothing)})) End Sub #End Region End Module #Region "Messages" ''' ''' `SourceContext` represents information about the source of a ''' protobuf element, like the file in which it is defined. ''' Public NotInheritable Partial Class SourceContext Implements IMessageType(Of SourceContext) Private Shared ReadOnly _parser As MessageParserType(Of SourceContext) = New MessageParserType(Of SourceContext)(Function() New SourceContext()) Public Shared ReadOnly Property Parser As MessageParserType(Of SourceContext) Get Return _parser End Get End Property Public Shared ReadOnly Property DescriptorProp As pbr.MessageDescriptor Get Return Global.Google.Protobuf.WellKnownTypes.SourceContextReflection.Descriptor.MessageTypes(0) End Get End Property Private ReadOnly Property Descriptor As pbr.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 SourceContext) Me.New() fileName_ = other.fileName_ End Sub Public Function Clone() As SourceContext Implements IDeepCloneable(Of SourceContext).Clone Return New SourceContext(Me) End Function ''' Field number for the "file_name" field. Public Const FileNameFieldNumber As Integer = 1 Private fileName_ As String = "" ''' ''' The path-qualified name of the .proto file that contained the associated ''' protobuf element. For example: `"google/protobuf/source_context.proto"`. ''' Public Property FileName As String Get Return fileName_ End Get Set(value As String) fileName_ = CheckNotNull(value, "value") End Set End Property Public Overrides Function Equals(other As Object) As Boolean Return Equals(TryCast(other, SourceContext)) End Function Public Overloads Function Equals(other As SourceContext) As Boolean Implements IEquatable(Of SourceContext).Equals If ReferenceEquals(other, Nothing) Then Return False End If If ReferenceEquals(other, Me) Then Return True End If If Not Equals(FileName, other.FileName) Then Return False Return True End Function Public Overrides Function GetHashCode() As Integer Dim hash = 1 If FileName.Length <> 0 Then hash = hash Xor FileName.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 FileName.Length <> 0 Then output.WriteRawTag(10) output.WriteString(FileName) End If End Sub Public Function CalculateSize() As Integer Implements IMessage.CalculateSize Dim size = 0 If FileName.Length <> 0 Then size += 1 + CodedOutputStream.ComputeStringSize(FileName) End If Return size End Function Public Sub MergeFrom(other As SourceContext) Implements IMessageType(Of SourceContext).MergeFrom If other Is Nothing Then Return End If If other.FileName.Length <> 0 Then FileName = other.FileName 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 FileName = input.ReadString() Case Else input.SkipLastField() End Select End While End Sub End Class #End Region End Namespace #End Region