123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395 |
- syntax = "proto3";
- package google.home.graph.v1;
- import "google/api/annotations.proto";
- import "google/api/client.proto";
- import "google/api/field_behavior.proto";
- import "google/api/resource.proto";
- import "google/home/graph/v1/device.proto";
- import "google/protobuf/empty.proto";
- import "google/protobuf/struct.proto";
- option go_package = "google.golang.org/genproto/googleapis/home/graph/v1;graph";
- option java_outer_classname = "HomeGraphApiServiceProto";
- option java_package = "com.google.home.graph.v1";
- option php_namespace = "Google\\Home\\Graph\\V1";
- option (google.api.resource_definition) = {
- type: "homegraph.googleapis.com/AgentUserPath"
- pattern: "agentUsers/{agent_user_path}"
- };
- service HomeGraphApiService {
- option (google.api.default_host) = "homegraph.googleapis.com";
-
-
-
-
-
-
-
-
-
-
- rpc RequestSyncDevices(RequestSyncDevicesRequest)
- returns (RequestSyncDevicesResponse) {
- option (google.api.http) = {
- post: "/v1/devices:requestSync"
- body: "*"
- };
- option (google.api.method_signature) = "agent_user_id";
- }
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- rpc ReportStateAndNotification(ReportStateAndNotificationRequest)
- returns (ReportStateAndNotificationResponse) {
- option (google.api.http) = {
- post: "/v1/devices:reportStateAndNotification"
- body: "*"
- };
- option (google.api.method_signature) =
- "request_id,event_id,agent_user_id,payload";
- }
-
-
-
-
-
-
-
-
-
-
-
-
- rpc DeleteAgentUser(DeleteAgentUserRequest) returns (google.protobuf.Empty) {
- option (google.api.http) = {
- delete: "/v1/{agent_user_id=agentUsers/**}"
- };
- option (google.api.method_signature) = "request_id,agent_user_id";
- }
-
-
-
-
-
-
-
- rpc Query(QueryRequest) returns (QueryResponse) {
- option (google.api.http) = {
- post: "/v1/devices:query"
- body: "*"
- };
- option (google.api.method_signature) = "request_id,agent_user_id,inputs";
- }
-
-
-
-
-
-
- rpc Sync(SyncRequest) returns (SyncResponse) {
- option (google.api.http) = {
- post: "/v1/devices:sync"
- body: "*"
- };
- option (google.api.method_signature) = "request_id,agent_user_id";
- }
- }
- message RequestSyncDevicesRequest {
-
- string agent_user_id = 1 [(google.api.field_behavior) = REQUIRED];
-
-
-
- bool async = 2 [(google.api.field_behavior) = OPTIONAL];
- }
- message RequestSyncDevicesResponse {}
- message ReportStateAndNotificationRequest {
-
- string request_id = 1;
-
- string event_id = 4;
-
- string agent_user_id = 2 [(google.api.field_behavior) = REQUIRED];
-
-
-
-
-
- string follow_up_token = 5 [deprecated = true];
-
- StateAndNotificationPayload payload = 3
- [(google.api.field_behavior) = REQUIRED];
- }
- message ReportStateAndNotificationResponse {
-
-
- string request_id = 1;
- }
- message StateAndNotificationPayload {
-
- ReportStateAndNotificationDevice devices = 1;
- }
- message ReportStateAndNotificationDevice {
-
-
-
- google.protobuf.Struct states = 1;
-
-
-
- google.protobuf.Struct notifications = 2;
- }
- message DeleteAgentUserRequest {
-
- string request_id = 1;
-
- string agent_user_id = 2 [
- (google.api.field_behavior) = REQUIRED,
- (google.api.resource_reference) = {
- type: "homegraph.googleapis.com/AgentUserPath"
- }
- ];
- }
- message QueryRequest {
-
- string request_id = 1;
-
- string agent_user_id = 2 [(google.api.field_behavior) = REQUIRED];
-
-
- repeated QueryRequestInput inputs = 3
- [(google.api.field_behavior) = REQUIRED];
- }
- message QueryRequestInput {
-
- QueryRequestPayload payload = 1;
- }
- message QueryRequestPayload {
-
- repeated AgentDeviceId devices = 1;
- }
- message AgentDeviceId {
-
- string id = 1;
- }
- message QueryResponse {
-
- string request_id = 1;
-
- QueryResponsePayload payload = 2;
- }
- message QueryResponsePayload {
-
-
- map<string, google.protobuf.Struct> devices = 1;
- }
- message SyncRequest {
-
- string request_id = 1;
-
- string agent_user_id = 2 [(google.api.field_behavior) = REQUIRED];
- }
- message SyncResponse {
-
- string request_id = 1;
-
- SyncResponsePayload payload = 2;
- }
- message SyncResponsePayload {
-
- string agent_user_id = 1;
-
- repeated Device devices = 2;
- }
|