FieldDescriptorProto constructor
FieldDescriptorProto({
- String? name,
- String? extendee,
- int? number,
- FieldDescriptorProto_Label? label,
- FieldDescriptorProto_Type? type,
- String? typeName,
- String? defaultValue,
- FieldOptions? options,
- int? oneofIndex,
- String? jsonName,
- bool? proto3Optional,
Implementation
factory FieldDescriptorProto({
$core.String? name,
$core.String? extendee,
$core.int? number,
FieldDescriptorProto_Label? label,
FieldDescriptorProto_Type? type,
$core.String? typeName,
$core.String? defaultValue,
FieldOptions? options,
$core.int? oneofIndex,
$core.String? jsonName,
$core.bool? proto3Optional,
}) {
final $result = create();
if (name != null) {
$result.name = name;
}
if (extendee != null) {
$result.extendee = extendee;
}
if (number != null) {
$result.number = number;
}
if (label != null) {
$result.label = label;
}
if (type != null) {
$result.type = type;
}
if (typeName != null) {
$result.typeName = typeName;
}
if (defaultValue != null) {
$result.defaultValue = defaultValue;
}
if (options != null) {
$result.options = options;
}
if (oneofIndex != null) {
$result.oneofIndex = oneofIndex;
}
if (jsonName != null) {
$result.jsonName = jsonName;
}
if (proto3Optional != null) {
$result.proto3Optional = proto3Optional;
}
return $result;
}