1// Code generated by protoc-gen-go. DO NOT EDIT. 2// source: google/home/graph/v1/device.proto 3 4package graph 5 6import ( 7 fmt "fmt" 8 math "math" 9 10 proto "github.com/golang/protobuf/proto" 11 _struct "github.com/golang/protobuf/ptypes/struct" 12) 13 14// Reference imports to suppress errors if they are not otherwise used. 15var _ = proto.Marshal 16var _ = fmt.Errorf 17var _ = math.Inf 18 19// This is a compile-time assertion to ensure that this generated file 20// is compatible with the proto package it is being compiled against. 21// A compilation error at this line likely means your copy of the 22// proto package needs to be updated. 23const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package 24 25// Third-party partner's device definition. 26type Device struct { 27 // Third-party partner's device ID. 28 Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` 29 // Hardware type of the device (e.g. light, outlet, etc). 30 Type string `protobuf:"bytes,2,opt,name=type,proto3" json:"type,omitempty"` 31 // Traits supported by the device. 32 Traits []string `protobuf:"bytes,3,rep,name=traits,proto3" json:"traits,omitempty"` 33 // Name of the device given by the third party. This includes names given to 34 // the device via third party device manufacturer's app, model names for the 35 // device, etc. 36 Name *DeviceNames `protobuf:"bytes,4,opt,name=name,proto3" json:"name,omitempty"` 37 // Indicates whether the state of this device is being reported to Google 38 // through ReportStateAndNotification call. 39 WillReportState bool `protobuf:"varint,5,opt,name=will_report_state,json=willReportState,proto3" json:"will_report_state,omitempty"` 40 // If the third-party partner's cloud configuration includes placing devices 41 // in rooms, the name of the room can be provided here. 42 RoomHint string `protobuf:"bytes,6,opt,name=room_hint,json=roomHint,proto3" json:"room_hint,omitempty"` 43 // As in roomHint, for structures that users set up in the partner's system. 44 StructureHint string `protobuf:"bytes,7,opt,name=structure_hint,json=structureHint,proto3" json:"structure_hint,omitempty"` 45 // Device manufacturer, model, hardware version, and software version. 46 DeviceInfo *DeviceInfo `protobuf:"bytes,8,opt,name=device_info,json=deviceInfo,proto3" json:"device_info,omitempty"` 47 // Attributes for the traits supported by the device. 48 Attributes *_struct.Struct `protobuf:"bytes,9,opt,name=attributes,proto3" json:"attributes,omitempty"` 49 // Custom JSON data provided by the manufacturer and attached to QUERY and 50 // EXECUTE requests in AoG. 51 CustomData string `protobuf:"bytes,10,opt,name=custom_data,json=customData,proto3" json:"custom_data,omitempty"` 52 // IDs of other devices associated with this device. This is used to 53 // represent a device group (e.g. bonded zone) or "facets" synced 54 // through different flows (e.g. Google Nest Hub Max with a Nest Camera). 55 // 56 // This may also be used to pass in alternate IDs used to identify a cloud 57 // synced device for local execution (i.e. local verification). If used for 58 // local verification, this field is synced from the cloud. 59 OtherDeviceIds []*AgentOtherDeviceId `protobuf:"bytes,11,rep,name=other_device_ids,json=otherDeviceIds,proto3" json:"other_device_ids,omitempty"` 60 XXX_NoUnkeyedLiteral struct{} `json:"-"` 61 XXX_unrecognized []byte `json:"-"` 62 XXX_sizecache int32 `json:"-"` 63} 64 65func (m *Device) Reset() { *m = Device{} } 66func (m *Device) String() string { return proto.CompactTextString(m) } 67func (*Device) ProtoMessage() {} 68func (*Device) Descriptor() ([]byte, []int) { 69 return fileDescriptor_1729f8e53993f499, []int{0} 70} 71 72func (m *Device) XXX_Unmarshal(b []byte) error { 73 return xxx_messageInfo_Device.Unmarshal(m, b) 74} 75func (m *Device) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 76 return xxx_messageInfo_Device.Marshal(b, m, deterministic) 77} 78func (m *Device) XXX_Merge(src proto.Message) { 79 xxx_messageInfo_Device.Merge(m, src) 80} 81func (m *Device) XXX_Size() int { 82 return xxx_messageInfo_Device.Size(m) 83} 84func (m *Device) XXX_DiscardUnknown() { 85 xxx_messageInfo_Device.DiscardUnknown(m) 86} 87 88var xxx_messageInfo_Device proto.InternalMessageInfo 89 90func (m *Device) GetId() string { 91 if m != nil { 92 return m.Id 93 } 94 return "" 95} 96 97func (m *Device) GetType() string { 98 if m != nil { 99 return m.Type 100 } 101 return "" 102} 103 104func (m *Device) GetTraits() []string { 105 if m != nil { 106 return m.Traits 107 } 108 return nil 109} 110 111func (m *Device) GetName() *DeviceNames { 112 if m != nil { 113 return m.Name 114 } 115 return nil 116} 117 118func (m *Device) GetWillReportState() bool { 119 if m != nil { 120 return m.WillReportState 121 } 122 return false 123} 124 125func (m *Device) GetRoomHint() string { 126 if m != nil { 127 return m.RoomHint 128 } 129 return "" 130} 131 132func (m *Device) GetStructureHint() string { 133 if m != nil { 134 return m.StructureHint 135 } 136 return "" 137} 138 139func (m *Device) GetDeviceInfo() *DeviceInfo { 140 if m != nil { 141 return m.DeviceInfo 142 } 143 return nil 144} 145 146func (m *Device) GetAttributes() *_struct.Struct { 147 if m != nil { 148 return m.Attributes 149 } 150 return nil 151} 152 153func (m *Device) GetCustomData() string { 154 if m != nil { 155 return m.CustomData 156 } 157 return "" 158} 159 160func (m *Device) GetOtherDeviceIds() []*AgentOtherDeviceId { 161 if m != nil { 162 return m.OtherDeviceIds 163 } 164 return nil 165} 166 167// Different names for the device. 168type DeviceNames struct { 169 // Primary name of the device, generally provided by the user. 170 Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` 171 // Additional names provided by the user for the device. 172 Nicknames []string `protobuf:"bytes,2,rep,name=nicknames,proto3" json:"nicknames,omitempty"` 173 // List of names provided by the partner rather than the user, often 174 // manufacturer names, SKUs, etc. 175 DefaultNames []string `protobuf:"bytes,3,rep,name=default_names,json=defaultNames,proto3" json:"default_names,omitempty"` 176 XXX_NoUnkeyedLiteral struct{} `json:"-"` 177 XXX_unrecognized []byte `json:"-"` 178 XXX_sizecache int32 `json:"-"` 179} 180 181func (m *DeviceNames) Reset() { *m = DeviceNames{} } 182func (m *DeviceNames) String() string { return proto.CompactTextString(m) } 183func (*DeviceNames) ProtoMessage() {} 184func (*DeviceNames) Descriptor() ([]byte, []int) { 185 return fileDescriptor_1729f8e53993f499, []int{1} 186} 187 188func (m *DeviceNames) XXX_Unmarshal(b []byte) error { 189 return xxx_messageInfo_DeviceNames.Unmarshal(m, b) 190} 191func (m *DeviceNames) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 192 return xxx_messageInfo_DeviceNames.Marshal(b, m, deterministic) 193} 194func (m *DeviceNames) XXX_Merge(src proto.Message) { 195 xxx_messageInfo_DeviceNames.Merge(m, src) 196} 197func (m *DeviceNames) XXX_Size() int { 198 return xxx_messageInfo_DeviceNames.Size(m) 199} 200func (m *DeviceNames) XXX_DiscardUnknown() { 201 xxx_messageInfo_DeviceNames.DiscardUnknown(m) 202} 203 204var xxx_messageInfo_DeviceNames proto.InternalMessageInfo 205 206func (m *DeviceNames) GetName() string { 207 if m != nil { 208 return m.Name 209 } 210 return "" 211} 212 213func (m *DeviceNames) GetNicknames() []string { 214 if m != nil { 215 return m.Nicknames 216 } 217 return nil 218} 219 220func (m *DeviceNames) GetDefaultNames() []string { 221 if m != nil { 222 return m.DefaultNames 223 } 224 return nil 225} 226 227// Device information. 228type DeviceInfo struct { 229 // Device manufacturer. 230 Manufacturer string `protobuf:"bytes,1,opt,name=manufacturer,proto3" json:"manufacturer,omitempty"` 231 // Device model. 232 Model string `protobuf:"bytes,2,opt,name=model,proto3" json:"model,omitempty"` 233 // Device hardware version. 234 HwVersion string `protobuf:"bytes,3,opt,name=hw_version,json=hwVersion,proto3" json:"hw_version,omitempty"` 235 // Device software version. 236 SwVersion string `protobuf:"bytes,4,opt,name=sw_version,json=swVersion,proto3" json:"sw_version,omitempty"` 237 XXX_NoUnkeyedLiteral struct{} `json:"-"` 238 XXX_unrecognized []byte `json:"-"` 239 XXX_sizecache int32 `json:"-"` 240} 241 242func (m *DeviceInfo) Reset() { *m = DeviceInfo{} } 243func (m *DeviceInfo) String() string { return proto.CompactTextString(m) } 244func (*DeviceInfo) ProtoMessage() {} 245func (*DeviceInfo) Descriptor() ([]byte, []int) { 246 return fileDescriptor_1729f8e53993f499, []int{2} 247} 248 249func (m *DeviceInfo) XXX_Unmarshal(b []byte) error { 250 return xxx_messageInfo_DeviceInfo.Unmarshal(m, b) 251} 252func (m *DeviceInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 253 return xxx_messageInfo_DeviceInfo.Marshal(b, m, deterministic) 254} 255func (m *DeviceInfo) XXX_Merge(src proto.Message) { 256 xxx_messageInfo_DeviceInfo.Merge(m, src) 257} 258func (m *DeviceInfo) XXX_Size() int { 259 return xxx_messageInfo_DeviceInfo.Size(m) 260} 261func (m *DeviceInfo) XXX_DiscardUnknown() { 262 xxx_messageInfo_DeviceInfo.DiscardUnknown(m) 263} 264 265var xxx_messageInfo_DeviceInfo proto.InternalMessageInfo 266 267func (m *DeviceInfo) GetManufacturer() string { 268 if m != nil { 269 return m.Manufacturer 270 } 271 return "" 272} 273 274func (m *DeviceInfo) GetModel() string { 275 if m != nil { 276 return m.Model 277 } 278 return "" 279} 280 281func (m *DeviceInfo) GetHwVersion() string { 282 if m != nil { 283 return m.HwVersion 284 } 285 return "" 286} 287 288func (m *DeviceInfo) GetSwVersion() string { 289 if m != nil { 290 return m.SwVersion 291 } 292 return "" 293} 294 295// Identifies a device in the third party or first party system. 296type AgentOtherDeviceId struct { 297 // The agent's ID. Generally it is the agent's AoG project id. 298 AgentId string `protobuf:"bytes,1,opt,name=agent_id,json=agentId,proto3" json:"agent_id,omitempty"` 299 // Device ID defined by the agent. The device_id must be unique. 300 DeviceId string `protobuf:"bytes,2,opt,name=device_id,json=deviceId,proto3" json:"device_id,omitempty"` 301 XXX_NoUnkeyedLiteral struct{} `json:"-"` 302 XXX_unrecognized []byte `json:"-"` 303 XXX_sizecache int32 `json:"-"` 304} 305 306func (m *AgentOtherDeviceId) Reset() { *m = AgentOtherDeviceId{} } 307func (m *AgentOtherDeviceId) String() string { return proto.CompactTextString(m) } 308func (*AgentOtherDeviceId) ProtoMessage() {} 309func (*AgentOtherDeviceId) Descriptor() ([]byte, []int) { 310 return fileDescriptor_1729f8e53993f499, []int{3} 311} 312 313func (m *AgentOtherDeviceId) XXX_Unmarshal(b []byte) error { 314 return xxx_messageInfo_AgentOtherDeviceId.Unmarshal(m, b) 315} 316func (m *AgentOtherDeviceId) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 317 return xxx_messageInfo_AgentOtherDeviceId.Marshal(b, m, deterministic) 318} 319func (m *AgentOtherDeviceId) XXX_Merge(src proto.Message) { 320 xxx_messageInfo_AgentOtherDeviceId.Merge(m, src) 321} 322func (m *AgentOtherDeviceId) XXX_Size() int { 323 return xxx_messageInfo_AgentOtherDeviceId.Size(m) 324} 325func (m *AgentOtherDeviceId) XXX_DiscardUnknown() { 326 xxx_messageInfo_AgentOtherDeviceId.DiscardUnknown(m) 327} 328 329var xxx_messageInfo_AgentOtherDeviceId proto.InternalMessageInfo 330 331func (m *AgentOtherDeviceId) GetAgentId() string { 332 if m != nil { 333 return m.AgentId 334 } 335 return "" 336} 337 338func (m *AgentOtherDeviceId) GetDeviceId() string { 339 if m != nil { 340 return m.DeviceId 341 } 342 return "" 343} 344 345func init() { 346 proto.RegisterType((*Device)(nil), "google.home.graph.v1.Device") 347 proto.RegisterType((*DeviceNames)(nil), "google.home.graph.v1.DeviceNames") 348 proto.RegisterType((*DeviceInfo)(nil), "google.home.graph.v1.DeviceInfo") 349 proto.RegisterType((*AgentOtherDeviceId)(nil), "google.home.graph.v1.AgentOtherDeviceId") 350} 351 352func init() { proto.RegisterFile("google/home/graph/v1/device.proto", fileDescriptor_1729f8e53993f499) } 353 354var fileDescriptor_1729f8e53993f499 = []byte{ 355 // 532 bytes of a gzipped FileDescriptorProto 356 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x7c, 0x53, 0x4d, 0x6f, 0xd4, 0x30, 357 0x10, 0xd5, 0x7e, 0x74, 0xbb, 0x99, 0xb4, 0x05, 0xac, 0x0a, 0x0c, 0x14, 0x91, 0x2e, 0x42, 0x8a, 358 0x38, 0x24, 0x6a, 0x11, 0x42, 0x88, 0x53, 0xab, 0x1e, 0xa8, 0x84, 0x00, 0xa5, 0x12, 0x07, 0x2e, 359 0x91, 0x77, 0xed, 0x4d, 0x2c, 0x92, 0x78, 0x65, 0x3b, 0xbb, 0xe2, 0xce, 0xcf, 0xe4, 0xc7, 0x20, 360 0x8f, 0xb3, 0x1f, 0x15, 0x2b, 0x6e, 0x9e, 0x37, 0xcf, 0xe3, 0x97, 0xf7, 0x26, 0x70, 0x5e, 0x28, 361 0x55, 0x54, 0x22, 0x2d, 0x55, 0x2d, 0xd2, 0x42, 0xb3, 0x45, 0x99, 0x2e, 0x2f, 0x52, 0x2e, 0x96, 362 0x72, 0x26, 0x92, 0x85, 0x56, 0x56, 0x91, 0x53, 0x4f, 0x49, 0x1c, 0x25, 0x41, 0x4a, 0xb2, 0xbc, 363 0x78, 0x76, 0xd6, 0x5d, 0x44, 0xce, 0xb4, 0x9d, 0xa7, 0xc6, 0xea, 0x76, 0x66, 0xfd, 0x9d, 0xc9, 364 0x9f, 0x01, 0x8c, 0x6e, 0x70, 0x08, 0x39, 0x81, 0xbe, 0xe4, 0xb4, 0x17, 0xf5, 0xe2, 0x20, 0xeb, 365 0x4b, 0x4e, 0x08, 0x0c, 0xed, 0xaf, 0x85, 0xa0, 0x7d, 0x44, 0xf0, 0x4c, 0x1e, 0xc3, 0xc8, 0x6a, 366 0x26, 0xad, 0xa1, 0x83, 0x68, 0x10, 0x07, 0x59, 0x57, 0x91, 0x77, 0x30, 0x6c, 0x58, 0x2d, 0xe8, 367 0x30, 0xea, 0xc5, 0xe1, 0xe5, 0x79, 0xb2, 0x4f, 0x49, 0xe2, 0xdf, 0xf9, 0xc2, 0x6a, 0x61, 0x32, 368 0xa4, 0x93, 0x37, 0xf0, 0x68, 0x25, 0xab, 0x2a, 0xd7, 0x62, 0xa1, 0xb4, 0xcd, 0x8d, 0x65, 0x56, 369 0xd0, 0x83, 0xa8, 0x17, 0x8f, 0xb3, 0x07, 0xae, 0x91, 0x21, 0x7e, 0xe7, 0x60, 0xf2, 0x1c, 0x02, 370 0xad, 0x54, 0x9d, 0x97, 0xb2, 0xb1, 0x74, 0x84, 0x9a, 0xc6, 0x0e, 0xf8, 0x24, 0x1b, 0x4b, 0x5e, 371 0xc3, 0x89, 0xff, 0xac, 0x56, 0x0b, 0xcf, 0x38, 0x44, 0xc6, 0xf1, 0x06, 0x45, 0xda, 0x15, 0x84, 372 0xde, 0xb1, 0x5c, 0x36, 0x73, 0x45, 0xc7, 0xa8, 0x36, 0xfa, 0x9f, 0xda, 0xdb, 0x66, 0xae, 0x32, 373 0xe0, 0x9b, 0x33, 0x79, 0x0f, 0xc0, 0xac, 0xd5, 0x72, 0xda, 0x5a, 0x61, 0x68, 0x80, 0x13, 0x9e, 374 0xac, 0x27, 0xac, 0x3d, 0x4e, 0xee, 0xf0, 0xd9, 0x6c, 0x87, 0x4a, 0x5e, 0x42, 0x38, 0x6b, 0x8d, 375 0x55, 0x75, 0xce, 0x99, 0x65, 0x14, 0x50, 0x1f, 0x78, 0xe8, 0x86, 0x59, 0x46, 0x32, 0x78, 0xa8, 376 0x6c, 0x29, 0x74, 0xbe, 0x96, 0xc8, 0x0d, 0x0d, 0xa3, 0x41, 0x1c, 0x5e, 0xc6, 0xfb, 0x15, 0x5e, 377 0x15, 0xa2, 0xb1, 0x5f, 0xdd, 0x95, 0x4e, 0x2b, 0xcf, 0x4e, 0xd4, 0x6e, 0x69, 0x26, 0x1c, 0xc2, 378 0x1d, 0xd7, 0x5d, 0xa4, 0x18, 0x93, 0x0f, 0xd9, 0x67, 0x70, 0x06, 0x41, 0x23, 0x67, 0x3f, 0xdd, 379 0xd9, 0xd0, 0x3e, 0xa6, 0xba, 0x05, 0xc8, 0x2b, 0x38, 0xe6, 0x62, 0xce, 0xda, 0xca, 0xe6, 0x9e, 380 0xe1, 0x73, 0x3f, 0xea, 0x40, 0x1c, 0x3b, 0xf9, 0xdd, 0x03, 0xd8, 0xda, 0x45, 0x26, 0x70, 0x54, 381 0xb3, 0xa6, 0x9d, 0x33, 0x34, 0x5e, 0x77, 0xaf, 0xdd, 0xc3, 0xc8, 0x29, 0x1c, 0xd4, 0x8a, 0x8b, 382 0xaa, 0xdb, 0x2e, 0x5f, 0x90, 0x17, 0x00, 0xe5, 0x2a, 0x5f, 0x0a, 0x6d, 0xa4, 0x6a, 0xe8, 0x00, 383 0x5b, 0x41, 0xb9, 0xfa, 0xee, 0x01, 0xd7, 0x36, 0xdb, 0xf6, 0xd0, 0xb7, 0xcd, 0xba, 0x3d, 0xf9, 384 0x0c, 0xe4, 0x5f, 0x4b, 0xc8, 0x53, 0x18, 0x33, 0x87, 0xe6, 0x9b, 0xe5, 0x3e, 0xc4, 0xfa, 0x96, 385 0xbb, 0x95, 0xda, 0x78, 0xdd, 0x09, 0x19, 0x77, 0x51, 0xf3, 0xeb, 0x29, 0xd0, 0x99, 0xaa, 0xf7, 386 0x3a, 0x7f, 0xdd, 0x99, 0xfa, 0xcd, 0xc5, 0xfd, 0xe3, 0x43, 0x47, 0x29, 0x54, 0xc5, 0x9a, 0x22, 387 0x51, 0xba, 0x48, 0x0b, 0xd1, 0xe0, 0x2a, 0xa4, 0xbe, 0xc5, 0x16, 0xd2, 0xdc, 0xff, 0x71, 0x3f, 388 0xe2, 0x61, 0x3a, 0x42, 0xd6, 0xdb, 0xbf, 0x01, 0x00, 0x00, 0xff, 0xff, 0x40, 0x65, 0xdc, 0x87, 389 0xdd, 0x03, 0x00, 0x00, 390} 391