SomeProtoWithBytes.proto 548 B

123456789101112
  1. // This proto will generate a Swift file that imports Foundation, because it
  2. // defines a bytes field.
  3. // Because InternalImportsByDefault is enabled on this module and we generate
  4. // protos with public visibility, the build will fail if the access level
  5. // modifier is missing (or wrong) since it will default the import to `internal`
  6. // and cause a conflict of access levels, since the `someBytes` property defined
  7. // on the message will be public.
  8. message SomeProtoWithBytes {
  9. optional bytes someBytes = 2;
  10. optional string ext_str = 100;
  11. }