xref: /aosp_15_r20/external/tensorflow/tensorflow/core/protobuf/distributed_runtime_payloads.proto (revision b6fb3261f9314811a0f4371741dbb8839866f948)
1syntax = "proto3";
2
3package tensorflow.distributed_runtime;
4
5option cc_enable_arenas = true;
6option go_package = "github.com/tensorflow/tensorflow/tensorflow/go/core/protobuf/for_core_protos_go_proto";
7
8// Used to serialize and transmit tensorflow::Status payloads through
9// grpc::Status `error_details` since grpc::Status lacks payload API.
10// TODO(b/204231601): Use GRPC API once supported.
11message GrpcPayloadContainer {
12  map<string, bytes> payloads = 1;
13}
14
15// If included as a payload, this message flags the Status to have lost payloads
16// during the GRPC transmission.
17// URI: "type.googleapis.com/tensorflow.distributed_runtime.GrpcPayloadsLost"
18message GrpcPayloadsLost {}
19
20// If included as a payload, this message flags the Status to be a possible
21// outcome of a worker restart.
22// URI:
23// "type.googleapis.com/tensorflow.distributed_runtime.WorkerPossiblyRestarted"
24message WorkerPossiblyRestarted {}
25