Documentation ¶
Index ¶
- func RegisterHomeGraphApiServiceServer(s *grpc.Server, srv HomeGraphApiServiceServer)
- type AgentDeviceId
- func (*AgentDeviceId) Descriptor() ([]byte, []int)
- func (m *AgentDeviceId) GetId() string
- func (*AgentDeviceId) ProtoMessage()
- func (m *AgentDeviceId) Reset()
- func (m *AgentDeviceId) String() string
- func (m *AgentDeviceId) XXX_DiscardUnknown()
- func (m *AgentDeviceId) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *AgentDeviceId) XXX_Merge(src proto.Message)
- func (m *AgentDeviceId) XXX_Size() int
- func (m *AgentDeviceId) XXX_Unmarshal(b []byte) error
- type AgentOtherDeviceId
- func (*AgentOtherDeviceId) Descriptor() ([]byte, []int)
- func (m *AgentOtherDeviceId) GetAgentId() string
- func (m *AgentOtherDeviceId) GetDeviceId() string
- func (*AgentOtherDeviceId) ProtoMessage()
- func (m *AgentOtherDeviceId) Reset()
- func (m *AgentOtherDeviceId) String() string
- func (m *AgentOtherDeviceId) XXX_DiscardUnknown()
- func (m *AgentOtherDeviceId) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *AgentOtherDeviceId) XXX_Merge(src proto.Message)
- func (m *AgentOtherDeviceId) XXX_Size() int
- func (m *AgentOtherDeviceId) XXX_Unmarshal(b []byte) error
- type DeleteAgentUserRequest
- func (*DeleteAgentUserRequest) Descriptor() ([]byte, []int)
- func (m *DeleteAgentUserRequest) GetAgentUserId() string
- func (m *DeleteAgentUserRequest) GetRequestId() string
- func (*DeleteAgentUserRequest) ProtoMessage()
- func (m *DeleteAgentUserRequest) Reset()
- func (m *DeleteAgentUserRequest) String() string
- func (m *DeleteAgentUserRequest) XXX_DiscardUnknown()
- func (m *DeleteAgentUserRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *DeleteAgentUserRequest) XXX_Merge(src proto.Message)
- func (m *DeleteAgentUserRequest) XXX_Size() int
- func (m *DeleteAgentUserRequest) XXX_Unmarshal(b []byte) error
- type Device
- func (*Device) Descriptor() ([]byte, []int)
- func (m *Device) GetAttributes() *_struct.Struct
- func (m *Device) GetCustomData() *_struct.Struct
- func (m *Device) GetDeviceInfo() *DeviceInfo
- func (m *Device) GetId() string
- func (m *Device) GetName() *DeviceNames
- func (m *Device) GetNotificationSupportedByAgent() bool
- func (m *Device) GetOtherDeviceIds() []*AgentOtherDeviceId
- func (m *Device) GetRoomHint() string
- func (m *Device) GetStructureHint() string
- func (m *Device) GetTraits() []string
- func (m *Device) GetType() string
- func (m *Device) GetWillReportState() bool
- func (*Device) ProtoMessage()
- func (m *Device) Reset()
- func (m *Device) String() string
- func (m *Device) XXX_DiscardUnknown()
- func (m *Device) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Device) XXX_Merge(src proto.Message)
- func (m *Device) XXX_Size() int
- func (m *Device) XXX_Unmarshal(b []byte) error
- type DeviceInfo
- func (*DeviceInfo) Descriptor() ([]byte, []int)
- func (m *DeviceInfo) GetHwVersion() string
- func (m *DeviceInfo) GetManufacturer() string
- func (m *DeviceInfo) GetModel() string
- func (m *DeviceInfo) GetSwVersion() string
- func (*DeviceInfo) ProtoMessage()
- func (m *DeviceInfo) Reset()
- func (m *DeviceInfo) String() string
- func (m *DeviceInfo) XXX_DiscardUnknown()
- func (m *DeviceInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *DeviceInfo) XXX_Merge(src proto.Message)
- func (m *DeviceInfo) XXX_Size() int
- func (m *DeviceInfo) XXX_Unmarshal(b []byte) error
- type DeviceNames
- func (*DeviceNames) Descriptor() ([]byte, []int)
- func (m *DeviceNames) GetDefaultNames() []string
- func (m *DeviceNames) GetName() string
- func (m *DeviceNames) GetNicknames() []string
- func (*DeviceNames) ProtoMessage()
- func (m *DeviceNames) Reset()
- func (m *DeviceNames) String() string
- func (m *DeviceNames) XXX_DiscardUnknown()
- func (m *DeviceNames) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *DeviceNames) XXX_Merge(src proto.Message)
- func (m *DeviceNames) XXX_Size() int
- func (m *DeviceNames) XXX_Unmarshal(b []byte) error
- type HomeGraphApiServiceClient
- type HomeGraphApiServiceServer
- type QueryRequest
- func (*QueryRequest) Descriptor() ([]byte, []int)
- func (m *QueryRequest) GetAgentUserId() string
- func (m *QueryRequest) GetInputs() []*QueryRequestInput
- func (m *QueryRequest) GetRequestId() string
- func (*QueryRequest) ProtoMessage()
- func (m *QueryRequest) Reset()
- func (m *QueryRequest) String() string
- func (m *QueryRequest) XXX_DiscardUnknown()
- func (m *QueryRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryRequest) XXX_Merge(src proto.Message)
- func (m *QueryRequest) XXX_Size() int
- func (m *QueryRequest) XXX_Unmarshal(b []byte) error
- type QueryRequestInput
- func (*QueryRequestInput) Descriptor() ([]byte, []int)
- func (m *QueryRequestInput) GetPayload() *QueryRequestPayload
- func (*QueryRequestInput) ProtoMessage()
- func (m *QueryRequestInput) Reset()
- func (m *QueryRequestInput) String() string
- func (m *QueryRequestInput) XXX_DiscardUnknown()
- func (m *QueryRequestInput) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryRequestInput) XXX_Merge(src proto.Message)
- func (m *QueryRequestInput) XXX_Size() int
- func (m *QueryRequestInput) XXX_Unmarshal(b []byte) error
- type QueryRequestPayload
- func (*QueryRequestPayload) Descriptor() ([]byte, []int)
- func (m *QueryRequestPayload) GetDevices() []*AgentDeviceId
- func (*QueryRequestPayload) ProtoMessage()
- func (m *QueryRequestPayload) Reset()
- func (m *QueryRequestPayload) String() string
- func (m *QueryRequestPayload) XXX_DiscardUnknown()
- func (m *QueryRequestPayload) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryRequestPayload) XXX_Merge(src proto.Message)
- func (m *QueryRequestPayload) XXX_Size() int
- func (m *QueryRequestPayload) XXX_Unmarshal(b []byte) error
- type QueryResponse
- func (*QueryResponse) Descriptor() ([]byte, []int)
- func (m *QueryResponse) GetPayload() *QueryResponsePayload
- func (m *QueryResponse) GetRequestId() string
- func (*QueryResponse) ProtoMessage()
- func (m *QueryResponse) Reset()
- func (m *QueryResponse) String() string
- func (m *QueryResponse) XXX_DiscardUnknown()
- func (m *QueryResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryResponse) XXX_Merge(src proto.Message)
- func (m *QueryResponse) XXX_Size() int
- func (m *QueryResponse) XXX_Unmarshal(b []byte) error
- type QueryResponsePayload
- func (*QueryResponsePayload) Descriptor() ([]byte, []int)
- func (m *QueryResponsePayload) GetDevices() map[string]*_struct.Struct
- func (*QueryResponsePayload) ProtoMessage()
- func (m *QueryResponsePayload) Reset()
- func (m *QueryResponsePayload) String() string
- func (m *QueryResponsePayload) XXX_DiscardUnknown()
- func (m *QueryResponsePayload) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryResponsePayload) XXX_Merge(src proto.Message)
- func (m *QueryResponsePayload) XXX_Size() int
- func (m *QueryResponsePayload) XXX_Unmarshal(b []byte) error
- type ReportStateAndNotificationDevice
- func (*ReportStateAndNotificationDevice) Descriptor() ([]byte, []int)
- func (m *ReportStateAndNotificationDevice) GetNotifications() *_struct.Struct
- func (m *ReportStateAndNotificationDevice) GetStates() *_struct.Struct
- func (*ReportStateAndNotificationDevice) ProtoMessage()
- func (m *ReportStateAndNotificationDevice) Reset()
- func (m *ReportStateAndNotificationDevice) String() string
- func (m *ReportStateAndNotificationDevice) XXX_DiscardUnknown()
- func (m *ReportStateAndNotificationDevice) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ReportStateAndNotificationDevice) XXX_Merge(src proto.Message)
- func (m *ReportStateAndNotificationDevice) XXX_Size() int
- func (m *ReportStateAndNotificationDevice) XXX_Unmarshal(b []byte) error
- type ReportStateAndNotificationRequest
- func (*ReportStateAndNotificationRequest) Descriptor() ([]byte, []int)
- func (m *ReportStateAndNotificationRequest) GetAgentUserId() string
- func (m *ReportStateAndNotificationRequest) GetEventId() string
- func (m *ReportStateAndNotificationRequest) GetFollowUpToken() string
- func (m *ReportStateAndNotificationRequest) GetPayload() *StateAndNotificationPayload
- func (m *ReportStateAndNotificationRequest) GetRequestId() string
- func (*ReportStateAndNotificationRequest) ProtoMessage()
- func (m *ReportStateAndNotificationRequest) Reset()
- func (m *ReportStateAndNotificationRequest) String() string
- func (m *ReportStateAndNotificationRequest) XXX_DiscardUnknown()
- func (m *ReportStateAndNotificationRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ReportStateAndNotificationRequest) XXX_Merge(src proto.Message)
- func (m *ReportStateAndNotificationRequest) XXX_Size() int
- func (m *ReportStateAndNotificationRequest) XXX_Unmarshal(b []byte) error
- type ReportStateAndNotificationResponse
- func (*ReportStateAndNotificationResponse) Descriptor() ([]byte, []int)
- func (m *ReportStateAndNotificationResponse) GetRequestId() string
- func (*ReportStateAndNotificationResponse) ProtoMessage()
- func (m *ReportStateAndNotificationResponse) Reset()
- func (m *ReportStateAndNotificationResponse) String() string
- func (m *ReportStateAndNotificationResponse) XXX_DiscardUnknown()
- func (m *ReportStateAndNotificationResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ReportStateAndNotificationResponse) XXX_Merge(src proto.Message)
- func (m *ReportStateAndNotificationResponse) XXX_Size() int
- func (m *ReportStateAndNotificationResponse) XXX_Unmarshal(b []byte) error
- type RequestSyncDevicesRequest
- func (*RequestSyncDevicesRequest) Descriptor() ([]byte, []int)
- func (m *RequestSyncDevicesRequest) GetAgentUserId() string
- func (m *RequestSyncDevicesRequest) GetAsync() bool
- func (*RequestSyncDevicesRequest) ProtoMessage()
- func (m *RequestSyncDevicesRequest) Reset()
- func (m *RequestSyncDevicesRequest) String() string
- func (m *RequestSyncDevicesRequest) XXX_DiscardUnknown()
- func (m *RequestSyncDevicesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *RequestSyncDevicesRequest) XXX_Merge(src proto.Message)
- func (m *RequestSyncDevicesRequest) XXX_Size() int
- func (m *RequestSyncDevicesRequest) XXX_Unmarshal(b []byte) error
- type RequestSyncDevicesResponse
- func (*RequestSyncDevicesResponse) Descriptor() ([]byte, []int)
- func (*RequestSyncDevicesResponse) ProtoMessage()
- func (m *RequestSyncDevicesResponse) Reset()
- func (m *RequestSyncDevicesResponse) String() string
- func (m *RequestSyncDevicesResponse) XXX_DiscardUnknown()
- func (m *RequestSyncDevicesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *RequestSyncDevicesResponse) XXX_Merge(src proto.Message)
- func (m *RequestSyncDevicesResponse) XXX_Size() int
- func (m *RequestSyncDevicesResponse) XXX_Unmarshal(b []byte) error
- type StateAndNotificationPayload
- func (*StateAndNotificationPayload) Descriptor() ([]byte, []int)
- func (m *StateAndNotificationPayload) GetDevices() *ReportStateAndNotificationDevice
- func (*StateAndNotificationPayload) ProtoMessage()
- func (m *StateAndNotificationPayload) Reset()
- func (m *StateAndNotificationPayload) String() string
- func (m *StateAndNotificationPayload) XXX_DiscardUnknown()
- func (m *StateAndNotificationPayload) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *StateAndNotificationPayload) XXX_Merge(src proto.Message)
- func (m *StateAndNotificationPayload) XXX_Size() int
- func (m *StateAndNotificationPayload) XXX_Unmarshal(b []byte) error
- type SyncRequest
- func (*SyncRequest) Descriptor() ([]byte, []int)
- func (m *SyncRequest) GetAgentUserId() string
- func (m *SyncRequest) GetRequestId() string
- func (*SyncRequest) ProtoMessage()
- func (m *SyncRequest) Reset()
- func (m *SyncRequest) String() string
- func (m *SyncRequest) XXX_DiscardUnknown()
- func (m *SyncRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *SyncRequest) XXX_Merge(src proto.Message)
- func (m *SyncRequest) XXX_Size() int
- func (m *SyncRequest) XXX_Unmarshal(b []byte) error
- type SyncResponse
- func (*SyncResponse) Descriptor() ([]byte, []int)
- func (m *SyncResponse) GetPayload() *SyncResponsePayload
- func (m *SyncResponse) GetRequestId() string
- func (*SyncResponse) ProtoMessage()
- func (m *SyncResponse) Reset()
- func (m *SyncResponse) String() string
- func (m *SyncResponse) XXX_DiscardUnknown()
- func (m *SyncResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *SyncResponse) XXX_Merge(src proto.Message)
- func (m *SyncResponse) XXX_Size() int
- func (m *SyncResponse) XXX_Unmarshal(b []byte) error
- type SyncResponsePayload
- func (*SyncResponsePayload) Descriptor() ([]byte, []int)
- func (m *SyncResponsePayload) GetAgentUserId() string
- func (m *SyncResponsePayload) GetDevices() []*Device
- func (*SyncResponsePayload) ProtoMessage()
- func (m *SyncResponsePayload) Reset()
- func (m *SyncResponsePayload) String() string
- func (m *SyncResponsePayload) XXX_DiscardUnknown()
- func (m *SyncResponsePayload) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *SyncResponsePayload) XXX_Merge(src proto.Message)
- func (m *SyncResponsePayload) XXX_Size() int
- func (m *SyncResponsePayload) XXX_Unmarshal(b []byte) error
- type UnimplementedHomeGraphApiServiceServer
- func (*UnimplementedHomeGraphApiServiceServer) DeleteAgentUser(ctx context.Context, req *DeleteAgentUserRequest) (*empty.Empty, error)
- func (*UnimplementedHomeGraphApiServiceServer) Query(ctx context.Context, req *QueryRequest) (*QueryResponse, error)
- func (*UnimplementedHomeGraphApiServiceServer) ReportStateAndNotification(ctx context.Context, req *ReportStateAndNotificationRequest) (*ReportStateAndNotificationResponse, error)
- func (*UnimplementedHomeGraphApiServiceServer) RequestSyncDevices(ctx context.Context, req *RequestSyncDevicesRequest) (*RequestSyncDevicesResponse, error)
- func (*UnimplementedHomeGraphApiServiceServer) Sync(ctx context.Context, req *SyncRequest) (*SyncResponse, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterHomeGraphApiServiceServer ¶
func RegisterHomeGraphApiServiceServer(s *grpc.Server, srv HomeGraphApiServiceServer)
Types ¶
type AgentDeviceId ¶
type AgentDeviceId struct { // Third-party device ID. Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Third-party device ID for one device.
func (*AgentDeviceId) Descriptor ¶
func (*AgentDeviceId) Descriptor() ([]byte, []int)
func (*AgentDeviceId) GetId ¶
func (m *AgentDeviceId) GetId() string
func (*AgentDeviceId) ProtoMessage ¶
func (*AgentDeviceId) ProtoMessage()
func (*AgentDeviceId) Reset ¶
func (m *AgentDeviceId) Reset()
func (*AgentDeviceId) String ¶
func (m *AgentDeviceId) String() string
func (*AgentDeviceId) XXX_DiscardUnknown ¶
func (m *AgentDeviceId) XXX_DiscardUnknown()
func (*AgentDeviceId) XXX_Marshal ¶
func (m *AgentDeviceId) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*AgentDeviceId) XXX_Merge ¶
func (m *AgentDeviceId) XXX_Merge(src proto.Message)
func (*AgentDeviceId) XXX_Size ¶
func (m *AgentDeviceId) XXX_Size() int
func (*AgentDeviceId) XXX_Unmarshal ¶
func (m *AgentDeviceId) XXX_Unmarshal(b []byte) error
type AgentOtherDeviceId ¶
type AgentOtherDeviceId struct { // Project ID for your smart home Action. AgentId string `protobuf:"bytes,1,opt,name=agent_id,json=agentId,proto3" json:"agent_id,omitempty"` // Unique third-party device ID. DeviceId string `protobuf:"bytes,2,opt,name=device_id,json=deviceId,proto3" json:"device_id,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Alternate third-party device ID.
func (*AgentOtherDeviceId) Descriptor ¶
func (*AgentOtherDeviceId) Descriptor() ([]byte, []int)
func (*AgentOtherDeviceId) GetAgentId ¶
func (m *AgentOtherDeviceId) GetAgentId() string
func (*AgentOtherDeviceId) GetDeviceId ¶
func (m *AgentOtherDeviceId) GetDeviceId() string
func (*AgentOtherDeviceId) ProtoMessage ¶
func (*AgentOtherDeviceId) ProtoMessage()
func (*AgentOtherDeviceId) Reset ¶
func (m *AgentOtherDeviceId) Reset()
func (*AgentOtherDeviceId) String ¶
func (m *AgentOtherDeviceId) String() string
func (*AgentOtherDeviceId) XXX_DiscardUnknown ¶
func (m *AgentOtherDeviceId) XXX_DiscardUnknown()
func (*AgentOtherDeviceId) XXX_Marshal ¶
func (m *AgentOtherDeviceId) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*AgentOtherDeviceId) XXX_Merge ¶
func (m *AgentOtherDeviceId) XXX_Merge(src proto.Message)
func (*AgentOtherDeviceId) XXX_Size ¶
func (m *AgentOtherDeviceId) XXX_Size() int
func (*AgentOtherDeviceId) XXX_Unmarshal ¶
func (m *AgentOtherDeviceId) XXX_Unmarshal(b []byte) error
type DeleteAgentUserRequest ¶
type DeleteAgentUserRequest struct { // Request ID used for debugging. RequestId string `protobuf:"bytes,1,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"` // Required. Third-party user ID. AgentUserId string `protobuf:"bytes,2,opt,name=agent_user_id,json=agentUserId,proto3" json:"agent_user_id,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Request type for the [`DeleteAgentUser`](#google.home.graph.v1.HomeGraphApiService.DeleteAgentUser) call.
func (*DeleteAgentUserRequest) Descriptor ¶
func (*DeleteAgentUserRequest) Descriptor() ([]byte, []int)
func (*DeleteAgentUserRequest) GetAgentUserId ¶
func (m *DeleteAgentUserRequest) GetAgentUserId() string
func (*DeleteAgentUserRequest) GetRequestId ¶
func (m *DeleteAgentUserRequest) GetRequestId() string
func (*DeleteAgentUserRequest) ProtoMessage ¶
func (*DeleteAgentUserRequest) ProtoMessage()
func (*DeleteAgentUserRequest) Reset ¶
func (m *DeleteAgentUserRequest) Reset()
func (*DeleteAgentUserRequest) String ¶
func (m *DeleteAgentUserRequest) String() string
func (*DeleteAgentUserRequest) XXX_DiscardUnknown ¶
func (m *DeleteAgentUserRequest) XXX_DiscardUnknown()
func (*DeleteAgentUserRequest) XXX_Marshal ¶
func (m *DeleteAgentUserRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*DeleteAgentUserRequest) XXX_Merge ¶
func (m *DeleteAgentUserRequest) XXX_Merge(src proto.Message)
func (*DeleteAgentUserRequest) XXX_Size ¶
func (m *DeleteAgentUserRequest) XXX_Size() int
func (*DeleteAgentUserRequest) XXX_Unmarshal ¶
func (m *DeleteAgentUserRequest) XXX_Unmarshal(b []byte) error
type Device ¶
type Device struct { // Third-party device ID. Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // Hardware type of the device. // See [device // types](https://developers.google.com/assistant/smarthome/guides). Type string `protobuf:"bytes,2,opt,name=type,proto3" json:"type,omitempty"` // Traits supported by the device. // See [device // traits](https://developers.google.com/assistant/smarthome/traits). Traits []string `protobuf:"bytes,3,rep,name=traits,proto3" json:"traits,omitempty"` // Names given to this device by your smart home Action. Name *DeviceNames `protobuf:"bytes,4,opt,name=name,proto3" json:"name,omitempty"` // Indicates whether your smart home Action will report state of this device // to Google via // [ReportStateAndNotification][google.home.graph.v1.HomeGraphApiService.ReportStateAndNotification]. WillReportState bool `protobuf:"varint,5,opt,name=will_report_state,json=willReportState,proto3" json:"will_report_state,omitempty"` // Suggested name for the room where this device is installed. // Google attempts to use this value during user setup. RoomHint string `protobuf:"bytes,6,opt,name=room_hint,json=roomHint,proto3" json:"room_hint,omitempty"` // Suggested name for the structure where this device is installed. // Google attempts to use this value during user setup. StructureHint string `protobuf:"bytes,7,opt,name=structure_hint,json=structureHint,proto3" json:"structure_hint,omitempty"` // Device manufacturer, model, hardware version, and software version. DeviceInfo *DeviceInfo `protobuf:"bytes,8,opt,name=device_info,json=deviceInfo,proto3" json:"device_info,omitempty"` // Attributes for the traits supported by the device. Attributes *_struct.Struct `protobuf:"bytes,9,opt,name=attributes,proto3" json:"attributes,omitempty"` // Custom device attributes stored in Home Graph and provided to your // smart home Action in each // [QUERY](https://developers.google.com/assistant/smarthome/reference/intent/query) // and // [EXECUTE](https://developers.google.com/assistant/smarthome/reference/intent/execute) // intent. CustomData *_struct.Struct `protobuf:"bytes,10,opt,name=custom_data,json=customData,proto3" json:"custom_data,omitempty"` // Alternate IDs associated with this device. // This is used to identify cloud synced devices enabled for [local // fulfillment](https://developers.google.com/assistant/smarthome/concepts/local). OtherDeviceIds []*AgentOtherDeviceId `protobuf:"bytes,11,rep,name=other_device_ids,json=otherDeviceIds,proto3" json:"other_device_ids,omitempty"` // Indicates whether your smart home Action will report notifications // to Google for this device via // [ReportStateAndNotification][google.home.graph.v1.HomeGraphApiService.ReportStateAndNotification]. // // If your smart home Action enables users to control device notifications, // you should update this field and call // [RequestSyncDevices][google.home.graph.v1.HomeGraphApiService.RequestSyncDevices]. NotificationSupportedByAgent bool `` /* 151-byte string literal not displayed */ XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Third-party device definition.
func (*Device) Descriptor ¶
func (*Device) GetAttributes ¶
func (*Device) GetCustomData ¶
func (*Device) GetDeviceInfo ¶
func (m *Device) GetDeviceInfo() *DeviceInfo
func (*Device) GetName ¶
func (m *Device) GetName() *DeviceNames
func (*Device) GetNotificationSupportedByAgent ¶
func (*Device) GetOtherDeviceIds ¶
func (m *Device) GetOtherDeviceIds() []*AgentOtherDeviceId
func (*Device) GetRoomHint ¶
func (*Device) GetStructureHint ¶
func (*Device) GetWillReportState ¶
func (*Device) ProtoMessage ¶
func (*Device) ProtoMessage()
func (*Device) XXX_DiscardUnknown ¶
func (m *Device) XXX_DiscardUnknown()
func (*Device) XXX_Marshal ¶
func (*Device) XXX_Unmarshal ¶
type DeviceInfo ¶
type DeviceInfo struct { // Device manufacturer. Manufacturer string `protobuf:"bytes,1,opt,name=manufacturer,proto3" json:"manufacturer,omitempty"` // Device model. Model string `protobuf:"bytes,2,opt,name=model,proto3" json:"model,omitempty"` // Device hardware version. HwVersion string `protobuf:"bytes,3,opt,name=hw_version,json=hwVersion,proto3" json:"hw_version,omitempty"` // Device software version. SwVersion string `protobuf:"bytes,4,opt,name=sw_version,json=swVersion,proto3" json:"sw_version,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Device information.
func (*DeviceInfo) Descriptor ¶
func (*DeviceInfo) Descriptor() ([]byte, []int)
func (*DeviceInfo) GetHwVersion ¶
func (m *DeviceInfo) GetHwVersion() string
func (*DeviceInfo) GetManufacturer ¶
func (m *DeviceInfo) GetManufacturer() string
func (*DeviceInfo) GetModel ¶
func (m *DeviceInfo) GetModel() string
func (*DeviceInfo) GetSwVersion ¶
func (m *DeviceInfo) GetSwVersion() string
func (*DeviceInfo) ProtoMessage ¶
func (*DeviceInfo) ProtoMessage()
func (*DeviceInfo) Reset ¶
func (m *DeviceInfo) Reset()
func (*DeviceInfo) String ¶
func (m *DeviceInfo) String() string
func (*DeviceInfo) XXX_DiscardUnknown ¶
func (m *DeviceInfo) XXX_DiscardUnknown()
func (*DeviceInfo) XXX_Marshal ¶
func (m *DeviceInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*DeviceInfo) XXX_Merge ¶
func (m *DeviceInfo) XXX_Merge(src proto.Message)
func (*DeviceInfo) XXX_Size ¶
func (m *DeviceInfo) XXX_Size() int
func (*DeviceInfo) XXX_Unmarshal ¶
func (m *DeviceInfo) XXX_Unmarshal(b []byte) error
type DeviceNames ¶
type DeviceNames struct { // Primary name of the device, generally provided by the user. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // Additional names provided by the user for the device. Nicknames []string `protobuf:"bytes,2,rep,name=nicknames,proto3" json:"nicknames,omitempty"` // List of names provided by the manufacturer rather than the user, such as // serial numbers, SKUs, etc. DefaultNames []string `protobuf:"bytes,3,rep,name=default_names,json=defaultNames,proto3" json:"default_names,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Identifiers used to describe the device.
func (*DeviceNames) Descriptor ¶
func (*DeviceNames) Descriptor() ([]byte, []int)
func (*DeviceNames) GetDefaultNames ¶
func (m *DeviceNames) GetDefaultNames() []string
func (*DeviceNames) GetName ¶
func (m *DeviceNames) GetName() string
func (*DeviceNames) GetNicknames ¶
func (m *DeviceNames) GetNicknames() []string
func (*DeviceNames) ProtoMessage ¶
func (*DeviceNames) ProtoMessage()
func (*DeviceNames) Reset ¶
func (m *DeviceNames) Reset()
func (*DeviceNames) String ¶
func (m *DeviceNames) String() string
func (*DeviceNames) XXX_DiscardUnknown ¶
func (m *DeviceNames) XXX_DiscardUnknown()
func (*DeviceNames) XXX_Marshal ¶
func (m *DeviceNames) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*DeviceNames) XXX_Merge ¶
func (m *DeviceNames) XXX_Merge(src proto.Message)
func (*DeviceNames) XXX_Size ¶
func (m *DeviceNames) XXX_Size() int
func (*DeviceNames) XXX_Unmarshal ¶
func (m *DeviceNames) XXX_Unmarshal(b []byte) error
type HomeGraphApiServiceClient ¶
type HomeGraphApiServiceClient interface { // Requests Google to send an `action.devices.SYNC` // [intent](https://developers.google.com/assistant/smarthome/reference/intent/sync) // to your smart home Action to update device metadata for the given user. // // // The third-party user's identity is passed via the `agent_user_id` // (see [RequestSyncDevicesRequest][google.home.graph.v1.RequestSyncDevicesRequest]). // This request must be authorized using service account credentials from your // Actions console project. RequestSyncDevices(ctx context.Context, in *RequestSyncDevicesRequest, opts ...grpc.CallOption) (*RequestSyncDevicesResponse, error) // Reports device state and optionally sends device notifications. // Called by your smart home Action when the state of a third-party device // changes or you need to send a notification about the device. // See [Implement Report // State](https://developers.google.com/assistant/smarthome/develop/report-state) // for more information. // // This method updates the device state according to its declared // [traits](https://developers.google.com/assistant/smarthome/concepts/devices-traits). // Publishing a new state value outside of these traits will result in an // `INVALID_ARGUMENT` error response. // // The third-party user's identity is passed in via the `agent_user_id` // (see [ReportStateAndNotificationRequest][google.home.graph.v1.ReportStateAndNotificationRequest]). // This request must be authorized using service account credentials from your // Actions console project. ReportStateAndNotification(ctx context.Context, in *ReportStateAndNotificationRequest, opts ...grpc.CallOption) (*ReportStateAndNotificationResponse, error) // Unlinks the given third-party user from your smart home Action. // All data related to this user will be deleted. // // For more details on how users link their accounts, see // [fulfillment and // authentication](https://developers.google.com/assistant/smarthome/concepts/fulfillment-authentication). // // The third-party user's identity is passed in via the `agent_user_id` // (see [DeleteAgentUserRequest][google.home.graph.v1.DeleteAgentUserRequest]). // This request must be authorized using service account credentials from your // Actions console project. DeleteAgentUser(ctx context.Context, in *DeleteAgentUserRequest, opts ...grpc.CallOption) (*empty.Empty, error) // Gets the current states in Home Graph for the given set of the third-party // user's devices. // // The third-party user's identity is passed in via the `agent_user_id` // (see [QueryRequest][google.home.graph.v1.QueryRequest]). // This request must be authorized using service account credentials from your // Actions console project. Query(ctx context.Context, in *QueryRequest, opts ...grpc.CallOption) (*QueryResponse, error) // Gets all the devices associated with the given third-party user. // // The third-party user's identity is passed in via the `agent_user_id` // (see [SyncRequest][google.home.graph.v1.SyncRequest]). // This request must be authorized using service account credentials from your // Actions console project. Sync(ctx context.Context, in *SyncRequest, opts ...grpc.CallOption) (*SyncResponse, error) }
HomeGraphApiServiceClient is the client API for HomeGraphApiService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewHomeGraphApiServiceClient ¶
func NewHomeGraphApiServiceClient(cc grpc.ClientConnInterface) HomeGraphApiServiceClient
type HomeGraphApiServiceServer ¶
type HomeGraphApiServiceServer interface { // Requests Google to send an `action.devices.SYNC` // [intent](https://developers.google.com/assistant/smarthome/reference/intent/sync) // to your smart home Action to update device metadata for the given user. // // // The third-party user's identity is passed via the `agent_user_id` // (see [RequestSyncDevicesRequest][google.home.graph.v1.RequestSyncDevicesRequest]). // This request must be authorized using service account credentials from your // Actions console project. RequestSyncDevices(context.Context, *RequestSyncDevicesRequest) (*RequestSyncDevicesResponse, error) // Reports device state and optionally sends device notifications. // Called by your smart home Action when the state of a third-party device // changes or you need to send a notification about the device. // See [Implement Report // State](https://developers.google.com/assistant/smarthome/develop/report-state) // for more information. // // This method updates the device state according to its declared // [traits](https://developers.google.com/assistant/smarthome/concepts/devices-traits). // Publishing a new state value outside of these traits will result in an // `INVALID_ARGUMENT` error response. // // The third-party user's identity is passed in via the `agent_user_id` // (see [ReportStateAndNotificationRequest][google.home.graph.v1.ReportStateAndNotificationRequest]). // This request must be authorized using service account credentials from your // Actions console project. ReportStateAndNotification(context.Context, *ReportStateAndNotificationRequest) (*ReportStateAndNotificationResponse, error) // Unlinks the given third-party user from your smart home Action. // All data related to this user will be deleted. // // For more details on how users link their accounts, see // [fulfillment and // authentication](https://developers.google.com/assistant/smarthome/concepts/fulfillment-authentication). // // The third-party user's identity is passed in via the `agent_user_id` // (see [DeleteAgentUserRequest][google.home.graph.v1.DeleteAgentUserRequest]). // This request must be authorized using service account credentials from your // Actions console project. DeleteAgentUser(context.Context, *DeleteAgentUserRequest) (*empty.Empty, error) // Gets the current states in Home Graph for the given set of the third-party // user's devices. // // The third-party user's identity is passed in via the `agent_user_id` // (see [QueryRequest][google.home.graph.v1.QueryRequest]). // This request must be authorized using service account credentials from your // Actions console project. Query(context.Context, *QueryRequest) (*QueryResponse, error) // Gets all the devices associated with the given third-party user. // // The third-party user's identity is passed in via the `agent_user_id` // (see [SyncRequest][google.home.graph.v1.SyncRequest]). // This request must be authorized using service account credentials from your // Actions console project. Sync(context.Context, *SyncRequest) (*SyncResponse, error) }
HomeGraphApiServiceServer is the server API for HomeGraphApiService service.
type QueryRequest ¶
type QueryRequest struct { // Request ID used for debugging. RequestId string `protobuf:"bytes,1,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"` // Required. Third-party user ID. AgentUserId string `protobuf:"bytes,2,opt,name=agent_user_id,json=agentUserId,proto3" json:"agent_user_id,omitempty"` // Required. Inputs containing third-party device IDs for which to // get the device states. Inputs []*QueryRequestInput `protobuf:"bytes,3,rep,name=inputs,proto3" json:"inputs,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Request type for the [`Query`](#google.home.graph.v1.HomeGraphApiService.Query) call.
func (*QueryRequest) Descriptor ¶
func (*QueryRequest) Descriptor() ([]byte, []int)
func (*QueryRequest) GetAgentUserId ¶
func (m *QueryRequest) GetAgentUserId() string
func (*QueryRequest) GetInputs ¶
func (m *QueryRequest) GetInputs() []*QueryRequestInput
func (*QueryRequest) GetRequestId ¶
func (m *QueryRequest) GetRequestId() string
func (*QueryRequest) ProtoMessage ¶
func (*QueryRequest) ProtoMessage()
func (*QueryRequest) Reset ¶
func (m *QueryRequest) Reset()
func (*QueryRequest) String ¶
func (m *QueryRequest) String() string
func (*QueryRequest) XXX_DiscardUnknown ¶
func (m *QueryRequest) XXX_DiscardUnknown()
func (*QueryRequest) XXX_Marshal ¶
func (m *QueryRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryRequest) XXX_Merge ¶
func (m *QueryRequest) XXX_Merge(src proto.Message)
func (*QueryRequest) XXX_Size ¶
func (m *QueryRequest) XXX_Size() int
func (*QueryRequest) XXX_Unmarshal ¶
func (m *QueryRequest) XXX_Unmarshal(b []byte) error
type QueryRequestInput ¶
type QueryRequestInput struct { // Payload containing third-party device IDs. Payload *QueryRequestPayload `protobuf:"bytes,1,opt,name=payload,proto3" json:"payload,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Device ID inputs to QueryRequest[google.home.graph.v1.QueryRequest].
func (*QueryRequestInput) Descriptor ¶
func (*QueryRequestInput) Descriptor() ([]byte, []int)
func (*QueryRequestInput) GetPayload ¶
func (m *QueryRequestInput) GetPayload() *QueryRequestPayload
func (*QueryRequestInput) ProtoMessage ¶
func (*QueryRequestInput) ProtoMessage()
func (*QueryRequestInput) Reset ¶
func (m *QueryRequestInput) Reset()
func (*QueryRequestInput) String ¶
func (m *QueryRequestInput) String() string
func (*QueryRequestInput) XXX_DiscardUnknown ¶
func (m *QueryRequestInput) XXX_DiscardUnknown()
func (*QueryRequestInput) XXX_Marshal ¶
func (m *QueryRequestInput) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryRequestInput) XXX_Merge ¶
func (m *QueryRequestInput) XXX_Merge(src proto.Message)
func (*QueryRequestInput) XXX_Size ¶
func (m *QueryRequestInput) XXX_Size() int
func (*QueryRequestInput) XXX_Unmarshal ¶
func (m *QueryRequestInput) XXX_Unmarshal(b []byte) error
type QueryRequestPayload ¶
type QueryRequestPayload struct { // Third-party device IDs for which to get the device states. Devices []*AgentDeviceId `protobuf:"bytes,1,rep,name=devices,proto3" json:"devices,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Payload containing device IDs.
func (*QueryRequestPayload) Descriptor ¶
func (*QueryRequestPayload) Descriptor() ([]byte, []int)
func (*QueryRequestPayload) GetDevices ¶
func (m *QueryRequestPayload) GetDevices() []*AgentDeviceId
func (*QueryRequestPayload) ProtoMessage ¶
func (*QueryRequestPayload) ProtoMessage()
func (*QueryRequestPayload) Reset ¶
func (m *QueryRequestPayload) Reset()
func (*QueryRequestPayload) String ¶
func (m *QueryRequestPayload) String() string
func (*QueryRequestPayload) XXX_DiscardUnknown ¶
func (m *QueryRequestPayload) XXX_DiscardUnknown()
func (*QueryRequestPayload) XXX_Marshal ¶
func (m *QueryRequestPayload) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryRequestPayload) XXX_Merge ¶
func (m *QueryRequestPayload) XXX_Merge(src proto.Message)
func (*QueryRequestPayload) XXX_Size ¶
func (m *QueryRequestPayload) XXX_Size() int
func (*QueryRequestPayload) XXX_Unmarshal ¶
func (m *QueryRequestPayload) XXX_Unmarshal(b []byte) error
type QueryResponse ¶
type QueryResponse struct { // Request ID used for debugging. Copied from the request. RequestId string `protobuf:"bytes,1,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"` // Device states for the devices given in the request. Payload *QueryResponsePayload `protobuf:"bytes,2,opt,name=payload,proto3" json:"payload,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Response type for the [`Query`](#google.home.graph.v1.HomeGraphApiService.Query) call. This should follow the same format as the Google smart home `action.devices.QUERY` [response](https://developers.google.com/assistant/smarthome/reference/intent/query). # Example
```json
{ "requestId": "ff36a3cc-ec34-11e6-b1a0-64510650abcf", "payload": { "devices": { "123": { "on": true, "online": true }, "456": { "on": true, "online": true, "brightness": 80, "color": { "name": "cerulean", "spectrumRGB": 31655 } } } } }
```
func (*QueryResponse) Descriptor ¶
func (*QueryResponse) Descriptor() ([]byte, []int)
func (*QueryResponse) GetPayload ¶
func (m *QueryResponse) GetPayload() *QueryResponsePayload
func (*QueryResponse) GetRequestId ¶
func (m *QueryResponse) GetRequestId() string
func (*QueryResponse) ProtoMessage ¶
func (*QueryResponse) ProtoMessage()
func (*QueryResponse) Reset ¶
func (m *QueryResponse) Reset()
func (*QueryResponse) String ¶
func (m *QueryResponse) String() string
func (*QueryResponse) XXX_DiscardUnknown ¶
func (m *QueryResponse) XXX_DiscardUnknown()
func (*QueryResponse) XXX_Marshal ¶
func (m *QueryResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryResponse) XXX_Merge ¶
func (m *QueryResponse) XXX_Merge(src proto.Message)
func (*QueryResponse) XXX_Size ¶
func (m *QueryResponse) XXX_Size() int
func (*QueryResponse) XXX_Unmarshal ¶
func (m *QueryResponse) XXX_Unmarshal(b []byte) error
type QueryResponsePayload ¶
type QueryResponsePayload struct { // States of the devices. Map of third-party device ID to struct of device // states. Devices map[string]*_struct.Struct `` /* 155-byte string literal not displayed */ XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Payload containing device states information.
func (*QueryResponsePayload) Descriptor ¶
func (*QueryResponsePayload) Descriptor() ([]byte, []int)
func (*QueryResponsePayload) GetDevices ¶
func (m *QueryResponsePayload) GetDevices() map[string]*_struct.Struct
func (*QueryResponsePayload) ProtoMessage ¶
func (*QueryResponsePayload) ProtoMessage()
func (*QueryResponsePayload) Reset ¶
func (m *QueryResponsePayload) Reset()
func (*QueryResponsePayload) String ¶
func (m *QueryResponsePayload) String() string
func (*QueryResponsePayload) XXX_DiscardUnknown ¶
func (m *QueryResponsePayload) XXX_DiscardUnknown()
func (*QueryResponsePayload) XXX_Marshal ¶
func (m *QueryResponsePayload) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryResponsePayload) XXX_Merge ¶
func (m *QueryResponsePayload) XXX_Merge(src proto.Message)
func (*QueryResponsePayload) XXX_Size ¶
func (m *QueryResponsePayload) XXX_Size() int
func (*QueryResponsePayload) XXX_Unmarshal ¶
func (m *QueryResponsePayload) XXX_Unmarshal(b []byte) error
type ReportStateAndNotificationDevice ¶
type ReportStateAndNotificationDevice struct { // States of devices to update. See the **Device STATES** section // of the individual trait [reference // guides](https://developers.google.com/assistant/smarthome/traits). States *_struct.Struct `protobuf:"bytes,1,opt,name=states,proto3" json:"states,omitempty"` // Notifications metadata for devices. See the **Device NOTIFICATIONS** // section of the individual trait [reference // guides](https://developers.google.com/assistant/smarthome/traits). Notifications *_struct.Struct `protobuf:"bytes,2,opt,name=notifications,proto3" json:"notifications,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
The states and notifications specific to a device.
func (*ReportStateAndNotificationDevice) Descriptor ¶
func (*ReportStateAndNotificationDevice) Descriptor() ([]byte, []int)
func (*ReportStateAndNotificationDevice) GetNotifications ¶
func (m *ReportStateAndNotificationDevice) GetNotifications() *_struct.Struct
func (*ReportStateAndNotificationDevice) GetStates ¶
func (m *ReportStateAndNotificationDevice) GetStates() *_struct.Struct
func (*ReportStateAndNotificationDevice) ProtoMessage ¶
func (*ReportStateAndNotificationDevice) ProtoMessage()
func (*ReportStateAndNotificationDevice) Reset ¶
func (m *ReportStateAndNotificationDevice) Reset()
func (*ReportStateAndNotificationDevice) String ¶
func (m *ReportStateAndNotificationDevice) String() string
func (*ReportStateAndNotificationDevice) XXX_DiscardUnknown ¶
func (m *ReportStateAndNotificationDevice) XXX_DiscardUnknown()
func (*ReportStateAndNotificationDevice) XXX_Marshal ¶
func (m *ReportStateAndNotificationDevice) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ReportStateAndNotificationDevice) XXX_Merge ¶
func (m *ReportStateAndNotificationDevice) XXX_Merge(src proto.Message)
func (*ReportStateAndNotificationDevice) XXX_Size ¶
func (m *ReportStateAndNotificationDevice) XXX_Size() int
func (*ReportStateAndNotificationDevice) XXX_Unmarshal ¶
func (m *ReportStateAndNotificationDevice) XXX_Unmarshal(b []byte) error
type ReportStateAndNotificationRequest ¶
type ReportStateAndNotificationRequest struct { // Request ID used for debugging. RequestId string `protobuf:"bytes,1,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"` // Unique identifier per event (for example, a doorbell press). EventId string `protobuf:"bytes,4,opt,name=event_id,json=eventId,proto3" json:"event_id,omitempty"` // Required. Third-party user ID. AgentUserId string `protobuf:"bytes,2,opt,name=agent_user_id,json=agentUserId,proto3" json:"agent_user_id,omitempty"` // Token to maintain state in the follow up notification response. FollowUpToken string `protobuf:"bytes,5,opt,name=follow_up_token,json=followUpToken,proto3" json:"follow_up_token,omitempty"` // Required. State of devices to update and notification metadata for devices. Payload *StateAndNotificationPayload `protobuf:"bytes,3,opt,name=payload,proto3" json:"payload,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Request type for the [`ReportStateAndNotification`](#google.home.graph.v1.HomeGraphApiService.ReportStateAndNotification) call. It may include states, notifications, or both. States and notifications are defined per `device_id` (for example, "123" and "456" in the following example). # Example
```json
{ "requestId": "ff36a3cc-ec34-11e6-b1a0-64510650abcf", "agentUserId": "1234", "payload": { "devices": { "states": { "123": { "on": true }, "456": { "on": true, "brightness": 10 } }, } } }
```
func (*ReportStateAndNotificationRequest) Descriptor ¶
func (*ReportStateAndNotificationRequest) Descriptor() ([]byte, []int)
func (*ReportStateAndNotificationRequest) GetAgentUserId ¶
func (m *ReportStateAndNotificationRequest) GetAgentUserId() string
func (*ReportStateAndNotificationRequest) GetEventId ¶
func (m *ReportStateAndNotificationRequest) GetEventId() string
func (*ReportStateAndNotificationRequest) GetFollowUpToken ¶
func (m *ReportStateAndNotificationRequest) GetFollowUpToken() string
func (*ReportStateAndNotificationRequest) GetPayload ¶
func (m *ReportStateAndNotificationRequest) GetPayload() *StateAndNotificationPayload
func (*ReportStateAndNotificationRequest) GetRequestId ¶
func (m *ReportStateAndNotificationRequest) GetRequestId() string
func (*ReportStateAndNotificationRequest) ProtoMessage ¶
func (*ReportStateAndNotificationRequest) ProtoMessage()
func (*ReportStateAndNotificationRequest) Reset ¶
func (m *ReportStateAndNotificationRequest) Reset()
func (*ReportStateAndNotificationRequest) String ¶
func (m *ReportStateAndNotificationRequest) String() string
func (*ReportStateAndNotificationRequest) XXX_DiscardUnknown ¶
func (m *ReportStateAndNotificationRequest) XXX_DiscardUnknown()
func (*ReportStateAndNotificationRequest) XXX_Marshal ¶
func (m *ReportStateAndNotificationRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ReportStateAndNotificationRequest) XXX_Merge ¶
func (m *ReportStateAndNotificationRequest) XXX_Merge(src proto.Message)
func (*ReportStateAndNotificationRequest) XXX_Size ¶
func (m *ReportStateAndNotificationRequest) XXX_Size() int
func (*ReportStateAndNotificationRequest) XXX_Unmarshal ¶
func (m *ReportStateAndNotificationRequest) XXX_Unmarshal(b []byte) error
type ReportStateAndNotificationResponse ¶
type ReportStateAndNotificationResponse struct { // Request ID copied from [ReportStateAndNotificationRequest][google.home.graph.v1.ReportStateAndNotificationRequest]. RequestId string `protobuf:"bytes,1,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Response type for the [`ReportStateAndNotification`](#google.home.graph.v1.HomeGraphApiService.ReportStateAndNotification) call.
func (*ReportStateAndNotificationResponse) Descriptor ¶
func (*ReportStateAndNotificationResponse) Descriptor() ([]byte, []int)
func (*ReportStateAndNotificationResponse) GetRequestId ¶
func (m *ReportStateAndNotificationResponse) GetRequestId() string
func (*ReportStateAndNotificationResponse) ProtoMessage ¶
func (*ReportStateAndNotificationResponse) ProtoMessage()
func (*ReportStateAndNotificationResponse) Reset ¶
func (m *ReportStateAndNotificationResponse) Reset()
func (*ReportStateAndNotificationResponse) String ¶
func (m *ReportStateAndNotificationResponse) String() string
func (*ReportStateAndNotificationResponse) XXX_DiscardUnknown ¶
func (m *ReportStateAndNotificationResponse) XXX_DiscardUnknown()
func (*ReportStateAndNotificationResponse) XXX_Marshal ¶
func (m *ReportStateAndNotificationResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ReportStateAndNotificationResponse) XXX_Merge ¶
func (m *ReportStateAndNotificationResponse) XXX_Merge(src proto.Message)
func (*ReportStateAndNotificationResponse) XXX_Size ¶
func (m *ReportStateAndNotificationResponse) XXX_Size() int
func (*ReportStateAndNotificationResponse) XXX_Unmarshal ¶
func (m *ReportStateAndNotificationResponse) XXX_Unmarshal(b []byte) error
type RequestSyncDevicesRequest ¶
type RequestSyncDevicesRequest struct { // Required. Third-party user ID. AgentUserId string `protobuf:"bytes,1,opt,name=agent_user_id,json=agentUserId,proto3" json:"agent_user_id,omitempty"` // Optional. If set, the request will be added to a queue and a response will // be returned immediately. This enables concurrent requests for the given // `agent_user_id`, but the caller will not receive any error responses. Async bool `protobuf:"varint,2,opt,name=async,proto3" json:"async,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Request type for the [`RequestSyncDevices`](#google.home.graph.v1.HomeGraphApiService.RequestSyncDevices) call.
func (*RequestSyncDevicesRequest) Descriptor ¶
func (*RequestSyncDevicesRequest) Descriptor() ([]byte, []int)
func (*RequestSyncDevicesRequest) GetAgentUserId ¶
func (m *RequestSyncDevicesRequest) GetAgentUserId() string
func (*RequestSyncDevicesRequest) GetAsync ¶
func (m *RequestSyncDevicesRequest) GetAsync() bool
func (*RequestSyncDevicesRequest) ProtoMessage ¶
func (*RequestSyncDevicesRequest) ProtoMessage()
func (*RequestSyncDevicesRequest) Reset ¶
func (m *RequestSyncDevicesRequest) Reset()
func (*RequestSyncDevicesRequest) String ¶
func (m *RequestSyncDevicesRequest) String() string
func (*RequestSyncDevicesRequest) XXX_DiscardUnknown ¶
func (m *RequestSyncDevicesRequest) XXX_DiscardUnknown()
func (*RequestSyncDevicesRequest) XXX_Marshal ¶
func (m *RequestSyncDevicesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*RequestSyncDevicesRequest) XXX_Merge ¶
func (m *RequestSyncDevicesRequest) XXX_Merge(src proto.Message)
func (*RequestSyncDevicesRequest) XXX_Size ¶
func (m *RequestSyncDevicesRequest) XXX_Size() int
func (*RequestSyncDevicesRequest) XXX_Unmarshal ¶
func (m *RequestSyncDevicesRequest) XXX_Unmarshal(b []byte) error
type RequestSyncDevicesResponse ¶
type RequestSyncDevicesResponse struct { XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Response type for the [`RequestSyncDevices`](#google.home.graph.v1.HomeGraphApiService.RequestSyncDevices) call.
Intentionally empty upon success. An HTTP response code is returned with more details upon failure.
func (*RequestSyncDevicesResponse) Descriptor ¶
func (*RequestSyncDevicesResponse) Descriptor() ([]byte, []int)
func (*RequestSyncDevicesResponse) ProtoMessage ¶
func (*RequestSyncDevicesResponse) ProtoMessage()
func (*RequestSyncDevicesResponse) Reset ¶
func (m *RequestSyncDevicesResponse) Reset()
func (*RequestSyncDevicesResponse) String ¶
func (m *RequestSyncDevicesResponse) String() string
func (*RequestSyncDevicesResponse) XXX_DiscardUnknown ¶
func (m *RequestSyncDevicesResponse) XXX_DiscardUnknown()
func (*RequestSyncDevicesResponse) XXX_Marshal ¶
func (m *RequestSyncDevicesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*RequestSyncDevicesResponse) XXX_Merge ¶
func (m *RequestSyncDevicesResponse) XXX_Merge(src proto.Message)
func (*RequestSyncDevicesResponse) XXX_Size ¶
func (m *RequestSyncDevicesResponse) XXX_Size() int
func (*RequestSyncDevicesResponse) XXX_Unmarshal ¶
func (m *RequestSyncDevicesResponse) XXX_Unmarshal(b []byte) error
type StateAndNotificationPayload ¶
type StateAndNotificationPayload struct { // The devices for updating state and sending notifications. Devices *ReportStateAndNotificationDevice `protobuf:"bytes,1,opt,name=devices,proto3" json:"devices,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Payload containing the state and notification information for devices.
func (*StateAndNotificationPayload) Descriptor ¶
func (*StateAndNotificationPayload) Descriptor() ([]byte, []int)
func (*StateAndNotificationPayload) GetDevices ¶
func (m *StateAndNotificationPayload) GetDevices() *ReportStateAndNotificationDevice
func (*StateAndNotificationPayload) ProtoMessage ¶
func (*StateAndNotificationPayload) ProtoMessage()
func (*StateAndNotificationPayload) Reset ¶
func (m *StateAndNotificationPayload) Reset()
func (*StateAndNotificationPayload) String ¶
func (m *StateAndNotificationPayload) String() string
func (*StateAndNotificationPayload) XXX_DiscardUnknown ¶
func (m *StateAndNotificationPayload) XXX_DiscardUnknown()
func (*StateAndNotificationPayload) XXX_Marshal ¶
func (m *StateAndNotificationPayload) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*StateAndNotificationPayload) XXX_Merge ¶
func (m *StateAndNotificationPayload) XXX_Merge(src proto.Message)
func (*StateAndNotificationPayload) XXX_Size ¶
func (m *StateAndNotificationPayload) XXX_Size() int
func (*StateAndNotificationPayload) XXX_Unmarshal ¶
func (m *StateAndNotificationPayload) XXX_Unmarshal(b []byte) error
type SyncRequest ¶
type SyncRequest struct { // Request ID used for debugging. RequestId string `protobuf:"bytes,1,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"` // Required. Third-party user ID. AgentUserId string `protobuf:"bytes,2,opt,name=agent_user_id,json=agentUserId,proto3" json:"agent_user_id,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Request type for the [`Sync`](#google.home.graph.v1.HomeGraphApiService.Sync) call.
func (*SyncRequest) Descriptor ¶
func (*SyncRequest) Descriptor() ([]byte, []int)
func (*SyncRequest) GetAgentUserId ¶
func (m *SyncRequest) GetAgentUserId() string
func (*SyncRequest) GetRequestId ¶
func (m *SyncRequest) GetRequestId() string
func (*SyncRequest) ProtoMessage ¶
func (*SyncRequest) ProtoMessage()
func (*SyncRequest) Reset ¶
func (m *SyncRequest) Reset()
func (*SyncRequest) String ¶
func (m *SyncRequest) String() string
func (*SyncRequest) XXX_DiscardUnknown ¶
func (m *SyncRequest) XXX_DiscardUnknown()
func (*SyncRequest) XXX_Marshal ¶
func (m *SyncRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*SyncRequest) XXX_Merge ¶
func (m *SyncRequest) XXX_Merge(src proto.Message)
func (*SyncRequest) XXX_Size ¶
func (m *SyncRequest) XXX_Size() int
func (*SyncRequest) XXX_Unmarshal ¶
func (m *SyncRequest) XXX_Unmarshal(b []byte) error
type SyncResponse ¶
type SyncResponse struct { // Request ID used for debugging. Copied from the request. RequestId string `protobuf:"bytes,1,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"` // Devices associated with the third-party user. Payload *SyncResponsePayload `protobuf:"bytes,2,opt,name=payload,proto3" json:"payload,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Response type for the [`Sync`](#google.home.graph.v1.HomeGraphApiService.Sync) call. This should follow the same format as the Google smart home `action.devices.SYNC` [response](https://developers.google.com/assistant/smarthome/reference/intent/sync). # Example
```json
{ "requestId": "ff36a3cc-ec34-11e6-b1a0-64510650abcf", "payload": { "agentUserId": "1836.15267389", "devices": [{ "id": "123", "type": "action.devices.types.OUTLET", "traits": [ "action.devices.traits.OnOff" ], "name": { "defaultNames": ["My Outlet 1234"], "name": "Night light", "nicknames": ["wall plug"] }, "willReportState": false, "deviceInfo": { "manufacturer": "lights-out-inc", "model": "hs1234", "hwVersion": "3.2", "swVersion": "11.4" }, "customData": { "fooValue": 74, "barValue": true, "bazValue": "foo" } }] } }
```
func (*SyncResponse) Descriptor ¶
func (*SyncResponse) Descriptor() ([]byte, []int)
func (*SyncResponse) GetPayload ¶
func (m *SyncResponse) GetPayload() *SyncResponsePayload
func (*SyncResponse) GetRequestId ¶
func (m *SyncResponse) GetRequestId() string
func (*SyncResponse) ProtoMessage ¶
func (*SyncResponse) ProtoMessage()
func (*SyncResponse) Reset ¶
func (m *SyncResponse) Reset()
func (*SyncResponse) String ¶
func (m *SyncResponse) String() string
func (*SyncResponse) XXX_DiscardUnknown ¶
func (m *SyncResponse) XXX_DiscardUnknown()
func (*SyncResponse) XXX_Marshal ¶
func (m *SyncResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*SyncResponse) XXX_Merge ¶
func (m *SyncResponse) XXX_Merge(src proto.Message)
func (*SyncResponse) XXX_Size ¶
func (m *SyncResponse) XXX_Size() int
func (*SyncResponse) XXX_Unmarshal ¶
func (m *SyncResponse) XXX_Unmarshal(b []byte) error
type SyncResponsePayload ¶
type SyncResponsePayload struct { // Third-party user ID AgentUserId string `protobuf:"bytes,1,opt,name=agent_user_id,json=agentUserId,proto3" json:"agent_user_id,omitempty"` // Devices associated with the third-party user. Devices []*Device `protobuf:"bytes,2,rep,name=devices,proto3" json:"devices,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Payload containing device information.
func (*SyncResponsePayload) Descriptor ¶
func (*SyncResponsePayload) Descriptor() ([]byte, []int)
func (*SyncResponsePayload) GetAgentUserId ¶
func (m *SyncResponsePayload) GetAgentUserId() string
func (*SyncResponsePayload) GetDevices ¶
func (m *SyncResponsePayload) GetDevices() []*Device
func (*SyncResponsePayload) ProtoMessage ¶
func (*SyncResponsePayload) ProtoMessage()
func (*SyncResponsePayload) Reset ¶
func (m *SyncResponsePayload) Reset()
func (*SyncResponsePayload) String ¶
func (m *SyncResponsePayload) String() string
func (*SyncResponsePayload) XXX_DiscardUnknown ¶
func (m *SyncResponsePayload) XXX_DiscardUnknown()
func (*SyncResponsePayload) XXX_Marshal ¶
func (m *SyncResponsePayload) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*SyncResponsePayload) XXX_Merge ¶
func (m *SyncResponsePayload) XXX_Merge(src proto.Message)
func (*SyncResponsePayload) XXX_Size ¶
func (m *SyncResponsePayload) XXX_Size() int
func (*SyncResponsePayload) XXX_Unmarshal ¶
func (m *SyncResponsePayload) XXX_Unmarshal(b []byte) error
type UnimplementedHomeGraphApiServiceServer ¶
type UnimplementedHomeGraphApiServiceServer struct { }
UnimplementedHomeGraphApiServiceServer can be embedded to have forward compatible implementations.
func (*UnimplementedHomeGraphApiServiceServer) DeleteAgentUser ¶
func (*UnimplementedHomeGraphApiServiceServer) DeleteAgentUser(ctx context.Context, req *DeleteAgentUserRequest) (*empty.Empty, error)
func (*UnimplementedHomeGraphApiServiceServer) Query ¶
func (*UnimplementedHomeGraphApiServiceServer) Query(ctx context.Context, req *QueryRequest) (*QueryResponse, error)
func (*UnimplementedHomeGraphApiServiceServer) ReportStateAndNotification ¶
func (*UnimplementedHomeGraphApiServiceServer) ReportStateAndNotification(ctx context.Context, req *ReportStateAndNotificationRequest) (*ReportStateAndNotificationResponse, error)
func (*UnimplementedHomeGraphApiServiceServer) RequestSyncDevices ¶
func (*UnimplementedHomeGraphApiServiceServer) RequestSyncDevices(ctx context.Context, req *RequestSyncDevicesRequest) (*RequestSyncDevicesResponse, error)
func (*UnimplementedHomeGraphApiServiceServer) Sync ¶
func (*UnimplementedHomeGraphApiServiceServer) Sync(ctx context.Context, req *SyncRequest) (*SyncResponse, error)