Class OriginalNameAttribute (3.23.0)

[AttributeUsage(AttributeTargets.Field)]
public class OriginalNameAttribute : Attribute

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

Inheritance

object > Attribute > 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
NameDescription
namestring

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
bool