protoConfigStatic static method

ProtoMessageConfig protoConfigStatic()

Implementation

static ProtoMessageConfig protoConfigStatic() {
  return ProtoMessageConfig(
    syntax: ProtoSyntax.v2,
    options: const [],
    fields: [
      ProtoFieldConfig.bool(
        1,
        options: [ProtoOptionBool(name: "default", value: false)],
        hasOptionalFlags: true,
      ),
      ProtoFieldConfig.bool(
        2,
        options: [ProtoOptionBool(name: "default", value: false)],
        hasOptionalFlags: true,
      ),
      ProtoFieldConfig.bool(
        3,
        options: [ProtoOptionBool(name: "default", value: false)],
        hasOptionalFlags: true,
      ),
      ProtoFieldConfig.bool(7, hasOptionalFlags: true),
      ProtoFieldConfig.bool(
        11,
        options: [ProtoOptionBool(name: "deprecated", value: true)],
        hasOptionalFlags: true,
      ),
      ProtoFieldConfig.message(12, hasOptionalFlags: true),
      ProtoFieldConfig.repeated(
        fieldNumber: 999,
        elementType: ProtoFieldType.message,
      ),
    ],
  );
}