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