protoConfigStatic static method
ProtoMessageConfig
protoConfigStatic()
Implementation
static ProtoMessageConfig protoConfigStatic() {
return ProtoMessageConfig(
syntax: ProtoSyntax.v2,
options: const [],
fields: [
ProtoFieldConfig.enumType(
1,
options: [ProtoOptionString(name: "default", value: "STRING")],
hasOptionalFlags: true,
),
ProtoFieldConfig.bool(2, hasOptionalFlags: true),
ProtoFieldConfig.enumType(
6,
options: [ProtoOptionString(name: "default", value: "JS_NORMAL")],
hasOptionalFlags: true,
),
ProtoFieldConfig.bool(
5,
options: [ProtoOptionBool(name: "default", value: false)],
hasOptionalFlags: true,
),
ProtoFieldConfig.bool(
15,
options: [ProtoOptionBool(name: "default", value: false)],
hasOptionalFlags: true,
),
ProtoFieldConfig.bool(
3,
options: [ProtoOptionBool(name: "default", value: false)],
hasOptionalFlags: true,
),
ProtoFieldConfig.bool(
10,
options: [
ProtoOptionBool(name: "default", value: false),
ProtoOptionBool(name: "deprecated", value: true),
],
hasOptionalFlags: true,
),
ProtoFieldConfig.bool(
16,
options: [ProtoOptionBool(name: "default", value: false)],
hasOptionalFlags: true,
),
ProtoFieldConfig.enumType(17, hasOptionalFlags: true),
ProtoFieldConfig.repeated(
fieldNumber: 19,
elementType: ProtoFieldType.enumType,
),
ProtoFieldConfig.repeated(
fieldNumber: 20,
elementType: ProtoFieldType.message,
),
ProtoFieldConfig.message(21, hasOptionalFlags: true),
ProtoFieldConfig.message(22, hasOptionalFlags: true),
ProtoFieldConfig.repeated(
fieldNumber: 999,
elementType: ProtoFieldType.message,
),
],
);
}