summaryrefslogtreecommitdiff
path: root/java/com/android/dialer/rtt/rtt_transcript.proto
blob: a580b0d2fe898aebfd4e9a030411ce8c0f936ae8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
syntax = "proto2";

option java_package = "com.android.dialer.rtt";
option java_multiple_files = true;
option optimize_for = LITE_RUNTIME;


package com.android.dialer.rtt;

// RTT transcript which contains chat history of a RTT call.
message RttTranscript {
  // Unique ID used for database.
  optional string id = 1;
  // Phone number of RTT call.
  optional string number = 2;
  // Timestamp when the RTT call is created.
  optional int64 timestamp = 3;
  // Chat messages.
  repeated RttTranscriptMessage messages = 4;
}

// Single chat message inside a RTT call.
message RttTranscriptMessage {
  optional string content = 1;
  optional int64 timestamp = 2;
  // Whether this message is sent from local device or received from remote
  // party.
  optional bool is_remote = 3;
  optional bool is_finished = 4;
}