1// Copyright 2022 Google LLC 2// 3// Licensed under the Apache License, Version 2.0 (the "License"); 4// you may not use this file except in compliance with the License. 5// You may obtain a copy of the License at 6// 7// http://www.apache.org/licenses/LICENSE-2.0 8// 9// Unless required by applicable law or agreed to in writing, software 10// distributed under the License is distributed on an "AS IS" BASIS, 11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12// See the License for the specific language governing permissions and 13// limitations under the License. 14 15syntax = "proto3"; 16 17package google.home.enterprise.sdm.v1; 18 19import "google/api/field_behavior.proto"; 20import "google/api/resource.proto"; 21import "google/protobuf/struct.proto"; 22 23option csharp_namespace = "Google.Home.Enterprise.Sdm.V1"; 24option go_package = "google.golang.org/genproto/googleapis/home/enterprise/sdm/v1;sdm"; 25option java_multiple_files = true; 26option java_package = "com.google.home.enterprise.sdm.v1"; 27option objc_class_prefix = "GHENTSDM"; 28option php_namespace = "Google\\Home\\Enterprise\\Sdm\\V1"; 29 30// Structure resource represents an instance of enterprise managed home or hotel 31// room. 32message Structure { 33 option (google.api.resource) = { 34 type: "smartdevicemanagement.googleapis.com/Structure" 35 pattern: "enterprises/{enterprise}/structures/{structure}" 36 }; 37 38 // Output only. The resource name of the structure. For example: 39 // "enterprises/XYZ/structures/ABC". 40 string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; 41 42 // Structure traits. 43 google.protobuf.Struct traits = 2; 44} 45 46// Room resource represents an instance of sub-space within a structure such as 47// rooms in a hotel suite or rental apartment. 48message Room { 49 option (google.api.resource) = { 50 type: "smartdevicemanagement.googleapis.com/Room" 51 pattern: "enterprises/{enterprise}/structures/{structure}/rooms/{room}" 52 }; 53 54 // Output only. The resource name of the room. For example: 55 // "enterprises/XYZ/structures/ABC/rooms/123". 56 string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; 57 58 // Room traits. 59 google.protobuf.Struct traits = 2; 60} 61