Class OriginalNameAttribute (3.27.1)

[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
Name Description
name string

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
Type Description
string

PreferredAlias

public bool PreferredAlias { get; set; }

If the name is preferred in the .proto file.

Property Value
Type Description
bool