Google.Protobuf.WellKnownTypes.SourceContext

SourceContext represents information about the source of a protobuf element, like the file in which it is defined.

Summary

Inheritance

Inherits from: pb::IMessage< SourceContext >

Constructors and Destructors

SourceContext()
SourceContext(SourceContext other)

Properties

Descriptor
pbr::MessageDescriptor
Descriptor
pbr::MessageDescriptor pb::IMessage.
FileName
string
The path-qualified name of the .proto file that contained the associated protobuf element.
Parser
pb::MessageParser< SourceContext >

Public attributes

FileNameFieldNumber = 1
const int
Field number for the "file_name" field.

Public functions

CalculateSize()
int
Clone()
SourceContext
Equals(object other)
override bool
Equals(SourceContext other)
bool
GetHashCode()
override int
MergeFrom(SourceContext other)
void
MergeFrom(pb::CodedInputStream input)
void
ToString()
override string
WriteTo(pb::CodedOutputStream output)
void

Properties

Descriptor

pbr::MessageDescriptor Descriptor

Descriptor

pbr::MessageDescriptor pb::IMessage. Descriptor

FileName

string FileName

The path-qualified name of the .proto file that contained the associated protobuf element.

For example: "google/protobuf/source_context.proto".

Parser

pb::MessageParser< SourceContext > Parser

Public attributes

FileNameFieldNumber

const int FileNameFieldNumber = 1

Field number for the "file_name" field.

Public functions

CalculateSize

int CalculateSize()

Clone

SourceContext Clone()

Equals

override bool Equals(
  object other
)

Equals

bool Equals(
  SourceContext other
)

GetHashCode

override int GetHashCode()

MergeFrom

void MergeFrom(
  SourceContext other
)

MergeFrom

void MergeFrom(
  pb::CodedInputStream input
)

SourceContext

 SourceContext()

SourceContext

 SourceContext(
  SourceContext other
)

ToString

override string ToString()

WriteTo

void WriteTo(
  pb::CodedOutputStream output
)