You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

317 lines
12 KiB

  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // source: google/home/graph/v1/device.proto
  3. package graph // import "google.golang.org/genproto/googleapis/home/graph/v1"
  4. import proto "github.com/golang/protobuf/proto"
  5. import fmt "fmt"
  6. import math "math"
  7. import _struct "github.com/golang/protobuf/ptypes/struct"
  8. // Reference imports to suppress errors if they are not otherwise used.
  9. var _ = proto.Marshal
  10. var _ = fmt.Errorf
  11. var _ = math.Inf
  12. // This is a compile-time assertion to ensure that this generated file
  13. // is compatible with the proto package it is being compiled against.
  14. // A compilation error at this line likely means your copy of the
  15. // proto package needs to be updated.
  16. const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
  17. // Third-party partner's device definition.
  18. type Device struct {
  19. // Third-party partner's device ID.
  20. Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
  21. // Hardware type of the device (e.g. light, outlet, etc).
  22. Type string `protobuf:"bytes,2,opt,name=type,proto3" json:"type,omitempty"`
  23. // Traits supported by the device.
  24. Traits []string `protobuf:"bytes,3,rep,name=traits,proto3" json:"traits,omitempty"`
  25. // Name of the device given by the third party. This includes names given to
  26. // the device via third party device manufacturer's app, model names for the
  27. // device, etc.
  28. Name *DeviceNames `protobuf:"bytes,4,opt,name=name,proto3" json:"name,omitempty"`
  29. // Indicates whether the state of this device is being reported to Google
  30. // through ReportStateAndNotification call.
  31. WillReportState bool `protobuf:"varint,5,opt,name=will_report_state,json=willReportState,proto3" json:"will_report_state,omitempty"`
  32. // If the third-party partner's cloud configuration includes placing devices
  33. // in rooms, the name of the room can be provided here.
  34. RoomHint string `protobuf:"bytes,6,opt,name=room_hint,json=roomHint,proto3" json:"room_hint,omitempty"`
  35. // As in roomHint, for structures that users set up in the partner's system.
  36. StructureHint string `protobuf:"bytes,7,opt,name=structure_hint,json=structureHint,proto3" json:"structure_hint,omitempty"`
  37. // Device manufacturer, model, hardware version, and software version.
  38. DeviceInfo *DeviceInfo `protobuf:"bytes,8,opt,name=device_info,json=deviceInfo,proto3" json:"device_info,omitempty"`
  39. // Attributes for the traits supported by the device.
  40. Attributes *_struct.Struct `protobuf:"bytes,9,opt,name=attributes,proto3" json:"attributes,omitempty"`
  41. // Custom JSON data provided by the manufacturer and attached to QUERY and
  42. // EXECUTE requests in AoG.
  43. CustomData string `protobuf:"bytes,10,opt,name=custom_data,json=customData,proto3" json:"custom_data,omitempty"`
  44. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  45. XXX_unrecognized []byte `json:"-"`
  46. XXX_sizecache int32 `json:"-"`
  47. }
  48. func (m *Device) Reset() { *m = Device{} }
  49. func (m *Device) String() string { return proto.CompactTextString(m) }
  50. func (*Device) ProtoMessage() {}
  51. func (*Device) Descriptor() ([]byte, []int) {
  52. return fileDescriptor_device_0ae8747a4946f87e, []int{0}
  53. }
  54. func (m *Device) XXX_Unmarshal(b []byte) error {
  55. return xxx_messageInfo_Device.Unmarshal(m, b)
  56. }
  57. func (m *Device) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  58. return xxx_messageInfo_Device.Marshal(b, m, deterministic)
  59. }
  60. func (dst *Device) XXX_Merge(src proto.Message) {
  61. xxx_messageInfo_Device.Merge(dst, src)
  62. }
  63. func (m *Device) XXX_Size() int {
  64. return xxx_messageInfo_Device.Size(m)
  65. }
  66. func (m *Device) XXX_DiscardUnknown() {
  67. xxx_messageInfo_Device.DiscardUnknown(m)
  68. }
  69. var xxx_messageInfo_Device proto.InternalMessageInfo
  70. func (m *Device) GetId() string {
  71. if m != nil {
  72. return m.Id
  73. }
  74. return ""
  75. }
  76. func (m *Device) GetType() string {
  77. if m != nil {
  78. return m.Type
  79. }
  80. return ""
  81. }
  82. func (m *Device) GetTraits() []string {
  83. if m != nil {
  84. return m.Traits
  85. }
  86. return nil
  87. }
  88. func (m *Device) GetName() *DeviceNames {
  89. if m != nil {
  90. return m.Name
  91. }
  92. return nil
  93. }
  94. func (m *Device) GetWillReportState() bool {
  95. if m != nil {
  96. return m.WillReportState
  97. }
  98. return false
  99. }
  100. func (m *Device) GetRoomHint() string {
  101. if m != nil {
  102. return m.RoomHint
  103. }
  104. return ""
  105. }
  106. func (m *Device) GetStructureHint() string {
  107. if m != nil {
  108. return m.StructureHint
  109. }
  110. return ""
  111. }
  112. func (m *Device) GetDeviceInfo() *DeviceInfo {
  113. if m != nil {
  114. return m.DeviceInfo
  115. }
  116. return nil
  117. }
  118. func (m *Device) GetAttributes() *_struct.Struct {
  119. if m != nil {
  120. return m.Attributes
  121. }
  122. return nil
  123. }
  124. func (m *Device) GetCustomData() string {
  125. if m != nil {
  126. return m.CustomData
  127. }
  128. return ""
  129. }
  130. // Different names for the device.
  131. type DeviceNames struct {
  132. // Primary name of the device, generally provided by the user.
  133. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
  134. // Additional names provided by the user for the device.
  135. Nicknames []string `protobuf:"bytes,2,rep,name=nicknames,proto3" json:"nicknames,omitempty"`
  136. // List of names provided by the partner rather than the user, often
  137. // manufacturer names, SKUs, etc.
  138. DefaultNames []string `protobuf:"bytes,3,rep,name=default_names,json=defaultNames,proto3" json:"default_names,omitempty"`
  139. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  140. XXX_unrecognized []byte `json:"-"`
  141. XXX_sizecache int32 `json:"-"`
  142. }
  143. func (m *DeviceNames) Reset() { *m = DeviceNames{} }
  144. func (m *DeviceNames) String() string { return proto.CompactTextString(m) }
  145. func (*DeviceNames) ProtoMessage() {}
  146. func (*DeviceNames) Descriptor() ([]byte, []int) {
  147. return fileDescriptor_device_0ae8747a4946f87e, []int{1}
  148. }
  149. func (m *DeviceNames) XXX_Unmarshal(b []byte) error {
  150. return xxx_messageInfo_DeviceNames.Unmarshal(m, b)
  151. }
  152. func (m *DeviceNames) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  153. return xxx_messageInfo_DeviceNames.Marshal(b, m, deterministic)
  154. }
  155. func (dst *DeviceNames) XXX_Merge(src proto.Message) {
  156. xxx_messageInfo_DeviceNames.Merge(dst, src)
  157. }
  158. func (m *DeviceNames) XXX_Size() int {
  159. return xxx_messageInfo_DeviceNames.Size(m)
  160. }
  161. func (m *DeviceNames) XXX_DiscardUnknown() {
  162. xxx_messageInfo_DeviceNames.DiscardUnknown(m)
  163. }
  164. var xxx_messageInfo_DeviceNames proto.InternalMessageInfo
  165. func (m *DeviceNames) GetName() string {
  166. if m != nil {
  167. return m.Name
  168. }
  169. return ""
  170. }
  171. func (m *DeviceNames) GetNicknames() []string {
  172. if m != nil {
  173. return m.Nicknames
  174. }
  175. return nil
  176. }
  177. func (m *DeviceNames) GetDefaultNames() []string {
  178. if m != nil {
  179. return m.DefaultNames
  180. }
  181. return nil
  182. }
  183. // Device information.
  184. type DeviceInfo struct {
  185. // Device manufacturer.
  186. Manufacturer string `protobuf:"bytes,1,opt,name=manufacturer,proto3" json:"manufacturer,omitempty"`
  187. // Device model.
  188. Model string `protobuf:"bytes,2,opt,name=model,proto3" json:"model,omitempty"`
  189. // Device hardware version.
  190. HwVersion string `protobuf:"bytes,3,opt,name=hw_version,json=hwVersion,proto3" json:"hw_version,omitempty"`
  191. // Device software version.
  192. SwVersion string `protobuf:"bytes,4,opt,name=sw_version,json=swVersion,proto3" json:"sw_version,omitempty"`
  193. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  194. XXX_unrecognized []byte `json:"-"`
  195. XXX_sizecache int32 `json:"-"`
  196. }
  197. func (m *DeviceInfo) Reset() { *m = DeviceInfo{} }
  198. func (m *DeviceInfo) String() string { return proto.CompactTextString(m) }
  199. func (*DeviceInfo) ProtoMessage() {}
  200. func (*DeviceInfo) Descriptor() ([]byte, []int) {
  201. return fileDescriptor_device_0ae8747a4946f87e, []int{2}
  202. }
  203. func (m *DeviceInfo) XXX_Unmarshal(b []byte) error {
  204. return xxx_messageInfo_DeviceInfo.Unmarshal(m, b)
  205. }
  206. func (m *DeviceInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  207. return xxx_messageInfo_DeviceInfo.Marshal(b, m, deterministic)
  208. }
  209. func (dst *DeviceInfo) XXX_Merge(src proto.Message) {
  210. xxx_messageInfo_DeviceInfo.Merge(dst, src)
  211. }
  212. func (m *DeviceInfo) XXX_Size() int {
  213. return xxx_messageInfo_DeviceInfo.Size(m)
  214. }
  215. func (m *DeviceInfo) XXX_DiscardUnknown() {
  216. xxx_messageInfo_DeviceInfo.DiscardUnknown(m)
  217. }
  218. var xxx_messageInfo_DeviceInfo proto.InternalMessageInfo
  219. func (m *DeviceInfo) GetManufacturer() string {
  220. if m != nil {
  221. return m.Manufacturer
  222. }
  223. return ""
  224. }
  225. func (m *DeviceInfo) GetModel() string {
  226. if m != nil {
  227. return m.Model
  228. }
  229. return ""
  230. }
  231. func (m *DeviceInfo) GetHwVersion() string {
  232. if m != nil {
  233. return m.HwVersion
  234. }
  235. return ""
  236. }
  237. func (m *DeviceInfo) GetSwVersion() string {
  238. if m != nil {
  239. return m.SwVersion
  240. }
  241. return ""
  242. }
  243. func init() {
  244. proto.RegisterType((*Device)(nil), "google.home.graph.v1.Device")
  245. proto.RegisterType((*DeviceNames)(nil), "google.home.graph.v1.DeviceNames")
  246. proto.RegisterType((*DeviceInfo)(nil), "google.home.graph.v1.DeviceInfo")
  247. }
  248. func init() {
  249. proto.RegisterFile("google/home/graph/v1/device.proto", fileDescriptor_device_0ae8747a4946f87e)
  250. }
  251. var fileDescriptor_device_0ae8747a4946f87e = []byte{
  252. // 470 bytes of a gzipped FileDescriptorProto
  253. 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x7c, 0x93, 0xc1, 0x6f, 0xd4, 0x3c,
  254. 0x10, 0xc5, 0x95, 0xdd, 0xed, 0x7e, 0x9b, 0xd9, 0xb6, 0x9f, 0xb0, 0x2a, 0xb0, 0xa0, 0x88, 0x74,
  255. 0x11, 0xd2, 0x8a, 0x43, 0xa2, 0x82, 0x10, 0x42, 0x9c, 0xa8, 0x7a, 0x80, 0x0b, 0x42, 0xa9, 0xc4,
  256. 0x81, 0x4b, 0xe4, 0x4d, 0x9c, 0xc4, 0x22, 0xb1, 0x23, 0x7b, 0xb2, 0x2b, 0xee, 0x1c, 0xf8, 0xb3,
  257. 0x51, 0xc6, 0xd9, 0x6e, 0x2b, 0x55, 0xdc, 0xc6, 0xef, 0xfd, 0x3c, 0x1e, 0x3f, 0x27, 0x70, 0x51,
  258. 0x19, 0x53, 0x35, 0x32, 0xa9, 0x4d, 0x2b, 0x93, 0xca, 0x8a, 0xae, 0x4e, 0xb6, 0x97, 0x49, 0x21,
  259. 0xb7, 0x2a, 0x97, 0x71, 0x67, 0x0d, 0x1a, 0x76, 0xe6, 0x91, 0x78, 0x40, 0x62, 0x42, 0xe2, 0xed,
  260. 0xe5, 0xd3, 0xf3, 0x71, 0x23, 0x31, 0x9b, 0xbe, 0x4c, 0x1c, 0xda, 0x3e, 0x47, 0xbf, 0x67, 0xf5,
  261. 0x67, 0x0a, 0xf3, 0x6b, 0x6a, 0xc2, 0x4e, 0x61, 0xa2, 0x0a, 0x1e, 0x44, 0xc1, 0x3a, 0x4c, 0x27,
  262. 0xaa, 0x60, 0x0c, 0x66, 0xf8, 0xab, 0x93, 0x7c, 0x42, 0x0a, 0xd5, 0xec, 0x31, 0xcc, 0xd1, 0x0a,
  263. 0x85, 0x8e, 0x4f, 0xa3, 0xe9, 0x3a, 0x4c, 0xc7, 0x15, 0x7b, 0x07, 0x33, 0x2d, 0x5a, 0xc9, 0x67,
  264. 0x51, 0xb0, 0x5e, 0xbe, 0xb9, 0x88, 0x1f, 0x9a, 0x24, 0xf6, 0xe7, 0x7c, 0x15, 0xad, 0x74, 0x29,
  265. 0xe1, 0xec, 0x35, 0x3c, 0xda, 0xa9, 0xa6, 0xc9, 0xac, 0xec, 0x8c, 0xc5, 0xcc, 0xa1, 0x40, 0xc9,
  266. 0x8f, 0xa2, 0x60, 0xbd, 0x48, 0xff, 0x1f, 0x8c, 0x94, 0xf4, 0x9b, 0x41, 0x66, 0xcf, 0x20, 0xb4,
  267. 0xc6, 0xb4, 0x59, 0xad, 0x34, 0xf2, 0x39, 0xcd, 0xb4, 0x18, 0x84, 0xcf, 0x4a, 0x23, 0x7b, 0x05,
  268. 0xa7, 0xfe, 0x5a, 0xbd, 0x95, 0x9e, 0xf8, 0x8f, 0x88, 0x93, 0x5b, 0x95, 0xb0, 0x4f, 0xb0, 0xf4,
  269. 0x89, 0x65, 0x4a, 0x97, 0x86, 0x2f, 0x68, 0xda, 0xe8, 0x5f, 0xd3, 0x7e, 0xd1, 0xa5, 0x49, 0xa1,
  270. 0xb8, 0xad, 0xd9, 0x7b, 0x00, 0x81, 0x68, 0xd5, 0xa6, 0x47, 0xe9, 0x78, 0x48, 0x1d, 0x9e, 0xec,
  271. 0x3b, 0xec, 0x33, 0x8e, 0x6f, 0xe8, 0xd8, 0xf4, 0x0e, 0xca, 0x5e, 0xc0, 0x32, 0xef, 0x1d, 0x9a,
  272. 0x36, 0x2b, 0x04, 0x0a, 0x0e, 0x34, 0x1f, 0x78, 0xe9, 0x5a, 0xa0, 0x58, 0x15, 0xb0, 0xbc, 0x93,
  273. 0xd0, 0x10, 0x3f, 0x45, 0xea, 0x1f, 0xc4, 0xe7, 0x75, 0x0e, 0xa1, 0x56, 0xf9, 0xcf, 0xa1, 0x76,
  274. 0x7c, 0x42, 0x2f, 0x70, 0x10, 0xd8, 0x4b, 0x38, 0x29, 0x64, 0x29, 0xfa, 0x06, 0x33, 0x4f, 0xf8,
  275. 0x37, 0x3a, 0x1e, 0x45, 0x6a, 0xbb, 0xfa, 0x1d, 0x00, 0x1c, 0xae, 0xc6, 0x56, 0x70, 0xdc, 0x0a,
  276. 0xdd, 0x97, 0x82, 0x42, 0xb2, 0xe3, 0x69, 0xf7, 0x34, 0x76, 0x06, 0x47, 0xad, 0x29, 0x64, 0x33,
  277. 0x7e, 0x09, 0x7e, 0xc1, 0x9e, 0x03, 0xd4, 0xbb, 0x6c, 0x2b, 0xad, 0x53, 0x46, 0xf3, 0x29, 0x59,
  278. 0x61, 0xbd, 0xfb, 0xee, 0x85, 0xc1, 0x76, 0x07, 0x7b, 0xe6, 0x6d, 0xb7, 0xb7, 0xaf, 0x36, 0xc0,
  279. 0x73, 0xd3, 0x3e, 0x98, 0xfc, 0xd5, 0x18, 0xc3, 0xb7, 0x21, 0xcc, 0x1f, 0x1f, 0x46, 0xa4, 0x32,
  280. 0x8d, 0xd0, 0x55, 0x6c, 0x6c, 0x95, 0x54, 0x52, 0x53, 0xd0, 0x89, 0xb7, 0x44, 0xa7, 0xdc, 0xfd,
  281. 0xdf, 0xe2, 0x23, 0x15, 0x9b, 0x39, 0x51, 0x6f, 0xff, 0x06, 0x00, 0x00, 0xff, 0xff, 0xb7, 0x2a,
  282. 0xc2, 0xaf, 0x3b, 0x03, 0x00, 0x00,
  283. }