<PackageReference Include="Google.Protobuf" Version="3.34.2" />

Google.Protobuf.WellKnownTypes.Field

A single field of a message type. New usages of this message as an alternative to FieldDescriptorProto are strongly discouraged. This message does not reliability preserve all information necessary to model the schema and preserve semantics. Instead make use of FileDescriptorSet which preserves the necessary information.
public static class Types

Container for nested types declared in the Field message type.

public const int CardinalityFieldNumber = 2

Field number for the "cardinality" field.

public const int DefaultValueFieldNumber = 11

Field number for the "default_value" field.

public const int JsonNameFieldNumber = 10

Field number for the "json_name" field.

public const int KindFieldNumber = 1

Field number for the "kind" field.

public const int NameFieldNumber = 4

Field number for the "name" field.

public const int NumberFieldNumber = 3

Field number for the "number" field.

public const int OneofIndexFieldNumber = 7

Field number for the "oneof_index" field.

public const int OptionsFieldNumber = 9

Field number for the "options" field.

public const int PackedFieldNumber = 8

Field number for the "packed" field.

public const int TypeUrlFieldNumber = 6

Field number for the "type_url" field.

public static MessageDescriptor Descriptor { get; }

public static MessageParser<Field> Parser { get; }

public Cardinality Cardinality { get; set; }

The field cardinality.

public string DefaultValue { get; set; }

The string value of the default value of this field. Proto2 syntax only.

public string JsonName { get; set; }

The field JSON name.

public Kind Kind { get; set; }

The field type.

public string Name { get; set; }

The field name.

public int Number { get; set; }

The field number.

public int OneofIndex { get; set; }

The index of the field type in `Type.oneofs`, for message or enumeration types. The first type has index 1; zero means the type is not in the list.

public RepeatedField<Option> Options { get; }

The protocol buffer options.

public bool Packed { get; set; }

Whether to use alternative packed wire representation.

public string TypeUrl { get; set; }

The field type URL, without the scheme, for message or enumeration types. Example: `"type.googleapis.com/google.protobuf.Timestamp"`.

public Field()

public Field(Field other)

public int CalculateSize()

public Field Clone()

public bool Equals(Field other)

public void MergeFrom(Field other)

public void MergeFrom(CodedInputStream input)

public void WriteTo(CodedOutputStream output)