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;
}