Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Protos: Include a discrete MIME type in file_path fields. (#1873)
- Loading branch information
1 parent
90813d2
commit c6849f6
Showing
4 changed files
with
29 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,26 @@ | ||
syntax = "proto2"; | ||
package buffers; | ||
|
||
import "google/protobuf/descriptor.proto"; | ||
extend google.protobuf.FieldOptions { | ||
optional int32 id_start = 50000; | ||
optional bool file_path = 50001; | ||
optional string resource_ref = 50002; | ||
optional string gmx = 50003; | ||
optional string gmx_id = 50004; | ||
optional string yyp = 50005; | ||
optional string yyp_id = 50006; | ||
} | ||
syntax = "proto2"; | ||
package buffers; | ||
|
||
enum FileKind { | ||
UNKNOWN = 0; | ||
APPLICATION = 1; | ||
AUDIO = 2; | ||
FONT = 3; | ||
IMAGE = 4; | ||
MODEL = 5; | ||
TEXT = 6; | ||
VIDEO = 7; | ||
} | ||
|
||
import "google/protobuf/descriptor.proto"; | ||
extend google.protobuf.FieldOptions { | ||
optional int32 id_start = 50000; | ||
optional bool file_path = 50001; | ||
optional string resource_ref = 50002; | ||
optional string gmx = 50003; | ||
optional string gmx_id = 50004; | ||
optional string yyp = 50005; | ||
optional string yyp_id = 50006; | ||
// When file_path is true, this is the type of file indicated. | ||
optional FileKind file_kind = 50007; | ||
} |