site.proto 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. // Copyright 2020 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. syntax = "proto3";
  15. package google.home.enterprise.sdm.v1;
  16. import "google/api/field_behavior.proto";
  17. import "google/api/resource.proto";
  18. import "google/protobuf/struct.proto";
  19. option csharp_namespace = "Google.Home.Enterprise.Sdm.V1";
  20. option go_package = "google.golang.org/genproto/googleapis/home/enterprise/sdm/v1;sdm";
  21. option java_multiple_files = true;
  22. option java_package = "com.google.home.enterprise.sdm.v1";
  23. option objc_class_prefix = "GHENTSDM";
  24. option php_namespace = "Google\\Home\\Enterprise\\Sdm\\V1";
  25. // Structure resource represents an instance of enterprise managed home or hotel
  26. // room.
  27. message Structure {
  28. option (google.api.resource) = {
  29. type: "smartdevicemanagement.googleapis.com/Structure"
  30. pattern: "enterprises/{enterprise}/structures/{structure}"
  31. };
  32. // Output only. The resource name of the structure. For example:
  33. // "enterprises/XYZ/structures/ABC".
  34. string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY];
  35. // Structure traits.
  36. google.protobuf.Struct traits = 2;
  37. }
  38. // Room resource represents an instance of sub-space within a structure such as
  39. // rooms in a hotel suite or rental apartment.
  40. message Room {
  41. option (google.api.resource) = {
  42. type: "smartdevicemanagement.googleapis.com/Room"
  43. pattern: "enterprises/{enterprise}/structures/{structure}/rooms/{room}"
  44. };
  45. // Output only. The resource name of the room. For example:
  46. // "enterprises/XYZ/structures/ABC/rooms/123".
  47. string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY];
  48. // Room traits.
  49. google.protobuf.Struct traits = 2;
  50. }