Google.Protobuf.WellKnownTypes.Option

A protocol buffer option, which can be attached to a message, field, enumeration, etc.

Summary

Inheritance

Inherits from: pb::IMessage< Option >

Constructors and Destructors

Option()
Option(Option other)

Properties

Descriptor
pbr::MessageDescriptor
Descriptor
pbr::MessageDescriptor pb::IMessage.
Name
string
The option's name.
Parser
pb::MessageParser< Option >
Value
global::Google.Protobuf.WellKnownTypes.Any
The option's value.

Public attributes

NameFieldNumber = 1
const int
Field number for the "name" field.
ValueFieldNumber = 2
const int
Field number for the "value" field.

Public functions

CalculateSize()
int
Clone()
Option
Equals(object other)
override bool
Equals(Option other)
bool
GetHashCode()
override int
MergeFrom(Option 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

Name

string Name

The option's name.

For example, "java_package".

Parser

pb::MessageParser< Option > Parser

Value

global::Google.Protobuf.WellKnownTypes.Any Value

The option's value.

For example, "com.google.protobuf".

Public attributes

NameFieldNumber

const int NameFieldNumber = 1

Field number for the "name" field.

ValueFieldNumber

const int ValueFieldNumber = 2

Field number for the "value" field.

Public functions

CalculateSize

int CalculateSize()

Clone

Option Clone()

Equals

override bool Equals(
  object other
)

Equals

bool Equals(
  Option other
)

GetHashCode

override int GetHashCode()

MergeFrom

void MergeFrom(
  Option other
)

MergeFrom

void MergeFrom(
  pb::CodedInputStream input
)

Option

 Option()

Option

 Option(
  Option other
)

ToString

override string ToString()

WriteTo

void WriteTo(
  pb::CodedOutputStream output
)