This repository was archived by the owner on Nov 27, 2026. It is now read-only.
Repository navigation
feat: enhance Elem message with additional fields and define Face, Tr… #10
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 | ||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -4,7 +4,10 @@ package message.v2; | |||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||
| message Elem { | ||||||||||||||||||||||||||||
| optional Text text = 1; | ||||||||||||||||||||||||||||
| optional Face face = 2; | ||||||||||||||||||||||||||||
| optional NotOnlineImage not_online_image = 4; | ||||||||||||||||||||||||||||
| optional TransElem trans_elem = 5; | ||||||||||||||||||||||||||||
| optional MarketFace market_face = 6; | ||||||||||||||||||||||||||||
| optional CustomFace custom_face = 8; | ||||||||||||||||||||||||||||
| optional RichMsg rich_msg = 12; | ||||||||||||||||||||||||||||
| optional VideoFile video_file = 19; | ||||||||||||||||||||||||||||
|
|
@@ -22,6 +25,12 @@ message Text { | |||||||||||||||||||||||||||
| optional bytes pb_reserve = 12; | ||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||
| message Face { | ||||||||||||||||||||||||||||
| optional int32 index = 1; | ||||||||||||||||||||||||||||
| optional bytes old = 2; | ||||||||||||||||||||||||||||
| optional bytes buf = 11; | ||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||
| message NotOnlineImage { | ||||||||||||||||||||||||||||
| optional bytes file_path = 1; | ||||||||||||||||||||||||||||
| optional uint32 file_len = 2; | ||||||||||||||||||||||||||||
|
|
@@ -54,6 +63,27 @@ message NotOnlineImage { | |||||||||||||||||||||||||||
| optional bytes pb_reserve = 29; | ||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||
| message TransElem { | ||||||||||||||||||||||||||||
| optional int32 elem_type = 1; | ||||||||||||||||||||||||||||
|
Comment on lines
+66
to
+67
|
||||||||||||||||||||||||||||
| message TransElem { | |
| optional int32 elem_type = 1; | |
| enum TransElemType { | |
| // Default / unknown transport element type. When used, elem_value is opaque bytes. | |
| TRANS_ELEM_TYPE_UNSPECIFIED = 0; | |
| // Additional element types can be added here as they become known. | |
| } | |
| message TransElem { | |
| // Logical type of elem_value. See TransElemType for known values. | |
| optional TransElemType elem_type = 1; | |
| // Payload whose encoding depends on elem_type. For UNSPECIFIED or unknown types, | |
| // this field contains opaque bytes as defined by the upstream service. |
Copilot
AI
Mar 11, 2026
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
mobileparam breaks the established snake_case pattern used by other fields in MarketFace (e.g., face_name, tab_id). Consider renaming it to mobile_param for consistency and clearer generated API naming.
Suggested change
| optional bytes mobileparam = 12; | |
| optional bytes mobile_param = 12; |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Face.bufuses tag11, skipping tags3..10. If this gap is intentional for wire-compatibility with an upstream schema, it would help to addreserved 3 to 10;(or a comment) to prevent accidental reuse later. If it's not intentional, consider using the next available sequential tag to reduce confusion.