| // Copyright 2019 The Chromium Authors. All rights reserved. |
| // Use of this source code is governed by a BSD-style license that can be |
| // found in the LICENSE file. |
| |
| syntax = "proto3"; |
| |
| package chrome_browser_sharing; |
| |
| // Required in Chrome. |
| option optimize_for = LITE_RUNTIME; |
| |
| // Request message to fetch a SMS from a remote device. |
| message SmsFetchRequest { |
| // The origin that is requesting the SMS. Remote devices use it to match |
| // against the metadata contained in the received SMS. |
| // required |
| string origin = 1; |
| } |
| |
| // Response message to fetch a SMS from a remote device. |
| message SmsFetchResponse { |
| // The full contents of the received SMS. |
| // required |
| string sms = 1; |
| // The parsed one time code of the received SMS. |
| // required |
| string one_time_code = 2; |
| } |