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.
 
 
 

1587 lines
64 KiB

  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // source: google/cloud/iot/v1/resources.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 timestamp "github.com/golang/protobuf/ptypes/timestamp"
  8. import _ "google.golang.org/genproto/googleapis/api/annotations"
  9. import status "google.golang.org/genproto/googleapis/rpc/status"
  10. // Reference imports to suppress errors if they are not otherwise used.
  11. var _ = proto.Marshal
  12. var _ = fmt.Errorf
  13. var _ = math.Inf
  14. // This is a compile-time assertion to ensure that this generated file
  15. // is compatible with the proto package it is being compiled against.
  16. // A compilation error at this line likely means your copy of the
  17. // proto package needs to be updated.
  18. const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
  19. // Indicates whether an MQTT connection is enabled or disabled. See the field
  20. // description for details.
  21. type MqttState int32
  22. const (
  23. // No MQTT state specified. If not specified, MQTT will be enabled by default.
  24. MqttState_MQTT_STATE_UNSPECIFIED MqttState = 0
  25. // Enables a MQTT connection.
  26. MqttState_MQTT_ENABLED MqttState = 1
  27. // Disables a MQTT connection.
  28. MqttState_MQTT_DISABLED MqttState = 2
  29. )
  30. var MqttState_name = map[int32]string{
  31. 0: "MQTT_STATE_UNSPECIFIED",
  32. 1: "MQTT_ENABLED",
  33. 2: "MQTT_DISABLED",
  34. }
  35. var MqttState_value = map[string]int32{
  36. "MQTT_STATE_UNSPECIFIED": 0,
  37. "MQTT_ENABLED": 1,
  38. "MQTT_DISABLED": 2,
  39. }
  40. func (x MqttState) String() string {
  41. return proto.EnumName(MqttState_name, int32(x))
  42. }
  43. func (MqttState) EnumDescriptor() ([]byte, []int) {
  44. return fileDescriptor_resources_cabc2cc6ede491e9, []int{0}
  45. }
  46. // Indicates whether DeviceService (HTTP) is enabled or disabled for the
  47. // registry. See the field description for details.
  48. type HttpState int32
  49. const (
  50. // No HTTP state specified. If not specified, DeviceService will be
  51. // enabled by default.
  52. HttpState_HTTP_STATE_UNSPECIFIED HttpState = 0
  53. // Enables DeviceService (HTTP) service for the registry.
  54. HttpState_HTTP_ENABLED HttpState = 1
  55. // Disables DeviceService (HTTP) service for the registry.
  56. HttpState_HTTP_DISABLED HttpState = 2
  57. )
  58. var HttpState_name = map[int32]string{
  59. 0: "HTTP_STATE_UNSPECIFIED",
  60. 1: "HTTP_ENABLED",
  61. 2: "HTTP_DISABLED",
  62. }
  63. var HttpState_value = map[string]int32{
  64. "HTTP_STATE_UNSPECIFIED": 0,
  65. "HTTP_ENABLED": 1,
  66. "HTTP_DISABLED": 2,
  67. }
  68. func (x HttpState) String() string {
  69. return proto.EnumName(HttpState_name, int32(x))
  70. }
  71. func (HttpState) EnumDescriptor() ([]byte, []int) {
  72. return fileDescriptor_resources_cabc2cc6ede491e9, []int{1}
  73. }
  74. // **Beta Feature**
  75. //
  76. // The logging verbosity for device activity. Specifies which events should be
  77. // written to logs. For example, if the LogLevel is ERROR, only events that
  78. // terminate in errors will be logged. LogLevel is inclusive; enabling INFO
  79. // logging will also enable ERROR logging.
  80. type LogLevel int32
  81. const (
  82. // No logging specified. If not specified, logging will be disabled.
  83. LogLevel_LOG_LEVEL_UNSPECIFIED LogLevel = 0
  84. // Disables logging.
  85. LogLevel_NONE LogLevel = 10
  86. // Error events will be logged.
  87. LogLevel_ERROR LogLevel = 20
  88. // Informational events will be logged, such as connections and
  89. // disconnections.
  90. LogLevel_INFO LogLevel = 30
  91. // All events will be logged.
  92. LogLevel_DEBUG LogLevel = 40
  93. )
  94. var LogLevel_name = map[int32]string{
  95. 0: "LOG_LEVEL_UNSPECIFIED",
  96. 10: "NONE",
  97. 20: "ERROR",
  98. 30: "INFO",
  99. 40: "DEBUG",
  100. }
  101. var LogLevel_value = map[string]int32{
  102. "LOG_LEVEL_UNSPECIFIED": 0,
  103. "NONE": 10,
  104. "ERROR": 20,
  105. "INFO": 30,
  106. "DEBUG": 40,
  107. }
  108. func (x LogLevel) String() string {
  109. return proto.EnumName(LogLevel_name, int32(x))
  110. }
  111. func (LogLevel) EnumDescriptor() ([]byte, []int) {
  112. return fileDescriptor_resources_cabc2cc6ede491e9, []int{2}
  113. }
  114. // Gateway type.
  115. type GatewayType int32
  116. const (
  117. // If unspecified, the device is considered a non-gateway device.
  118. GatewayType_GATEWAY_TYPE_UNSPECIFIED GatewayType = 0
  119. // The device is a gateway.
  120. GatewayType_GATEWAY GatewayType = 1
  121. // The device is not a gateway.
  122. GatewayType_NON_GATEWAY GatewayType = 2
  123. )
  124. var GatewayType_name = map[int32]string{
  125. 0: "GATEWAY_TYPE_UNSPECIFIED",
  126. 1: "GATEWAY",
  127. 2: "NON_GATEWAY",
  128. }
  129. var GatewayType_value = map[string]int32{
  130. "GATEWAY_TYPE_UNSPECIFIED": 0,
  131. "GATEWAY": 1,
  132. "NON_GATEWAY": 2,
  133. }
  134. func (x GatewayType) String() string {
  135. return proto.EnumName(GatewayType_name, int32(x))
  136. }
  137. func (GatewayType) EnumDescriptor() ([]byte, []int) {
  138. return fileDescriptor_resources_cabc2cc6ede491e9, []int{3}
  139. }
  140. // The gateway authorization/authentication method. This setting determines how
  141. // Cloud IoT Core authorizes/authenticate devices to access the gateway.
  142. type GatewayAuthMethod int32
  143. const (
  144. // No authentication/authorization method specified. No devices are allowed to
  145. // access the gateway.
  146. GatewayAuthMethod_GATEWAY_AUTH_METHOD_UNSPECIFIED GatewayAuthMethod = 0
  147. // The device is authenticated through the gateway association only. Device
  148. // credentials are ignored even if provided.
  149. GatewayAuthMethod_ASSOCIATION_ONLY GatewayAuthMethod = 1
  150. // The device is authenticated through its own credentials. Gateway
  151. // association is not checked.
  152. GatewayAuthMethod_DEVICE_AUTH_TOKEN_ONLY GatewayAuthMethod = 2
  153. // The device is authenticated through both device credentials and gateway
  154. // association. The device must be bound to the gateway and must provide its
  155. // own credentials.
  156. GatewayAuthMethod_ASSOCIATION_AND_DEVICE_AUTH_TOKEN GatewayAuthMethod = 3
  157. )
  158. var GatewayAuthMethod_name = map[int32]string{
  159. 0: "GATEWAY_AUTH_METHOD_UNSPECIFIED",
  160. 1: "ASSOCIATION_ONLY",
  161. 2: "DEVICE_AUTH_TOKEN_ONLY",
  162. 3: "ASSOCIATION_AND_DEVICE_AUTH_TOKEN",
  163. }
  164. var GatewayAuthMethod_value = map[string]int32{
  165. "GATEWAY_AUTH_METHOD_UNSPECIFIED": 0,
  166. "ASSOCIATION_ONLY": 1,
  167. "DEVICE_AUTH_TOKEN_ONLY": 2,
  168. "ASSOCIATION_AND_DEVICE_AUTH_TOKEN": 3,
  169. }
  170. func (x GatewayAuthMethod) String() string {
  171. return proto.EnumName(GatewayAuthMethod_name, int32(x))
  172. }
  173. func (GatewayAuthMethod) EnumDescriptor() ([]byte, []int) {
  174. return fileDescriptor_resources_cabc2cc6ede491e9, []int{4}
  175. }
  176. // The supported formats for the public key.
  177. type PublicKeyCertificateFormat int32
  178. const (
  179. // The format has not been specified. This is an invalid default value and
  180. // must not be used.
  181. PublicKeyCertificateFormat_UNSPECIFIED_PUBLIC_KEY_CERTIFICATE_FORMAT PublicKeyCertificateFormat = 0
  182. // An X.509v3 certificate ([RFC5280](https://www.ietf.org/rfc/rfc5280.txt)),
  183. // encoded in base64, and wrapped by `-----BEGIN CERTIFICATE-----` and
  184. // `-----END CERTIFICATE-----`.
  185. PublicKeyCertificateFormat_X509_CERTIFICATE_PEM PublicKeyCertificateFormat = 1
  186. )
  187. var PublicKeyCertificateFormat_name = map[int32]string{
  188. 0: "UNSPECIFIED_PUBLIC_KEY_CERTIFICATE_FORMAT",
  189. 1: "X509_CERTIFICATE_PEM",
  190. }
  191. var PublicKeyCertificateFormat_value = map[string]int32{
  192. "UNSPECIFIED_PUBLIC_KEY_CERTIFICATE_FORMAT": 0,
  193. "X509_CERTIFICATE_PEM": 1,
  194. }
  195. func (x PublicKeyCertificateFormat) String() string {
  196. return proto.EnumName(PublicKeyCertificateFormat_name, int32(x))
  197. }
  198. func (PublicKeyCertificateFormat) EnumDescriptor() ([]byte, []int) {
  199. return fileDescriptor_resources_cabc2cc6ede491e9, []int{5}
  200. }
  201. // The supported formats for the public key.
  202. type PublicKeyFormat int32
  203. const (
  204. // The format has not been specified. This is an invalid default value and
  205. // must not be used.
  206. PublicKeyFormat_UNSPECIFIED_PUBLIC_KEY_FORMAT PublicKeyFormat = 0
  207. // An RSA public key encoded in base64, and wrapped by
  208. // `-----BEGIN PUBLIC KEY-----` and `-----END PUBLIC KEY-----`. This can be
  209. // used to verify `RS256` signatures in JWT tokens ([RFC7518](
  210. // https://www.ietf.org/rfc/rfc7518.txt)).
  211. PublicKeyFormat_RSA_PEM PublicKeyFormat = 3
  212. // As RSA_PEM, but wrapped in an X.509v3 certificate ([RFC5280](
  213. // https://www.ietf.org/rfc/rfc5280.txt)), encoded in base64, and wrapped by
  214. // `-----BEGIN CERTIFICATE-----` and `-----END CERTIFICATE-----`.
  215. PublicKeyFormat_RSA_X509_PEM PublicKeyFormat = 1
  216. // Public key for the ECDSA algorithm using P-256 and SHA-256, encoded in
  217. // base64, and wrapped by `-----BEGIN PUBLIC KEY-----` and `-----END
  218. // PUBLIC KEY-----`. This can be used to verify JWT tokens with the `ES256`
  219. // algorithm ([RFC7518](https://www.ietf.org/rfc/rfc7518.txt)). This curve is
  220. // defined in [OpenSSL](https://www.openssl.org/) as the `prime256v1` curve.
  221. PublicKeyFormat_ES256_PEM PublicKeyFormat = 2
  222. // As ES256_PEM, but wrapped in an X.509v3 certificate ([RFC5280](
  223. // https://www.ietf.org/rfc/rfc5280.txt)), encoded in base64, and wrapped by
  224. // `-----BEGIN CERTIFICATE-----` and `-----END CERTIFICATE-----`.
  225. PublicKeyFormat_ES256_X509_PEM PublicKeyFormat = 4
  226. )
  227. var PublicKeyFormat_name = map[int32]string{
  228. 0: "UNSPECIFIED_PUBLIC_KEY_FORMAT",
  229. 3: "RSA_PEM",
  230. 1: "RSA_X509_PEM",
  231. 2: "ES256_PEM",
  232. 4: "ES256_X509_PEM",
  233. }
  234. var PublicKeyFormat_value = map[string]int32{
  235. "UNSPECIFIED_PUBLIC_KEY_FORMAT": 0,
  236. "RSA_PEM": 3,
  237. "RSA_X509_PEM": 1,
  238. "ES256_PEM": 2,
  239. "ES256_X509_PEM": 4,
  240. }
  241. func (x PublicKeyFormat) String() string {
  242. return proto.EnumName(PublicKeyFormat_name, int32(x))
  243. }
  244. func (PublicKeyFormat) EnumDescriptor() ([]byte, []int) {
  245. return fileDescriptor_resources_cabc2cc6ede491e9, []int{6}
  246. }
  247. // The device resource.
  248. type Device struct {
  249. // The user-defined device identifier. The device ID must be unique
  250. // within a device registry.
  251. Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
  252. // The resource path name. For example,
  253. // `projects/p1/locations/us-central1/registries/registry0/devices/dev0` or
  254. // `projects/p1/locations/us-central1/registries/registry0/devices/{num_id}`.
  255. // When `name` is populated as a response from the service, it always ends
  256. // in the device numeric ID.
  257. Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
  258. // [Output only] A server-defined unique numeric ID for the device. This is a
  259. // more compact way to identify devices, and it is globally unique.
  260. NumId uint64 `protobuf:"varint,3,opt,name=num_id,json=numId,proto3" json:"num_id,omitempty"`
  261. // The credentials used to authenticate this device. To allow credential
  262. // rotation without interruption, multiple device credentials can be bound to
  263. // this device. No more than 3 credentials can be bound to a single device at
  264. // a time. When new credentials are added to a device, they are verified
  265. // against the registry credentials. For details, see the description of the
  266. // `DeviceRegistry.credentials` field.
  267. Credentials []*DeviceCredential `protobuf:"bytes,12,rep,name=credentials,proto3" json:"credentials,omitempty"`
  268. // [Output only] The last time an MQTT `PINGREQ` was received. This field
  269. // applies only to devices connecting through MQTT. MQTT clients usually only
  270. // send `PINGREQ` messages if the connection is idle, and no other messages
  271. // have been sent. Timestamps are periodically collected and written to
  272. // storage; they may be stale by a few minutes.
  273. LastHeartbeatTime *timestamp.Timestamp `protobuf:"bytes,7,opt,name=last_heartbeat_time,json=lastHeartbeatTime,proto3" json:"last_heartbeat_time,omitempty"`
  274. // [Output only] The last time a telemetry event was received. Timestamps are
  275. // periodically collected and written to storage; they may be stale by a few
  276. // minutes.
  277. LastEventTime *timestamp.Timestamp `protobuf:"bytes,8,opt,name=last_event_time,json=lastEventTime,proto3" json:"last_event_time,omitempty"`
  278. // [Output only] The last time a state event was received. Timestamps are
  279. // periodically collected and written to storage; they may be stale by a few
  280. // minutes.
  281. LastStateTime *timestamp.Timestamp `protobuf:"bytes,20,opt,name=last_state_time,json=lastStateTime,proto3" json:"last_state_time,omitempty"`
  282. // [Output only] The last time a cloud-to-device config version acknowledgment
  283. // was received from the device. This field is only for configurations
  284. // sent through MQTT.
  285. LastConfigAckTime *timestamp.Timestamp `protobuf:"bytes,14,opt,name=last_config_ack_time,json=lastConfigAckTime,proto3" json:"last_config_ack_time,omitempty"`
  286. // [Output only] The last time a cloud-to-device config version was sent to
  287. // the device.
  288. LastConfigSendTime *timestamp.Timestamp `protobuf:"bytes,18,opt,name=last_config_send_time,json=lastConfigSendTime,proto3" json:"last_config_send_time,omitempty"`
  289. // If a device is blocked, connections or requests from this device will fail.
  290. // Can be used to temporarily prevent the device from connecting if, for
  291. // example, the sensor is generating bad data and needs maintenance.
  292. Blocked bool `protobuf:"varint,19,opt,name=blocked,proto3" json:"blocked,omitempty"`
  293. // [Output only] The time the most recent error occurred, such as a failure to
  294. // publish to Cloud Pub/Sub. This field is the timestamp of
  295. // 'last_error_status'.
  296. LastErrorTime *timestamp.Timestamp `protobuf:"bytes,10,opt,name=last_error_time,json=lastErrorTime,proto3" json:"last_error_time,omitempty"`
  297. // [Output only] The error message of the most recent error, such as a failure
  298. // to publish to Cloud Pub/Sub. 'last_error_time' is the timestamp of this
  299. // field. If no errors have occurred, this field has an empty message
  300. // and the status code 0 == OK. Otherwise, this field is expected to have a
  301. // status code other than OK.
  302. LastErrorStatus *status.Status `protobuf:"bytes,11,opt,name=last_error_status,json=lastErrorStatus,proto3" json:"last_error_status,omitempty"`
  303. // The most recent device configuration, which is eventually sent from
  304. // Cloud IoT Core to the device. If not present on creation, the
  305. // configuration will be initialized with an empty payload and version value
  306. // of `1`. To update this field after creation, use the
  307. // `DeviceManager.ModifyCloudToDeviceConfig` method.
  308. Config *DeviceConfig `protobuf:"bytes,13,opt,name=config,proto3" json:"config,omitempty"`
  309. // [Output only] The state most recently received from the device. If no state
  310. // has been reported, this field is not present.
  311. State *DeviceState `protobuf:"bytes,16,opt,name=state,proto3" json:"state,omitempty"`
  312. // **Beta Feature**
  313. //
  314. // The logging verbosity for device activity. If unspecified,
  315. // DeviceRegistry.log_level will be used.
  316. LogLevel LogLevel `protobuf:"varint,21,opt,name=log_level,json=logLevel,proto3,enum=google.cloud.iot.v1.LogLevel" json:"log_level,omitempty"`
  317. // The metadata key-value pairs assigned to the device. This metadata is not
  318. // interpreted or indexed by Cloud IoT Core. It can be used to add contextual
  319. // information for the device.
  320. //
  321. // Keys must conform to the regular expression [a-zA-Z][a-zA-Z0-9-_.+~%]+ and
  322. // be less than 128 bytes in length.
  323. //
  324. // Values are free-form strings. Each value must be less than or equal to 32
  325. // KB in size.
  326. //
  327. // The total size of all keys and values must be less than 256 KB, and the
  328. // maximum number of key-value pairs is 500.
  329. Metadata map[string]string `protobuf:"bytes,17,rep,name=metadata,proto3" json:"metadata,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
  330. // Gateway-related configuration and state.
  331. GatewayConfig *GatewayConfig `protobuf:"bytes,24,opt,name=gateway_config,json=gatewayConfig,proto3" json:"gateway_config,omitempty"`
  332. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  333. XXX_unrecognized []byte `json:"-"`
  334. XXX_sizecache int32 `json:"-"`
  335. }
  336. func (m *Device) Reset() { *m = Device{} }
  337. func (m *Device) String() string { return proto.CompactTextString(m) }
  338. func (*Device) ProtoMessage() {}
  339. func (*Device) Descriptor() ([]byte, []int) {
  340. return fileDescriptor_resources_cabc2cc6ede491e9, []int{0}
  341. }
  342. func (m *Device) XXX_Unmarshal(b []byte) error {
  343. return xxx_messageInfo_Device.Unmarshal(m, b)
  344. }
  345. func (m *Device) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  346. return xxx_messageInfo_Device.Marshal(b, m, deterministic)
  347. }
  348. func (dst *Device) XXX_Merge(src proto.Message) {
  349. xxx_messageInfo_Device.Merge(dst, src)
  350. }
  351. func (m *Device) XXX_Size() int {
  352. return xxx_messageInfo_Device.Size(m)
  353. }
  354. func (m *Device) XXX_DiscardUnknown() {
  355. xxx_messageInfo_Device.DiscardUnknown(m)
  356. }
  357. var xxx_messageInfo_Device proto.InternalMessageInfo
  358. func (m *Device) GetId() string {
  359. if m != nil {
  360. return m.Id
  361. }
  362. return ""
  363. }
  364. func (m *Device) GetName() string {
  365. if m != nil {
  366. return m.Name
  367. }
  368. return ""
  369. }
  370. func (m *Device) GetNumId() uint64 {
  371. if m != nil {
  372. return m.NumId
  373. }
  374. return 0
  375. }
  376. func (m *Device) GetCredentials() []*DeviceCredential {
  377. if m != nil {
  378. return m.Credentials
  379. }
  380. return nil
  381. }
  382. func (m *Device) GetLastHeartbeatTime() *timestamp.Timestamp {
  383. if m != nil {
  384. return m.LastHeartbeatTime
  385. }
  386. return nil
  387. }
  388. func (m *Device) GetLastEventTime() *timestamp.Timestamp {
  389. if m != nil {
  390. return m.LastEventTime
  391. }
  392. return nil
  393. }
  394. func (m *Device) GetLastStateTime() *timestamp.Timestamp {
  395. if m != nil {
  396. return m.LastStateTime
  397. }
  398. return nil
  399. }
  400. func (m *Device) GetLastConfigAckTime() *timestamp.Timestamp {
  401. if m != nil {
  402. return m.LastConfigAckTime
  403. }
  404. return nil
  405. }
  406. func (m *Device) GetLastConfigSendTime() *timestamp.Timestamp {
  407. if m != nil {
  408. return m.LastConfigSendTime
  409. }
  410. return nil
  411. }
  412. func (m *Device) GetBlocked() bool {
  413. if m != nil {
  414. return m.Blocked
  415. }
  416. return false
  417. }
  418. func (m *Device) GetLastErrorTime() *timestamp.Timestamp {
  419. if m != nil {
  420. return m.LastErrorTime
  421. }
  422. return nil
  423. }
  424. func (m *Device) GetLastErrorStatus() *status.Status {
  425. if m != nil {
  426. return m.LastErrorStatus
  427. }
  428. return nil
  429. }
  430. func (m *Device) GetConfig() *DeviceConfig {
  431. if m != nil {
  432. return m.Config
  433. }
  434. return nil
  435. }
  436. func (m *Device) GetState() *DeviceState {
  437. if m != nil {
  438. return m.State
  439. }
  440. return nil
  441. }
  442. func (m *Device) GetLogLevel() LogLevel {
  443. if m != nil {
  444. return m.LogLevel
  445. }
  446. return LogLevel_LOG_LEVEL_UNSPECIFIED
  447. }
  448. func (m *Device) GetMetadata() map[string]string {
  449. if m != nil {
  450. return m.Metadata
  451. }
  452. return nil
  453. }
  454. func (m *Device) GetGatewayConfig() *GatewayConfig {
  455. if m != nil {
  456. return m.GatewayConfig
  457. }
  458. return nil
  459. }
  460. // Gateway-related configuration and state.
  461. type GatewayConfig struct {
  462. // Indicates whether the device is a gateway.
  463. GatewayType GatewayType `protobuf:"varint,1,opt,name=gateway_type,json=gatewayType,proto3,enum=google.cloud.iot.v1.GatewayType" json:"gateway_type,omitempty"`
  464. // Indicates how to authorize and/or authenticate devices to access the
  465. // gateway.
  466. GatewayAuthMethod GatewayAuthMethod `protobuf:"varint,2,opt,name=gateway_auth_method,json=gatewayAuthMethod,proto3,enum=google.cloud.iot.v1.GatewayAuthMethod" json:"gateway_auth_method,omitempty"`
  467. // [Output only] The ID of the gateway the device accessed most recently.
  468. LastAccessedGatewayId string `protobuf:"bytes,3,opt,name=last_accessed_gateway_id,json=lastAccessedGatewayId,proto3" json:"last_accessed_gateway_id,omitempty"`
  469. // [Output only] The most recent time at which the device accessed the gateway
  470. // specified in `last_accessed_gateway`.
  471. LastAccessedGatewayTime *timestamp.Timestamp `protobuf:"bytes,4,opt,name=last_accessed_gateway_time,json=lastAccessedGatewayTime,proto3" json:"last_accessed_gateway_time,omitempty"`
  472. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  473. XXX_unrecognized []byte `json:"-"`
  474. XXX_sizecache int32 `json:"-"`
  475. }
  476. func (m *GatewayConfig) Reset() { *m = GatewayConfig{} }
  477. func (m *GatewayConfig) String() string { return proto.CompactTextString(m) }
  478. func (*GatewayConfig) ProtoMessage() {}
  479. func (*GatewayConfig) Descriptor() ([]byte, []int) {
  480. return fileDescriptor_resources_cabc2cc6ede491e9, []int{1}
  481. }
  482. func (m *GatewayConfig) XXX_Unmarshal(b []byte) error {
  483. return xxx_messageInfo_GatewayConfig.Unmarshal(m, b)
  484. }
  485. func (m *GatewayConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  486. return xxx_messageInfo_GatewayConfig.Marshal(b, m, deterministic)
  487. }
  488. func (dst *GatewayConfig) XXX_Merge(src proto.Message) {
  489. xxx_messageInfo_GatewayConfig.Merge(dst, src)
  490. }
  491. func (m *GatewayConfig) XXX_Size() int {
  492. return xxx_messageInfo_GatewayConfig.Size(m)
  493. }
  494. func (m *GatewayConfig) XXX_DiscardUnknown() {
  495. xxx_messageInfo_GatewayConfig.DiscardUnknown(m)
  496. }
  497. var xxx_messageInfo_GatewayConfig proto.InternalMessageInfo
  498. func (m *GatewayConfig) GetGatewayType() GatewayType {
  499. if m != nil {
  500. return m.GatewayType
  501. }
  502. return GatewayType_GATEWAY_TYPE_UNSPECIFIED
  503. }
  504. func (m *GatewayConfig) GetGatewayAuthMethod() GatewayAuthMethod {
  505. if m != nil {
  506. return m.GatewayAuthMethod
  507. }
  508. return GatewayAuthMethod_GATEWAY_AUTH_METHOD_UNSPECIFIED
  509. }
  510. func (m *GatewayConfig) GetLastAccessedGatewayId() string {
  511. if m != nil {
  512. return m.LastAccessedGatewayId
  513. }
  514. return ""
  515. }
  516. func (m *GatewayConfig) GetLastAccessedGatewayTime() *timestamp.Timestamp {
  517. if m != nil {
  518. return m.LastAccessedGatewayTime
  519. }
  520. return nil
  521. }
  522. // A container for a group of devices.
  523. type DeviceRegistry struct {
  524. // The identifier of this device registry. For example, `myRegistry`.
  525. Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
  526. // The resource path name. For example,
  527. // `projects/example-project/locations/us-central1/registries/my-registry`.
  528. Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
  529. // The configuration for notification of telemetry events received from the
  530. // device. All telemetry events that were successfully published by the
  531. // device and acknowledged by Cloud IoT Core are guaranteed to be
  532. // delivered to Cloud Pub/Sub. If multiple configurations match a message,
  533. // only the first matching configuration is used. If you try to publish a
  534. // device telemetry event using MQTT without specifying a Cloud Pub/Sub topic
  535. // for the device's registry, the connection closes automatically. If you try
  536. // to do so using an HTTP connection, an error is returned. Up to 10
  537. // configurations may be provided.
  538. EventNotificationConfigs []*EventNotificationConfig `protobuf:"bytes,10,rep,name=event_notification_configs,json=eventNotificationConfigs,proto3" json:"event_notification_configs,omitempty"`
  539. // The configuration for notification of new states received from the device.
  540. // State updates are guaranteed to be stored in the state history, but
  541. // notifications to Cloud Pub/Sub are not guaranteed. For example, if
  542. // permissions are misconfigured or the specified topic doesn't exist, no
  543. // notification will be published but the state will still be stored in Cloud
  544. // IoT Core.
  545. StateNotificationConfig *StateNotificationConfig `protobuf:"bytes,7,opt,name=state_notification_config,json=stateNotificationConfig,proto3" json:"state_notification_config,omitempty"`
  546. // The MQTT configuration for this device registry.
  547. MqttConfig *MqttConfig `protobuf:"bytes,4,opt,name=mqtt_config,json=mqttConfig,proto3" json:"mqtt_config,omitempty"`
  548. // The DeviceService (HTTP) configuration for this device registry.
  549. HttpConfig *HttpConfig `protobuf:"bytes,9,opt,name=http_config,json=httpConfig,proto3" json:"http_config,omitempty"`
  550. // **Beta Feature**
  551. //
  552. // The default logging verbosity for activity from devices in this registry.
  553. // The verbosity level can be overridden by Device.log_level.
  554. LogLevel LogLevel `protobuf:"varint,11,opt,name=log_level,json=logLevel,proto3,enum=google.cloud.iot.v1.LogLevel" json:"log_level,omitempty"`
  555. // The credentials used to verify the device credentials. No more than 10
  556. // credentials can be bound to a single registry at a time. The verification
  557. // process occurs at the time of device creation or update. If this field is
  558. // empty, no verification is performed. Otherwise, the credentials of a newly
  559. // created device or added credentials of an updated device should be signed
  560. // with one of these registry credentials.
  561. //
  562. // Note, however, that existing devices will never be affected by
  563. // modifications to this list of credentials: after a device has been
  564. // successfully created in a registry, it should be able to connect even if
  565. // its registry credentials are revoked, deleted, or modified.
  566. Credentials []*RegistryCredential `protobuf:"bytes,8,rep,name=credentials,proto3" json:"credentials,omitempty"`
  567. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  568. XXX_unrecognized []byte `json:"-"`
  569. XXX_sizecache int32 `json:"-"`
  570. }
  571. func (m *DeviceRegistry) Reset() { *m = DeviceRegistry{} }
  572. func (m *DeviceRegistry) String() string { return proto.CompactTextString(m) }
  573. func (*DeviceRegistry) ProtoMessage() {}
  574. func (*DeviceRegistry) Descriptor() ([]byte, []int) {
  575. return fileDescriptor_resources_cabc2cc6ede491e9, []int{2}
  576. }
  577. func (m *DeviceRegistry) XXX_Unmarshal(b []byte) error {
  578. return xxx_messageInfo_DeviceRegistry.Unmarshal(m, b)
  579. }
  580. func (m *DeviceRegistry) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  581. return xxx_messageInfo_DeviceRegistry.Marshal(b, m, deterministic)
  582. }
  583. func (dst *DeviceRegistry) XXX_Merge(src proto.Message) {
  584. xxx_messageInfo_DeviceRegistry.Merge(dst, src)
  585. }
  586. func (m *DeviceRegistry) XXX_Size() int {
  587. return xxx_messageInfo_DeviceRegistry.Size(m)
  588. }
  589. func (m *DeviceRegistry) XXX_DiscardUnknown() {
  590. xxx_messageInfo_DeviceRegistry.DiscardUnknown(m)
  591. }
  592. var xxx_messageInfo_DeviceRegistry proto.InternalMessageInfo
  593. func (m *DeviceRegistry) GetId() string {
  594. if m != nil {
  595. return m.Id
  596. }
  597. return ""
  598. }
  599. func (m *DeviceRegistry) GetName() string {
  600. if m != nil {
  601. return m.Name
  602. }
  603. return ""
  604. }
  605. func (m *DeviceRegistry) GetEventNotificationConfigs() []*EventNotificationConfig {
  606. if m != nil {
  607. return m.EventNotificationConfigs
  608. }
  609. return nil
  610. }
  611. func (m *DeviceRegistry) GetStateNotificationConfig() *StateNotificationConfig {
  612. if m != nil {
  613. return m.StateNotificationConfig
  614. }
  615. return nil
  616. }
  617. func (m *DeviceRegistry) GetMqttConfig() *MqttConfig {
  618. if m != nil {
  619. return m.MqttConfig
  620. }
  621. return nil
  622. }
  623. func (m *DeviceRegistry) GetHttpConfig() *HttpConfig {
  624. if m != nil {
  625. return m.HttpConfig
  626. }
  627. return nil
  628. }
  629. func (m *DeviceRegistry) GetLogLevel() LogLevel {
  630. if m != nil {
  631. return m.LogLevel
  632. }
  633. return LogLevel_LOG_LEVEL_UNSPECIFIED
  634. }
  635. func (m *DeviceRegistry) GetCredentials() []*RegistryCredential {
  636. if m != nil {
  637. return m.Credentials
  638. }
  639. return nil
  640. }
  641. // The configuration of MQTT for a device registry.
  642. type MqttConfig struct {
  643. // If enabled, allows connections using the MQTT protocol. Otherwise, MQTT
  644. // connections to this registry will fail.
  645. MqttEnabledState MqttState `protobuf:"varint,1,opt,name=mqtt_enabled_state,json=mqttEnabledState,proto3,enum=google.cloud.iot.v1.MqttState" json:"mqtt_enabled_state,omitempty"`
  646. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  647. XXX_unrecognized []byte `json:"-"`
  648. XXX_sizecache int32 `json:"-"`
  649. }
  650. func (m *MqttConfig) Reset() { *m = MqttConfig{} }
  651. func (m *MqttConfig) String() string { return proto.CompactTextString(m) }
  652. func (*MqttConfig) ProtoMessage() {}
  653. func (*MqttConfig) Descriptor() ([]byte, []int) {
  654. return fileDescriptor_resources_cabc2cc6ede491e9, []int{3}
  655. }
  656. func (m *MqttConfig) XXX_Unmarshal(b []byte) error {
  657. return xxx_messageInfo_MqttConfig.Unmarshal(m, b)
  658. }
  659. func (m *MqttConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  660. return xxx_messageInfo_MqttConfig.Marshal(b, m, deterministic)
  661. }
  662. func (dst *MqttConfig) XXX_Merge(src proto.Message) {
  663. xxx_messageInfo_MqttConfig.Merge(dst, src)
  664. }
  665. func (m *MqttConfig) XXX_Size() int {
  666. return xxx_messageInfo_MqttConfig.Size(m)
  667. }
  668. func (m *MqttConfig) XXX_DiscardUnknown() {
  669. xxx_messageInfo_MqttConfig.DiscardUnknown(m)
  670. }
  671. var xxx_messageInfo_MqttConfig proto.InternalMessageInfo
  672. func (m *MqttConfig) GetMqttEnabledState() MqttState {
  673. if m != nil {
  674. return m.MqttEnabledState
  675. }
  676. return MqttState_MQTT_STATE_UNSPECIFIED
  677. }
  678. // The configuration of the HTTP bridge for a device registry.
  679. type HttpConfig struct {
  680. // If enabled, allows devices to use DeviceService via the HTTP protocol.
  681. // Otherwise, any requests to DeviceService will fail for this registry.
  682. HttpEnabledState HttpState `protobuf:"varint,1,opt,name=http_enabled_state,json=httpEnabledState,proto3,enum=google.cloud.iot.v1.HttpState" json:"http_enabled_state,omitempty"`
  683. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  684. XXX_unrecognized []byte `json:"-"`
  685. XXX_sizecache int32 `json:"-"`
  686. }
  687. func (m *HttpConfig) Reset() { *m = HttpConfig{} }
  688. func (m *HttpConfig) String() string { return proto.CompactTextString(m) }
  689. func (*HttpConfig) ProtoMessage() {}
  690. func (*HttpConfig) Descriptor() ([]byte, []int) {
  691. return fileDescriptor_resources_cabc2cc6ede491e9, []int{4}
  692. }
  693. func (m *HttpConfig) XXX_Unmarshal(b []byte) error {
  694. return xxx_messageInfo_HttpConfig.Unmarshal(m, b)
  695. }
  696. func (m *HttpConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  697. return xxx_messageInfo_HttpConfig.Marshal(b, m, deterministic)
  698. }
  699. func (dst *HttpConfig) XXX_Merge(src proto.Message) {
  700. xxx_messageInfo_HttpConfig.Merge(dst, src)
  701. }
  702. func (m *HttpConfig) XXX_Size() int {
  703. return xxx_messageInfo_HttpConfig.Size(m)
  704. }
  705. func (m *HttpConfig) XXX_DiscardUnknown() {
  706. xxx_messageInfo_HttpConfig.DiscardUnknown(m)
  707. }
  708. var xxx_messageInfo_HttpConfig proto.InternalMessageInfo
  709. func (m *HttpConfig) GetHttpEnabledState() HttpState {
  710. if m != nil {
  711. return m.HttpEnabledState
  712. }
  713. return HttpState_HTTP_STATE_UNSPECIFIED
  714. }
  715. // The configuration for forwarding telemetry events.
  716. type EventNotificationConfig struct {
  717. // If the subfolder name matches this string exactly, this configuration will
  718. // be used. The string must not include the leading '/' character. If empty,
  719. // all strings are matched. This field is used only for telemetry events;
  720. // subfolders are not supported for state changes.
  721. SubfolderMatches string `protobuf:"bytes,2,opt,name=subfolder_matches,json=subfolderMatches,proto3" json:"subfolder_matches,omitempty"`
  722. // A Cloud Pub/Sub topic name. For example,
  723. // `projects/myProject/topics/deviceEvents`.
  724. PubsubTopicName string `protobuf:"bytes,1,opt,name=pubsub_topic_name,json=pubsubTopicName,proto3" json:"pubsub_topic_name,omitempty"`
  725. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  726. XXX_unrecognized []byte `json:"-"`
  727. XXX_sizecache int32 `json:"-"`
  728. }
  729. func (m *EventNotificationConfig) Reset() { *m = EventNotificationConfig{} }
  730. func (m *EventNotificationConfig) String() string { return proto.CompactTextString(m) }
  731. func (*EventNotificationConfig) ProtoMessage() {}
  732. func (*EventNotificationConfig) Descriptor() ([]byte, []int) {
  733. return fileDescriptor_resources_cabc2cc6ede491e9, []int{5}
  734. }
  735. func (m *EventNotificationConfig) XXX_Unmarshal(b []byte) error {
  736. return xxx_messageInfo_EventNotificationConfig.Unmarshal(m, b)
  737. }
  738. func (m *EventNotificationConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  739. return xxx_messageInfo_EventNotificationConfig.Marshal(b, m, deterministic)
  740. }
  741. func (dst *EventNotificationConfig) XXX_Merge(src proto.Message) {
  742. xxx_messageInfo_EventNotificationConfig.Merge(dst, src)
  743. }
  744. func (m *EventNotificationConfig) XXX_Size() int {
  745. return xxx_messageInfo_EventNotificationConfig.Size(m)
  746. }
  747. func (m *EventNotificationConfig) XXX_DiscardUnknown() {
  748. xxx_messageInfo_EventNotificationConfig.DiscardUnknown(m)
  749. }
  750. var xxx_messageInfo_EventNotificationConfig proto.InternalMessageInfo
  751. func (m *EventNotificationConfig) GetSubfolderMatches() string {
  752. if m != nil {
  753. return m.SubfolderMatches
  754. }
  755. return ""
  756. }
  757. func (m *EventNotificationConfig) GetPubsubTopicName() string {
  758. if m != nil {
  759. return m.PubsubTopicName
  760. }
  761. return ""
  762. }
  763. // The configuration for notification of new states received from the device.
  764. type StateNotificationConfig struct {
  765. // A Cloud Pub/Sub topic name. For example,
  766. // `projects/myProject/topics/deviceEvents`.
  767. PubsubTopicName string `protobuf:"bytes,1,opt,name=pubsub_topic_name,json=pubsubTopicName,proto3" json:"pubsub_topic_name,omitempty"`
  768. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  769. XXX_unrecognized []byte `json:"-"`
  770. XXX_sizecache int32 `json:"-"`
  771. }
  772. func (m *StateNotificationConfig) Reset() { *m = StateNotificationConfig{} }
  773. func (m *StateNotificationConfig) String() string { return proto.CompactTextString(m) }
  774. func (*StateNotificationConfig) ProtoMessage() {}
  775. func (*StateNotificationConfig) Descriptor() ([]byte, []int) {
  776. return fileDescriptor_resources_cabc2cc6ede491e9, []int{6}
  777. }
  778. func (m *StateNotificationConfig) XXX_Unmarshal(b []byte) error {
  779. return xxx_messageInfo_StateNotificationConfig.Unmarshal(m, b)
  780. }
  781. func (m *StateNotificationConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  782. return xxx_messageInfo_StateNotificationConfig.Marshal(b, m, deterministic)
  783. }
  784. func (dst *StateNotificationConfig) XXX_Merge(src proto.Message) {
  785. xxx_messageInfo_StateNotificationConfig.Merge(dst, src)
  786. }
  787. func (m *StateNotificationConfig) XXX_Size() int {
  788. return xxx_messageInfo_StateNotificationConfig.Size(m)
  789. }
  790. func (m *StateNotificationConfig) XXX_DiscardUnknown() {
  791. xxx_messageInfo_StateNotificationConfig.DiscardUnknown(m)
  792. }
  793. var xxx_messageInfo_StateNotificationConfig proto.InternalMessageInfo
  794. func (m *StateNotificationConfig) GetPubsubTopicName() string {
  795. if m != nil {
  796. return m.PubsubTopicName
  797. }
  798. return ""
  799. }
  800. // A server-stored registry credential used to validate device credentials.
  801. type RegistryCredential struct {
  802. // The credential data. Reserved for expansion in the future.
  803. //
  804. // Types that are valid to be assigned to Credential:
  805. // *RegistryCredential_PublicKeyCertificate
  806. Credential isRegistryCredential_Credential `protobuf_oneof:"credential"`
  807. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  808. XXX_unrecognized []byte `json:"-"`
  809. XXX_sizecache int32 `json:"-"`
  810. }
  811. func (m *RegistryCredential) Reset() { *m = RegistryCredential{} }
  812. func (m *RegistryCredential) String() string { return proto.CompactTextString(m) }
  813. func (*RegistryCredential) ProtoMessage() {}
  814. func (*RegistryCredential) Descriptor() ([]byte, []int) {
  815. return fileDescriptor_resources_cabc2cc6ede491e9, []int{7}
  816. }
  817. func (m *RegistryCredential) XXX_Unmarshal(b []byte) error {
  818. return xxx_messageInfo_RegistryCredential.Unmarshal(m, b)
  819. }
  820. func (m *RegistryCredential) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  821. return xxx_messageInfo_RegistryCredential.Marshal(b, m, deterministic)
  822. }
  823. func (dst *RegistryCredential) XXX_Merge(src proto.Message) {
  824. xxx_messageInfo_RegistryCredential.Merge(dst, src)
  825. }
  826. func (m *RegistryCredential) XXX_Size() int {
  827. return xxx_messageInfo_RegistryCredential.Size(m)
  828. }
  829. func (m *RegistryCredential) XXX_DiscardUnknown() {
  830. xxx_messageInfo_RegistryCredential.DiscardUnknown(m)
  831. }
  832. var xxx_messageInfo_RegistryCredential proto.InternalMessageInfo
  833. type isRegistryCredential_Credential interface {
  834. isRegistryCredential_Credential()
  835. }
  836. type RegistryCredential_PublicKeyCertificate struct {
  837. PublicKeyCertificate *PublicKeyCertificate `protobuf:"bytes,1,opt,name=public_key_certificate,json=publicKeyCertificate,proto3,oneof"`
  838. }
  839. func (*RegistryCredential_PublicKeyCertificate) isRegistryCredential_Credential() {}
  840. func (m *RegistryCredential) GetCredential() isRegistryCredential_Credential {
  841. if m != nil {
  842. return m.Credential
  843. }
  844. return nil
  845. }
  846. func (m *RegistryCredential) GetPublicKeyCertificate() *PublicKeyCertificate {
  847. if x, ok := m.GetCredential().(*RegistryCredential_PublicKeyCertificate); ok {
  848. return x.PublicKeyCertificate
  849. }
  850. return nil
  851. }
  852. // XXX_OneofFuncs is for the internal use of the proto package.
  853. func (*RegistryCredential) 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{}) {
  854. return _RegistryCredential_OneofMarshaler, _RegistryCredential_OneofUnmarshaler, _RegistryCredential_OneofSizer, []interface{}{
  855. (*RegistryCredential_PublicKeyCertificate)(nil),
  856. }
  857. }
  858. func _RegistryCredential_OneofMarshaler(msg proto.Message, b *proto.Buffer) error {
  859. m := msg.(*RegistryCredential)
  860. // credential
  861. switch x := m.Credential.(type) {
  862. case *RegistryCredential_PublicKeyCertificate:
  863. b.EncodeVarint(1<<3 | proto.WireBytes)
  864. if err := b.EncodeMessage(x.PublicKeyCertificate); err != nil {
  865. return err
  866. }
  867. case nil:
  868. default:
  869. return fmt.Errorf("RegistryCredential.Credential has unexpected type %T", x)
  870. }
  871. return nil
  872. }
  873. func _RegistryCredential_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) {
  874. m := msg.(*RegistryCredential)
  875. switch tag {
  876. case 1: // credential.public_key_certificate
  877. if wire != proto.WireBytes {
  878. return true, proto.ErrInternalBadWireType
  879. }
  880. msg := new(PublicKeyCertificate)
  881. err := b.DecodeMessage(msg)
  882. m.Credential = &RegistryCredential_PublicKeyCertificate{msg}
  883. return true, err
  884. default:
  885. return false, nil
  886. }
  887. }
  888. func _RegistryCredential_OneofSizer(msg proto.Message) (n int) {
  889. m := msg.(*RegistryCredential)
  890. // credential
  891. switch x := m.Credential.(type) {
  892. case *RegistryCredential_PublicKeyCertificate:
  893. s := proto.Size(x.PublicKeyCertificate)
  894. n += 1 // tag and wire
  895. n += proto.SizeVarint(uint64(s))
  896. n += s
  897. case nil:
  898. default:
  899. panic(fmt.Sprintf("proto: unexpected type %T in oneof", x))
  900. }
  901. return n
  902. }
  903. // Details of an X.509 certificate. For informational purposes only.
  904. type X509CertificateDetails struct {
  905. // The entity that signed the certificate.
  906. Issuer string `protobuf:"bytes,1,opt,name=issuer,proto3" json:"issuer,omitempty"`
  907. // The entity the certificate and public key belong to.
  908. Subject string `protobuf:"bytes,2,opt,name=subject,proto3" json:"subject,omitempty"`
  909. // The time the certificate becomes valid.
  910. StartTime *timestamp.Timestamp `protobuf:"bytes,3,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"`
  911. // The time the certificate becomes invalid.
  912. ExpiryTime *timestamp.Timestamp `protobuf:"bytes,4,opt,name=expiry_time,json=expiryTime,proto3" json:"expiry_time,omitempty"`
  913. // The algorithm used to sign the certificate.
  914. SignatureAlgorithm string `protobuf:"bytes,5,opt,name=signature_algorithm,json=signatureAlgorithm,proto3" json:"signature_algorithm,omitempty"`
  915. // The type of public key in the certificate.
  916. PublicKeyType string `protobuf:"bytes,6,opt,name=public_key_type,json=publicKeyType,proto3" json:"public_key_type,omitempty"`
  917. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  918. XXX_unrecognized []byte `json:"-"`
  919. XXX_sizecache int32 `json:"-"`
  920. }
  921. func (m *X509CertificateDetails) Reset() { *m = X509CertificateDetails{} }
  922. func (m *X509CertificateDetails) String() string { return proto.CompactTextString(m) }
  923. func (*X509CertificateDetails) ProtoMessage() {}
  924. func (*X509CertificateDetails) Descriptor() ([]byte, []int) {
  925. return fileDescriptor_resources_cabc2cc6ede491e9, []int{8}
  926. }
  927. func (m *X509CertificateDetails) XXX_Unmarshal(b []byte) error {
  928. return xxx_messageInfo_X509CertificateDetails.Unmarshal(m, b)
  929. }
  930. func (m *X509CertificateDetails) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  931. return xxx_messageInfo_X509CertificateDetails.Marshal(b, m, deterministic)
  932. }
  933. func (dst *X509CertificateDetails) XXX_Merge(src proto.Message) {
  934. xxx_messageInfo_X509CertificateDetails.Merge(dst, src)
  935. }
  936. func (m *X509CertificateDetails) XXX_Size() int {
  937. return xxx_messageInfo_X509CertificateDetails.Size(m)
  938. }
  939. func (m *X509CertificateDetails) XXX_DiscardUnknown() {
  940. xxx_messageInfo_X509CertificateDetails.DiscardUnknown(m)
  941. }
  942. var xxx_messageInfo_X509CertificateDetails proto.InternalMessageInfo
  943. func (m *X509CertificateDetails) GetIssuer() string {
  944. if m != nil {
  945. return m.Issuer
  946. }
  947. return ""
  948. }
  949. func (m *X509CertificateDetails) GetSubject() string {
  950. if m != nil {
  951. return m.Subject
  952. }
  953. return ""
  954. }
  955. func (m *X509CertificateDetails) GetStartTime() *timestamp.Timestamp {
  956. if m != nil {
  957. return m.StartTime
  958. }
  959. return nil
  960. }
  961. func (m *X509CertificateDetails) GetExpiryTime() *timestamp.Timestamp {
  962. if m != nil {
  963. return m.ExpiryTime
  964. }
  965. return nil
  966. }
  967. func (m *X509CertificateDetails) GetSignatureAlgorithm() string {
  968. if m != nil {
  969. return m.SignatureAlgorithm
  970. }
  971. return ""
  972. }
  973. func (m *X509CertificateDetails) GetPublicKeyType() string {
  974. if m != nil {
  975. return m.PublicKeyType
  976. }
  977. return ""
  978. }
  979. // A public key certificate format and data.
  980. type PublicKeyCertificate struct {
  981. // The certificate format.
  982. Format PublicKeyCertificateFormat `protobuf:"varint,1,opt,name=format,proto3,enum=google.cloud.iot.v1.PublicKeyCertificateFormat" json:"format,omitempty"`
  983. // The certificate data.
  984. Certificate string `protobuf:"bytes,2,opt,name=certificate,proto3" json:"certificate,omitempty"`
  985. // [Output only] The certificate details. Used only for X.509 certificates.
  986. X509Details *X509CertificateDetails `protobuf:"bytes,3,opt,name=x509_details,json=x509Details,proto3" json:"x509_details,omitempty"`
  987. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  988. XXX_unrecognized []byte `json:"-"`
  989. XXX_sizecache int32 `json:"-"`
  990. }
  991. func (m *PublicKeyCertificate) Reset() { *m = PublicKeyCertificate{} }
  992. func (m *PublicKeyCertificate) String() string { return proto.CompactTextString(m) }
  993. func (*PublicKeyCertificate) ProtoMessage() {}
  994. func (*PublicKeyCertificate) Descriptor() ([]byte, []int) {
  995. return fileDescriptor_resources_cabc2cc6ede491e9, []int{9}
  996. }
  997. func (m *PublicKeyCertificate) XXX_Unmarshal(b []byte) error {
  998. return xxx_messageInfo_PublicKeyCertificate.Unmarshal(m, b)
  999. }
  1000. func (m *PublicKeyCertificate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  1001. return xxx_messageInfo_PublicKeyCertificate.Marshal(b, m, deterministic)
  1002. }
  1003. func (dst *PublicKeyCertificate) XXX_Merge(src proto.Message) {
  1004. xxx_messageInfo_PublicKeyCertificate.Merge(dst, src)
  1005. }
  1006. func (m *PublicKeyCertificate) XXX_Size() int {
  1007. return xxx_messageInfo_PublicKeyCertificate.Size(m)
  1008. }
  1009. func (m *PublicKeyCertificate) XXX_DiscardUnknown() {
  1010. xxx_messageInfo_PublicKeyCertificate.DiscardUnknown(m)
  1011. }
  1012. var xxx_messageInfo_PublicKeyCertificate proto.InternalMessageInfo
  1013. func (m *PublicKeyCertificate) GetFormat() PublicKeyCertificateFormat {
  1014. if m != nil {
  1015. return m.Format
  1016. }
  1017. return PublicKeyCertificateFormat_UNSPECIFIED_PUBLIC_KEY_CERTIFICATE_FORMAT
  1018. }
  1019. func (m *PublicKeyCertificate) GetCertificate() string {
  1020. if m != nil {
  1021. return m.Certificate
  1022. }
  1023. return ""
  1024. }
  1025. func (m *PublicKeyCertificate) GetX509Details() *X509CertificateDetails {
  1026. if m != nil {
  1027. return m.X509Details
  1028. }
  1029. return nil
  1030. }
  1031. // A server-stored device credential used for authentication.
  1032. type DeviceCredential struct {
  1033. // The credential data. Reserved for expansion in the future.
  1034. //
  1035. // Types that are valid to be assigned to Credential:
  1036. // *DeviceCredential_PublicKey
  1037. Credential isDeviceCredential_Credential `protobuf_oneof:"credential"`
  1038. // [Optional] The time at which this credential becomes invalid. This
  1039. // credential will be ignored for new client authentication requests after
  1040. // this timestamp; however, it will not be automatically deleted.
  1041. ExpirationTime *timestamp.Timestamp `protobuf:"bytes,6,opt,name=expiration_time,json=expirationTime,proto3" json:"expiration_time,omitempty"`
  1042. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  1043. XXX_unrecognized []byte `json:"-"`
  1044. XXX_sizecache int32 `json:"-"`
  1045. }
  1046. func (m *DeviceCredential) Reset() { *m = DeviceCredential{} }
  1047. func (m *DeviceCredential) String() string { return proto.CompactTextString(m) }
  1048. func (*DeviceCredential) ProtoMessage() {}
  1049. func (*DeviceCredential) Descriptor() ([]byte, []int) {
  1050. return fileDescriptor_resources_cabc2cc6ede491e9, []int{10}
  1051. }
  1052. func (m *DeviceCredential) XXX_Unmarshal(b []byte) error {
  1053. return xxx_messageInfo_DeviceCredential.Unmarshal(m, b)
  1054. }
  1055. func (m *DeviceCredential) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  1056. return xxx_messageInfo_DeviceCredential.Marshal(b, m, deterministic)
  1057. }
  1058. func (dst *DeviceCredential) XXX_Merge(src proto.Message) {
  1059. xxx_messageInfo_DeviceCredential.Merge(dst, src)
  1060. }
  1061. func (m *DeviceCredential) XXX_Size() int {
  1062. return xxx_messageInfo_DeviceCredential.Size(m)
  1063. }
  1064. func (m *DeviceCredential) XXX_DiscardUnknown() {
  1065. xxx_messageInfo_DeviceCredential.DiscardUnknown(m)
  1066. }
  1067. var xxx_messageInfo_DeviceCredential proto.InternalMessageInfo
  1068. type isDeviceCredential_Credential interface {
  1069. isDeviceCredential_Credential()
  1070. }
  1071. type DeviceCredential_PublicKey struct {
  1072. PublicKey *PublicKeyCredential `protobuf:"bytes,2,opt,name=public_key,json=publicKey,proto3,oneof"`
  1073. }
  1074. func (*DeviceCredential_PublicKey) isDeviceCredential_Credential() {}
  1075. func (m *DeviceCredential) GetCredential() isDeviceCredential_Credential {
  1076. if m != nil {
  1077. return m.Credential
  1078. }
  1079. return nil
  1080. }
  1081. func (m *DeviceCredential) GetPublicKey() *PublicKeyCredential {
  1082. if x, ok := m.GetCredential().(*DeviceCredential_PublicKey); ok {
  1083. return x.PublicKey
  1084. }
  1085. return nil
  1086. }
  1087. func (m *DeviceCredential) GetExpirationTime() *timestamp.Timestamp {
  1088. if m != nil {
  1089. return m.ExpirationTime
  1090. }
  1091. return nil
  1092. }
  1093. // XXX_OneofFuncs is for the internal use of the proto package.
  1094. func (*DeviceCredential) 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{}) {
  1095. return _DeviceCredential_OneofMarshaler, _DeviceCredential_OneofUnmarshaler, _DeviceCredential_OneofSizer, []interface{}{
  1096. (*DeviceCredential_PublicKey)(nil),
  1097. }
  1098. }
  1099. func _DeviceCredential_OneofMarshaler(msg proto.Message, b *proto.Buffer) error {
  1100. m := msg.(*DeviceCredential)
  1101. // credential
  1102. switch x := m.Credential.(type) {
  1103. case *DeviceCredential_PublicKey:
  1104. b.EncodeVarint(2<<3 | proto.WireBytes)
  1105. if err := b.EncodeMessage(x.PublicKey); err != nil {
  1106. return err
  1107. }
  1108. case nil:
  1109. default:
  1110. return fmt.Errorf("DeviceCredential.Credential has unexpected type %T", x)
  1111. }
  1112. return nil
  1113. }
  1114. func _DeviceCredential_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) {
  1115. m := msg.(*DeviceCredential)
  1116. switch tag {
  1117. case 2: // credential.public_key
  1118. if wire != proto.WireBytes {
  1119. return true, proto.ErrInternalBadWireType
  1120. }
  1121. msg := new(PublicKeyCredential)
  1122. err := b.DecodeMessage(msg)
  1123. m.Credential = &DeviceCredential_PublicKey{msg}
  1124. return true, err
  1125. default:
  1126. return false, nil
  1127. }
  1128. }
  1129. func _DeviceCredential_OneofSizer(msg proto.Message) (n int) {
  1130. m := msg.(*DeviceCredential)
  1131. // credential
  1132. switch x := m.Credential.(type) {
  1133. case *DeviceCredential_PublicKey:
  1134. s := proto.Size(x.PublicKey)
  1135. n += 1 // tag and wire
  1136. n += proto.SizeVarint(uint64(s))
  1137. n += s
  1138. case nil:
  1139. default:
  1140. panic(fmt.Sprintf("proto: unexpected type %T in oneof", x))
  1141. }
  1142. return n
  1143. }
  1144. // A public key format and data.
  1145. type PublicKeyCredential struct {
  1146. // The format of the key.
  1147. Format PublicKeyFormat `protobuf:"varint,1,opt,name=format,proto3,enum=google.cloud.iot.v1.PublicKeyFormat" json:"format,omitempty"`
  1148. // The key data.
  1149. Key string `protobuf:"bytes,2,opt,name=key,proto3" json:"key,omitempty"`
  1150. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  1151. XXX_unrecognized []byte `json:"-"`
  1152. XXX_sizecache int32 `json:"-"`
  1153. }
  1154. func (m *PublicKeyCredential) Reset() { *m = PublicKeyCredential{} }
  1155. func (m *PublicKeyCredential) String() string { return proto.CompactTextString(m) }
  1156. func (*PublicKeyCredential) ProtoMessage() {}
  1157. func (*PublicKeyCredential) Descriptor() ([]byte, []int) {
  1158. return fileDescriptor_resources_cabc2cc6ede491e9, []int{11}
  1159. }
  1160. func (m *PublicKeyCredential) XXX_Unmarshal(b []byte) error {
  1161. return xxx_messageInfo_PublicKeyCredential.Unmarshal(m, b)
  1162. }
  1163. func (m *PublicKeyCredential) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  1164. return xxx_messageInfo_PublicKeyCredential.Marshal(b, m, deterministic)
  1165. }
  1166. func (dst *PublicKeyCredential) XXX_Merge(src proto.Message) {
  1167. xxx_messageInfo_PublicKeyCredential.Merge(dst, src)
  1168. }
  1169. func (m *PublicKeyCredential) XXX_Size() int {
  1170. return xxx_messageInfo_PublicKeyCredential.Size(m)
  1171. }
  1172. func (m *PublicKeyCredential) XXX_DiscardUnknown() {
  1173. xxx_messageInfo_PublicKeyCredential.DiscardUnknown(m)
  1174. }
  1175. var xxx_messageInfo_PublicKeyCredential proto.InternalMessageInfo
  1176. func (m *PublicKeyCredential) GetFormat() PublicKeyFormat {
  1177. if m != nil {
  1178. return m.Format
  1179. }
  1180. return PublicKeyFormat_UNSPECIFIED_PUBLIC_KEY_FORMAT
  1181. }
  1182. func (m *PublicKeyCredential) GetKey() string {
  1183. if m != nil {
  1184. return m.Key
  1185. }
  1186. return ""
  1187. }
  1188. // The device configuration. Eventually delivered to devices.
  1189. type DeviceConfig struct {
  1190. // [Output only] The version of this update. The version number is assigned by
  1191. // the server, and is always greater than 0 after device creation. The
  1192. // version must be 0 on the `CreateDevice` request if a `config` is
  1193. // specified; the response of `CreateDevice` will always have a value of 1.
  1194. Version int64 `protobuf:"varint,1,opt,name=version,proto3" json:"version,omitempty"`
  1195. // [Output only] The time at which this configuration version was updated in
  1196. // Cloud IoT Core. This timestamp is set by the server.
  1197. CloudUpdateTime *timestamp.Timestamp `protobuf:"bytes,2,opt,name=cloud_update_time,json=cloudUpdateTime,proto3" json:"cloud_update_time,omitempty"`
  1198. // [Output only] The time at which Cloud IoT Core received the
  1199. // acknowledgment from the device, indicating that the device has received
  1200. // this configuration version. If this field is not present, the device has
  1201. // not yet acknowledged that it received this version. Note that when
  1202. // the config was sent to the device, many config versions may have been
  1203. // available in Cloud IoT Core while the device was disconnected, and on
  1204. // connection, only the latest version is sent to the device. Some
  1205. // versions may never be sent to the device, and therefore are never
  1206. // acknowledged. This timestamp is set by Cloud IoT Core.
  1207. DeviceAckTime *timestamp.Timestamp `protobuf:"bytes,3,opt,name=device_ack_time,json=deviceAckTime,proto3" json:"device_ack_time,omitempty"`
  1208. // The device configuration data.
  1209. BinaryData []byte `protobuf:"bytes,4,opt,name=binary_data,json=binaryData,proto3" json:"binary_data,omitempty"`
  1210. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  1211. XXX_unrecognized []byte `json:"-"`
  1212. XXX_sizecache int32 `json:"-"`
  1213. }
  1214. func (m *DeviceConfig) Reset() { *m = DeviceConfig{} }
  1215. func (m *DeviceConfig) String() string { return proto.CompactTextString(m) }
  1216. func (*DeviceConfig) ProtoMessage() {}
  1217. func (*DeviceConfig) Descriptor() ([]byte, []int) {
  1218. return fileDescriptor_resources_cabc2cc6ede491e9, []int{12}
  1219. }
  1220. func (m *DeviceConfig) XXX_Unmarshal(b []byte) error {
  1221. return xxx_messageInfo_DeviceConfig.Unmarshal(m, b)
  1222. }
  1223. func (m *DeviceConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  1224. return xxx_messageInfo_DeviceConfig.Marshal(b, m, deterministic)
  1225. }
  1226. func (dst *DeviceConfig) XXX_Merge(src proto.Message) {
  1227. xxx_messageInfo_DeviceConfig.Merge(dst, src)
  1228. }
  1229. func (m *DeviceConfig) XXX_Size() int {
  1230. return xxx_messageInfo_DeviceConfig.Size(m)
  1231. }
  1232. func (m *DeviceConfig) XXX_DiscardUnknown() {
  1233. xxx_messageInfo_DeviceConfig.DiscardUnknown(m)
  1234. }
  1235. var xxx_messageInfo_DeviceConfig proto.InternalMessageInfo
  1236. func (m *DeviceConfig) GetVersion() int64 {
  1237. if m != nil {
  1238. return m.Version
  1239. }
  1240. return 0
  1241. }
  1242. func (m *DeviceConfig) GetCloudUpdateTime() *timestamp.Timestamp {
  1243. if m != nil {
  1244. return m.CloudUpdateTime
  1245. }
  1246. return nil
  1247. }
  1248. func (m *DeviceConfig) GetDeviceAckTime() *timestamp.Timestamp {
  1249. if m != nil {
  1250. return m.DeviceAckTime
  1251. }
  1252. return nil
  1253. }
  1254. func (m *DeviceConfig) GetBinaryData() []byte {
  1255. if m != nil {
  1256. return m.BinaryData
  1257. }
  1258. return nil
  1259. }
  1260. // The device state, as reported by the device.
  1261. type DeviceState struct {
  1262. // [Output only] The time at which this state version was updated in Cloud
  1263. // IoT Core.
  1264. UpdateTime *timestamp.Timestamp `protobuf:"bytes,1,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"`
  1265. // The device state data.
  1266. BinaryData []byte `protobuf:"bytes,2,opt,name=binary_data,json=binaryData,proto3" json:"binary_data,omitempty"`
  1267. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  1268. XXX_unrecognized []byte `json:"-"`
  1269. XXX_sizecache int32 `json:"-"`
  1270. }
  1271. func (m *DeviceState) Reset() { *m = DeviceState{} }
  1272. func (m *DeviceState) String() string { return proto.CompactTextString(m) }
  1273. func (*DeviceState) ProtoMessage() {}
  1274. func (*DeviceState) Descriptor() ([]byte, []int) {
  1275. return fileDescriptor_resources_cabc2cc6ede491e9, []int{13}
  1276. }
  1277. func (m *DeviceState) XXX_Unmarshal(b []byte) error {
  1278. return xxx_messageInfo_DeviceState.Unmarshal(m, b)
  1279. }
  1280. func (m *DeviceState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  1281. return xxx_messageInfo_DeviceState.Marshal(b, m, deterministic)
  1282. }
  1283. func (dst *DeviceState) XXX_Merge(src proto.Message) {
  1284. xxx_messageInfo_DeviceState.Merge(dst, src)
  1285. }
  1286. func (m *DeviceState) XXX_Size() int {
  1287. return xxx_messageInfo_DeviceState.Size(m)
  1288. }
  1289. func (m *DeviceState) XXX_DiscardUnknown() {
  1290. xxx_messageInfo_DeviceState.DiscardUnknown(m)
  1291. }
  1292. var xxx_messageInfo_DeviceState proto.InternalMessageInfo
  1293. func (m *DeviceState) GetUpdateTime() *timestamp.Timestamp {
  1294. if m != nil {
  1295. return m.UpdateTime
  1296. }
  1297. return nil
  1298. }
  1299. func (m *DeviceState) GetBinaryData() []byte {
  1300. if m != nil {
  1301. return m.BinaryData
  1302. }
  1303. return nil
  1304. }
  1305. func init() {
  1306. proto.RegisterType((*Device)(nil), "google.cloud.iot.v1.Device")
  1307. proto.RegisterMapType((map[string]string)(nil), "google.cloud.iot.v1.Device.MetadataEntry")
  1308. proto.RegisterType((*GatewayConfig)(nil), "google.cloud.iot.v1.GatewayConfig")
  1309. proto.RegisterType((*DeviceRegistry)(nil), "google.cloud.iot.v1.DeviceRegistry")
  1310. proto.RegisterType((*MqttConfig)(nil), "google.cloud.iot.v1.MqttConfig")
  1311. proto.RegisterType((*HttpConfig)(nil), "google.cloud.iot.v1.HttpConfig")
  1312. proto.RegisterType((*EventNotificationConfig)(nil), "google.cloud.iot.v1.EventNotificationConfig")
  1313. proto.RegisterType((*StateNotificationConfig)(nil), "google.cloud.iot.v1.StateNotificationConfig")
  1314. proto.RegisterType((*RegistryCredential)(nil), "google.cloud.iot.v1.RegistryCredential")
  1315. proto.RegisterType((*X509CertificateDetails)(nil), "google.cloud.iot.v1.X509CertificateDetails")
  1316. proto.RegisterType((*PublicKeyCertificate)(nil), "google.cloud.iot.v1.PublicKeyCertificate")
  1317. proto.RegisterType((*DeviceCredential)(nil), "google.cloud.iot.v1.DeviceCredential")
  1318. proto.RegisterType((*PublicKeyCredential)(nil), "google.cloud.iot.v1.PublicKeyCredential")
  1319. proto.RegisterType((*DeviceConfig)(nil), "google.cloud.iot.v1.DeviceConfig")
  1320. proto.RegisterType((*DeviceState)(nil), "google.cloud.iot.v1.DeviceState")
  1321. proto.RegisterEnum("google.cloud.iot.v1.MqttState", MqttState_name, MqttState_value)
  1322. proto.RegisterEnum("google.cloud.iot.v1.HttpState", HttpState_name, HttpState_value)
  1323. proto.RegisterEnum("google.cloud.iot.v1.LogLevel", LogLevel_name, LogLevel_value)
  1324. proto.RegisterEnum("google.cloud.iot.v1.GatewayType", GatewayType_name, GatewayType_value)
  1325. proto.RegisterEnum("google.cloud.iot.v1.GatewayAuthMethod", GatewayAuthMethod_name, GatewayAuthMethod_value)
  1326. proto.RegisterEnum("google.cloud.iot.v1.PublicKeyCertificateFormat", PublicKeyCertificateFormat_name, PublicKeyCertificateFormat_value)
  1327. proto.RegisterEnum("google.cloud.iot.v1.PublicKeyFormat", PublicKeyFormat_name, PublicKeyFormat_value)
  1328. }
  1329. func init() {
  1330. proto.RegisterFile("google/cloud/iot/v1/resources.proto", fileDescriptor_resources_cabc2cc6ede491e9)
  1331. }
  1332. var fileDescriptor_resources_cabc2cc6ede491e9 = []byte{
  1333. // 1672 bytes of a gzipped FileDescriptorProto
  1334. 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x58, 0xdd, 0x72, 0xdb, 0xc6,
  1335. 0x15, 0x36, 0xa8, 0x1f, 0x8b, 0x07, 0x22, 0x05, 0xae, 0x64, 0x09, 0xe1, 0x24, 0xb1, 0xcc, 0x34,
  1336. 0xa9, 0xa2, 0xb4, 0x64, 0xa2, 0x8e, 0xdd, 0x3a, 0xee, 0x74, 0x4a, 0x91, 0x90, 0xc4, 0x8a, 0x3f,
  1337. 0x2a, 0x08, 0x39, 0x75, 0x6e, 0x30, 0x4b, 0x60, 0x45, 0x22, 0x22, 0x01, 0x06, 0x58, 0xa8, 0xd1,
  1338. 0x03, 0xf4, 0x01, 0x7a, 0xd1, 0x99, 0xce, 0xf4, 0x25, 0xfa, 0x04, 0x7d, 0x87, 0x5e, 0xf4, 0x5d,
  1339. 0x7a, 0x99, 0xd9, 0x1f, 0xf0, 0xcf, 0xa0, 0x28, 0xdf, 0x61, 0xcf, 0x39, 0xdf, 0x77, 0x76, 0xcf,
  1340. 0xdf, 0xee, 0x00, 0x3e, 0xeb, 0x07, 0x41, 0x7f, 0x48, 0x2a, 0xce, 0x30, 0x88, 0xdd, 0x8a, 0x17,
  1341. 0xd0, 0xca, 0xdd, 0x37, 0x95, 0x90, 0x44, 0x41, 0x1c, 0x3a, 0x24, 0x2a, 0x8f, 0xc3, 0x80, 0x06,
  1342. 0x68, 0x57, 0x18, 0x95, 0xb9, 0x51, 0xd9, 0x0b, 0x68, 0xf9, 0xee, 0x9b, 0xe2, 0xc7, 0x12, 0x89,
  1343. 0xc7, 0x5e, 0x05, 0xfb, 0x7e, 0x40, 0x31, 0xf5, 0x02, 0x5f, 0x42, 0x8a, 0xcf, 0xa5, 0x96, 0xaf,
  1344. 0x7a, 0xf1, 0x4d, 0x85, 0x7a, 0x23, 0x12, 0x51, 0x3c, 0x1a, 0x4b, 0x83, 0x03, 0x69, 0x10, 0x8e,
  1345. 0x9d, 0x4a, 0x44, 0x31, 0x8d, 0x25, 0xb2, 0xf4, 0xcf, 0x2d, 0xd8, 0xac, 0x93, 0x3b, 0xcf, 0x21,
  1346. 0x28, 0x0f, 0x19, 0xcf, 0xd5, 0x95, 0x43, 0xe5, 0x28, 0x6b, 0x66, 0x3c, 0x17, 0x21, 0x58, 0xf7,
  1347. 0xf1, 0x88, 0xe8, 0x19, 0x2e, 0xe1, 0xdf, 0xe8, 0x19, 0x6c, 0xfa, 0xf1, 0xc8, 0xf6, 0x5c, 0x7d,
  1348. 0xed, 0x50, 0x39, 0x5a, 0x37, 0x37, 0xfc, 0x78, 0xd4, 0x70, 0xd1, 0x39, 0xa8, 0x4e, 0x48, 0x5c,
  1349. 0xe2, 0x53, 0x0f, 0x0f, 0x23, 0x7d, 0xfb, 0x70, 0xed, 0x48, 0x3d, 0xf9, 0xbc, 0x9c, 0x72, 0x90,
  1350. 0xb2, 0x70, 0x56, 0x9b, 0x58, 0x9b, 0xb3, 0x48, 0xf4, 0x27, 0xd8, 0x1d, 0xe2, 0x88, 0xda, 0x03,
  1351. 0x82, 0x43, 0xda, 0x23, 0x98, 0xda, 0xec, 0x24, 0xfa, 0xd3, 0x43, 0xe5, 0x48, 0x3d, 0x29, 0x26,
  1352. 0x84, 0xc9, 0x31, 0xcb, 0x56, 0x72, 0x4c, 0xb3, 0xc0, 0x60, 0x17, 0x09, 0x8a, 0xc9, 0xd1, 0x29,
  1353. 0xec, 0x70, 0x2e, 0x72, 0x47, 0x7c, 0xc9, 0xb3, 0xb5, 0x92, 0x27, 0xc7, 0x20, 0x06, 0x43, 0xcc,
  1354. 0x71, 0xb0, 0x98, 0x11, 0xc1, 0xb1, 0xf7, 0x38, 0x8e, 0x2e, 0x43, 0x70, 0x8e, 0x4b, 0xd8, 0xe3,
  1355. 0x1c, 0x4e, 0xe0, 0xdf, 0x78, 0x7d, 0x1b, 0x3b, 0xb7, 0x82, 0x28, 0xff, 0xb8, 0x43, 0xd5, 0x38,
  1356. 0xac, 0xea, 0xdc, 0x72, 0xb2, 0x16, 0x3c, 0x9b, 0x25, 0x8b, 0x88, 0xef, 0x0a, 0x36, 0xb4, 0x92,
  1357. 0x0d, 0x4d, 0xd9, 0xba, 0xc4, 0x77, 0x39, 0x9d, 0x0e, 0x4f, 0x7b, 0xc3, 0xc0, 0xb9, 0x25, 0xae,
  1358. 0xbe, 0x7b, 0xa8, 0x1c, 0x6d, 0x99, 0xc9, 0x72, 0x1a, 0xbd, 0x30, 0x0c, 0x42, 0xe1, 0x02, 0x1e,
  1359. 0x19, 0x3d, 0x86, 0xe0, 0xec, 0x7f, 0x80, 0xc2, 0x0c, 0x87, 0xa8, 0x3b, 0x5d, 0xe5, 0x2c, 0x28,
  1360. 0x61, 0x09, 0xc7, 0x4e, 0xb9, 0xcb, 0x35, 0xe6, 0xce, 0x04, 0x2d, 0x04, 0xe8, 0x35, 0x6c, 0x8a,
  1361. 0x73, 0xea, 0x39, 0x0e, 0x7a, 0xf1, 0x50, 0x45, 0x71, 0x43, 0x53, 0x02, 0xd0, 0x2b, 0xd8, 0xe0,
  1362. 0x39, 0xd3, 0x35, 0x8e, 0x3c, 0x7c, 0x00, 0xc9, 0x33, 0x65, 0x0a, 0x73, 0xf4, 0x2d, 0x64, 0x87,
  1363. 0x41, 0xdf, 0x1e, 0x92, 0x3b, 0x32, 0xd4, 0x9f, 0x1d, 0x2a, 0x47, 0xf9, 0x93, 0x4f, 0x52, 0xb1,
  1364. 0xcd, 0xa0, 0xdf, 0x64, 0x46, 0xe6, 0xd6, 0x50, 0x7e, 0x21, 0x03, 0xb6, 0x46, 0x84, 0x62, 0x17,
  1365. 0x53, 0xac, 0x17, 0x78, 0x0b, 0x7c, 0xf9, 0x80, 0xdb, 0x72, 0x4b, 0xda, 0x1a, 0x3e, 0x0d, 0xef,
  1366. 0xcd, 0x09, 0x14, 0x35, 0x20, 0xdf, 0xc7, 0x94, 0xfc, 0x15, 0xdf, 0xcb, 0x2c, 0xeb, 0x3a, 0x3f,
  1367. 0x43, 0x29, 0x95, 0xec, 0x5c, 0x98, 0xca, 0xe3, 0xe7, 0xfa, 0xb3, 0xcb, 0xe2, 0x1b, 0xc8, 0xcd,
  1368. 0x79, 0x41, 0x1a, 0xac, 0xdd, 0x92, 0x7b, 0xd9, 0xe4, 0xec, 0x13, 0xed, 0xc1, 0xc6, 0x1d, 0x1e,
  1369. 0xc6, 0x49, 0x9b, 0x8b, 0xc5, 0xb7, 0x99, 0xdf, 0x29, 0xa5, 0xff, 0x64, 0x20, 0x37, 0xc7, 0x8e,
  1370. 0x6a, 0xb0, 0x9d, 0xec, 0x8c, 0xde, 0x8f, 0x09, 0xa7, 0xc9, 0x2f, 0x89, 0xad, 0x44, 0x5a, 0xf7,
  1371. 0x63, 0x62, 0xaa, 0xfd, 0xe9, 0x02, 0xbd, 0x85, 0xdd, 0x84, 0x04, 0xc7, 0x74, 0x60, 0x8f, 0x08,
  1372. 0x1d, 0x04, 0x2e, 0x77, 0x9f, 0x3f, 0xf9, 0xe2, 0x21, 0xae, 0x6a, 0x4c, 0x07, 0x2d, 0x6e, 0x6d,
  1373. 0x16, 0xfa, 0x8b, 0x22, 0xf4, 0x5b, 0xd0, 0x79, 0xb1, 0x61, 0xc7, 0x21, 0x51, 0x44, 0x5c, 0x3b,
  1374. 0xf1, 0x22, 0x87, 0x55, 0xd6, 0xe4, 0x9d, 0x53, 0x95, 0x6a, 0xc9, 0xd9, 0x70, 0xd1, 0x77, 0x50,
  1375. 0x4c, 0x07, 0xf2, 0xa2, 0x5f, 0x5f, 0x59, 0xf4, 0x07, 0x29, 0xb4, 0x4c, 0x5b, 0xfa, 0xc7, 0x3a,
  1376. 0xe4, 0x45, 0xae, 0x4d, 0xd2, 0xf7, 0x22, 0x16, 0xff, 0xc7, 0xcc, 0xd8, 0x1f, 0xa0, 0x28, 0x46,
  1377. 0x96, 0x1f, 0x50, 0xef, 0xc6, 0x73, 0xf8, 0xa4, 0x97, 0xa5, 0x10, 0xe9, 0xc0, 0x0b, 0xeb, 0x57,
  1378. 0xa9, 0x71, 0xe2, 0x73, 0xab, 0x3d, 0x83, 0x92, 0x55, 0xa1, 0x93, 0x74, 0x45, 0x84, 0x06, 0xf0,
  1379. 0x91, 0x18, 0x6d, 0x29, 0xbe, 0xe4, 0xd4, 0x4d, 0x77, 0xc5, 0x9b, 0x26, 0xc5, 0xd5, 0x41, 0x94,
  1380. 0xae, 0x40, 0x7f, 0x04, 0x75, 0xf4, 0x23, 0x4d, 0x06, 0x97, 0x0c, 0xeb, 0xf3, 0x54, 0xee, 0xd6,
  1381. 0x8f, 0x54, 0xce, 0x29, 0x13, 0x46, 0x93, 0x6f, 0xc6, 0x30, 0xa0, 0x74, 0x9c, 0x30, 0x64, 0x1f,
  1382. 0x60, 0xb8, 0xa0, 0x74, 0x9c, 0x30, 0x0c, 0x26, 0xdf, 0xf3, 0xcd, 0xad, 0x7e, 0x58, 0x73, 0x37,
  1383. 0xe6, 0xaf, 0xb8, 0x2d, 0x9e, 0x86, 0x5f, 0xa6, 0xa2, 0x93, 0x6c, 0x2f, 0xb9, 0xe4, 0x4a, 0xdf,
  1384. 0x03, 0x4c, 0x8f, 0x88, 0x9a, 0x80, 0x78, 0x60, 0x88, 0x8f, 0x7b, 0x43, 0xe2, 0x8a, 0xab, 0x46,
  1385. 0xb6, 0xd6, 0xa7, 0x4b, 0xe3, 0x23, 0x86, 0x96, 0xc6, 0x90, 0x86, 0x00, 0x72, 0x09, 0xe3, 0x9e,
  1386. 0x1e, 0x9e, 0x71, 0xf3, 0x90, 0x3d, 0x9e, 0x9b, 0x81, 0x25, 0x37, 0x43, 0xce, 0x71, 0x87, 0x70,
  1387. 0xb0, 0xa4, 0xc2, 0xd0, 0x57, 0x50, 0x88, 0xe2, 0xde, 0x4d, 0x30, 0x74, 0x49, 0x68, 0x8f, 0x30,
  1388. 0x75, 0x06, 0x24, 0x92, 0x45, 0xad, 0x4d, 0x14, 0x2d, 0x21, 0x47, 0xc7, 0x50, 0x18, 0xc7, 0xbd,
  1389. 0x28, 0xee, 0xd9, 0x34, 0x18, 0x7b, 0x8e, 0xcd, 0x3b, 0x40, 0xf4, 0xc4, 0x8e, 0x50, 0x58, 0x4c,
  1390. 0xde, 0xc6, 0x23, 0x52, 0x32, 0xe0, 0x60, 0x49, 0xa9, 0x7d, 0x10, 0xcd, 0xdf, 0x14, 0x40, 0xef,
  1391. 0xa7, 0x05, 0x61, 0xd8, 0x1f, 0xc7, 0xbd, 0xa1, 0xe7, 0xd8, 0xb7, 0xe4, 0xde, 0x76, 0x48, 0x28,
  1392. 0x9d, 0x08, 0x9e, 0x65, 0xf3, 0xfb, 0x8a, 0x43, 0x2e, 0xc9, 0x7d, 0x6d, 0x0a, 0xb8, 0x78, 0x62,
  1393. 0xee, 0x8d, 0x53, 0xe4, 0xa7, 0xdb, 0x00, 0xd3, 0xdc, 0x97, 0xfe, 0x95, 0x81, 0xfd, 0xbf, 0xbc,
  1394. 0xfc, 0xfa, 0xf5, 0x8c, 0x45, 0x9d, 0x50, 0xec, 0x0d, 0x23, 0xb4, 0x0f, 0x9b, 0x5e, 0x14, 0xc5,
  1395. 0x24, 0x94, 0x67, 0x90, 0x2b, 0x76, 0x45, 0x47, 0x71, 0xef, 0x07, 0xe2, 0x50, 0x19, 0xd0, 0x64,
  1396. 0x89, 0x5e, 0x03, 0x44, 0x14, 0x87, 0xf2, 0x6d, 0xb3, 0xb6, 0x72, 0x50, 0x65, 0xb9, 0x35, 0xbf,
  1397. 0x99, 0xdf, 0x80, 0x4a, 0x7e, 0x1a, 0x7b, 0xe1, 0xa3, 0x87, 0x1c, 0x08, 0x73, 0x0e, 0xae, 0xc0,
  1398. 0x6e, 0xe4, 0xf5, 0x7d, 0x4c, 0xe3, 0x90, 0xd8, 0x78, 0xd8, 0x0f, 0x42, 0x8f, 0x0e, 0x46, 0xfa,
  1399. 0x06, 0xdf, 0x1d, 0x9a, 0xa8, 0xaa, 0x89, 0x06, 0x7d, 0x01, 0x3b, 0x33, 0x61, 0xe6, 0x57, 0xc7,
  1400. 0x26, 0x37, 0xce, 0x4d, 0x42, 0xc6, 0xae, 0x86, 0xd2, 0x7f, 0x15, 0xd8, 0x4b, 0x0b, 0x2e, 0x3a,
  1401. 0x87, 0xcd, 0x9b, 0x20, 0x1c, 0x61, 0x2a, 0x6b, 0xb7, 0xf2, 0xe8, 0xbc, 0x9c, 0x71, 0x98, 0x29,
  1402. 0xe1, 0xe8, 0x10, 0xd4, 0xd9, 0x2c, 0x8b, 0x80, 0xce, 0x8a, 0x50, 0x1b, 0xb6, 0x7f, 0x7a, 0xf9,
  1403. 0xf5, 0x6b, 0xdb, 0x15, 0x69, 0x91, 0x61, 0xfd, 0x2a, 0xd5, 0x61, 0x7a, 0x26, 0x4d, 0x95, 0x11,
  1404. 0xc8, 0x45, 0xe9, 0xdf, 0x0a, 0x68, 0x8b, 0x6f, 0x5e, 0xd4, 0x00, 0x98, 0x06, 0x84, 0xef, 0x42,
  1405. 0x3d, 0x39, 0x5a, 0x71, 0xa6, 0x09, 0xfa, 0xe2, 0x89, 0x99, 0x9d, 0xc4, 0x0d, 0xd5, 0x60, 0x87,
  1406. 0xa7, 0x46, 0x4c, 0x6e, 0x9e, 0xcd, 0xcd, 0x95, 0xd9, 0xcc, 0x4f, 0x21, 0x4c, 0xb8, 0x50, 0xa4,
  1407. 0x04, 0x76, 0x53, 0xdc, 0xa2, 0xdf, 0x2f, 0x24, 0xe1, 0x17, 0x0f, 0x6f, 0x78, 0x21, 0xf2, 0xf2,
  1408. 0xe5, 0x91, 0x99, 0xbc, 0x3c, 0x4a, 0xff, 0x53, 0x60, 0x7b, 0xf6, 0xed, 0xc6, 0x2a, 0xfd, 0x8e,
  1409. 0x84, 0x91, 0x17, 0xf8, 0xdc, 0xc3, 0x9a, 0x99, 0x2c, 0xd1, 0x19, 0x14, 0xb8, 0x13, 0x3b, 0x1e,
  1410. 0xbb, 0x93, 0x87, 0x78, 0x66, 0xe5, 0x31, 0x77, 0x38, 0xe8, 0x9a, 0x63, 0x92, 0xe7, 0xbc, 0xcb,
  1411. 0x3d, 0x4e, 0x5f, 0xe1, 0xab, 0xdb, 0x26, 0x27, 0x20, 0xc9, 0x0b, 0xfc, 0x39, 0xa8, 0x3d, 0xcf,
  1412. 0xc7, 0xe1, 0xbd, 0xcd, 0x1f, 0x7a, 0xac, 0x75, 0xb6, 0x4d, 0x10, 0xa2, 0x3a, 0xa6, 0xb8, 0x74,
  1413. 0x0b, 0xea, 0xcc, 0xc3, 0x92, 0xb5, 0xda, 0xec, 0xae, 0x95, 0xd5, 0xad, 0x16, 0x4f, 0x37, 0xbc,
  1414. 0xe0, 0x2c, 0xb3, 0xe8, 0xec, 0xb8, 0x09, 0xd9, 0xc9, 0x75, 0x80, 0x8a, 0xb0, 0xdf, 0xfa, 0xb3,
  1415. 0x65, 0xd9, 0x5d, 0xab, 0x6a, 0x19, 0xf6, 0x75, 0xbb, 0x7b, 0x65, 0xd4, 0x1a, 0x67, 0x0d, 0xa3,
  1416. 0xae, 0x3d, 0x41, 0x1a, 0x6c, 0x73, 0x9d, 0xd1, 0xae, 0x9e, 0x36, 0x8d, 0xba, 0xa6, 0xa0, 0x02,
  1417. 0xe4, 0xb8, 0xa4, 0xde, 0xe8, 0x0a, 0x51, 0x86, 0xb1, 0x4d, 0x2e, 0x00, 0xc6, 0x76, 0x61, 0x59,
  1418. 0x57, 0xcb, 0xd8, 0xb8, 0x6e, 0x8e, 0x8d, 0x4b, 0x66, 0xd8, 0x3a, 0xb0, 0x95, 0x5c, 0xa4, 0xe8,
  1419. 0x23, 0x78, 0xd6, 0xec, 0x9c, 0xdb, 0x4d, 0xe3, 0xad, 0xd1, 0x5c, 0xe0, 0xda, 0x82, 0xf5, 0x76,
  1420. 0xa7, 0x6d, 0x68, 0x80, 0xb2, 0xb0, 0x61, 0x98, 0x66, 0xc7, 0xd4, 0xf6, 0x98, 0xb0, 0xd1, 0x3e,
  1421. 0xeb, 0x68, 0x9f, 0x32, 0x61, 0xdd, 0x38, 0xbd, 0x3e, 0xd7, 0x8e, 0x8e, 0x1b, 0xa0, 0xce, 0x3c,
  1422. 0x2b, 0xd1, 0xc7, 0xa0, 0x9f, 0x57, 0x2d, 0xe3, 0xbb, 0xea, 0x3b, 0xdb, 0x7a, 0x77, 0xb5, 0xb8,
  1423. 0x45, 0x15, 0x9e, 0x4a, 0xad, 0xa6, 0xa0, 0x1d, 0x50, 0xdb, 0x9d, 0xb6, 0x9d, 0x08, 0x32, 0xc7,
  1424. 0x7f, 0x57, 0xa0, 0xf0, 0xde, 0xb3, 0x12, 0x7d, 0x06, 0xcf, 0x13, 0xc6, 0xea, 0xb5, 0x75, 0x61,
  1425. 0xb7, 0x0c, 0xeb, 0xa2, 0x53, 0x5f, 0x20, 0xde, 0x03, 0xad, 0xda, 0xed, 0x76, 0x6a, 0x8d, 0xaa,
  1426. 0xd5, 0xe8, 0xb4, 0xed, 0x4e, 0xbb, 0xc9, 0x3c, 0x14, 0x61, 0xbf, 0x6e, 0xbc, 0x6d, 0xd4, 0x0c,
  1427. 0x81, 0xb4, 0x3a, 0x97, 0x86, 0xd4, 0x65, 0xd0, 0xe7, 0xf0, 0x62, 0x16, 0x51, 0x6d, 0xd7, 0xed,
  1428. 0xf7, 0x6c, 0xb5, 0xb5, 0x63, 0x02, 0xc5, 0xe5, 0x23, 0x0c, 0xfd, 0x1a, 0xbe, 0x9c, 0xd9, 0x87,
  1429. 0x7d, 0x75, 0x7d, 0xda, 0x6c, 0xd4, 0xec, 0x4b, 0xe3, 0x9d, 0x5d, 0x33, 0x4c, 0xab, 0x71, 0xd6,
  1430. 0xa8, 0xb1, 0x34, 0x9d, 0x75, 0xcc, 0x56, 0xd5, 0xd2, 0x9e, 0x20, 0x1d, 0xf6, 0xd8, 0x78, 0x9a,
  1431. 0x53, 0x5e, 0x19, 0x2d, 0x4d, 0x39, 0xbe, 0x83, 0x9d, 0x85, 0x26, 0x45, 0x2f, 0xe0, 0x93, 0x25,
  1432. 0xdc, 0x13, 0x3e, 0x15, 0x9e, 0x9a, 0xdd, 0x2a, 0xa7, 0x58, 0x63, 0xe9, 0x67, 0x0b, 0xee, 0x80,
  1433. 0x93, 0xa2, 0x1c, 0x64, 0x8d, 0xee, 0xc9, 0xcb, 0x57, 0x7c, 0x99, 0x41, 0x08, 0xf2, 0x62, 0x39,
  1434. 0x31, 0x59, 0x3f, 0xbd, 0x81, 0x03, 0x27, 0x18, 0xa5, 0x0d, 0x8d, 0xd3, 0xbc, 0x99, 0xfc, 0x03,
  1435. 0xb9, 0x62, 0xfd, 0x70, 0xa5, 0x7c, 0xff, 0x4a, 0x9a, 0xf5, 0x83, 0x21, 0xf6, 0xfb, 0xe5, 0x20,
  1436. 0xec, 0x57, 0xfa, 0xc4, 0xe7, 0xdd, 0x52, 0x11, 0x2a, 0x3c, 0xf6, 0xa2, 0xb9, 0x1f, 0x29, 0x6f,
  1437. 0xbc, 0x80, 0xfe, 0x5f, 0x51, 0x7a, 0x9b, 0xdc, 0xea, 0x37, 0x3f, 0x07, 0x00, 0x00, 0xff, 0xff,
  1438. 0x19, 0x42, 0x91, 0x59, 0x6d, 0x11, 0x00, 0x00,
  1439. }