FieldDescriptorProto constructor

FieldDescriptorProto({
  1. String? name,
  2. String? extendee,
  3. int? number,
  4. FieldDescriptorProto_Label? label,
  5. FieldDescriptorProto_Type? type,
  6. String? typeName,
  7. String? defaultValue,
  8. FieldOptions? options,
  9. int? oneofIndex,
  10. String? jsonName,
  11. 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;
}