Class OriginalNameAttribute

public class OriginalNameAttribute : Attribute

Specifies the original name (in the .proto file) of a named element, such as an enum value.

Inheritance

Object > OriginalNameAttribute

Namespace

Google.Protobuf.Reflection

Assembly

Google.Protobuf.dll

Constructors

OriginalNameAttribute(String)

public OriginalNameAttribute(string name)

Constructs a new attribute instance for the given name.

Parameter
TypeNameDescription
Stringname

The name of the element in the .proto file.

Properties

Name

public string Name { get; set; }

The name of the element in the .proto file.

Property Value
TypeDescription
String

PreferredAlias

public bool PreferredAlias { get; set; }

If the name is preferred in the .proto file.

Property Value
TypeDescription
Boolean