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.
 
 
 

2288 lines
98 KiB

  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // source: google/cloud/iot/v1/device_manager.proto
  3. package iot // import "google.golang.org/genproto/googleapis/cloud/iot/v1"
  4. import proto "github.com/golang/protobuf/proto"
  5. import fmt "fmt"
  6. import math "math"
  7. import _ "github.com/golang/protobuf/ptypes/duration"
  8. import empty "github.com/golang/protobuf/ptypes/empty"
  9. import _ "github.com/golang/protobuf/ptypes/timestamp"
  10. import _ "google.golang.org/genproto/googleapis/api/annotations"
  11. import v1 "google.golang.org/genproto/googleapis/iam/v1"
  12. import _ "google.golang.org/genproto/googleapis/rpc/status"
  13. import field_mask "google.golang.org/genproto/protobuf/field_mask"
  14. import (
  15. context "golang.org/x/net/context"
  16. grpc "google.golang.org/grpc"
  17. )
  18. // Reference imports to suppress errors if they are not otherwise used.
  19. var _ = proto.Marshal
  20. var _ = fmt.Errorf
  21. var _ = math.Inf
  22. // This is a compile-time assertion to ensure that this generated file
  23. // is compatible with the proto package it is being compiled against.
  24. // A compilation error at this line likely means your copy of the
  25. // proto package needs to be updated.
  26. const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
  27. // Request for `CreateDeviceRegistry`.
  28. type CreateDeviceRegistryRequest struct {
  29. // The project and cloud region where this device registry must be created.
  30. // For example, `projects/example-project/locations/us-central1`.
  31. Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
  32. // The device registry. The field `name` must be empty. The server will
  33. // generate that field from the device registry `id` provided and the
  34. // `parent` field.
  35. DeviceRegistry *DeviceRegistry `protobuf:"bytes,2,opt,name=device_registry,json=deviceRegistry,proto3" json:"device_registry,omitempty"`
  36. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  37. XXX_unrecognized []byte `json:"-"`
  38. XXX_sizecache int32 `json:"-"`
  39. }
  40. func (m *CreateDeviceRegistryRequest) Reset() { *m = CreateDeviceRegistryRequest{} }
  41. func (m *CreateDeviceRegistryRequest) String() string { return proto.CompactTextString(m) }
  42. func (*CreateDeviceRegistryRequest) ProtoMessage() {}
  43. func (*CreateDeviceRegistryRequest) Descriptor() ([]byte, []int) {
  44. return fileDescriptor_device_manager_8cffe4ebefc093fd, []int{0}
  45. }
  46. func (m *CreateDeviceRegistryRequest) XXX_Unmarshal(b []byte) error {
  47. return xxx_messageInfo_CreateDeviceRegistryRequest.Unmarshal(m, b)
  48. }
  49. func (m *CreateDeviceRegistryRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  50. return xxx_messageInfo_CreateDeviceRegistryRequest.Marshal(b, m, deterministic)
  51. }
  52. func (dst *CreateDeviceRegistryRequest) XXX_Merge(src proto.Message) {
  53. xxx_messageInfo_CreateDeviceRegistryRequest.Merge(dst, src)
  54. }
  55. func (m *CreateDeviceRegistryRequest) XXX_Size() int {
  56. return xxx_messageInfo_CreateDeviceRegistryRequest.Size(m)
  57. }
  58. func (m *CreateDeviceRegistryRequest) XXX_DiscardUnknown() {
  59. xxx_messageInfo_CreateDeviceRegistryRequest.DiscardUnknown(m)
  60. }
  61. var xxx_messageInfo_CreateDeviceRegistryRequest proto.InternalMessageInfo
  62. func (m *CreateDeviceRegistryRequest) GetParent() string {
  63. if m != nil {
  64. return m.Parent
  65. }
  66. return ""
  67. }
  68. func (m *CreateDeviceRegistryRequest) GetDeviceRegistry() *DeviceRegistry {
  69. if m != nil {
  70. return m.DeviceRegistry
  71. }
  72. return nil
  73. }
  74. // Request for `GetDeviceRegistry`.
  75. type GetDeviceRegistryRequest struct {
  76. // The name of the device registry. For example,
  77. // `projects/example-project/locations/us-central1/registries/my-registry`.
  78. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
  79. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  80. XXX_unrecognized []byte `json:"-"`
  81. XXX_sizecache int32 `json:"-"`
  82. }
  83. func (m *GetDeviceRegistryRequest) Reset() { *m = GetDeviceRegistryRequest{} }
  84. func (m *GetDeviceRegistryRequest) String() string { return proto.CompactTextString(m) }
  85. func (*GetDeviceRegistryRequest) ProtoMessage() {}
  86. func (*GetDeviceRegistryRequest) Descriptor() ([]byte, []int) {
  87. return fileDescriptor_device_manager_8cffe4ebefc093fd, []int{1}
  88. }
  89. func (m *GetDeviceRegistryRequest) XXX_Unmarshal(b []byte) error {
  90. return xxx_messageInfo_GetDeviceRegistryRequest.Unmarshal(m, b)
  91. }
  92. func (m *GetDeviceRegistryRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  93. return xxx_messageInfo_GetDeviceRegistryRequest.Marshal(b, m, deterministic)
  94. }
  95. func (dst *GetDeviceRegistryRequest) XXX_Merge(src proto.Message) {
  96. xxx_messageInfo_GetDeviceRegistryRequest.Merge(dst, src)
  97. }
  98. func (m *GetDeviceRegistryRequest) XXX_Size() int {
  99. return xxx_messageInfo_GetDeviceRegistryRequest.Size(m)
  100. }
  101. func (m *GetDeviceRegistryRequest) XXX_DiscardUnknown() {
  102. xxx_messageInfo_GetDeviceRegistryRequest.DiscardUnknown(m)
  103. }
  104. var xxx_messageInfo_GetDeviceRegistryRequest proto.InternalMessageInfo
  105. func (m *GetDeviceRegistryRequest) GetName() string {
  106. if m != nil {
  107. return m.Name
  108. }
  109. return ""
  110. }
  111. // Request for `DeleteDeviceRegistry`.
  112. type DeleteDeviceRegistryRequest struct {
  113. // The name of the device registry. For example,
  114. // `projects/example-project/locations/us-central1/registries/my-registry`.
  115. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
  116. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  117. XXX_unrecognized []byte `json:"-"`
  118. XXX_sizecache int32 `json:"-"`
  119. }
  120. func (m *DeleteDeviceRegistryRequest) Reset() { *m = DeleteDeviceRegistryRequest{} }
  121. func (m *DeleteDeviceRegistryRequest) String() string { return proto.CompactTextString(m) }
  122. func (*DeleteDeviceRegistryRequest) ProtoMessage() {}
  123. func (*DeleteDeviceRegistryRequest) Descriptor() ([]byte, []int) {
  124. return fileDescriptor_device_manager_8cffe4ebefc093fd, []int{2}
  125. }
  126. func (m *DeleteDeviceRegistryRequest) XXX_Unmarshal(b []byte) error {
  127. return xxx_messageInfo_DeleteDeviceRegistryRequest.Unmarshal(m, b)
  128. }
  129. func (m *DeleteDeviceRegistryRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  130. return xxx_messageInfo_DeleteDeviceRegistryRequest.Marshal(b, m, deterministic)
  131. }
  132. func (dst *DeleteDeviceRegistryRequest) XXX_Merge(src proto.Message) {
  133. xxx_messageInfo_DeleteDeviceRegistryRequest.Merge(dst, src)
  134. }
  135. func (m *DeleteDeviceRegistryRequest) XXX_Size() int {
  136. return xxx_messageInfo_DeleteDeviceRegistryRequest.Size(m)
  137. }
  138. func (m *DeleteDeviceRegistryRequest) XXX_DiscardUnknown() {
  139. xxx_messageInfo_DeleteDeviceRegistryRequest.DiscardUnknown(m)
  140. }
  141. var xxx_messageInfo_DeleteDeviceRegistryRequest proto.InternalMessageInfo
  142. func (m *DeleteDeviceRegistryRequest) GetName() string {
  143. if m != nil {
  144. return m.Name
  145. }
  146. return ""
  147. }
  148. // Request for `UpdateDeviceRegistry`.
  149. type UpdateDeviceRegistryRequest struct {
  150. // The new values for the device registry. The `id` field must be empty, and
  151. // the `name` field must indicate the path of the resource. For example,
  152. // `projects/example-project/locations/us-central1/registries/my-registry`.
  153. DeviceRegistry *DeviceRegistry `protobuf:"bytes,1,opt,name=device_registry,json=deviceRegistry,proto3" json:"device_registry,omitempty"`
  154. // Only updates the `device_registry` fields indicated by this mask.
  155. // The field mask must not be empty, and it must not contain fields that
  156. // are immutable or only set by the server.
  157. // Mutable top-level fields: `event_notification_config`, `http_config`,
  158. // `mqtt_config`, and `state_notification_config`.
  159. UpdateMask *field_mask.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"`
  160. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  161. XXX_unrecognized []byte `json:"-"`
  162. XXX_sizecache int32 `json:"-"`
  163. }
  164. func (m *UpdateDeviceRegistryRequest) Reset() { *m = UpdateDeviceRegistryRequest{} }
  165. func (m *UpdateDeviceRegistryRequest) String() string { return proto.CompactTextString(m) }
  166. func (*UpdateDeviceRegistryRequest) ProtoMessage() {}
  167. func (*UpdateDeviceRegistryRequest) Descriptor() ([]byte, []int) {
  168. return fileDescriptor_device_manager_8cffe4ebefc093fd, []int{3}
  169. }
  170. func (m *UpdateDeviceRegistryRequest) XXX_Unmarshal(b []byte) error {
  171. return xxx_messageInfo_UpdateDeviceRegistryRequest.Unmarshal(m, b)
  172. }
  173. func (m *UpdateDeviceRegistryRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  174. return xxx_messageInfo_UpdateDeviceRegistryRequest.Marshal(b, m, deterministic)
  175. }
  176. func (dst *UpdateDeviceRegistryRequest) XXX_Merge(src proto.Message) {
  177. xxx_messageInfo_UpdateDeviceRegistryRequest.Merge(dst, src)
  178. }
  179. func (m *UpdateDeviceRegistryRequest) XXX_Size() int {
  180. return xxx_messageInfo_UpdateDeviceRegistryRequest.Size(m)
  181. }
  182. func (m *UpdateDeviceRegistryRequest) XXX_DiscardUnknown() {
  183. xxx_messageInfo_UpdateDeviceRegistryRequest.DiscardUnknown(m)
  184. }
  185. var xxx_messageInfo_UpdateDeviceRegistryRequest proto.InternalMessageInfo
  186. func (m *UpdateDeviceRegistryRequest) GetDeviceRegistry() *DeviceRegistry {
  187. if m != nil {
  188. return m.DeviceRegistry
  189. }
  190. return nil
  191. }
  192. func (m *UpdateDeviceRegistryRequest) GetUpdateMask() *field_mask.FieldMask {
  193. if m != nil {
  194. return m.UpdateMask
  195. }
  196. return nil
  197. }
  198. // Request for `ListDeviceRegistries`.
  199. type ListDeviceRegistriesRequest struct {
  200. // The project and cloud region path. For example,
  201. // `projects/example-project/locations/us-central1`.
  202. Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
  203. // The maximum number of registries to return in the response. If this value
  204. // is zero, the service will select a default size. A call may return fewer
  205. // objects than requested. A non-empty `next_page_token` in the response
  206. // indicates that more data is available.
  207. PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
  208. // The value returned by the last `ListDeviceRegistriesResponse`; indicates
  209. // that this is a continuation of a prior `ListDeviceRegistries` call and
  210. // the system should return the next page of data.
  211. PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
  212. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  213. XXX_unrecognized []byte `json:"-"`
  214. XXX_sizecache int32 `json:"-"`
  215. }
  216. func (m *ListDeviceRegistriesRequest) Reset() { *m = ListDeviceRegistriesRequest{} }
  217. func (m *ListDeviceRegistriesRequest) String() string { return proto.CompactTextString(m) }
  218. func (*ListDeviceRegistriesRequest) ProtoMessage() {}
  219. func (*ListDeviceRegistriesRequest) Descriptor() ([]byte, []int) {
  220. return fileDescriptor_device_manager_8cffe4ebefc093fd, []int{4}
  221. }
  222. func (m *ListDeviceRegistriesRequest) XXX_Unmarshal(b []byte) error {
  223. return xxx_messageInfo_ListDeviceRegistriesRequest.Unmarshal(m, b)
  224. }
  225. func (m *ListDeviceRegistriesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  226. return xxx_messageInfo_ListDeviceRegistriesRequest.Marshal(b, m, deterministic)
  227. }
  228. func (dst *ListDeviceRegistriesRequest) XXX_Merge(src proto.Message) {
  229. xxx_messageInfo_ListDeviceRegistriesRequest.Merge(dst, src)
  230. }
  231. func (m *ListDeviceRegistriesRequest) XXX_Size() int {
  232. return xxx_messageInfo_ListDeviceRegistriesRequest.Size(m)
  233. }
  234. func (m *ListDeviceRegistriesRequest) XXX_DiscardUnknown() {
  235. xxx_messageInfo_ListDeviceRegistriesRequest.DiscardUnknown(m)
  236. }
  237. var xxx_messageInfo_ListDeviceRegistriesRequest proto.InternalMessageInfo
  238. func (m *ListDeviceRegistriesRequest) GetParent() string {
  239. if m != nil {
  240. return m.Parent
  241. }
  242. return ""
  243. }
  244. func (m *ListDeviceRegistriesRequest) GetPageSize() int32 {
  245. if m != nil {
  246. return m.PageSize
  247. }
  248. return 0
  249. }
  250. func (m *ListDeviceRegistriesRequest) GetPageToken() string {
  251. if m != nil {
  252. return m.PageToken
  253. }
  254. return ""
  255. }
  256. // Response for `ListDeviceRegistries`.
  257. type ListDeviceRegistriesResponse struct {
  258. // The registries that matched the query.
  259. DeviceRegistries []*DeviceRegistry `protobuf:"bytes,1,rep,name=device_registries,json=deviceRegistries,proto3" json:"device_registries,omitempty"`
  260. // If not empty, indicates that there may be more registries that match the
  261. // request; this value should be passed in a new
  262. // `ListDeviceRegistriesRequest`.
  263. NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
  264. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  265. XXX_unrecognized []byte `json:"-"`
  266. XXX_sizecache int32 `json:"-"`
  267. }
  268. func (m *ListDeviceRegistriesResponse) Reset() { *m = ListDeviceRegistriesResponse{} }
  269. func (m *ListDeviceRegistriesResponse) String() string { return proto.CompactTextString(m) }
  270. func (*ListDeviceRegistriesResponse) ProtoMessage() {}
  271. func (*ListDeviceRegistriesResponse) Descriptor() ([]byte, []int) {
  272. return fileDescriptor_device_manager_8cffe4ebefc093fd, []int{5}
  273. }
  274. func (m *ListDeviceRegistriesResponse) XXX_Unmarshal(b []byte) error {
  275. return xxx_messageInfo_ListDeviceRegistriesResponse.Unmarshal(m, b)
  276. }
  277. func (m *ListDeviceRegistriesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  278. return xxx_messageInfo_ListDeviceRegistriesResponse.Marshal(b, m, deterministic)
  279. }
  280. func (dst *ListDeviceRegistriesResponse) XXX_Merge(src proto.Message) {
  281. xxx_messageInfo_ListDeviceRegistriesResponse.Merge(dst, src)
  282. }
  283. func (m *ListDeviceRegistriesResponse) XXX_Size() int {
  284. return xxx_messageInfo_ListDeviceRegistriesResponse.Size(m)
  285. }
  286. func (m *ListDeviceRegistriesResponse) XXX_DiscardUnknown() {
  287. xxx_messageInfo_ListDeviceRegistriesResponse.DiscardUnknown(m)
  288. }
  289. var xxx_messageInfo_ListDeviceRegistriesResponse proto.InternalMessageInfo
  290. func (m *ListDeviceRegistriesResponse) GetDeviceRegistries() []*DeviceRegistry {
  291. if m != nil {
  292. return m.DeviceRegistries
  293. }
  294. return nil
  295. }
  296. func (m *ListDeviceRegistriesResponse) GetNextPageToken() string {
  297. if m != nil {
  298. return m.NextPageToken
  299. }
  300. return ""
  301. }
  302. // Request for `CreateDevice`.
  303. type CreateDeviceRequest struct {
  304. // The name of the device registry where this device should be created.
  305. // For example,
  306. // `projects/example-project/locations/us-central1/registries/my-registry`.
  307. Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
  308. // The device registration details. The field `name` must be empty. The server
  309. // generates `name` from the device registry `id` and the
  310. // `parent` field.
  311. Device *Device `protobuf:"bytes,2,opt,name=device,proto3" json:"device,omitempty"`
  312. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  313. XXX_unrecognized []byte `json:"-"`
  314. XXX_sizecache int32 `json:"-"`
  315. }
  316. func (m *CreateDeviceRequest) Reset() { *m = CreateDeviceRequest{} }
  317. func (m *CreateDeviceRequest) String() string { return proto.CompactTextString(m) }
  318. func (*CreateDeviceRequest) ProtoMessage() {}
  319. func (*CreateDeviceRequest) Descriptor() ([]byte, []int) {
  320. return fileDescriptor_device_manager_8cffe4ebefc093fd, []int{6}
  321. }
  322. func (m *CreateDeviceRequest) XXX_Unmarshal(b []byte) error {
  323. return xxx_messageInfo_CreateDeviceRequest.Unmarshal(m, b)
  324. }
  325. func (m *CreateDeviceRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  326. return xxx_messageInfo_CreateDeviceRequest.Marshal(b, m, deterministic)
  327. }
  328. func (dst *CreateDeviceRequest) XXX_Merge(src proto.Message) {
  329. xxx_messageInfo_CreateDeviceRequest.Merge(dst, src)
  330. }
  331. func (m *CreateDeviceRequest) XXX_Size() int {
  332. return xxx_messageInfo_CreateDeviceRequest.Size(m)
  333. }
  334. func (m *CreateDeviceRequest) XXX_DiscardUnknown() {
  335. xxx_messageInfo_CreateDeviceRequest.DiscardUnknown(m)
  336. }
  337. var xxx_messageInfo_CreateDeviceRequest proto.InternalMessageInfo
  338. func (m *CreateDeviceRequest) GetParent() string {
  339. if m != nil {
  340. return m.Parent
  341. }
  342. return ""
  343. }
  344. func (m *CreateDeviceRequest) GetDevice() *Device {
  345. if m != nil {
  346. return m.Device
  347. }
  348. return nil
  349. }
  350. // Request for `GetDevice`.
  351. type GetDeviceRequest struct {
  352. // The name of the device. For example,
  353. // `projects/p0/locations/us-central1/registries/registry0/devices/device0` or
  354. // `projects/p0/locations/us-central1/registries/registry0/devices/{num_id}`.
  355. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
  356. // The fields of the `Device` resource to be returned in the response. If the
  357. // field mask is unset or empty, all fields are returned.
  358. FieldMask *field_mask.FieldMask `protobuf:"bytes,2,opt,name=field_mask,json=fieldMask,proto3" json:"field_mask,omitempty"`
  359. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  360. XXX_unrecognized []byte `json:"-"`
  361. XXX_sizecache int32 `json:"-"`
  362. }
  363. func (m *GetDeviceRequest) Reset() { *m = GetDeviceRequest{} }
  364. func (m *GetDeviceRequest) String() string { return proto.CompactTextString(m) }
  365. func (*GetDeviceRequest) ProtoMessage() {}
  366. func (*GetDeviceRequest) Descriptor() ([]byte, []int) {
  367. return fileDescriptor_device_manager_8cffe4ebefc093fd, []int{7}
  368. }
  369. func (m *GetDeviceRequest) XXX_Unmarshal(b []byte) error {
  370. return xxx_messageInfo_GetDeviceRequest.Unmarshal(m, b)
  371. }
  372. func (m *GetDeviceRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  373. return xxx_messageInfo_GetDeviceRequest.Marshal(b, m, deterministic)
  374. }
  375. func (dst *GetDeviceRequest) XXX_Merge(src proto.Message) {
  376. xxx_messageInfo_GetDeviceRequest.Merge(dst, src)
  377. }
  378. func (m *GetDeviceRequest) XXX_Size() int {
  379. return xxx_messageInfo_GetDeviceRequest.Size(m)
  380. }
  381. func (m *GetDeviceRequest) XXX_DiscardUnknown() {
  382. xxx_messageInfo_GetDeviceRequest.DiscardUnknown(m)
  383. }
  384. var xxx_messageInfo_GetDeviceRequest proto.InternalMessageInfo
  385. func (m *GetDeviceRequest) GetName() string {
  386. if m != nil {
  387. return m.Name
  388. }
  389. return ""
  390. }
  391. func (m *GetDeviceRequest) GetFieldMask() *field_mask.FieldMask {
  392. if m != nil {
  393. return m.FieldMask
  394. }
  395. return nil
  396. }
  397. // Request for `UpdateDevice`.
  398. type UpdateDeviceRequest struct {
  399. // The new values for the device. The `id` and `num_id` fields must
  400. // be empty, and the field `name` must specify the name path. For example,
  401. // `projects/p0/locations/us-central1/registries/registry0/devices/device0`or
  402. // `projects/p0/locations/us-central1/registries/registry0/devices/{num_id}`.
  403. Device *Device `protobuf:"bytes,2,opt,name=device,proto3" json:"device,omitempty"`
  404. // Only updates the `device` fields indicated by this mask.
  405. // The field mask must not be empty, and it must not contain fields that
  406. // are immutable or only set by the server.
  407. // Mutable top-level fields: `credentials`, `blocked`, and `metadata`
  408. UpdateMask *field_mask.FieldMask `protobuf:"bytes,3,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"`
  409. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  410. XXX_unrecognized []byte `json:"-"`
  411. XXX_sizecache int32 `json:"-"`
  412. }
  413. func (m *UpdateDeviceRequest) Reset() { *m = UpdateDeviceRequest{} }
  414. func (m *UpdateDeviceRequest) String() string { return proto.CompactTextString(m) }
  415. func (*UpdateDeviceRequest) ProtoMessage() {}
  416. func (*UpdateDeviceRequest) Descriptor() ([]byte, []int) {
  417. return fileDescriptor_device_manager_8cffe4ebefc093fd, []int{8}
  418. }
  419. func (m *UpdateDeviceRequest) XXX_Unmarshal(b []byte) error {
  420. return xxx_messageInfo_UpdateDeviceRequest.Unmarshal(m, b)
  421. }
  422. func (m *UpdateDeviceRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  423. return xxx_messageInfo_UpdateDeviceRequest.Marshal(b, m, deterministic)
  424. }
  425. func (dst *UpdateDeviceRequest) XXX_Merge(src proto.Message) {
  426. xxx_messageInfo_UpdateDeviceRequest.Merge(dst, src)
  427. }
  428. func (m *UpdateDeviceRequest) XXX_Size() int {
  429. return xxx_messageInfo_UpdateDeviceRequest.Size(m)
  430. }
  431. func (m *UpdateDeviceRequest) XXX_DiscardUnknown() {
  432. xxx_messageInfo_UpdateDeviceRequest.DiscardUnknown(m)
  433. }
  434. var xxx_messageInfo_UpdateDeviceRequest proto.InternalMessageInfo
  435. func (m *UpdateDeviceRequest) GetDevice() *Device {
  436. if m != nil {
  437. return m.Device
  438. }
  439. return nil
  440. }
  441. func (m *UpdateDeviceRequest) GetUpdateMask() *field_mask.FieldMask {
  442. if m != nil {
  443. return m.UpdateMask
  444. }
  445. return nil
  446. }
  447. // Request for `DeleteDevice`.
  448. type DeleteDeviceRequest struct {
  449. // The name of the device. For example,
  450. // `projects/p0/locations/us-central1/registries/registry0/devices/device0` or
  451. // `projects/p0/locations/us-central1/registries/registry0/devices/{num_id}`.
  452. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
  453. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  454. XXX_unrecognized []byte `json:"-"`
  455. XXX_sizecache int32 `json:"-"`
  456. }
  457. func (m *DeleteDeviceRequest) Reset() { *m = DeleteDeviceRequest{} }
  458. func (m *DeleteDeviceRequest) String() string { return proto.CompactTextString(m) }
  459. func (*DeleteDeviceRequest) ProtoMessage() {}
  460. func (*DeleteDeviceRequest) Descriptor() ([]byte, []int) {
  461. return fileDescriptor_device_manager_8cffe4ebefc093fd, []int{9}
  462. }
  463. func (m *DeleteDeviceRequest) XXX_Unmarshal(b []byte) error {
  464. return xxx_messageInfo_DeleteDeviceRequest.Unmarshal(m, b)
  465. }
  466. func (m *DeleteDeviceRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  467. return xxx_messageInfo_DeleteDeviceRequest.Marshal(b, m, deterministic)
  468. }
  469. func (dst *DeleteDeviceRequest) XXX_Merge(src proto.Message) {
  470. xxx_messageInfo_DeleteDeviceRequest.Merge(dst, src)
  471. }
  472. func (m *DeleteDeviceRequest) XXX_Size() int {
  473. return xxx_messageInfo_DeleteDeviceRequest.Size(m)
  474. }
  475. func (m *DeleteDeviceRequest) XXX_DiscardUnknown() {
  476. xxx_messageInfo_DeleteDeviceRequest.DiscardUnknown(m)
  477. }
  478. var xxx_messageInfo_DeleteDeviceRequest proto.InternalMessageInfo
  479. func (m *DeleteDeviceRequest) GetName() string {
  480. if m != nil {
  481. return m.Name
  482. }
  483. return ""
  484. }
  485. // Request for `ListDevices`.
  486. type ListDevicesRequest struct {
  487. // The device registry path. Required. For example,
  488. // `projects/my-project/locations/us-central1/registries/my-registry`.
  489. Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
  490. // A list of device numeric IDs. If empty, this field is ignored. Maximum
  491. // IDs: 10,000.
  492. DeviceNumIds []uint64 `protobuf:"varint,2,rep,packed,name=device_num_ids,json=deviceNumIds,proto3" json:"device_num_ids,omitempty"`
  493. // A list of device string IDs. For example, `['device0', 'device12']`.
  494. // If empty, this field is ignored. Maximum IDs: 10,000
  495. DeviceIds []string `protobuf:"bytes,3,rep,name=device_ids,json=deviceIds,proto3" json:"device_ids,omitempty"`
  496. // The fields of the `Device` resource to be returned in the response. The
  497. // fields `id` and `num_id` are always returned, along with any
  498. // other fields specified.
  499. FieldMask *field_mask.FieldMask `protobuf:"bytes,4,opt,name=field_mask,json=fieldMask,proto3" json:"field_mask,omitempty"`
  500. // Options related to gateways.
  501. GatewayListOptions *GatewayListOptions `protobuf:"bytes,6,opt,name=gateway_list_options,json=gatewayListOptions,proto3" json:"gateway_list_options,omitempty"`
  502. // The maximum number of devices to return in the response. If this value
  503. // is zero, the service will select a default size. A call may return fewer
  504. // objects than requested. A non-empty `next_page_token` in the response
  505. // indicates that more data is available.
  506. PageSize int32 `protobuf:"varint,100,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
  507. // The value returned by the last `ListDevicesResponse`; indicates
  508. // that this is a continuation of a prior `ListDevices` call and
  509. // the system should return the next page of data.
  510. PageToken string `protobuf:"bytes,101,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
  511. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  512. XXX_unrecognized []byte `json:"-"`
  513. XXX_sizecache int32 `json:"-"`
  514. }
  515. func (m *ListDevicesRequest) Reset() { *m = ListDevicesRequest{} }
  516. func (m *ListDevicesRequest) String() string { return proto.CompactTextString(m) }
  517. func (*ListDevicesRequest) ProtoMessage() {}
  518. func (*ListDevicesRequest) Descriptor() ([]byte, []int) {
  519. return fileDescriptor_device_manager_8cffe4ebefc093fd, []int{10}
  520. }
  521. func (m *ListDevicesRequest) XXX_Unmarshal(b []byte) error {
  522. return xxx_messageInfo_ListDevicesRequest.Unmarshal(m, b)
  523. }
  524. func (m *ListDevicesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  525. return xxx_messageInfo_ListDevicesRequest.Marshal(b, m, deterministic)
  526. }
  527. func (dst *ListDevicesRequest) XXX_Merge(src proto.Message) {
  528. xxx_messageInfo_ListDevicesRequest.Merge(dst, src)
  529. }
  530. func (m *ListDevicesRequest) XXX_Size() int {
  531. return xxx_messageInfo_ListDevicesRequest.Size(m)
  532. }
  533. func (m *ListDevicesRequest) XXX_DiscardUnknown() {
  534. xxx_messageInfo_ListDevicesRequest.DiscardUnknown(m)
  535. }
  536. var xxx_messageInfo_ListDevicesRequest proto.InternalMessageInfo
  537. func (m *ListDevicesRequest) GetParent() string {
  538. if m != nil {
  539. return m.Parent
  540. }
  541. return ""
  542. }
  543. func (m *ListDevicesRequest) GetDeviceNumIds() []uint64 {
  544. if m != nil {
  545. return m.DeviceNumIds
  546. }
  547. return nil
  548. }
  549. func (m *ListDevicesRequest) GetDeviceIds() []string {
  550. if m != nil {
  551. return m.DeviceIds
  552. }
  553. return nil
  554. }
  555. func (m *ListDevicesRequest) GetFieldMask() *field_mask.FieldMask {
  556. if m != nil {
  557. return m.FieldMask
  558. }
  559. return nil
  560. }
  561. func (m *ListDevicesRequest) GetGatewayListOptions() *GatewayListOptions {
  562. if m != nil {
  563. return m.GatewayListOptions
  564. }
  565. return nil
  566. }
  567. func (m *ListDevicesRequest) GetPageSize() int32 {
  568. if m != nil {
  569. return m.PageSize
  570. }
  571. return 0
  572. }
  573. func (m *ListDevicesRequest) GetPageToken() string {
  574. if m != nil {
  575. return m.PageToken
  576. }
  577. return ""
  578. }
  579. // Options for limiting the list based on gateway type and associations.
  580. type GatewayListOptions struct {
  581. // If not set, all devices and gateways are returned. If set, the list is
  582. // filtered based on gateway type and associations.
  583. //
  584. // Types that are valid to be assigned to Filter:
  585. // *GatewayListOptions_GatewayType
  586. // *GatewayListOptions_AssociationsGatewayId
  587. // *GatewayListOptions_AssociationsDeviceId
  588. Filter isGatewayListOptions_Filter `protobuf_oneof:"filter"`
  589. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  590. XXX_unrecognized []byte `json:"-"`
  591. XXX_sizecache int32 `json:"-"`
  592. }
  593. func (m *GatewayListOptions) Reset() { *m = GatewayListOptions{} }
  594. func (m *GatewayListOptions) String() string { return proto.CompactTextString(m) }
  595. func (*GatewayListOptions) ProtoMessage() {}
  596. func (*GatewayListOptions) Descriptor() ([]byte, []int) {
  597. return fileDescriptor_device_manager_8cffe4ebefc093fd, []int{11}
  598. }
  599. func (m *GatewayListOptions) XXX_Unmarshal(b []byte) error {
  600. return xxx_messageInfo_GatewayListOptions.Unmarshal(m, b)
  601. }
  602. func (m *GatewayListOptions) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  603. return xxx_messageInfo_GatewayListOptions.Marshal(b, m, deterministic)
  604. }
  605. func (dst *GatewayListOptions) XXX_Merge(src proto.Message) {
  606. xxx_messageInfo_GatewayListOptions.Merge(dst, src)
  607. }
  608. func (m *GatewayListOptions) XXX_Size() int {
  609. return xxx_messageInfo_GatewayListOptions.Size(m)
  610. }
  611. func (m *GatewayListOptions) XXX_DiscardUnknown() {
  612. xxx_messageInfo_GatewayListOptions.DiscardUnknown(m)
  613. }
  614. var xxx_messageInfo_GatewayListOptions proto.InternalMessageInfo
  615. type isGatewayListOptions_Filter interface {
  616. isGatewayListOptions_Filter()
  617. }
  618. type GatewayListOptions_GatewayType struct {
  619. GatewayType GatewayType `protobuf:"varint,1,opt,name=gateway_type,json=gatewayType,proto3,enum=google.cloud.iot.v1.GatewayType,oneof"`
  620. }
  621. type GatewayListOptions_AssociationsGatewayId struct {
  622. AssociationsGatewayId string `protobuf:"bytes,2,opt,name=associations_gateway_id,json=associationsGatewayId,proto3,oneof"`
  623. }
  624. type GatewayListOptions_AssociationsDeviceId struct {
  625. AssociationsDeviceId string `protobuf:"bytes,3,opt,name=associations_device_id,json=associationsDeviceId,proto3,oneof"`
  626. }
  627. func (*GatewayListOptions_GatewayType) isGatewayListOptions_Filter() {}
  628. func (*GatewayListOptions_AssociationsGatewayId) isGatewayListOptions_Filter() {}
  629. func (*GatewayListOptions_AssociationsDeviceId) isGatewayListOptions_Filter() {}
  630. func (m *GatewayListOptions) GetFilter() isGatewayListOptions_Filter {
  631. if m != nil {
  632. return m.Filter
  633. }
  634. return nil
  635. }
  636. func (m *GatewayListOptions) GetGatewayType() GatewayType {
  637. if x, ok := m.GetFilter().(*GatewayListOptions_GatewayType); ok {
  638. return x.GatewayType
  639. }
  640. return GatewayType_GATEWAY_TYPE_UNSPECIFIED
  641. }
  642. func (m *GatewayListOptions) GetAssociationsGatewayId() string {
  643. if x, ok := m.GetFilter().(*GatewayListOptions_AssociationsGatewayId); ok {
  644. return x.AssociationsGatewayId
  645. }
  646. return ""
  647. }
  648. func (m *GatewayListOptions) GetAssociationsDeviceId() string {
  649. if x, ok := m.GetFilter().(*GatewayListOptions_AssociationsDeviceId); ok {
  650. return x.AssociationsDeviceId
  651. }
  652. return ""
  653. }
  654. // XXX_OneofFuncs is for the internal use of the proto package.
  655. func (*GatewayListOptions) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {
  656. return _GatewayListOptions_OneofMarshaler, _GatewayListOptions_OneofUnmarshaler, _GatewayListOptions_OneofSizer, []interface{}{
  657. (*GatewayListOptions_GatewayType)(nil),
  658. (*GatewayListOptions_AssociationsGatewayId)(nil),
  659. (*GatewayListOptions_AssociationsDeviceId)(nil),
  660. }
  661. }
  662. func _GatewayListOptions_OneofMarshaler(msg proto.Message, b *proto.Buffer) error {
  663. m := msg.(*GatewayListOptions)
  664. // filter
  665. switch x := m.Filter.(type) {
  666. case *GatewayListOptions_GatewayType:
  667. b.EncodeVarint(1<<3 | proto.WireVarint)
  668. b.EncodeVarint(uint64(x.GatewayType))
  669. case *GatewayListOptions_AssociationsGatewayId:
  670. b.EncodeVarint(2<<3 | proto.WireBytes)
  671. b.EncodeStringBytes(x.AssociationsGatewayId)
  672. case *GatewayListOptions_AssociationsDeviceId:
  673. b.EncodeVarint(3<<3 | proto.WireBytes)
  674. b.EncodeStringBytes(x.AssociationsDeviceId)
  675. case nil:
  676. default:
  677. return fmt.Errorf("GatewayListOptions.Filter has unexpected type %T", x)
  678. }
  679. return nil
  680. }
  681. func _GatewayListOptions_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) {
  682. m := msg.(*GatewayListOptions)
  683. switch tag {
  684. case 1: // filter.gateway_type
  685. if wire != proto.WireVarint {
  686. return true, proto.ErrInternalBadWireType
  687. }
  688. x, err := b.DecodeVarint()
  689. m.Filter = &GatewayListOptions_GatewayType{GatewayType(x)}
  690. return true, err
  691. case 2: // filter.associations_gateway_id
  692. if wire != proto.WireBytes {
  693. return true, proto.ErrInternalBadWireType
  694. }
  695. x, err := b.DecodeStringBytes()
  696. m.Filter = &GatewayListOptions_AssociationsGatewayId{x}
  697. return true, err
  698. case 3: // filter.associations_device_id
  699. if wire != proto.WireBytes {
  700. return true, proto.ErrInternalBadWireType
  701. }
  702. x, err := b.DecodeStringBytes()
  703. m.Filter = &GatewayListOptions_AssociationsDeviceId{x}
  704. return true, err
  705. default:
  706. return false, nil
  707. }
  708. }
  709. func _GatewayListOptions_OneofSizer(msg proto.Message) (n int) {
  710. m := msg.(*GatewayListOptions)
  711. // filter
  712. switch x := m.Filter.(type) {
  713. case *GatewayListOptions_GatewayType:
  714. n += 1 // tag and wire
  715. n += proto.SizeVarint(uint64(x.GatewayType))
  716. case *GatewayListOptions_AssociationsGatewayId:
  717. n += 1 // tag and wire
  718. n += proto.SizeVarint(uint64(len(x.AssociationsGatewayId)))
  719. n += len(x.AssociationsGatewayId)
  720. case *GatewayListOptions_AssociationsDeviceId:
  721. n += 1 // tag and wire
  722. n += proto.SizeVarint(uint64(len(x.AssociationsDeviceId)))
  723. n += len(x.AssociationsDeviceId)
  724. case nil:
  725. default:
  726. panic(fmt.Sprintf("proto: unexpected type %T in oneof", x))
  727. }
  728. return n
  729. }
  730. // Response for `ListDevices`.
  731. type ListDevicesResponse struct {
  732. // The devices that match the request.
  733. Devices []*Device `protobuf:"bytes,1,rep,name=devices,proto3" json:"devices,omitempty"`
  734. // If not empty, indicates that there may be more devices that match the
  735. // request; this value should be passed in a new `ListDevicesRequest`.
  736. NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
  737. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  738. XXX_unrecognized []byte `json:"-"`
  739. XXX_sizecache int32 `json:"-"`
  740. }
  741. func (m *ListDevicesResponse) Reset() { *m = ListDevicesResponse{} }
  742. func (m *ListDevicesResponse) String() string { return proto.CompactTextString(m) }
  743. func (*ListDevicesResponse) ProtoMessage() {}
  744. func (*ListDevicesResponse) Descriptor() ([]byte, []int) {
  745. return fileDescriptor_device_manager_8cffe4ebefc093fd, []int{12}
  746. }
  747. func (m *ListDevicesResponse) XXX_Unmarshal(b []byte) error {
  748. return xxx_messageInfo_ListDevicesResponse.Unmarshal(m, b)
  749. }
  750. func (m *ListDevicesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  751. return xxx_messageInfo_ListDevicesResponse.Marshal(b, m, deterministic)
  752. }
  753. func (dst *ListDevicesResponse) XXX_Merge(src proto.Message) {
  754. xxx_messageInfo_ListDevicesResponse.Merge(dst, src)
  755. }
  756. func (m *ListDevicesResponse) XXX_Size() int {
  757. return xxx_messageInfo_ListDevicesResponse.Size(m)
  758. }
  759. func (m *ListDevicesResponse) XXX_DiscardUnknown() {
  760. xxx_messageInfo_ListDevicesResponse.DiscardUnknown(m)
  761. }
  762. var xxx_messageInfo_ListDevicesResponse proto.InternalMessageInfo
  763. func (m *ListDevicesResponse) GetDevices() []*Device {
  764. if m != nil {
  765. return m.Devices
  766. }
  767. return nil
  768. }
  769. func (m *ListDevicesResponse) GetNextPageToken() string {
  770. if m != nil {
  771. return m.NextPageToken
  772. }
  773. return ""
  774. }
  775. // Request for `ModifyCloudToDeviceConfig`.
  776. type ModifyCloudToDeviceConfigRequest struct {
  777. // The name of the device. For example,
  778. // `projects/p0/locations/us-central1/registries/registry0/devices/device0` or
  779. // `projects/p0/locations/us-central1/registries/registry0/devices/{num_id}`.
  780. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
  781. // The version number to update. If this value is zero, it will not check the
  782. // version number of the server and will always update the current version;
  783. // otherwise, this update will fail if the version number found on the server
  784. // does not match this version number. This is used to support multiple
  785. // simultaneous updates without losing data.
  786. VersionToUpdate int64 `protobuf:"varint,2,opt,name=version_to_update,json=versionToUpdate,proto3" json:"version_to_update,omitempty"`
  787. // The configuration data for the device.
  788. BinaryData []byte `protobuf:"bytes,3,opt,name=binary_data,json=binaryData,proto3" json:"binary_data,omitempty"`
  789. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  790. XXX_unrecognized []byte `json:"-"`
  791. XXX_sizecache int32 `json:"-"`
  792. }
  793. func (m *ModifyCloudToDeviceConfigRequest) Reset() { *m = ModifyCloudToDeviceConfigRequest{} }
  794. func (m *ModifyCloudToDeviceConfigRequest) String() string { return proto.CompactTextString(m) }
  795. func (*ModifyCloudToDeviceConfigRequest) ProtoMessage() {}
  796. func (*ModifyCloudToDeviceConfigRequest) Descriptor() ([]byte, []int) {
  797. return fileDescriptor_device_manager_8cffe4ebefc093fd, []int{13}
  798. }
  799. func (m *ModifyCloudToDeviceConfigRequest) XXX_Unmarshal(b []byte) error {
  800. return xxx_messageInfo_ModifyCloudToDeviceConfigRequest.Unmarshal(m, b)
  801. }
  802. func (m *ModifyCloudToDeviceConfigRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  803. return xxx_messageInfo_ModifyCloudToDeviceConfigRequest.Marshal(b, m, deterministic)
  804. }
  805. func (dst *ModifyCloudToDeviceConfigRequest) XXX_Merge(src proto.Message) {
  806. xxx_messageInfo_ModifyCloudToDeviceConfigRequest.Merge(dst, src)
  807. }
  808. func (m *ModifyCloudToDeviceConfigRequest) XXX_Size() int {
  809. return xxx_messageInfo_ModifyCloudToDeviceConfigRequest.Size(m)
  810. }
  811. func (m *ModifyCloudToDeviceConfigRequest) XXX_DiscardUnknown() {
  812. xxx_messageInfo_ModifyCloudToDeviceConfigRequest.DiscardUnknown(m)
  813. }
  814. var xxx_messageInfo_ModifyCloudToDeviceConfigRequest proto.InternalMessageInfo
  815. func (m *ModifyCloudToDeviceConfigRequest) GetName() string {
  816. if m != nil {
  817. return m.Name
  818. }
  819. return ""
  820. }
  821. func (m *ModifyCloudToDeviceConfigRequest) GetVersionToUpdate() int64 {
  822. if m != nil {
  823. return m.VersionToUpdate
  824. }
  825. return 0
  826. }
  827. func (m *ModifyCloudToDeviceConfigRequest) GetBinaryData() []byte {
  828. if m != nil {
  829. return m.BinaryData
  830. }
  831. return nil
  832. }
  833. // Request for `ListDeviceConfigVersions`.
  834. type ListDeviceConfigVersionsRequest struct {
  835. // The name of the device. For example,
  836. // `projects/p0/locations/us-central1/registries/registry0/devices/device0` or
  837. // `projects/p0/locations/us-central1/registries/registry0/devices/{num_id}`.
  838. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
  839. // The number of versions to list. Versions are listed in decreasing order of
  840. // the version number. The maximum number of versions retained is 10. If this
  841. // value is zero, it will return all the versions available.
  842. NumVersions int32 `protobuf:"varint,2,opt,name=num_versions,json=numVersions,proto3" json:"num_versions,omitempty"`
  843. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  844. XXX_unrecognized []byte `json:"-"`
  845. XXX_sizecache int32 `json:"-"`
  846. }
  847. func (m *ListDeviceConfigVersionsRequest) Reset() { *m = ListDeviceConfigVersionsRequest{} }
  848. func (m *ListDeviceConfigVersionsRequest) String() string { return proto.CompactTextString(m) }
  849. func (*ListDeviceConfigVersionsRequest) ProtoMessage() {}
  850. func (*ListDeviceConfigVersionsRequest) Descriptor() ([]byte, []int) {
  851. return fileDescriptor_device_manager_8cffe4ebefc093fd, []int{14}
  852. }
  853. func (m *ListDeviceConfigVersionsRequest) XXX_Unmarshal(b []byte) error {
  854. return xxx_messageInfo_ListDeviceConfigVersionsRequest.Unmarshal(m, b)
  855. }
  856. func (m *ListDeviceConfigVersionsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  857. return xxx_messageInfo_ListDeviceConfigVersionsRequest.Marshal(b, m, deterministic)
  858. }
  859. func (dst *ListDeviceConfigVersionsRequest) XXX_Merge(src proto.Message) {
  860. xxx_messageInfo_ListDeviceConfigVersionsRequest.Merge(dst, src)
  861. }
  862. func (m *ListDeviceConfigVersionsRequest) XXX_Size() int {
  863. return xxx_messageInfo_ListDeviceConfigVersionsRequest.Size(m)
  864. }
  865. func (m *ListDeviceConfigVersionsRequest) XXX_DiscardUnknown() {
  866. xxx_messageInfo_ListDeviceConfigVersionsRequest.DiscardUnknown(m)
  867. }
  868. var xxx_messageInfo_ListDeviceConfigVersionsRequest proto.InternalMessageInfo
  869. func (m *ListDeviceConfigVersionsRequest) GetName() string {
  870. if m != nil {
  871. return m.Name
  872. }
  873. return ""
  874. }
  875. func (m *ListDeviceConfigVersionsRequest) GetNumVersions() int32 {
  876. if m != nil {
  877. return m.NumVersions
  878. }
  879. return 0
  880. }
  881. // Response for `ListDeviceConfigVersions`.
  882. type ListDeviceConfigVersionsResponse struct {
  883. // The device configuration for the last few versions. Versions are listed
  884. // in decreasing order, starting from the most recent one.
  885. DeviceConfigs []*DeviceConfig `protobuf:"bytes,1,rep,name=device_configs,json=deviceConfigs,proto3" json:"device_configs,omitempty"`
  886. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  887. XXX_unrecognized []byte `json:"-"`
  888. XXX_sizecache int32 `json:"-"`
  889. }
  890. func (m *ListDeviceConfigVersionsResponse) Reset() { *m = ListDeviceConfigVersionsResponse{} }
  891. func (m *ListDeviceConfigVersionsResponse) String() string { return proto.CompactTextString(m) }
  892. func (*ListDeviceConfigVersionsResponse) ProtoMessage() {}
  893. func (*ListDeviceConfigVersionsResponse) Descriptor() ([]byte, []int) {
  894. return fileDescriptor_device_manager_8cffe4ebefc093fd, []int{15}
  895. }
  896. func (m *ListDeviceConfigVersionsResponse) XXX_Unmarshal(b []byte) error {
  897. return xxx_messageInfo_ListDeviceConfigVersionsResponse.Unmarshal(m, b)
  898. }
  899. func (m *ListDeviceConfigVersionsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  900. return xxx_messageInfo_ListDeviceConfigVersionsResponse.Marshal(b, m, deterministic)
  901. }
  902. func (dst *ListDeviceConfigVersionsResponse) XXX_Merge(src proto.Message) {
  903. xxx_messageInfo_ListDeviceConfigVersionsResponse.Merge(dst, src)
  904. }
  905. func (m *ListDeviceConfigVersionsResponse) XXX_Size() int {
  906. return xxx_messageInfo_ListDeviceConfigVersionsResponse.Size(m)
  907. }
  908. func (m *ListDeviceConfigVersionsResponse) XXX_DiscardUnknown() {
  909. xxx_messageInfo_ListDeviceConfigVersionsResponse.DiscardUnknown(m)
  910. }
  911. var xxx_messageInfo_ListDeviceConfigVersionsResponse proto.InternalMessageInfo
  912. func (m *ListDeviceConfigVersionsResponse) GetDeviceConfigs() []*DeviceConfig {
  913. if m != nil {
  914. return m.DeviceConfigs
  915. }
  916. return nil
  917. }
  918. // Request for `ListDeviceStates`.
  919. type ListDeviceStatesRequest struct {
  920. // The name of the device. For example,
  921. // `projects/p0/locations/us-central1/registries/registry0/devices/device0` or
  922. // `projects/p0/locations/us-central1/registries/registry0/devices/{num_id}`.
  923. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
  924. // The number of states to list. States are listed in descending order of
  925. // update time. The maximum number of states retained is 10. If this
  926. // value is zero, it will return all the states available.
  927. NumStates int32 `protobuf:"varint,2,opt,name=num_states,json=numStates,proto3" json:"num_states,omitempty"`
  928. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  929. XXX_unrecognized []byte `json:"-"`
  930. XXX_sizecache int32 `json:"-"`
  931. }
  932. func (m *ListDeviceStatesRequest) Reset() { *m = ListDeviceStatesRequest{} }
  933. func (m *ListDeviceStatesRequest) String() string { return proto.CompactTextString(m) }
  934. func (*ListDeviceStatesRequest) ProtoMessage() {}
  935. func (*ListDeviceStatesRequest) Descriptor() ([]byte, []int) {
  936. return fileDescriptor_device_manager_8cffe4ebefc093fd, []int{16}
  937. }
  938. func (m *ListDeviceStatesRequest) XXX_Unmarshal(b []byte) error {
  939. return xxx_messageInfo_ListDeviceStatesRequest.Unmarshal(m, b)
  940. }
  941. func (m *ListDeviceStatesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  942. return xxx_messageInfo_ListDeviceStatesRequest.Marshal(b, m, deterministic)
  943. }
  944. func (dst *ListDeviceStatesRequest) XXX_Merge(src proto.Message) {
  945. xxx_messageInfo_ListDeviceStatesRequest.Merge(dst, src)
  946. }
  947. func (m *ListDeviceStatesRequest) XXX_Size() int {
  948. return xxx_messageInfo_ListDeviceStatesRequest.Size(m)
  949. }
  950. func (m *ListDeviceStatesRequest) XXX_DiscardUnknown() {
  951. xxx_messageInfo_ListDeviceStatesRequest.DiscardUnknown(m)
  952. }
  953. var xxx_messageInfo_ListDeviceStatesRequest proto.InternalMessageInfo
  954. func (m *ListDeviceStatesRequest) GetName() string {
  955. if m != nil {
  956. return m.Name
  957. }
  958. return ""
  959. }
  960. func (m *ListDeviceStatesRequest) GetNumStates() int32 {
  961. if m != nil {
  962. return m.NumStates
  963. }
  964. return 0
  965. }
  966. // Response for `ListDeviceStates`.
  967. type ListDeviceStatesResponse struct {
  968. // The last few device states. States are listed in descending order of server
  969. // update time, starting from the most recent one.
  970. DeviceStates []*DeviceState `protobuf:"bytes,1,rep,name=device_states,json=deviceStates,proto3" json:"device_states,omitempty"`
  971. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  972. XXX_unrecognized []byte `json:"-"`
  973. XXX_sizecache int32 `json:"-"`
  974. }
  975. func (m *ListDeviceStatesResponse) Reset() { *m = ListDeviceStatesResponse{} }
  976. func (m *ListDeviceStatesResponse) String() string { return proto.CompactTextString(m) }
  977. func (*ListDeviceStatesResponse) ProtoMessage() {}
  978. func (*ListDeviceStatesResponse) Descriptor() ([]byte, []int) {
  979. return fileDescriptor_device_manager_8cffe4ebefc093fd, []int{17}
  980. }
  981. func (m *ListDeviceStatesResponse) XXX_Unmarshal(b []byte) error {
  982. return xxx_messageInfo_ListDeviceStatesResponse.Unmarshal(m, b)
  983. }
  984. func (m *ListDeviceStatesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  985. return xxx_messageInfo_ListDeviceStatesResponse.Marshal(b, m, deterministic)
  986. }
  987. func (dst *ListDeviceStatesResponse) XXX_Merge(src proto.Message) {
  988. xxx_messageInfo_ListDeviceStatesResponse.Merge(dst, src)
  989. }
  990. func (m *ListDeviceStatesResponse) XXX_Size() int {
  991. return xxx_messageInfo_ListDeviceStatesResponse.Size(m)
  992. }
  993. func (m *ListDeviceStatesResponse) XXX_DiscardUnknown() {
  994. xxx_messageInfo_ListDeviceStatesResponse.DiscardUnknown(m)
  995. }
  996. var xxx_messageInfo_ListDeviceStatesResponse proto.InternalMessageInfo
  997. func (m *ListDeviceStatesResponse) GetDeviceStates() []*DeviceState {
  998. if m != nil {
  999. return m.DeviceStates
  1000. }
  1001. return nil
  1002. }
  1003. // Request for `SendCommandToDevice`.
  1004. type SendCommandToDeviceRequest struct {
  1005. // The name of the device. For example,
  1006. // `projects/p0/locations/us-central1/registries/registry0/devices/device0` or
  1007. // `projects/p0/locations/us-central1/registries/registry0/devices/{num_id}`.
  1008. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
  1009. // The command data to send to the device.
  1010. BinaryData []byte `protobuf:"bytes,2,opt,name=binary_data,json=binaryData,proto3" json:"binary_data,omitempty"`
  1011. // Optional subfolder for the command. If empty, the command will be delivered
  1012. // to the /devices/{device-id}/commands topic, otherwise it will be delivered
  1013. // to the /devices/{device-id}/commands/{subfolder} topic. Multi-level
  1014. // subfolders are allowed. This field must not have more than 256 characters,
  1015. // and must not contain any MQTT wildcards ("+" or "#") or null characters.
  1016. Subfolder string `protobuf:"bytes,3,opt,name=subfolder,proto3" json:"subfolder,omitempty"`
  1017. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  1018. XXX_unrecognized []byte `json:"-"`
  1019. XXX_sizecache int32 `json:"-"`
  1020. }
  1021. func (m *SendCommandToDeviceRequest) Reset() { *m = SendCommandToDeviceRequest{} }
  1022. func (m *SendCommandToDeviceRequest) String() string { return proto.CompactTextString(m) }
  1023. func (*SendCommandToDeviceRequest) ProtoMessage() {}
  1024. func (*SendCommandToDeviceRequest) Descriptor() ([]byte, []int) {
  1025. return fileDescriptor_device_manager_8cffe4ebefc093fd, []int{18}
  1026. }
  1027. func (m *SendCommandToDeviceRequest) XXX_Unmarshal(b []byte) error {
  1028. return xxx_messageInfo_SendCommandToDeviceRequest.Unmarshal(m, b)
  1029. }
  1030. func (m *SendCommandToDeviceRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  1031. return xxx_messageInfo_SendCommandToDeviceRequest.Marshal(b, m, deterministic)
  1032. }
  1033. func (dst *SendCommandToDeviceRequest) XXX_Merge(src proto.Message) {
  1034. xxx_messageInfo_SendCommandToDeviceRequest.Merge(dst, src)
  1035. }
  1036. func (m *SendCommandToDeviceRequest) XXX_Size() int {
  1037. return xxx_messageInfo_SendCommandToDeviceRequest.Size(m)
  1038. }
  1039. func (m *SendCommandToDeviceRequest) XXX_DiscardUnknown() {
  1040. xxx_messageInfo_SendCommandToDeviceRequest.DiscardUnknown(m)
  1041. }
  1042. var xxx_messageInfo_SendCommandToDeviceRequest proto.InternalMessageInfo
  1043. func (m *SendCommandToDeviceRequest) GetName() string {
  1044. if m != nil {
  1045. return m.Name
  1046. }
  1047. return ""
  1048. }
  1049. func (m *SendCommandToDeviceRequest) GetBinaryData() []byte {
  1050. if m != nil {
  1051. return m.BinaryData
  1052. }
  1053. return nil
  1054. }
  1055. func (m *SendCommandToDeviceRequest) GetSubfolder() string {
  1056. if m != nil {
  1057. return m.Subfolder
  1058. }
  1059. return ""
  1060. }
  1061. // Response for `SendCommandToDevice`.
  1062. type SendCommandToDeviceResponse struct {
  1063. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  1064. XXX_unrecognized []byte `json:"-"`
  1065. XXX_sizecache int32 `json:"-"`
  1066. }
  1067. func (m *SendCommandToDeviceResponse) Reset() { *m = SendCommandToDeviceResponse{} }
  1068. func (m *SendCommandToDeviceResponse) String() string { return proto.CompactTextString(m) }
  1069. func (*SendCommandToDeviceResponse) ProtoMessage() {}
  1070. func (*SendCommandToDeviceResponse) Descriptor() ([]byte, []int) {
  1071. return fileDescriptor_device_manager_8cffe4ebefc093fd, []int{19}
  1072. }
  1073. func (m *SendCommandToDeviceResponse) XXX_Unmarshal(b []byte) error {
  1074. return xxx_messageInfo_SendCommandToDeviceResponse.Unmarshal(m, b)
  1075. }
  1076. func (m *SendCommandToDeviceResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  1077. return xxx_messageInfo_SendCommandToDeviceResponse.Marshal(b, m, deterministic)
  1078. }
  1079. func (dst *SendCommandToDeviceResponse) XXX_Merge(src proto.Message) {
  1080. xxx_messageInfo_SendCommandToDeviceResponse.Merge(dst, src)
  1081. }
  1082. func (m *SendCommandToDeviceResponse) XXX_Size() int {
  1083. return xxx_messageInfo_SendCommandToDeviceResponse.Size(m)
  1084. }
  1085. func (m *SendCommandToDeviceResponse) XXX_DiscardUnknown() {
  1086. xxx_messageInfo_SendCommandToDeviceResponse.DiscardUnknown(m)
  1087. }
  1088. var xxx_messageInfo_SendCommandToDeviceResponse proto.InternalMessageInfo
  1089. // Request for `BindDeviceToGateway`.
  1090. type BindDeviceToGatewayRequest struct {
  1091. // The name of the registry. For example,
  1092. // `projects/example-project/locations/us-central1/registries/my-registry`.
  1093. Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
  1094. // The value of `gateway_id` can be either the device numeric ID or the
  1095. // user-defined device identifier.
  1096. GatewayId string `protobuf:"bytes,2,opt,name=gateway_id,json=gatewayId,proto3" json:"gateway_id,omitempty"`
  1097. // The device to associate with the specified gateway. The value of
  1098. // `device_id` can be either the device numeric ID or the user-defined device
  1099. // identifier.
  1100. DeviceId string `protobuf:"bytes,3,opt,name=device_id,json=deviceId,proto3" json:"device_id,omitempty"`
  1101. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  1102. XXX_unrecognized []byte `json:"-"`
  1103. XXX_sizecache int32 `json:"-"`
  1104. }
  1105. func (m *BindDeviceToGatewayRequest) Reset() { *m = BindDeviceToGatewayRequest{} }
  1106. func (m *BindDeviceToGatewayRequest) String() string { return proto.CompactTextString(m) }
  1107. func (*BindDeviceToGatewayRequest) ProtoMessage() {}
  1108. func (*BindDeviceToGatewayRequest) Descriptor() ([]byte, []int) {
  1109. return fileDescriptor_device_manager_8cffe4ebefc093fd, []int{20}
  1110. }
  1111. func (m *BindDeviceToGatewayRequest) XXX_Unmarshal(b []byte) error {
  1112. return xxx_messageInfo_BindDeviceToGatewayRequest.Unmarshal(m, b)
  1113. }
  1114. func (m *BindDeviceToGatewayRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  1115. return xxx_messageInfo_BindDeviceToGatewayRequest.Marshal(b, m, deterministic)
  1116. }
  1117. func (dst *BindDeviceToGatewayRequest) XXX_Merge(src proto.Message) {
  1118. xxx_messageInfo_BindDeviceToGatewayRequest.Merge(dst, src)
  1119. }
  1120. func (m *BindDeviceToGatewayRequest) XXX_Size() int {
  1121. return xxx_messageInfo_BindDeviceToGatewayRequest.Size(m)
  1122. }
  1123. func (m *BindDeviceToGatewayRequest) XXX_DiscardUnknown() {
  1124. xxx_messageInfo_BindDeviceToGatewayRequest.DiscardUnknown(m)
  1125. }
  1126. var xxx_messageInfo_BindDeviceToGatewayRequest proto.InternalMessageInfo
  1127. func (m *BindDeviceToGatewayRequest) GetParent() string {
  1128. if m != nil {
  1129. return m.Parent
  1130. }
  1131. return ""
  1132. }
  1133. func (m *BindDeviceToGatewayRequest) GetGatewayId() string {
  1134. if m != nil {
  1135. return m.GatewayId
  1136. }
  1137. return ""
  1138. }
  1139. func (m *BindDeviceToGatewayRequest) GetDeviceId() string {
  1140. if m != nil {
  1141. return m.DeviceId
  1142. }
  1143. return ""
  1144. }
  1145. // Response for `BindDeviceToGateway`.
  1146. type BindDeviceToGatewayResponse struct {
  1147. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  1148. XXX_unrecognized []byte `json:"-"`
  1149. XXX_sizecache int32 `json:"-"`
  1150. }
  1151. func (m *BindDeviceToGatewayResponse) Reset() { *m = BindDeviceToGatewayResponse{} }
  1152. func (m *BindDeviceToGatewayResponse) String() string { return proto.CompactTextString(m) }
  1153. func (*BindDeviceToGatewayResponse) ProtoMessage() {}
  1154. func (*BindDeviceToGatewayResponse) Descriptor() ([]byte, []int) {
  1155. return fileDescriptor_device_manager_8cffe4ebefc093fd, []int{21}
  1156. }
  1157. func (m *BindDeviceToGatewayResponse) XXX_Unmarshal(b []byte) error {
  1158. return xxx_messageInfo_BindDeviceToGatewayResponse.Unmarshal(m, b)
  1159. }
  1160. func (m *BindDeviceToGatewayResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  1161. return xxx_messageInfo_BindDeviceToGatewayResponse.Marshal(b, m, deterministic)
  1162. }
  1163. func (dst *BindDeviceToGatewayResponse) XXX_Merge(src proto.Message) {
  1164. xxx_messageInfo_BindDeviceToGatewayResponse.Merge(dst, src)
  1165. }
  1166. func (m *BindDeviceToGatewayResponse) XXX_Size() int {
  1167. return xxx_messageInfo_BindDeviceToGatewayResponse.Size(m)
  1168. }
  1169. func (m *BindDeviceToGatewayResponse) XXX_DiscardUnknown() {
  1170. xxx_messageInfo_BindDeviceToGatewayResponse.DiscardUnknown(m)
  1171. }
  1172. var xxx_messageInfo_BindDeviceToGatewayResponse proto.InternalMessageInfo
  1173. // Request for `UnbindDeviceFromGateway`.
  1174. type UnbindDeviceFromGatewayRequest struct {
  1175. // The name of the registry. For example,
  1176. // `projects/example-project/locations/us-central1/registries/my-registry`.
  1177. Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
  1178. // The value of `gateway_id` can be either the device numeric ID or the
  1179. // user-defined device identifier.
  1180. GatewayId string `protobuf:"bytes,2,opt,name=gateway_id,json=gatewayId,proto3" json:"gateway_id,omitempty"`
  1181. // The device to disassociate from the specified gateway. The value of
  1182. // `device_id` can be either the device numeric ID or the user-defined device
  1183. // identifier.
  1184. DeviceId string `protobuf:"bytes,3,opt,name=device_id,json=deviceId,proto3" json:"device_id,omitempty"`
  1185. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  1186. XXX_unrecognized []byte `json:"-"`
  1187. XXX_sizecache int32 `json:"-"`
  1188. }
  1189. func (m *UnbindDeviceFromGatewayRequest) Reset() { *m = UnbindDeviceFromGatewayRequest{} }
  1190. func (m *UnbindDeviceFromGatewayRequest) String() string { return proto.CompactTextString(m) }
  1191. func (*UnbindDeviceFromGatewayRequest) ProtoMessage() {}
  1192. func (*UnbindDeviceFromGatewayRequest) Descriptor() ([]byte, []int) {
  1193. return fileDescriptor_device_manager_8cffe4ebefc093fd, []int{22}
  1194. }
  1195. func (m *UnbindDeviceFromGatewayRequest) XXX_Unmarshal(b []byte) error {
  1196. return xxx_messageInfo_UnbindDeviceFromGatewayRequest.Unmarshal(m, b)
  1197. }
  1198. func (m *UnbindDeviceFromGatewayRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  1199. return xxx_messageInfo_UnbindDeviceFromGatewayRequest.Marshal(b, m, deterministic)
  1200. }
  1201. func (dst *UnbindDeviceFromGatewayRequest) XXX_Merge(src proto.Message) {
  1202. xxx_messageInfo_UnbindDeviceFromGatewayRequest.Merge(dst, src)
  1203. }
  1204. func (m *UnbindDeviceFromGatewayRequest) XXX_Size() int {
  1205. return xxx_messageInfo_UnbindDeviceFromGatewayRequest.Size(m)
  1206. }
  1207. func (m *UnbindDeviceFromGatewayRequest) XXX_DiscardUnknown() {
  1208. xxx_messageInfo_UnbindDeviceFromGatewayRequest.DiscardUnknown(m)
  1209. }
  1210. var xxx_messageInfo_UnbindDeviceFromGatewayRequest proto.InternalMessageInfo
  1211. func (m *UnbindDeviceFromGatewayRequest) GetParent() string {
  1212. if m != nil {
  1213. return m.Parent
  1214. }
  1215. return ""
  1216. }
  1217. func (m *UnbindDeviceFromGatewayRequest) GetGatewayId() string {
  1218. if m != nil {
  1219. return m.GatewayId
  1220. }
  1221. return ""
  1222. }
  1223. func (m *UnbindDeviceFromGatewayRequest) GetDeviceId() string {
  1224. if m != nil {
  1225. return m.DeviceId
  1226. }
  1227. return ""
  1228. }
  1229. // Response for `UnbindDeviceFromGateway`.
  1230. type UnbindDeviceFromGatewayResponse struct {
  1231. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  1232. XXX_unrecognized []byte `json:"-"`
  1233. XXX_sizecache int32 `json:"-"`
  1234. }
  1235. func (m *UnbindDeviceFromGatewayResponse) Reset() { *m = UnbindDeviceFromGatewayResponse{} }
  1236. func (m *UnbindDeviceFromGatewayResponse) String() string { return proto.CompactTextString(m) }
  1237. func (*UnbindDeviceFromGatewayResponse) ProtoMessage() {}
  1238. func (*UnbindDeviceFromGatewayResponse) Descriptor() ([]byte, []int) {
  1239. return fileDescriptor_device_manager_8cffe4ebefc093fd, []int{23}
  1240. }
  1241. func (m *UnbindDeviceFromGatewayResponse) XXX_Unmarshal(b []byte) error {
  1242. return xxx_messageInfo_UnbindDeviceFromGatewayResponse.Unmarshal(m, b)
  1243. }
  1244. func (m *UnbindDeviceFromGatewayResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  1245. return xxx_messageInfo_UnbindDeviceFromGatewayResponse.Marshal(b, m, deterministic)
  1246. }
  1247. func (dst *UnbindDeviceFromGatewayResponse) XXX_Merge(src proto.Message) {
  1248. xxx_messageInfo_UnbindDeviceFromGatewayResponse.Merge(dst, src)
  1249. }
  1250. func (m *UnbindDeviceFromGatewayResponse) XXX_Size() int {
  1251. return xxx_messageInfo_UnbindDeviceFromGatewayResponse.Size(m)
  1252. }
  1253. func (m *UnbindDeviceFromGatewayResponse) XXX_DiscardUnknown() {
  1254. xxx_messageInfo_UnbindDeviceFromGatewayResponse.DiscardUnknown(m)
  1255. }
  1256. var xxx_messageInfo_UnbindDeviceFromGatewayResponse proto.InternalMessageInfo
  1257. func init() {
  1258. proto.RegisterType((*CreateDeviceRegistryRequest)(nil), "google.cloud.iot.v1.CreateDeviceRegistryRequest")
  1259. proto.RegisterType((*GetDeviceRegistryRequest)(nil), "google.cloud.iot.v1.GetDeviceRegistryRequest")
  1260. proto.RegisterType((*DeleteDeviceRegistryRequest)(nil), "google.cloud.iot.v1.DeleteDeviceRegistryRequest")
  1261. proto.RegisterType((*UpdateDeviceRegistryRequest)(nil), "google.cloud.iot.v1.UpdateDeviceRegistryRequest")
  1262. proto.RegisterType((*ListDeviceRegistriesRequest)(nil), "google.cloud.iot.v1.ListDeviceRegistriesRequest")
  1263. proto.RegisterType((*ListDeviceRegistriesResponse)(nil), "google.cloud.iot.v1.ListDeviceRegistriesResponse")
  1264. proto.RegisterType((*CreateDeviceRequest)(nil), "google.cloud.iot.v1.CreateDeviceRequest")
  1265. proto.RegisterType((*GetDeviceRequest)(nil), "google.cloud.iot.v1.GetDeviceRequest")
  1266. proto.RegisterType((*UpdateDeviceRequest)(nil), "google.cloud.iot.v1.UpdateDeviceRequest")
  1267. proto.RegisterType((*DeleteDeviceRequest)(nil), "google.cloud.iot.v1.DeleteDeviceRequest")
  1268. proto.RegisterType((*ListDevicesRequest)(nil), "google.cloud.iot.v1.ListDevicesRequest")
  1269. proto.RegisterType((*GatewayListOptions)(nil), "google.cloud.iot.v1.GatewayListOptions")
  1270. proto.RegisterType((*ListDevicesResponse)(nil), "google.cloud.iot.v1.ListDevicesResponse")
  1271. proto.RegisterType((*ModifyCloudToDeviceConfigRequest)(nil), "google.cloud.iot.v1.ModifyCloudToDeviceConfigRequest")
  1272. proto.RegisterType((*ListDeviceConfigVersionsRequest)(nil), "google.cloud.iot.v1.ListDeviceConfigVersionsRequest")
  1273. proto.RegisterType((*ListDeviceConfigVersionsResponse)(nil), "google.cloud.iot.v1.ListDeviceConfigVersionsResponse")
  1274. proto.RegisterType((*ListDeviceStatesRequest)(nil), "google.cloud.iot.v1.ListDeviceStatesRequest")
  1275. proto.RegisterType((*ListDeviceStatesResponse)(nil), "google.cloud.iot.v1.ListDeviceStatesResponse")
  1276. proto.RegisterType((*SendCommandToDeviceRequest)(nil), "google.cloud.iot.v1.SendCommandToDeviceRequest")
  1277. proto.RegisterType((*SendCommandToDeviceResponse)(nil), "google.cloud.iot.v1.SendCommandToDeviceResponse")
  1278. proto.RegisterType((*BindDeviceToGatewayRequest)(nil), "google.cloud.iot.v1.BindDeviceToGatewayRequest")
  1279. proto.RegisterType((*BindDeviceToGatewayResponse)(nil), "google.cloud.iot.v1.BindDeviceToGatewayResponse")
  1280. proto.RegisterType((*UnbindDeviceFromGatewayRequest)(nil), "google.cloud.iot.v1.UnbindDeviceFromGatewayRequest")
  1281. proto.RegisterType((*UnbindDeviceFromGatewayResponse)(nil), "google.cloud.iot.v1.UnbindDeviceFromGatewayResponse")
  1282. }
  1283. // Reference imports to suppress errors if they are not otherwise used.
  1284. var _ context.Context
  1285. var _ grpc.ClientConn
  1286. // This is a compile-time assertion to ensure that this generated file
  1287. // is compatible with the grpc package it is being compiled against.
  1288. const _ = grpc.SupportPackageIsVersion4
  1289. // DeviceManagerClient is the client API for DeviceManager service.
  1290. //
  1291. // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
  1292. type DeviceManagerClient interface {
  1293. // Creates a device registry that contains devices.
  1294. CreateDeviceRegistry(ctx context.Context, in *CreateDeviceRegistryRequest, opts ...grpc.CallOption) (*DeviceRegistry, error)
  1295. // Gets a device registry configuration.
  1296. GetDeviceRegistry(ctx context.Context, in *GetDeviceRegistryRequest, opts ...grpc.CallOption) (*DeviceRegistry, error)
  1297. // Updates a device registry configuration.
  1298. UpdateDeviceRegistry(ctx context.Context, in *UpdateDeviceRegistryRequest, opts ...grpc.CallOption) (*DeviceRegistry, error)
  1299. // Deletes a device registry configuration.
  1300. DeleteDeviceRegistry(ctx context.Context, in *DeleteDeviceRegistryRequest, opts ...grpc.CallOption) (*empty.Empty, error)
  1301. // Lists device registries.
  1302. ListDeviceRegistries(ctx context.Context, in *ListDeviceRegistriesRequest, opts ...grpc.CallOption) (*ListDeviceRegistriesResponse, error)
  1303. // Creates a device in a device registry.
  1304. CreateDevice(ctx context.Context, in *CreateDeviceRequest, opts ...grpc.CallOption) (*Device, error)
  1305. // Gets details about a device.
  1306. GetDevice(ctx context.Context, in *GetDeviceRequest, opts ...grpc.CallOption) (*Device, error)
  1307. // Updates a device.
  1308. UpdateDevice(ctx context.Context, in *UpdateDeviceRequest, opts ...grpc.CallOption) (*Device, error)
  1309. // Deletes a device.
  1310. DeleteDevice(ctx context.Context, in *DeleteDeviceRequest, opts ...grpc.CallOption) (*empty.Empty, error)
  1311. // List devices in a device registry.
  1312. ListDevices(ctx context.Context, in *ListDevicesRequest, opts ...grpc.CallOption) (*ListDevicesResponse, error)
  1313. // Modifies the configuration for the device, which is eventually sent from
  1314. // the Cloud IoT Core servers. Returns the modified configuration version and
  1315. // its metadata.
  1316. ModifyCloudToDeviceConfig(ctx context.Context, in *ModifyCloudToDeviceConfigRequest, opts ...grpc.CallOption) (*DeviceConfig, error)
  1317. // Lists the last few versions of the device configuration in descending
  1318. // order (i.e.: newest first).
  1319. ListDeviceConfigVersions(ctx context.Context, in *ListDeviceConfigVersionsRequest, opts ...grpc.CallOption) (*ListDeviceConfigVersionsResponse, error)
  1320. // Lists the last few versions of the device state in descending order (i.e.:
  1321. // newest first).
  1322. ListDeviceStates(ctx context.Context, in *ListDeviceStatesRequest, opts ...grpc.CallOption) (*ListDeviceStatesResponse, error)
  1323. // Sets the access control policy on the specified resource. Replaces any
  1324. // existing policy.
  1325. SetIamPolicy(ctx context.Context, in *v1.SetIamPolicyRequest, opts ...grpc.CallOption) (*v1.Policy, error)
  1326. // Gets the access control policy for a resource.
  1327. // Returns an empty policy if the resource exists and does not have a policy
  1328. // set.
  1329. GetIamPolicy(ctx context.Context, in *v1.GetIamPolicyRequest, opts ...grpc.CallOption) (*v1.Policy, error)
  1330. // Returns permissions that a caller has on the specified resource.
  1331. // If the resource does not exist, this will return an empty set of
  1332. // permissions, not a NOT_FOUND error.
  1333. TestIamPermissions(ctx context.Context, in *v1.TestIamPermissionsRequest, opts ...grpc.CallOption) (*v1.TestIamPermissionsResponse, error)
  1334. // Sends a command to the specified device. In order for a device to be able
  1335. // to receive commands, it must:
  1336. // 1) be connected to Cloud IoT Core using the MQTT protocol, and
  1337. // 2) be subscribed to the group of MQTT topics specified by
  1338. // /devices/{device-id}/commands/#. This subscription will receive commands
  1339. // at the top-level topic /devices/{device-id}/commands as well as commands
  1340. // for subfolders, like /devices/{device-id}/commands/subfolder.
  1341. // Note that subscribing to specific subfolders is not supported.
  1342. // If the command could not be delivered to the device, this method will
  1343. // return an error; in particular, if the device is not subscribed, this
  1344. // method will return FAILED_PRECONDITION. Otherwise, this method will
  1345. // return OK. If the subscription is QoS 1, at least once delivery will be
  1346. // guaranteed; for QoS 0, no acknowledgment will be expected from the device.
  1347. SendCommandToDevice(ctx context.Context, in *SendCommandToDeviceRequest, opts ...grpc.CallOption) (*SendCommandToDeviceResponse, error)
  1348. // Associates the device with the gateway.
  1349. BindDeviceToGateway(ctx context.Context, in *BindDeviceToGatewayRequest, opts ...grpc.CallOption) (*BindDeviceToGatewayResponse, error)
  1350. // Deletes the association between the device and the gateway.
  1351. UnbindDeviceFromGateway(ctx context.Context, in *UnbindDeviceFromGatewayRequest, opts ...grpc.CallOption) (*UnbindDeviceFromGatewayResponse, error)
  1352. }
  1353. type deviceManagerClient struct {
  1354. cc *grpc.ClientConn
  1355. }
  1356. func NewDeviceManagerClient(cc *grpc.ClientConn) DeviceManagerClient {
  1357. return &deviceManagerClient{cc}
  1358. }
  1359. func (c *deviceManagerClient) CreateDeviceRegistry(ctx context.Context, in *CreateDeviceRegistryRequest, opts ...grpc.CallOption) (*DeviceRegistry, error) {
  1360. out := new(DeviceRegistry)
  1361. err := c.cc.Invoke(ctx, "/google.cloud.iot.v1.DeviceManager/CreateDeviceRegistry", in, out, opts...)
  1362. if err != nil {
  1363. return nil, err
  1364. }
  1365. return out, nil
  1366. }
  1367. func (c *deviceManagerClient) GetDeviceRegistry(ctx context.Context, in *GetDeviceRegistryRequest, opts ...grpc.CallOption) (*DeviceRegistry, error) {
  1368. out := new(DeviceRegistry)
  1369. err := c.cc.Invoke(ctx, "/google.cloud.iot.v1.DeviceManager/GetDeviceRegistry", in, out, opts...)
  1370. if err != nil {
  1371. return nil, err
  1372. }
  1373. return out, nil
  1374. }
  1375. func (c *deviceManagerClient) UpdateDeviceRegistry(ctx context.Context, in *UpdateDeviceRegistryRequest, opts ...grpc.CallOption) (*DeviceRegistry, error) {
  1376. out := new(DeviceRegistry)
  1377. err := c.cc.Invoke(ctx, "/google.cloud.iot.v1.DeviceManager/UpdateDeviceRegistry", in, out, opts...)
  1378. if err != nil {
  1379. return nil, err
  1380. }
  1381. return out, nil
  1382. }
  1383. func (c *deviceManagerClient) DeleteDeviceRegistry(ctx context.Context, in *DeleteDeviceRegistryRequest, opts ...grpc.CallOption) (*empty.Empty, error) {
  1384. out := new(empty.Empty)
  1385. err := c.cc.Invoke(ctx, "/google.cloud.iot.v1.DeviceManager/DeleteDeviceRegistry", in, out, opts...)
  1386. if err != nil {
  1387. return nil, err
  1388. }
  1389. return out, nil
  1390. }
  1391. func (c *deviceManagerClient) ListDeviceRegistries(ctx context.Context, in *ListDeviceRegistriesRequest, opts ...grpc.CallOption) (*ListDeviceRegistriesResponse, error) {
  1392. out := new(ListDeviceRegistriesResponse)
  1393. err := c.cc.Invoke(ctx, "/google.cloud.iot.v1.DeviceManager/ListDeviceRegistries", in, out, opts...)
  1394. if err != nil {
  1395. return nil, err
  1396. }
  1397. return out, nil
  1398. }
  1399. func (c *deviceManagerClient) CreateDevice(ctx context.Context, in *CreateDeviceRequest, opts ...grpc.CallOption) (*Device, error) {
  1400. out := new(Device)
  1401. err := c.cc.Invoke(ctx, "/google.cloud.iot.v1.DeviceManager/CreateDevice", in, out, opts...)
  1402. if err != nil {
  1403. return nil, err
  1404. }
  1405. return out, nil
  1406. }
  1407. func (c *deviceManagerClient) GetDevice(ctx context.Context, in *GetDeviceRequest, opts ...grpc.CallOption) (*Device, error) {
  1408. out := new(Device)
  1409. err := c.cc.Invoke(ctx, "/google.cloud.iot.v1.DeviceManager/GetDevice", in, out, opts...)
  1410. if err != nil {
  1411. return nil, err
  1412. }
  1413. return out, nil
  1414. }
  1415. func (c *deviceManagerClient) UpdateDevice(ctx context.Context, in *UpdateDeviceRequest, opts ...grpc.CallOption) (*Device, error) {
  1416. out := new(Device)
  1417. err := c.cc.Invoke(ctx, "/google.cloud.iot.v1.DeviceManager/UpdateDevice", in, out, opts...)
  1418. if err != nil {
  1419. return nil, err
  1420. }
  1421. return out, nil
  1422. }
  1423. func (c *deviceManagerClient) DeleteDevice(ctx context.Context, in *DeleteDeviceRequest, opts ...grpc.CallOption) (*empty.Empty, error) {
  1424. out := new(empty.Empty)
  1425. err := c.cc.Invoke(ctx, "/google.cloud.iot.v1.DeviceManager/DeleteDevice", in, out, opts...)
  1426. if err != nil {
  1427. return nil, err
  1428. }
  1429. return out, nil
  1430. }
  1431. func (c *deviceManagerClient) ListDevices(ctx context.Context, in *ListDevicesRequest, opts ...grpc.CallOption) (*ListDevicesResponse, error) {
  1432. out := new(ListDevicesResponse)
  1433. err := c.cc.Invoke(ctx, "/google.cloud.iot.v1.DeviceManager/ListDevices", in, out, opts...)
  1434. if err != nil {
  1435. return nil, err
  1436. }
  1437. return out, nil
  1438. }
  1439. func (c *deviceManagerClient) ModifyCloudToDeviceConfig(ctx context.Context, in *ModifyCloudToDeviceConfigRequest, opts ...grpc.CallOption) (*DeviceConfig, error) {
  1440. out := new(DeviceConfig)
  1441. err := c.cc.Invoke(ctx, "/google.cloud.iot.v1.DeviceManager/ModifyCloudToDeviceConfig", in, out, opts...)
  1442. if err != nil {
  1443. return nil, err
  1444. }
  1445. return out, nil
  1446. }
  1447. func (c *deviceManagerClient) ListDeviceConfigVersions(ctx context.Context, in *ListDeviceConfigVersionsRequest, opts ...grpc.CallOption) (*ListDeviceConfigVersionsResponse, error) {
  1448. out := new(ListDeviceConfigVersionsResponse)
  1449. err := c.cc.Invoke(ctx, "/google.cloud.iot.v1.DeviceManager/ListDeviceConfigVersions", in, out, opts...)
  1450. if err != nil {
  1451. return nil, err
  1452. }
  1453. return out, nil
  1454. }
  1455. func (c *deviceManagerClient) ListDeviceStates(ctx context.Context, in *ListDeviceStatesRequest, opts ...grpc.CallOption) (*ListDeviceStatesResponse, error) {
  1456. out := new(ListDeviceStatesResponse)
  1457. err := c.cc.Invoke(ctx, "/google.cloud.iot.v1.DeviceManager/ListDeviceStates", in, out, opts...)
  1458. if err != nil {
  1459. return nil, err
  1460. }
  1461. return out, nil
  1462. }
  1463. func (c *deviceManagerClient) SetIamPolicy(ctx context.Context, in *v1.SetIamPolicyRequest, opts ...grpc.CallOption) (*v1.Policy, error) {
  1464. out := new(v1.Policy)
  1465. err := c.cc.Invoke(ctx, "/google.cloud.iot.v1.DeviceManager/SetIamPolicy", in, out, opts...)
  1466. if err != nil {
  1467. return nil, err
  1468. }
  1469. return out, nil
  1470. }
  1471. func (c *deviceManagerClient) GetIamPolicy(ctx context.Context, in *v1.GetIamPolicyRequest, opts ...grpc.CallOption) (*v1.Policy, error) {
  1472. out := new(v1.Policy)
  1473. err := c.cc.Invoke(ctx, "/google.cloud.iot.v1.DeviceManager/GetIamPolicy", in, out, opts...)
  1474. if err != nil {
  1475. return nil, err
  1476. }
  1477. return out, nil
  1478. }
  1479. func (c *deviceManagerClient) TestIamPermissions(ctx context.Context, in *v1.TestIamPermissionsRequest, opts ...grpc.CallOption) (*v1.TestIamPermissionsResponse, error) {
  1480. out := new(v1.TestIamPermissionsResponse)
  1481. err := c.cc.Invoke(ctx, "/google.cloud.iot.v1.DeviceManager/TestIamPermissions", in, out, opts...)
  1482. if err != nil {
  1483. return nil, err
  1484. }
  1485. return out, nil
  1486. }
  1487. func (c *deviceManagerClient) SendCommandToDevice(ctx context.Context, in *SendCommandToDeviceRequest, opts ...grpc.CallOption) (*SendCommandToDeviceResponse, error) {
  1488. out := new(SendCommandToDeviceResponse)
  1489. err := c.cc.Invoke(ctx, "/google.cloud.iot.v1.DeviceManager/SendCommandToDevice", in, out, opts...)
  1490. if err != nil {
  1491. return nil, err
  1492. }
  1493. return out, nil
  1494. }
  1495. func (c *deviceManagerClient) BindDeviceToGateway(ctx context.Context, in *BindDeviceToGatewayRequest, opts ...grpc.CallOption) (*BindDeviceToGatewayResponse, error) {
  1496. out := new(BindDeviceToGatewayResponse)
  1497. err := c.cc.Invoke(ctx, "/google.cloud.iot.v1.DeviceManager/BindDeviceToGateway", in, out, opts...)
  1498. if err != nil {
  1499. return nil, err
  1500. }
  1501. return out, nil
  1502. }
  1503. func (c *deviceManagerClient) UnbindDeviceFromGateway(ctx context.Context, in *UnbindDeviceFromGatewayRequest, opts ...grpc.CallOption) (*UnbindDeviceFromGatewayResponse, error) {
  1504. out := new(UnbindDeviceFromGatewayResponse)
  1505. err := c.cc.Invoke(ctx, "/google.cloud.iot.v1.DeviceManager/UnbindDeviceFromGateway", in, out, opts...)
  1506. if err != nil {
  1507. return nil, err
  1508. }
  1509. return out, nil
  1510. }
  1511. // DeviceManagerServer is the server API for DeviceManager service.
  1512. type DeviceManagerServer interface {
  1513. // Creates a device registry that contains devices.
  1514. CreateDeviceRegistry(context.Context, *CreateDeviceRegistryRequest) (*DeviceRegistry, error)
  1515. // Gets a device registry configuration.
  1516. GetDeviceRegistry(context.Context, *GetDeviceRegistryRequest) (*DeviceRegistry, error)
  1517. // Updates a device registry configuration.
  1518. UpdateDeviceRegistry(context.Context, *UpdateDeviceRegistryRequest) (*DeviceRegistry, error)
  1519. // Deletes a device registry configuration.
  1520. DeleteDeviceRegistry(context.Context, *DeleteDeviceRegistryRequest) (*empty.Empty, error)
  1521. // Lists device registries.
  1522. ListDeviceRegistries(context.Context, *ListDeviceRegistriesRequest) (*ListDeviceRegistriesResponse, error)
  1523. // Creates a device in a device registry.
  1524. CreateDevice(context.Context, *CreateDeviceRequest) (*Device, error)
  1525. // Gets details about a device.
  1526. GetDevice(context.Context, *GetDeviceRequest) (*Device, error)
  1527. // Updates a device.
  1528. UpdateDevice(context.Context, *UpdateDeviceRequest) (*Device, error)
  1529. // Deletes a device.
  1530. DeleteDevice(context.Context, *DeleteDeviceRequest) (*empty.Empty, error)
  1531. // List devices in a device registry.
  1532. ListDevices(context.Context, *ListDevicesRequest) (*ListDevicesResponse, error)
  1533. // Modifies the configuration for the device, which is eventually sent from
  1534. // the Cloud IoT Core servers. Returns the modified configuration version and
  1535. // its metadata.
  1536. ModifyCloudToDeviceConfig(context.Context, *ModifyCloudToDeviceConfigRequest) (*DeviceConfig, error)
  1537. // Lists the last few versions of the device configuration in descending
  1538. // order (i.e.: newest first).
  1539. ListDeviceConfigVersions(context.Context, *ListDeviceConfigVersionsRequest) (*ListDeviceConfigVersionsResponse, error)
  1540. // Lists the last few versions of the device state in descending order (i.e.:
  1541. // newest first).
  1542. ListDeviceStates(context.Context, *ListDeviceStatesRequest) (*ListDeviceStatesResponse, error)
  1543. // Sets the access control policy on the specified resource. Replaces any
  1544. // existing policy.
  1545. SetIamPolicy(context.Context, *v1.SetIamPolicyRequest) (*v1.Policy, error)
  1546. // Gets the access control policy for a resource.
  1547. // Returns an empty policy if the resource exists and does not have a policy
  1548. // set.
  1549. GetIamPolicy(context.Context, *v1.GetIamPolicyRequest) (*v1.Policy, error)
  1550. // Returns permissions that a caller has on the specified resource.
  1551. // If the resource does not exist, this will return an empty set of
  1552. // permissions, not a NOT_FOUND error.
  1553. TestIamPermissions(context.Context, *v1.TestIamPermissionsRequest) (*v1.TestIamPermissionsResponse, error)
  1554. // Sends a command to the specified device. In order for a device to be able
  1555. // to receive commands, it must:
  1556. // 1) be connected to Cloud IoT Core using the MQTT protocol, and
  1557. // 2) be subscribed to the group of MQTT topics specified by
  1558. // /devices/{device-id}/commands/#. This subscription will receive commands
  1559. // at the top-level topic /devices/{device-id}/commands as well as commands
  1560. // for subfolders, like /devices/{device-id}/commands/subfolder.
  1561. // Note that subscribing to specific subfolders is not supported.
  1562. // If the command could not be delivered to the device, this method will
  1563. // return an error; in particular, if the device is not subscribed, this
  1564. // method will return FAILED_PRECONDITION. Otherwise, this method will
  1565. // return OK. If the subscription is QoS 1, at least once delivery will be
  1566. // guaranteed; for QoS 0, no acknowledgment will be expected from the device.
  1567. SendCommandToDevice(context.Context, *SendCommandToDeviceRequest) (*SendCommandToDeviceResponse, error)
  1568. // Associates the device with the gateway.
  1569. BindDeviceToGateway(context.Context, *BindDeviceToGatewayRequest) (*BindDeviceToGatewayResponse, error)
  1570. // Deletes the association between the device and the gateway.
  1571. UnbindDeviceFromGateway(context.Context, *UnbindDeviceFromGatewayRequest) (*UnbindDeviceFromGatewayResponse, error)
  1572. }
  1573. func RegisterDeviceManagerServer(s *grpc.Server, srv DeviceManagerServer) {
  1574. s.RegisterService(&_DeviceManager_serviceDesc, srv)
  1575. }
  1576. func _DeviceManager_CreateDeviceRegistry_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1577. in := new(CreateDeviceRegistryRequest)
  1578. if err := dec(in); err != nil {
  1579. return nil, err
  1580. }
  1581. if interceptor == nil {
  1582. return srv.(DeviceManagerServer).CreateDeviceRegistry(ctx, in)
  1583. }
  1584. info := &grpc.UnaryServerInfo{
  1585. Server: srv,
  1586. FullMethod: "/google.cloud.iot.v1.DeviceManager/CreateDeviceRegistry",
  1587. }
  1588. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1589. return srv.(DeviceManagerServer).CreateDeviceRegistry(ctx, req.(*CreateDeviceRegistryRequest))
  1590. }
  1591. return interceptor(ctx, in, info, handler)
  1592. }
  1593. func _DeviceManager_GetDeviceRegistry_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1594. in := new(GetDeviceRegistryRequest)
  1595. if err := dec(in); err != nil {
  1596. return nil, err
  1597. }
  1598. if interceptor == nil {
  1599. return srv.(DeviceManagerServer).GetDeviceRegistry(ctx, in)
  1600. }
  1601. info := &grpc.UnaryServerInfo{
  1602. Server: srv,
  1603. FullMethod: "/google.cloud.iot.v1.DeviceManager/GetDeviceRegistry",
  1604. }
  1605. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1606. return srv.(DeviceManagerServer).GetDeviceRegistry(ctx, req.(*GetDeviceRegistryRequest))
  1607. }
  1608. return interceptor(ctx, in, info, handler)
  1609. }
  1610. func _DeviceManager_UpdateDeviceRegistry_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1611. in := new(UpdateDeviceRegistryRequest)
  1612. if err := dec(in); err != nil {
  1613. return nil, err
  1614. }
  1615. if interceptor == nil {
  1616. return srv.(DeviceManagerServer).UpdateDeviceRegistry(ctx, in)
  1617. }
  1618. info := &grpc.UnaryServerInfo{
  1619. Server: srv,
  1620. FullMethod: "/google.cloud.iot.v1.DeviceManager/UpdateDeviceRegistry",
  1621. }
  1622. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1623. return srv.(DeviceManagerServer).UpdateDeviceRegistry(ctx, req.(*UpdateDeviceRegistryRequest))
  1624. }
  1625. return interceptor(ctx, in, info, handler)
  1626. }
  1627. func _DeviceManager_DeleteDeviceRegistry_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1628. in := new(DeleteDeviceRegistryRequest)
  1629. if err := dec(in); err != nil {
  1630. return nil, err
  1631. }
  1632. if interceptor == nil {
  1633. return srv.(DeviceManagerServer).DeleteDeviceRegistry(ctx, in)
  1634. }
  1635. info := &grpc.UnaryServerInfo{
  1636. Server: srv,
  1637. FullMethod: "/google.cloud.iot.v1.DeviceManager/DeleteDeviceRegistry",
  1638. }
  1639. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1640. return srv.(DeviceManagerServer).DeleteDeviceRegistry(ctx, req.(*DeleteDeviceRegistryRequest))
  1641. }
  1642. return interceptor(ctx, in, info, handler)
  1643. }
  1644. func _DeviceManager_ListDeviceRegistries_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1645. in := new(ListDeviceRegistriesRequest)
  1646. if err := dec(in); err != nil {
  1647. return nil, err
  1648. }
  1649. if interceptor == nil {
  1650. return srv.(DeviceManagerServer).ListDeviceRegistries(ctx, in)
  1651. }
  1652. info := &grpc.UnaryServerInfo{
  1653. Server: srv,
  1654. FullMethod: "/google.cloud.iot.v1.DeviceManager/ListDeviceRegistries",
  1655. }
  1656. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1657. return srv.(DeviceManagerServer).ListDeviceRegistries(ctx, req.(*ListDeviceRegistriesRequest))
  1658. }
  1659. return interceptor(ctx, in, info, handler)
  1660. }
  1661. func _DeviceManager_CreateDevice_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1662. in := new(CreateDeviceRequest)
  1663. if err := dec(in); err != nil {
  1664. return nil, err
  1665. }
  1666. if interceptor == nil {
  1667. return srv.(DeviceManagerServer).CreateDevice(ctx, in)
  1668. }
  1669. info := &grpc.UnaryServerInfo{
  1670. Server: srv,
  1671. FullMethod: "/google.cloud.iot.v1.DeviceManager/CreateDevice",
  1672. }
  1673. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1674. return srv.(DeviceManagerServer).CreateDevice(ctx, req.(*CreateDeviceRequest))
  1675. }
  1676. return interceptor(ctx, in, info, handler)
  1677. }
  1678. func _DeviceManager_GetDevice_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1679. in := new(GetDeviceRequest)
  1680. if err := dec(in); err != nil {
  1681. return nil, err
  1682. }
  1683. if interceptor == nil {
  1684. return srv.(DeviceManagerServer).GetDevice(ctx, in)
  1685. }
  1686. info := &grpc.UnaryServerInfo{
  1687. Server: srv,
  1688. FullMethod: "/google.cloud.iot.v1.DeviceManager/GetDevice",
  1689. }
  1690. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1691. return srv.(DeviceManagerServer).GetDevice(ctx, req.(*GetDeviceRequest))
  1692. }
  1693. return interceptor(ctx, in, info, handler)
  1694. }
  1695. func _DeviceManager_UpdateDevice_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1696. in := new(UpdateDeviceRequest)
  1697. if err := dec(in); err != nil {
  1698. return nil, err
  1699. }
  1700. if interceptor == nil {
  1701. return srv.(DeviceManagerServer).UpdateDevice(ctx, in)
  1702. }
  1703. info := &grpc.UnaryServerInfo{
  1704. Server: srv,
  1705. FullMethod: "/google.cloud.iot.v1.DeviceManager/UpdateDevice",
  1706. }
  1707. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1708. return srv.(DeviceManagerServer).UpdateDevice(ctx, req.(*UpdateDeviceRequest))
  1709. }
  1710. return interceptor(ctx, in, info, handler)
  1711. }
  1712. func _DeviceManager_DeleteDevice_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1713. in := new(DeleteDeviceRequest)
  1714. if err := dec(in); err != nil {
  1715. return nil, err
  1716. }
  1717. if interceptor == nil {
  1718. return srv.(DeviceManagerServer).DeleteDevice(ctx, in)
  1719. }
  1720. info := &grpc.UnaryServerInfo{
  1721. Server: srv,
  1722. FullMethod: "/google.cloud.iot.v1.DeviceManager/DeleteDevice",
  1723. }
  1724. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1725. return srv.(DeviceManagerServer).DeleteDevice(ctx, req.(*DeleteDeviceRequest))
  1726. }
  1727. return interceptor(ctx, in, info, handler)
  1728. }
  1729. func _DeviceManager_ListDevices_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1730. in := new(ListDevicesRequest)
  1731. if err := dec(in); err != nil {
  1732. return nil, err
  1733. }
  1734. if interceptor == nil {
  1735. return srv.(DeviceManagerServer).ListDevices(ctx, in)
  1736. }
  1737. info := &grpc.UnaryServerInfo{
  1738. Server: srv,
  1739. FullMethod: "/google.cloud.iot.v1.DeviceManager/ListDevices",
  1740. }
  1741. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1742. return srv.(DeviceManagerServer).ListDevices(ctx, req.(*ListDevicesRequest))
  1743. }
  1744. return interceptor(ctx, in, info, handler)
  1745. }
  1746. func _DeviceManager_ModifyCloudToDeviceConfig_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1747. in := new(ModifyCloudToDeviceConfigRequest)
  1748. if err := dec(in); err != nil {
  1749. return nil, err
  1750. }
  1751. if interceptor == nil {
  1752. return srv.(DeviceManagerServer).ModifyCloudToDeviceConfig(ctx, in)
  1753. }
  1754. info := &grpc.UnaryServerInfo{
  1755. Server: srv,
  1756. FullMethod: "/google.cloud.iot.v1.DeviceManager/ModifyCloudToDeviceConfig",
  1757. }
  1758. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1759. return srv.(DeviceManagerServer).ModifyCloudToDeviceConfig(ctx, req.(*ModifyCloudToDeviceConfigRequest))
  1760. }
  1761. return interceptor(ctx, in, info, handler)
  1762. }
  1763. func _DeviceManager_ListDeviceConfigVersions_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1764. in := new(ListDeviceConfigVersionsRequest)
  1765. if err := dec(in); err != nil {
  1766. return nil, err
  1767. }
  1768. if interceptor == nil {
  1769. return srv.(DeviceManagerServer).ListDeviceConfigVersions(ctx, in)
  1770. }
  1771. info := &grpc.UnaryServerInfo{
  1772. Server: srv,
  1773. FullMethod: "/google.cloud.iot.v1.DeviceManager/ListDeviceConfigVersions",
  1774. }
  1775. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1776. return srv.(DeviceManagerServer).ListDeviceConfigVersions(ctx, req.(*ListDeviceConfigVersionsRequest))
  1777. }
  1778. return interceptor(ctx, in, info, handler)
  1779. }
  1780. func _DeviceManager_ListDeviceStates_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1781. in := new(ListDeviceStatesRequest)
  1782. if err := dec(in); err != nil {
  1783. return nil, err
  1784. }
  1785. if interceptor == nil {
  1786. return srv.(DeviceManagerServer).ListDeviceStates(ctx, in)
  1787. }
  1788. info := &grpc.UnaryServerInfo{
  1789. Server: srv,
  1790. FullMethod: "/google.cloud.iot.v1.DeviceManager/ListDeviceStates",
  1791. }
  1792. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1793. return srv.(DeviceManagerServer).ListDeviceStates(ctx, req.(*ListDeviceStatesRequest))
  1794. }
  1795. return interceptor(ctx, in, info, handler)
  1796. }
  1797. func _DeviceManager_SetIamPolicy_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1798. in := new(v1.SetIamPolicyRequest)
  1799. if err := dec(in); err != nil {
  1800. return nil, err
  1801. }
  1802. if interceptor == nil {
  1803. return srv.(DeviceManagerServer).SetIamPolicy(ctx, in)
  1804. }
  1805. info := &grpc.UnaryServerInfo{
  1806. Server: srv,
  1807. FullMethod: "/google.cloud.iot.v1.DeviceManager/SetIamPolicy",
  1808. }
  1809. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1810. return srv.(DeviceManagerServer).SetIamPolicy(ctx, req.(*v1.SetIamPolicyRequest))
  1811. }
  1812. return interceptor(ctx, in, info, handler)
  1813. }
  1814. func _DeviceManager_GetIamPolicy_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1815. in := new(v1.GetIamPolicyRequest)
  1816. if err := dec(in); err != nil {
  1817. return nil, err
  1818. }
  1819. if interceptor == nil {
  1820. return srv.(DeviceManagerServer).GetIamPolicy(ctx, in)
  1821. }
  1822. info := &grpc.UnaryServerInfo{
  1823. Server: srv,
  1824. FullMethod: "/google.cloud.iot.v1.DeviceManager/GetIamPolicy",
  1825. }
  1826. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1827. return srv.(DeviceManagerServer).GetIamPolicy(ctx, req.(*v1.GetIamPolicyRequest))
  1828. }
  1829. return interceptor(ctx, in, info, handler)
  1830. }
  1831. func _DeviceManager_TestIamPermissions_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1832. in := new(v1.TestIamPermissionsRequest)
  1833. if err := dec(in); err != nil {
  1834. return nil, err
  1835. }
  1836. if interceptor == nil {
  1837. return srv.(DeviceManagerServer).TestIamPermissions(ctx, in)
  1838. }
  1839. info := &grpc.UnaryServerInfo{
  1840. Server: srv,
  1841. FullMethod: "/google.cloud.iot.v1.DeviceManager/TestIamPermissions",
  1842. }
  1843. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1844. return srv.(DeviceManagerServer).TestIamPermissions(ctx, req.(*v1.TestIamPermissionsRequest))
  1845. }
  1846. return interceptor(ctx, in, info, handler)
  1847. }
  1848. func _DeviceManager_SendCommandToDevice_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1849. in := new(SendCommandToDeviceRequest)
  1850. if err := dec(in); err != nil {
  1851. return nil, err
  1852. }
  1853. if interceptor == nil {
  1854. return srv.(DeviceManagerServer).SendCommandToDevice(ctx, in)
  1855. }
  1856. info := &grpc.UnaryServerInfo{
  1857. Server: srv,
  1858. FullMethod: "/google.cloud.iot.v1.DeviceManager/SendCommandToDevice",
  1859. }
  1860. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1861. return srv.(DeviceManagerServer).SendCommandToDevice(ctx, req.(*SendCommandToDeviceRequest))
  1862. }
  1863. return interceptor(ctx, in, info, handler)
  1864. }
  1865. func _DeviceManager_BindDeviceToGateway_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1866. in := new(BindDeviceToGatewayRequest)
  1867. if err := dec(in); err != nil {
  1868. return nil, err
  1869. }
  1870. if interceptor == nil {
  1871. return srv.(DeviceManagerServer).BindDeviceToGateway(ctx, in)
  1872. }
  1873. info := &grpc.UnaryServerInfo{
  1874. Server: srv,
  1875. FullMethod: "/google.cloud.iot.v1.DeviceManager/BindDeviceToGateway",
  1876. }
  1877. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1878. return srv.(DeviceManagerServer).BindDeviceToGateway(ctx, req.(*BindDeviceToGatewayRequest))
  1879. }
  1880. return interceptor(ctx, in, info, handler)
  1881. }
  1882. func _DeviceManager_UnbindDeviceFromGateway_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1883. in := new(UnbindDeviceFromGatewayRequest)
  1884. if err := dec(in); err != nil {
  1885. return nil, err
  1886. }
  1887. if interceptor == nil {
  1888. return srv.(DeviceManagerServer).UnbindDeviceFromGateway(ctx, in)
  1889. }
  1890. info := &grpc.UnaryServerInfo{
  1891. Server: srv,
  1892. FullMethod: "/google.cloud.iot.v1.DeviceManager/UnbindDeviceFromGateway",
  1893. }
  1894. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1895. return srv.(DeviceManagerServer).UnbindDeviceFromGateway(ctx, req.(*UnbindDeviceFromGatewayRequest))
  1896. }
  1897. return interceptor(ctx, in, info, handler)
  1898. }
  1899. var _DeviceManager_serviceDesc = grpc.ServiceDesc{
  1900. ServiceName: "google.cloud.iot.v1.DeviceManager",
  1901. HandlerType: (*DeviceManagerServer)(nil),
  1902. Methods: []grpc.MethodDesc{
  1903. {
  1904. MethodName: "CreateDeviceRegistry",
  1905. Handler: _DeviceManager_CreateDeviceRegistry_Handler,
  1906. },
  1907. {
  1908. MethodName: "GetDeviceRegistry",
  1909. Handler: _DeviceManager_GetDeviceRegistry_Handler,
  1910. },
  1911. {
  1912. MethodName: "UpdateDeviceRegistry",
  1913. Handler: _DeviceManager_UpdateDeviceRegistry_Handler,
  1914. },
  1915. {
  1916. MethodName: "DeleteDeviceRegistry",
  1917. Handler: _DeviceManager_DeleteDeviceRegistry_Handler,
  1918. },
  1919. {
  1920. MethodName: "ListDeviceRegistries",
  1921. Handler: _DeviceManager_ListDeviceRegistries_Handler,
  1922. },
  1923. {
  1924. MethodName: "CreateDevice",
  1925. Handler: _DeviceManager_CreateDevice_Handler,
  1926. },
  1927. {
  1928. MethodName: "GetDevice",
  1929. Handler: _DeviceManager_GetDevice_Handler,
  1930. },
  1931. {
  1932. MethodName: "UpdateDevice",
  1933. Handler: _DeviceManager_UpdateDevice_Handler,
  1934. },
  1935. {
  1936. MethodName: "DeleteDevice",
  1937. Handler: _DeviceManager_DeleteDevice_Handler,
  1938. },
  1939. {
  1940. MethodName: "ListDevices",
  1941. Handler: _DeviceManager_ListDevices_Handler,
  1942. },
  1943. {
  1944. MethodName: "ModifyCloudToDeviceConfig",
  1945. Handler: _DeviceManager_ModifyCloudToDeviceConfig_Handler,
  1946. },
  1947. {
  1948. MethodName: "ListDeviceConfigVersions",
  1949. Handler: _DeviceManager_ListDeviceConfigVersions_Handler,
  1950. },
  1951. {
  1952. MethodName: "ListDeviceStates",
  1953. Handler: _DeviceManager_ListDeviceStates_Handler,
  1954. },
  1955. {
  1956. MethodName: "SetIamPolicy",
  1957. Handler: _DeviceManager_SetIamPolicy_Handler,
  1958. },
  1959. {
  1960. MethodName: "GetIamPolicy",
  1961. Handler: _DeviceManager_GetIamPolicy_Handler,
  1962. },
  1963. {
  1964. MethodName: "TestIamPermissions",
  1965. Handler: _DeviceManager_TestIamPermissions_Handler,
  1966. },
  1967. {
  1968. MethodName: "SendCommandToDevice",
  1969. Handler: _DeviceManager_SendCommandToDevice_Handler,
  1970. },
  1971. {
  1972. MethodName: "BindDeviceToGateway",
  1973. Handler: _DeviceManager_BindDeviceToGateway_Handler,
  1974. },
  1975. {
  1976. MethodName: "UnbindDeviceFromGateway",
  1977. Handler: _DeviceManager_UnbindDeviceFromGateway_Handler,
  1978. },
  1979. },
  1980. Streams: []grpc.StreamDesc{},
  1981. Metadata: "google/cloud/iot/v1/device_manager.proto",
  1982. }
  1983. func init() {
  1984. proto.RegisterFile("google/cloud/iot/v1/device_manager.proto", fileDescriptor_device_manager_8cffe4ebefc093fd)
  1985. }
  1986. var fileDescriptor_device_manager_8cffe4ebefc093fd = []byte{
  1987. // 1801 bytes of a gzipped FileDescriptorProto
  1988. 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xbc, 0x59, 0x4f, 0x6f, 0x1c, 0x49,
  1989. 0x15, 0x4f, 0x8d, 0x83, 0xc9, 0x3c, 0x4f, 0x36, 0x49, 0xd9, 0x1b, 0x0f, 0x33, 0xf1, 0x7a, 0x52,
  1990. 0x0b, 0xac, 0x77, 0xc4, 0x4e, 0xc7, 0xce, 0x26, 0x0a, 0x5e, 0xc1, 0xb2, 0xfe, 0xb3, 0x9e, 0x20,
  1991. 0x7b, 0xf1, 0xb6, 0x9d, 0x05, 0xcc, 0x61, 0x68, 0x4f, 0x97, 0x5b, 0xbd, 0x99, 0xee, 0xea, 0xed,
  1992. 0xaa, 0x31, 0x38, 0x28, 0x42, 0x22, 0x02, 0x4e, 0x5c, 0x12, 0x0e, 0x11, 0x12, 0xca, 0x05, 0x10,
  1993. 0x07, 0xfe, 0x1c, 0x82, 0x10, 0xdc, 0x90, 0x90, 0xf8, 0x02, 0x1c, 0xf2, 0x05, 0x00, 0xf1, 0x11,
  1994. 0x38, 0x70, 0x40, 0xdd, 0x55, 0x3d, 0x9e, 0xee, 0xe9, 0xee, 0xf9, 0x63, 0x94, 0xdb, 0x74, 0xd5,
  1995. 0xab, 0xf7, 0x7e, 0xef, 0x57, 0xef, 0x57, 0xfd, 0xaa, 0x07, 0x96, 0x2c, 0xc6, 0xac, 0x0e, 0xd5,
  1996. 0xda, 0x1d, 0xd6, 0x35, 0x35, 0x9b, 0x09, 0xed, 0x78, 0x59, 0x33, 0xe9, 0xb1, 0xdd, 0xa6, 0x2d,
  1997. 0xc7, 0x70, 0x0d, 0x8b, 0xfa, 0x0d, 0xcf, 0x67, 0x82, 0xe1, 0x59, 0x69, 0xd9, 0x08, 0x2d, 0x1b,
  1998. 0x36, 0x13, 0x8d, 0xe3, 0xe5, 0xca, 0x35, 0xb5, 0xdc, 0xf0, 0x6c, 0xcd, 0x70, 0x5d, 0x26, 0x0c,
  1999. 0x61, 0x33, 0x97, 0xcb, 0x25, 0x95, 0xd7, 0xd3, 0x9c, 0xfb, 0x94, 0xb3, 0xae, 0xdf, 0xa6, 0x91,
  2000. 0xd1, 0x6b, 0xca, 0xc8, 0x36, 0x9c, 0x60, 0xda, 0x36, 0x9c, 0x96, 0xc7, 0x3a, 0x76, 0xfb, 0x44,
  2001. 0xcd, 0x57, 0xe2, 0xf3, 0xb1, 0xb9, 0x68, 0x6d, 0xf8, 0x74, 0xd8, 0x3d, 0xd2, 0xcc, 0xae, 0x1f,
  2002. 0x22, 0x50, 0xf3, 0xd5, 0xe4, 0x3c, 0x75, 0x3c, 0x11, 0x2d, 0xae, 0x25, 0x27, 0x8f, 0x6c, 0xda,
  2003. 0x31, 0x5b, 0x8e, 0xc1, 0xef, 0x2b, 0x8b, 0xc5, 0xa4, 0x85, 0xb0, 0x1d, 0xca, 0x85, 0xe1, 0x78,
  2004. 0xca, 0x60, 0x5e, 0x19, 0xf8, 0x5e, 0x5b, 0xe3, 0xc2, 0x10, 0x5d, 0x95, 0x14, 0x79, 0x84, 0xa0,
  2005. 0xba, 0xee, 0x53, 0x43, 0xd0, 0x8d, 0x90, 0x4b, 0x9d, 0x5a, 0x36, 0x17, 0xfe, 0x89, 0x4e, 0x3f,
  2006. 0xe9, 0x52, 0x2e, 0xf0, 0x55, 0x98, 0xf6, 0x0c, 0x9f, 0xba, 0xa2, 0x8c, 0x6a, 0x68, 0xa9, 0xa8,
  2007. 0xab, 0x27, 0xbc, 0x0d, 0x97, 0x14, 0xf9, 0xbe, 0x5a, 0x51, 0x2e, 0xd4, 0xd0, 0xd2, 0xcc, 0xca,
  2008. 0xeb, 0x8d, 0x14, 0xfa, 0x1b, 0x09, 0xe7, 0xaf, 0x98, 0xb1, 0x67, 0xd2, 0x80, 0xf2, 0x16, 0x15,
  2009. 0xe9, 0x08, 0x30, 0x9c, 0x77, 0x0d, 0x87, 0xaa, 0xf8, 0xe1, 0x6f, 0xb2, 0x0c, 0xd5, 0x0d, 0xda,
  2010. 0xa1, 0x59, 0xa0, 0xd3, 0x96, 0xfc, 0x1a, 0x41, 0xf5, 0x9e, 0x67, 0x66, 0x26, 0x9a, 0x92, 0x10,
  2011. 0x9a, 0x38, 0x21, 0xfc, 0x0e, 0xcc, 0x74, 0xc3, 0x60, 0xe1, 0x2e, 0x29, 0x6a, 0x2a, 0x91, 0xa7,
  2012. 0x68, 0x9b, 0x1a, 0xef, 0x07, 0x1b, 0xb9, 0x63, 0xf0, 0xfb, 0x3a, 0x48, 0xf3, 0xe0, 0x37, 0xf9,
  2013. 0x04, 0xaa, 0xdb, 0x36, 0x8f, 0xd3, 0x61, 0x53, 0x3e, 0x6c, 0x4b, 0xaa, 0x50, 0xf4, 0x0c, 0x8b,
  2014. 0xb6, 0xb8, 0xfd, 0x80, 0x86, 0x11, 0x3f, 0xa5, 0x5f, 0x08, 0x06, 0xf6, 0xec, 0x07, 0x14, 0x2f,
  2015. 0x00, 0x84, 0x93, 0x82, 0xdd, 0xa7, 0x6e, 0x79, 0x2a, 0x5c, 0x18, 0x9a, 0xef, 0x07, 0x03, 0xe4,
  2016. 0x29, 0x82, 0x6b, 0xe9, 0x31, 0xb9, 0xc7, 0x5c, 0x4e, 0xf1, 0x2e, 0x5c, 0x89, 0xd3, 0x63, 0x53,
  2017. 0x5e, 0x46, 0xb5, 0xa9, 0x51, 0x09, 0xba, 0x6c, 0x26, 0x3c, 0xe3, 0xcf, 0xc3, 0x25, 0x97, 0x7e,
  2018. 0x57, 0xb4, 0xfa, 0x60, 0x15, 0x42, 0x58, 0x17, 0x83, 0xe1, 0xdd, 0x1e, 0xb4, 0x43, 0x98, 0x8d,
  2019. 0x17, 0x68, 0x3e, 0x0b, 0x37, 0x61, 0x5a, 0x86, 0x52, 0xa4, 0x57, 0xf3, 0xd0, 0x29, 0x53, 0x62,
  2020. 0xc0, 0xe5, 0xbe, 0xfa, 0xcb, 0x2c, 0x22, 0xfc, 0x45, 0x80, 0x53, 0xed, 0x8d, 0xb0, 0xab, 0xc5,
  2021. 0xa3, 0xe8, 0x27, 0xf9, 0x31, 0x82, 0xd9, 0x78, 0xfd, 0xc9, 0x30, 0x93, 0xe0, 0x4d, 0x96, 0xd7,
  2022. 0xd4, 0x58, 0xe5, 0xf5, 0x26, 0xcc, 0xc6, 0xc5, 0x93, 0x2d, 0x9a, 0xbf, 0x16, 0x00, 0x9f, 0x96,
  2023. 0xc5, 0xd0, 0x0a, 0xfc, 0x2c, 0x28, 0x1d, 0xb4, 0xdc, 0xae, 0xd3, 0xb2, 0x4d, 0x5e, 0x2e, 0xd4,
  2024. 0xa6, 0x96, 0xce, 0xeb, 0x25, 0x39, 0xfa, 0x41, 0xd7, 0xb9, 0x6b, 0xf2, 0xa0, 0x14, 0x95, 0x55,
  2025. 0x60, 0x31, 0x55, 0x9b, 0x0a, 0x4a, 0x51, 0x8e, 0x04, 0xd3, 0x71, 0x8e, 0xcf, 0x8f, 0xc1, 0x31,
  2026. 0xfe, 0x26, 0xcc, 0x59, 0x86, 0xa0, 0xdf, 0x31, 0x4e, 0x5a, 0x1d, 0x9b, 0x8b, 0x16, 0xf3, 0xc2,
  2027. 0x43, 0xbe, 0x3c, 0x1d, 0x3a, 0x79, 0x23, 0x95, 0xd9, 0x2d, 0xb9, 0x20, 0xc8, 0xf2, 0x6b, 0xd2,
  2028. 0x5c, 0xc7, 0xd6, 0xc0, 0x58, 0x5c, 0x5c, 0x66, 0xae, 0xb8, 0x68, 0x52, 0x5c, 0x2f, 0x10, 0xe0,
  2029. 0xc1, 0x30, 0x78, 0x13, 0x4a, 0x11, 0x5a, 0x71, 0xe2, 0x49, 0xe2, 0x5f, 0x59, 0xa9, 0xe5, 0xa1,
  2030. 0xdc, 0x3f, 0xf1, 0x68, 0xf3, 0x9c, 0x3e, 0x63, 0x9d, 0x3e, 0xe2, 0x3b, 0x30, 0x6f, 0x70, 0xce,
  2031. 0xda, 0xb6, 0x7c, 0xa3, 0xb5, 0x22, 0x9f, 0xb6, 0x29, 0xf5, 0xd4, 0x3c, 0xa7, 0xbf, 0xda, 0x6f,
  2032. 0xa0, 0x5c, 0xdd, 0x35, 0xf1, 0x6d, 0xb8, 0x1a, 0x5b, 0xd9, 0xdb, 0x15, 0x79, 0x3e, 0x34, 0xcf,
  2033. 0xe9, 0x73, 0xfd, 0xf3, 0x1b, 0x6a, 0x8b, 0xd6, 0x2e, 0xc0, 0xf4, 0x91, 0xdd, 0x11, 0xd4, 0x27,
  2034. 0x02, 0x66, 0x63, 0xe5, 0xa1, 0x0e, 0x8b, 0x5b, 0xf0, 0x69, 0xe9, 0x2b, 0x3a, 0x22, 0x72, 0x8b,
  2035. 0x3a, 0xb2, 0x1d, 0xf9, 0x44, 0x78, 0x84, 0xa0, 0xb6, 0xc3, 0x4c, 0xfb, 0xe8, 0x64, 0x3d, 0x70,
  2036. 0xb7, 0xcf, 0xa4, 0xa3, 0x75, 0xe6, 0x1e, 0xd9, 0x56, 0x9e, 0x7c, 0xeb, 0x70, 0xe5, 0x98, 0xfa,
  2037. 0xdc, 0x66, 0x6e, 0x4b, 0xb0, 0x96, 0x94, 0x44, 0x18, 0x62, 0x4a, 0xbf, 0xa4, 0x26, 0xf6, 0x99,
  2038. 0x14, 0x29, 0x5e, 0x84, 0x99, 0x43, 0xdb, 0x35, 0xfc, 0x93, 0x96, 0x69, 0x08, 0x23, 0x64, 0xa4,
  2039. 0xa4, 0x83, 0x1c, 0xda, 0x30, 0x84, 0x41, 0xbe, 0x01, 0x8b, 0xa7, 0xb9, 0xcb, 0xd8, 0x1f, 0x49,
  2040. 0x1f, 0x3c, 0x0f, 0xc3, 0x75, 0x28, 0x05, 0xe2, 0x50, 0xe1, 0xb8, 0x3a, 0xa8, 0x67, 0xdc, 0xae,
  2041. 0x13, 0xad, 0x26, 0x1d, 0xa8, 0x65, 0x7b, 0x56, 0x14, 0x37, 0x7b, 0x52, 0x6b, 0x87, 0x06, 0x11,
  2042. 0xd3, 0xd7, 0x73, 0x98, 0x56, 0x04, 0x5d, 0x34, 0xfb, 0x9e, 0x38, 0xd9, 0x86, 0xf9, 0xd3, 0x68,
  2043. 0x7b, 0xc2, 0x10, 0x34, 0x17, 0xff, 0x02, 0x40, 0x80, 0x9f, 0x87, 0x86, 0x0a, 0x7d, 0xd1, 0xed,
  2044. 0x3a, 0x72, 0x25, 0x31, 0xa0, 0x3c, 0xe8, 0x4d, 0x61, 0xde, 0x04, 0x15, 0x3a, 0x5a, 0x2d, 0x21,
  2045. 0xd7, 0x72, 0x20, 0x87, 0x1e, 0xa2, 0xf3, 0x43, 0x85, 0x60, 0x50, 0xd9, 0xa3, 0xae, 0xb9, 0xce,
  2046. 0x1c, 0xc7, 0x70, 0x7b, 0xbb, 0x9f, 0x87, 0x39, 0xb1, 0x97, 0x85, 0xe4, 0x5e, 0xe2, 0x6b, 0x50,
  2047. 0xe4, 0xdd, 0xc3, 0x23, 0xd6, 0x31, 0xa9, 0x1f, 0xbd, 0x1c, 0x7b, 0x03, 0x64, 0x01, 0xaa, 0xa9,
  2048. 0x01, 0x65, 0x5a, 0xc4, 0x83, 0xca, 0x9a, 0xed, 0x9a, 0x72, 0x74, 0x9f, 0x29, 0x7d, 0x0d, 0x3b,
  2049. 0x2b, 0x17, 0x00, 0x92, 0x4a, 0xd5, 0x8b, 0x56, 0x4f, 0x9b, 0x55, 0x28, 0x26, 0xe4, 0xa8, 0x5f,
  2050. 0x88, 0xce, 0xc8, 0x00, 0x50, 0x6a, 0x44, 0x05, 0x48, 0xc0, 0x6b, 0xf7, 0xdc, 0xc3, 0x9e, 0xc1,
  2051. 0xfb, 0x3e, 0x73, 0x5e, 0x02, 0xa8, 0xeb, 0xb0, 0x98, 0x19, 0x55, 0x02, 0x5b, 0xf9, 0x27, 0x81,
  2052. 0x8b, 0x72, 0x76, 0x47, 0x76, 0xec, 0xf8, 0x8f, 0x08, 0xe6, 0xd2, 0xda, 0x4f, 0x7c, 0x23, 0xb5,
  2053. 0x28, 0x72, 0x3a, 0xd5, 0xca, 0x28, 0x6d, 0x08, 0xd9, 0xfa, 0xc1, 0xdf, 0xff, 0xf1, 0xa4, 0xf0,
  2054. 0x1e, 0x69, 0x04, 0x1d, 0xfa, 0xf7, 0x64, 0xd6, 0x5f, 0xf2, 0x7c, 0xf6, 0x31, 0x6d, 0x0b, 0xae,
  2055. 0xd5, 0xb5, 0x0e, 0x6b, 0xcb, 0xc3, 0x4e, 0xab, 0x3f, 0xd4, 0x4e, 0x3b, 0x9d, 0xd5, 0x64, 0x6f,
  2056. 0x88, 0x9f, 0x21, 0xb8, 0x32, 0xd0, 0xb2, 0xe2, 0xb7, 0xd2, 0x0f, 0xef, 0x8c, 0xd6, 0x76, 0x34,
  2057. 0xc8, 0xb7, 0x43, 0xc8, 0x37, 0xb0, 0x84, 0x1c, 0xd4, 0x73, 0x06, 0xe0, 0x3e, 0xbc, 0x5a, 0xfd,
  2058. 0x21, 0xfe, 0x1b, 0x82, 0xb9, 0xb4, 0x86, 0x37, 0x83, 0xda, 0x9c, 0xde, 0x78, 0x34, 0x9c, 0x5f,
  2059. 0x0f, 0x71, 0x7e, 0xb8, 0xf2, 0xe5, 0x10, 0x67, 0x82, 0xaf, 0xc6, 0xc8, 0xb8, 0x07, 0xa9, 0x7e,
  2060. 0x8a, 0x60, 0x2e, 0xad, 0xdb, 0xcf, 0x48, 0x24, 0xe7, 0x62, 0x50, 0xb9, 0x3a, 0xd0, 0x47, 0x6c,
  2061. 0x06, 0xf7, 0xac, 0x88, 0xe3, 0xfa, 0xb8, 0x1c, 0x3f, 0x47, 0x30, 0x97, 0xd6, 0x36, 0x67, 0x40,
  2062. 0xcb, 0xe9, 0xea, 0x2b, 0xcb, 0x63, 0xac, 0x50, 0x3a, 0x8f, 0x57, 0xc6, 0xc8, 0xc5, 0x1c, 0xd4,
  2063. 0x6e, 0xa9, 0x5f, 0x49, 0x78, 0x69, 0x04, 0xb1, 0x49, 0x94, 0x79, 0x2f, 0x72, 0xd2, 0x0c, 0xf1,
  2064. 0xac, 0x91, 0x3b, 0xc3, 0xf1, 0xc4, 0x79, 0x54, 0xf7, 0x78, 0xbe, 0x1a, 0xf5, 0xb7, 0x2f, 0x10,
  2065. 0x14, 0x7b, 0xaa, 0xc1, 0x9f, 0x1b, 0xa6, 0xaa, 0x11, 0xb0, 0xfd, 0x10, 0x85, 0xe0, 0xbe, 0x8f,
  2066. 0xef, 0x8c, 0xb5, 0xc5, 0x11, 0x32, 0xad, 0xfe, 0xf0, 0x60, 0x1d, 0xbf, 0x37, 0xde, 0x5a, 0xcb,
  2067. 0x67, 0x5d, 0x2f, 0xee, 0x04, 0xff, 0x17, 0x41, 0xa9, 0x5f, 0x6a, 0x19, 0xdc, 0xa7, 0xdc, 0x14,
  2068. 0xf2, 0xf3, 0xfb, 0x85, 0xcc, 0xef, 0xe7, 0x68, 0xe5, 0xdd, 0x3e, 0xfd, 0x35, 0x26, 0xc8, 0x33,
  2069. 0xda, 0x84, 0x03, 0x7d, 0xa5, 0x39, 0x91, 0xab, 0x94, 0xb4, 0x7b, 0x1b, 0xfb, 0x18, 0x41, 0xa9,
  2070. 0x5f, 0xa0, 0x19, 0xe9, 0xa7, 0xdc, 0x4f, 0x32, 0xb5, 0xfb, 0x95, 0x30, 0xf1, 0xd5, 0xfa, 0xc4,
  2071. 0x1b, 0x8b, 0xff, 0x8d, 0x60, 0xa6, 0xaf, 0x8d, 0xc5, 0x6f, 0x0c, 0x91, 0x62, 0x4f, 0xb3, 0x4b,
  2072. 0xc3, 0x0d, 0x95, 0x54, 0x13, 0xe5, 0x37, 0x81, 0x36, 0x7a, 0xe5, 0x37, 0xfa, 0xda, 0xde, 0x4e,
  2073. 0xf4, 0x9c, 0xe0, 0x3f, 0x15, 0xe0, 0x33, 0x99, 0xad, 0x33, 0xbe, 0x95, 0x9a, 0xcf, 0xb0, 0x56,
  2074. 0xbb, 0x32, 0xbc, 0xe7, 0x24, 0x7f, 0x91, 0xf9, 0xff, 0x19, 0x11, 0x7d, 0xd2, 0x6d, 0x5a, 0x75,
  2075. 0xb2, 0x70, 0xac, 0xa2, 0xfa, 0xc1, 0xb7, 0xc9, 0xb7, 0xce, 0x2c, 0xce, 0xdc, 0x08, 0xf8, 0x77,
  2076. 0x85, 0xfe, 0xd6, 0x36, 0xde, 0x96, 0xe3, 0xb7, 0x87, 0x54, 0x42, 0xea, 0xfd, 0xa0, 0x72, 0x6b,
  2077. 0xcc, 0x55, 0xaa, 0x98, 0x7a, 0x5a, 0xc7, 0x5b, 0x93, 0x92, 0xa9, 0xb5, 0x63, 0xae, 0x0f, 0x74,
  2078. 0xbc, 0x7b, 0x66, 0xfa, 0x12, 0x3e, 0xf1, 0x8f, 0x0a, 0x70, 0x39, 0x79, 0x17, 0xc0, 0x5f, 0x18,
  2079. 0x92, 0x72, 0xec, 0x02, 0x52, 0x79, 0x6b, 0x44, 0x6b, 0x45, 0xcc, 0x4f, 0x25, 0x31, 0x3f, 0x41,
  2080. 0xf8, 0xdd, 0x89, 0x89, 0x91, 0x57, 0x93, 0x83, 0xaf, 0xe2, 0xe6, 0xd9, 0x09, 0x91, 0xbe, 0xf0,
  2081. 0xbf, 0x10, 0x94, 0xf6, 0xa8, 0xb8, 0x6b, 0x38, 0xbb, 0xe1, 0x37, 0x61, 0x4c, 0xa2, 0xb4, 0x6c,
  2082. 0xc3, 0x09, 0x12, 0xea, 0x9f, 0x8c, 0x52, 0x7f, 0x35, 0x61, 0x23, 0x67, 0xc9, 0xcf, 0x64, 0x8a,
  2083. 0x4f, 0x10, 0x91, 0x29, 0x46, 0x1f, 0xa9, 0x47, 0xeb, 0xad, 0x78, 0x5f, 0xa0, 0x40, 0x35, 0x3b,
  2084. 0xa4, 0x39, 0xb6, 0x97, 0xd3, 0x53, 0x25, 0xe9, 0x2e, 0x4c, 0x74, 0x2b, 0x2f, 0xd1, 0xad, 0x97,
  2085. 0x95, 0xa8, 0xf5, 0xff, 0x4d, 0x34, 0xe1, 0x0e, 0x3f, 0x2e, 0x00, 0xde, 0xa7, 0x3c, 0x1c, 0xa4,
  2086. 0xbe, 0x63, 0x73, 0x59, 0xf1, 0x4b, 0x89, 0x54, 0x06, 0x4d, 0xa2, 0xa4, 0xdf, 0x1c, 0xc1, 0x52,
  2087. 0x15, 0xf5, 0xaf, 0x24, 0x11, 0xcf, 0x10, 0xd9, 0x9c, 0x80, 0x08, 0x31, 0xe0, 0x38, 0xa0, 0x63,
  2088. 0x8f, 0x7c, 0x70, 0x16, 0x3a, 0x52, 0x9d, 0xe2, 0xdf, 0x17, 0x60, 0x36, 0xe5, 0x9e, 0x8c, 0xb5,
  2089. 0x54, 0x11, 0x67, 0x5f, 0xe1, 0x2b, 0x37, 0x46, 0x5f, 0xa0, 0x38, 0xfa, 0x83, 0xe4, 0xe8, 0xb7,
  2090. 0x88, 0x6c, 0x4f, 0xfc, 0x7a, 0xe1, 0x83, 0xfe, 0x03, 0xaa, 0x0e, 0xc8, 0xbd, 0xb3, 0xbf, 0x58,
  2091. 0xd2, 0x7d, 0xe3, 0x67, 0x05, 0x98, 0x4d, 0xb9, 0xc8, 0x67, 0x30, 0x96, 0xfd, 0x91, 0x21, 0x83,
  2092. 0xb1, 0xbc, 0x6f, 0x04, 0xbd, 0x77, 0x08, 0xd9, 0x18, 0xb7, 0x23, 0x59, 0x3d, 0x1c, 0xf4, 0x1b,
  2093. 0x30, 0xa5, 0x93, 0x9d, 0x89, 0x1b, 0x94, 0x0c, 0x9f, 0xf8, 0x79, 0x01, 0xe6, 0x33, 0xbe, 0x2a,
  2094. 0xe0, 0x9b, 0xe9, 0x9d, 0x73, 0xee, 0x97, 0x8f, 0xca, 0xdb, 0xe3, 0x2d, 0x52, 0x6c, 0xfd, 0x46,
  2095. 0xb2, 0xf5, 0x4b, 0xa4, 0x8e, 0x91, 0x71, 0xd8, 0xea, 0xa6, 0xfb, 0x0e, 0x18, 0xfb, 0x88, 0x7c,
  2096. 0x38, 0x39, 0x63, 0xd9, 0x7e, 0xd7, 0x3e, 0x86, 0xf9, 0x36, 0x73, 0xd2, 0x32, 0x5d, 0xc3, 0xb1,
  2097. 0xef, 0x2f, 0xbb, 0x41, 0x2b, 0xbd, 0x8b, 0x0e, 0x6e, 0x2b, 0x53, 0x8b, 0x75, 0x0c, 0xd7, 0x6a,
  2098. 0x30, 0xdf, 0xd2, 0x2c, 0xea, 0x86, 0x8d, 0xb6, 0x26, 0xa7, 0x0c, 0xcf, 0xe6, 0xb1, 0xbf, 0x47,
  2099. 0xdf, 0xb1, 0x99, 0xf8, 0x0f, 0x42, 0x87, 0xd3, 0xa1, 0xd5, 0xcd, 0xff, 0x05, 0x00, 0x00, 0xff,
  2100. 0xff, 0x7f, 0x49, 0x56, 0x46, 0xa0, 0x1d, 0x00, 0x00,
  2101. }