1 // Copyright 2022 Google LLC 2 // 3 // Licensed under the Apache License, Version 2.0 (the "License"); 4 // you may not use this file except in compliance with the License. 5 // You may obtain a copy of the License at 6 // 7 // http://www.apache.org/licenses/LICENSE-2.0 8 // 9 // Unless required by applicable law or agreed to in writing, software 10 // distributed under the License is distributed on an "AS IS" BASIS, 11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 // See the License for the specific language governing permissions and 13 // limitations under the License. 14 15 // Code generated by aliasgen. DO NOT EDIT. 16 17 // Package iot aliases all exported identifiers in package 18 // "cloud.google.com/go/iot/apiv1/iotpb". 19 // 20 // Deprecated: Please use types in: cloud.google.com/go/iot/apiv1/iotpb. 21 // Please read https://github.com/googleapis/google-cloud-go/blob/main/migration.md 22 // for more details. 23 package iot 24 25 import ( 26 src "cloud.google.com/go/iot/apiv1/iotpb" 27 grpc "google.golang.org/grpc" 28 ) 29 30 // Deprecated: Please use consts in: cloud.google.com/go/iot/apiv1/iotpb 31 const ( 32 GatewayAuthMethod_ASSOCIATION_AND_DEVICE_AUTH_TOKEN = src.GatewayAuthMethod_ASSOCIATION_AND_DEVICE_AUTH_TOKEN 33 GatewayAuthMethod_ASSOCIATION_ONLY = src.GatewayAuthMethod_ASSOCIATION_ONLY 34 GatewayAuthMethod_DEVICE_AUTH_TOKEN_ONLY = src.GatewayAuthMethod_DEVICE_AUTH_TOKEN_ONLY 35 GatewayAuthMethod_GATEWAY_AUTH_METHOD_UNSPECIFIED = src.GatewayAuthMethod_GATEWAY_AUTH_METHOD_UNSPECIFIED 36 GatewayType_GATEWAY = src.GatewayType_GATEWAY 37 GatewayType_GATEWAY_TYPE_UNSPECIFIED = src.GatewayType_GATEWAY_TYPE_UNSPECIFIED 38 GatewayType_NON_GATEWAY = src.GatewayType_NON_GATEWAY 39 HttpState_HTTP_DISABLED = src.HttpState_HTTP_DISABLED 40 HttpState_HTTP_ENABLED = src.HttpState_HTTP_ENABLED 41 HttpState_HTTP_STATE_UNSPECIFIED = src.HttpState_HTTP_STATE_UNSPECIFIED 42 LogLevel_DEBUG = src.LogLevel_DEBUG 43 LogLevel_ERROR = src.LogLevel_ERROR 44 LogLevel_INFO = src.LogLevel_INFO 45 LogLevel_LOG_LEVEL_UNSPECIFIED = src.LogLevel_LOG_LEVEL_UNSPECIFIED 46 LogLevel_NONE = src.LogLevel_NONE 47 MqttState_MQTT_DISABLED = src.MqttState_MQTT_DISABLED 48 MqttState_MQTT_ENABLED = src.MqttState_MQTT_ENABLED 49 MqttState_MQTT_STATE_UNSPECIFIED = src.MqttState_MQTT_STATE_UNSPECIFIED 50 PublicKeyCertificateFormat_UNSPECIFIED_PUBLIC_KEY_CERTIFICATE_FORMAT = src.PublicKeyCertificateFormat_UNSPECIFIED_PUBLIC_KEY_CERTIFICATE_FORMAT 51 PublicKeyCertificateFormat_X509_CERTIFICATE_PEM = src.PublicKeyCertificateFormat_X509_CERTIFICATE_PEM 52 PublicKeyFormat_ES256_PEM = src.PublicKeyFormat_ES256_PEM 53 PublicKeyFormat_ES256_X509_PEM = src.PublicKeyFormat_ES256_X509_PEM 54 PublicKeyFormat_RSA_PEM = src.PublicKeyFormat_RSA_PEM 55 PublicKeyFormat_RSA_X509_PEM = src.PublicKeyFormat_RSA_X509_PEM 56 PublicKeyFormat_UNSPECIFIED_PUBLIC_KEY_FORMAT = src.PublicKeyFormat_UNSPECIFIED_PUBLIC_KEY_FORMAT 57 ) 58 59 // Deprecated: Please use vars in: cloud.google.com/go/iot/apiv1/iotpb 60 var ( 61 File_google_cloud_iot_v1_device_manager_proto = src.File_google_cloud_iot_v1_device_manager_proto 62 File_google_cloud_iot_v1_resources_proto = src.File_google_cloud_iot_v1_resources_proto 63 GatewayAuthMethod_name = src.GatewayAuthMethod_name 64 GatewayAuthMethod_value = src.GatewayAuthMethod_value 65 GatewayType_name = src.GatewayType_name 66 GatewayType_value = src.GatewayType_value 67 HttpState_name = src.HttpState_name 68 HttpState_value = src.HttpState_value 69 LogLevel_name = src.LogLevel_name 70 LogLevel_value = src.LogLevel_value 71 MqttState_name = src.MqttState_name 72 MqttState_value = src.MqttState_value 73 PublicKeyCertificateFormat_name = src.PublicKeyCertificateFormat_name 74 PublicKeyCertificateFormat_value = src.PublicKeyCertificateFormat_value 75 PublicKeyFormat_name = src.PublicKeyFormat_name 76 PublicKeyFormat_value = src.PublicKeyFormat_value 77 ) 78 79 // Request for `BindDeviceToGateway`. 80 // 81 // Deprecated: Please use types in: cloud.google.com/go/iot/apiv1/iotpb 82 type BindDeviceToGatewayRequest = src.BindDeviceToGatewayRequest 83 84 // Response for `BindDeviceToGateway`. 85 // 86 // Deprecated: Please use types in: cloud.google.com/go/iot/apiv1/iotpb 87 type BindDeviceToGatewayResponse = src.BindDeviceToGatewayResponse 88 89 // Request for `CreateDeviceRegistry`. 90 // 91 // Deprecated: Please use types in: cloud.google.com/go/iot/apiv1/iotpb 92 type CreateDeviceRegistryRequest = src.CreateDeviceRegistryRequest 93 94 // Request for `CreateDevice`. 95 // 96 // Deprecated: Please use types in: cloud.google.com/go/iot/apiv1/iotpb 97 type CreateDeviceRequest = src.CreateDeviceRequest 98 99 // Request for `DeleteDeviceRegistry`. 100 // 101 // Deprecated: Please use types in: cloud.google.com/go/iot/apiv1/iotpb 102 type DeleteDeviceRegistryRequest = src.DeleteDeviceRegistryRequest 103 104 // Request for `DeleteDevice`. 105 // 106 // Deprecated: Please use types in: cloud.google.com/go/iot/apiv1/iotpb 107 type DeleteDeviceRequest = src.DeleteDeviceRequest 108 109 // The device resource. 110 // 111 // Deprecated: Please use types in: cloud.google.com/go/iot/apiv1/iotpb 112 type Device = src.Device 113 114 // The device configuration. Eventually delivered to devices. 115 // 116 // Deprecated: Please use types in: cloud.google.com/go/iot/apiv1/iotpb 117 type DeviceConfig = src.DeviceConfig 118 119 // A server-stored device credential used for authentication. 120 // 121 // Deprecated: Please use types in: cloud.google.com/go/iot/apiv1/iotpb 122 type DeviceCredential = src.DeviceCredential 123 type DeviceCredential_PublicKey = src.DeviceCredential_PublicKey 124 125 // DeviceManagerClient is the client API for DeviceManager service. For 126 // semantics around ctx use and closing/ending streaming RPCs, please refer to 127 // https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. 128 // 129 // Deprecated: Please use types in: cloud.google.com/go/iot/apiv1/iotpb 130 type DeviceManagerClient = src.DeviceManagerClient 131 132 // DeviceManagerServer is the server API for DeviceManager service. 133 // 134 // Deprecated: Please use types in: cloud.google.com/go/iot/apiv1/iotpb 135 type DeviceManagerServer = src.DeviceManagerServer 136 137 // A container for a group of devices. 138 // 139 // Deprecated: Please use types in: cloud.google.com/go/iot/apiv1/iotpb 140 type DeviceRegistry = src.DeviceRegistry 141 142 // The device state, as reported by the device. 143 // 144 // Deprecated: Please use types in: cloud.google.com/go/iot/apiv1/iotpb 145 type DeviceState = src.DeviceState 146 147 // The configuration for forwarding telemetry events. 148 // 149 // Deprecated: Please use types in: cloud.google.com/go/iot/apiv1/iotpb 150 type EventNotificationConfig = src.EventNotificationConfig 151 152 // The gateway authorization/authentication method. This setting determines 153 // how Cloud IoT Core authorizes/authenticate devices to access the gateway. 154 // 155 // Deprecated: Please use types in: cloud.google.com/go/iot/apiv1/iotpb 156 type GatewayAuthMethod = src.GatewayAuthMethod 157 158 // Gateway-related configuration and state. 159 // 160 // Deprecated: Please use types in: cloud.google.com/go/iot/apiv1/iotpb 161 type GatewayConfig = src.GatewayConfig 162 163 // Options for limiting the list based on gateway type and associations. 164 // 165 // Deprecated: Please use types in: cloud.google.com/go/iot/apiv1/iotpb 166 type GatewayListOptions = src.GatewayListOptions 167 type GatewayListOptions_AssociationsDeviceId = src.GatewayListOptions_AssociationsDeviceId 168 type GatewayListOptions_AssociationsGatewayId = src.GatewayListOptions_AssociationsGatewayId 169 type GatewayListOptions_GatewayType = src.GatewayListOptions_GatewayType 170 171 // Gateway type. 172 // 173 // Deprecated: Please use types in: cloud.google.com/go/iot/apiv1/iotpb 174 type GatewayType = src.GatewayType 175 176 // Request for `GetDeviceRegistry`. 177 // 178 // Deprecated: Please use types in: cloud.google.com/go/iot/apiv1/iotpb 179 type GetDeviceRegistryRequest = src.GetDeviceRegistryRequest 180 181 // Request for `GetDevice`. 182 // 183 // Deprecated: Please use types in: cloud.google.com/go/iot/apiv1/iotpb 184 type GetDeviceRequest = src.GetDeviceRequest 185 186 // The configuration of the HTTP bridge for a device registry. 187 // 188 // Deprecated: Please use types in: cloud.google.com/go/iot/apiv1/iotpb 189 type HttpConfig = src.HttpConfig 190 191 // Indicates whether DeviceService (HTTP) is enabled or disabled for the 192 // registry. See the field description for details. 193 // 194 // Deprecated: Please use types in: cloud.google.com/go/iot/apiv1/iotpb 195 type HttpState = src.HttpState 196 197 // Request for `ListDeviceConfigVersions`. 198 // 199 // Deprecated: Please use types in: cloud.google.com/go/iot/apiv1/iotpb 200 type ListDeviceConfigVersionsRequest = src.ListDeviceConfigVersionsRequest 201 202 // Response for `ListDeviceConfigVersions`. 203 // 204 // Deprecated: Please use types in: cloud.google.com/go/iot/apiv1/iotpb 205 type ListDeviceConfigVersionsResponse = src.ListDeviceConfigVersionsResponse 206 207 // Request for `ListDeviceRegistries`. 208 // 209 // Deprecated: Please use types in: cloud.google.com/go/iot/apiv1/iotpb 210 type ListDeviceRegistriesRequest = src.ListDeviceRegistriesRequest 211 212 // Response for `ListDeviceRegistries`. 213 // 214 // Deprecated: Please use types in: cloud.google.com/go/iot/apiv1/iotpb 215 type ListDeviceRegistriesResponse = src.ListDeviceRegistriesResponse 216 217 // Request for `ListDeviceStates`. 218 // 219 // Deprecated: Please use types in: cloud.google.com/go/iot/apiv1/iotpb 220 type ListDeviceStatesRequest = src.ListDeviceStatesRequest 221 222 // Response for `ListDeviceStates`. 223 // 224 // Deprecated: Please use types in: cloud.google.com/go/iot/apiv1/iotpb 225 type ListDeviceStatesResponse = src.ListDeviceStatesResponse 226 227 // Request for `ListDevices`. 228 // 229 // Deprecated: Please use types in: cloud.google.com/go/iot/apiv1/iotpb 230 type ListDevicesRequest = src.ListDevicesRequest 231 232 // Response for `ListDevices`. 233 // 234 // Deprecated: Please use types in: cloud.google.com/go/iot/apiv1/iotpb 235 type ListDevicesResponse = src.ListDevicesResponse 236 237 // **Beta Feature** The logging verbosity for device activity. Specifies which 238 // events should be written to logs. For example, if the LogLevel is ERROR, 239 // only events that terminate in errors will be logged. LogLevel is inclusive; 240 // enabling INFO logging will also enable ERROR logging. 241 // 242 // Deprecated: Please use types in: cloud.google.com/go/iot/apiv1/iotpb 243 type LogLevel = src.LogLevel 244 245 // Request for `ModifyCloudToDeviceConfig`. 246 // 247 // Deprecated: Please use types in: cloud.google.com/go/iot/apiv1/iotpb 248 type ModifyCloudToDeviceConfigRequest = src.ModifyCloudToDeviceConfigRequest 249 250 // The configuration of MQTT for a device registry. 251 // 252 // Deprecated: Please use types in: cloud.google.com/go/iot/apiv1/iotpb 253 type MqttConfig = src.MqttConfig 254 255 // Indicates whether an MQTT connection is enabled or disabled. See the field 256 // description for details. 257 // 258 // Deprecated: Please use types in: cloud.google.com/go/iot/apiv1/iotpb 259 type MqttState = src.MqttState 260 261 // A public key certificate format and data. 262 // 263 // Deprecated: Please use types in: cloud.google.com/go/iot/apiv1/iotpb 264 type PublicKeyCertificate = src.PublicKeyCertificate 265 266 // The supported formats for the public key. 267 // 268 // Deprecated: Please use types in: cloud.google.com/go/iot/apiv1/iotpb 269 type PublicKeyCertificateFormat = src.PublicKeyCertificateFormat 270 271 // A public key format and data. 272 // 273 // Deprecated: Please use types in: cloud.google.com/go/iot/apiv1/iotpb 274 type PublicKeyCredential = src.PublicKeyCredential 275 276 // The supported formats for the public key. 277 // 278 // Deprecated: Please use types in: cloud.google.com/go/iot/apiv1/iotpb 279 type PublicKeyFormat = src.PublicKeyFormat 280 281 // A server-stored registry credential used to validate device credentials. 282 // 283 // Deprecated: Please use types in: cloud.google.com/go/iot/apiv1/iotpb 284 type RegistryCredential = src.RegistryCredential 285 type RegistryCredential_PublicKeyCertificate = src.RegistryCredential_PublicKeyCertificate 286 287 // Request for `SendCommandToDevice`. 288 // 289 // Deprecated: Please use types in: cloud.google.com/go/iot/apiv1/iotpb 290 type SendCommandToDeviceRequest = src.SendCommandToDeviceRequest 291 292 // Response for `SendCommandToDevice`. 293 // 294 // Deprecated: Please use types in: cloud.google.com/go/iot/apiv1/iotpb 295 type SendCommandToDeviceResponse = src.SendCommandToDeviceResponse 296 297 // The configuration for notification of new states received from the device. 298 // 299 // Deprecated: Please use types in: cloud.google.com/go/iot/apiv1/iotpb 300 type StateNotificationConfig = src.StateNotificationConfig 301 302 // Request for `UnbindDeviceFromGateway`. 303 // 304 // Deprecated: Please use types in: cloud.google.com/go/iot/apiv1/iotpb 305 type UnbindDeviceFromGatewayRequest = src.UnbindDeviceFromGatewayRequest 306 307 // Response for `UnbindDeviceFromGateway`. 308 // 309 // Deprecated: Please use types in: cloud.google.com/go/iot/apiv1/iotpb 310 type UnbindDeviceFromGatewayResponse = src.UnbindDeviceFromGatewayResponse 311 312 // UnimplementedDeviceManagerServer can be embedded to have forward compatible 313 // implementations. 314 // 315 // Deprecated: Please use types in: cloud.google.com/go/iot/apiv1/iotpb 316 type UnimplementedDeviceManagerServer = src.UnimplementedDeviceManagerServer 317 318 // Request for `UpdateDeviceRegistry`. 319 // 320 // Deprecated: Please use types in: cloud.google.com/go/iot/apiv1/iotpb 321 type UpdateDeviceRegistryRequest = src.UpdateDeviceRegistryRequest 322 323 // Request for `UpdateDevice`. 324 // 325 // Deprecated: Please use types in: cloud.google.com/go/iot/apiv1/iotpb 326 type UpdateDeviceRequest = src.UpdateDeviceRequest 327 328 // Details of an X.509 certificate. For informational purposes only. 329 // 330 // Deprecated: Please use types in: cloud.google.com/go/iot/apiv1/iotpb 331 type X509CertificateDetails = src.X509CertificateDetails 332 333 // Deprecated: Please use funcs in: cloud.google.com/go/iot/apiv1/iotpb 334 func NewDeviceManagerClient(cc grpc.ClientConnInterface) DeviceManagerClient { 335 return src.NewDeviceManagerClient(cc) 336 } 337 338 // Deprecated: Please use funcs in: cloud.google.com/go/iot/apiv1/iotpb 339 func RegisterDeviceManagerServer(s *grpc.Server, srv DeviceManagerServer) { 340 src.RegisterDeviceManagerServer(s, srv) 341 } 342