[AttributeUsage(AttributeTargets.Field)]
public class OriginalNameAttribute : AttributeSpecifies the original name (in the .proto file) of a named element, such as an enum value.
Namespace
Google.Protobuf.ReflectionAssembly
Google.Protobuf.dll
Constructors
OriginalNameAttribute(string)
public OriginalNameAttribute(string name)Constructs a new attribute instance for the given name.
| Parameter | |
|---|---|
| Name | Description |
name |
stringThe 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 |
|