Skip to content

Commit d08b300

Browse files
committed
Pull across changes to proto file from #37440
1 parent 36768e3 commit d08b300

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

docs/plugin-protocol/tfplugin6.proto

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -946,19 +946,23 @@ message ReadStateBytes {
946946

947947
message WriteStateBytes {
948948
message RequestChunk {
949-
// TODO: Can we decouple this outside of the stream?
950-
string type_name = 1;
951-
string state_id = 3;
949+
// meta is sent with the first chunk only
950+
optional RequestChunkMeta meta = 1;
952951

953952
bytes bytes = 2;
954-
int64 total_length = 4;
955-
StateRange range = 5;
953+
int64 total_length = 3;
954+
StateRange range = 4;
956955
}
957956
message Response {
958957
repeated Diagnostic diagnostics = 1;
959958
}
960959
}
961960

961+
message RequestChunkMeta {
962+
string type_name = 1;
963+
string state_id = 2;
964+
}
965+
962966
message StateRange {
963967
int64 start = 1;
964968
int64 end = 2;

0 commit comments

Comments
 (0)