From c173ace8bcd1ac6a00839ef8994b9373770a8bea Mon Sep 17 00:00:00 2001 From: Bernd Storath Date: Tue, 9 Jul 2024 13:15:16 +0200 Subject: [PATCH] api: Remove generated PHP code. (#452) --- api/php/.gitignore | 1 + .../Chirpstack/Api/ActivateDeviceRequest.php | 75 - .../Api/AddDeviceToMulticastGroupRequest.php | 99 - .../Api/AddGatewayToMulticastGroupRequest.php | 99 - .../Chirpstack/Api/AddRelayDeviceRequest.php | 99 - .../Chirpstack/Api/AddTenantUserRequest.php | 75 - .../Chirpstack/Api/AdrAlgorithmListItem.php | 99 - api/php/generated/Chirpstack/Api/ApiKey.php | 175 -- .../generated/Chirpstack/Api/Application.php | 217 -- .../Chirpstack/Api/ApplicationListItem.php | 221 -- .../Api/ApplicationServiceClient.php | 726 ------ .../Chirpstack/Api/AwsSnsIntegration.php | 235 -- .../Api/AzureServiceBusIntegration.php | 171 -- .../Chirpstack/Api/CadPeriodicity.php | 80 - .../generated/Chirpstack/Api/CodecRuntime.php | 59 - .../Chirpstack/Api/CreateApiKeyRequest.php | 75 - .../Chirpstack/Api/CreateApiKeyResponse.php | 99 - .../Api/CreateApplicationRequest.php | 75 - .../Api/CreateApplicationResponse.php | 65 - .../Api/CreateAwsSnsIntegrationRequest.php | 75 - ...reateAzureServiceBusIntegrationRequest.php | 75 - .../Api/CreateDeviceKeysRequest.php | 75 - .../Api/CreateDeviceProfileRequest.php | 75 - .../Api/CreateDeviceProfileResponse.php | 65 - .../CreateDeviceProfileTemplateRequest.php | 75 - .../Chirpstack/Api/CreateDeviceRequest.php | 75 - .../Chirpstack/Api/CreateGatewayRequest.php | 75 - .../Api/CreateGcpPubSubIntegrationRequest.php | 75 - .../Api/CreateHttpIntegrationRequest.php | 75 - .../Api/CreateIftttIntegrationRequest.php | 75 - .../Api/CreateInfluxDbIntegrationRequest.php | 75 - .../Api/CreateLoraCloudIntegrationRequest.php | 75 - .../Api/CreateMulticastGroupRequest.php | 75 - .../Api/CreateMulticastGroupResponse.php | 65 - .../Api/CreateMyDevicesIntegrationRequest.php | 75 - .../CreatePilotThingsIntegrationRequest.php | 75 - .../Chirpstack/Api/CreateTenantRequest.php | 75 - .../Chirpstack/Api/CreateTenantResponse.php | 65 - .../CreateThingsBoardIntegrationRequest.php | 75 - .../Chirpstack/Api/CreateUserRequest.php | 143 -- .../Chirpstack/Api/CreateUserResponse.php | 65 - .../Api/DeactivateDeviceRequest.php | 65 - .../Chirpstack/Api/DeleteApiKeyRequest.php | 65 - .../Api/DeleteApplicationRequest.php | 65 - .../Api/DeleteAwsSnsIntegrationRequest.php | 65 - ...eleteAzureServiceBusIntegrationRequest.php | 65 - .../Api/DeleteDeviceKeysRequest.php | 65 - .../Api/DeleteDeviceProfileRequest.php | 65 - .../DeleteDeviceProfileTemplateRequest.php | 65 - .../Chirpstack/Api/DeleteDeviceRequest.php | 65 - .../Chirpstack/Api/DeleteGatewayRequest.php | 65 - .../Api/DeleteGcpPubSubIntegrationRequest.php | 65 - .../Api/DeleteHttpIntegrationRequest.php | 65 - .../Api/DeleteIftttIntegrationRequest.php | 65 - .../Api/DeleteInfluxDbIntegrationRequest.php | 65 - .../Api/DeleteLoraCloudIntegrationRequest.php | 65 - .../Api/DeleteMulticastGroupRequest.php | 65 - .../Api/DeleteMyDevicesIntegrationRequest.php | 65 - .../DeletePilotThingsIntegrationRequest.php | 65 - .../Api/DeleteRelayGatewayRequest.php | 99 - .../Chirpstack/Api/DeleteTenantRequest.php | 65 - .../Api/DeleteTenantUserRequest.php | 99 - .../DeleteThingsBoardIntegrationRequest.php | 65 - .../Chirpstack/Api/DeleteUserRequest.php | 65 - api/php/generated/Chirpstack/Api/Device.php | 411 --- .../Chirpstack/Api/DeviceActivation.php | 337 --- .../generated/Chirpstack/Api/DeviceKeys.php | 141 -- .../Chirpstack/Api/DeviceListItem.php | 377 --- .../Chirpstack/Api/DeviceProfile.php | 2221 ----------------- .../Chirpstack/Api/DeviceProfileListItem.php | 391 --- .../Api/DeviceProfileServiceClient.php | 111 - .../Chirpstack/Api/DeviceProfileTemplate.php | 1069 -------- .../Api/DeviceProfileTemplateListItem.php | 459 ---- .../DeviceProfileTemplateServiceClient.php | 95 - .../Chirpstack/Api/DeviceQueueItem.php | 387 --- .../Chirpstack/Api/DeviceServiceClient.php | 328 --- .../generated/Chirpstack/Api/DeviceState.php | 99 - .../generated/Chirpstack/Api/DeviceStatus.php | 141 -- api/php/generated/Chirpstack/Api/Encoding.php | 48 - .../Api/EnqueueDeviceQueueItemRequest.php | 68 - .../Api/EnqueueDeviceQueueItemResponse.php | 65 - .../EnqueueMulticastGroupQueueItemRequest.php | 75 - ...EnqueueMulticastGroupQueueItemResponse.php | 65 - .../Chirpstack/Api/FlushDevNoncesRequest.php | 65 - .../Api/FlushDeviceQueueRequest.php | 65 - .../Api/FlushMulticastGroupQueueRequest.php | 65 - api/php/generated/Chirpstack/Api/Gateway.php | 321 --- .../Chirpstack/Api/GatewayListItem.php | 419 ---- .../Chirpstack/Api/GatewayServiceClient.php | 201 -- .../generated/Chirpstack/Api/GatewayState.php | 59 - .../Chirpstack/Api/GcpPubSubIntegration.php | 217 -- ...enerateGatewayClientCertificateRequest.php | 65 - ...nerateGatewayClientCertificateResponse.php | 177 -- ...qttIntegrationClientCertificateRequest.php | 65 - ...ttIntegrationClientCertificateResponse.php | 177 -- .../Chirpstack/Api/GetApplicationRequest.php | 65 - .../Chirpstack/Api/GetApplicationResponse.php | 205 -- .../Api/GetAwsSnsIntegrationRequest.php | 65 - .../Api/GetAwsSnsIntegrationResponse.php | 75 - .../GetAzureServiceBusIntegrationRequest.php | 65 - .../GetAzureServiceBusIntegrationResponse.php | 75 - .../Api/GetDeviceActivationRequest.php | 65 - .../Api/GetDeviceActivationResponse.php | 131 - .../Chirpstack/Api/GetDeviceKeysRequest.php | 65 - .../Chirpstack/Api/GetDeviceKeysResponse.php | 163 -- .../Api/GetDeviceLinkMetricsRequest.php | 187 -- .../Api/GetDeviceLinkMetricsResponse.php | 295 --- .../Api/GetDeviceMetricsRequest.php | 187 -- .../Api/GetDeviceMetricsResponse.php | 85 - .../Api/GetDeviceNextFCntDownRequest.php | 65 - .../Api/GetDeviceNextFCntDownResponse.php | 65 - .../Api/GetDeviceProfileRequest.php | 65 - .../Api/GetDeviceProfileResponse.php | 163 -- .../Api/GetDeviceProfileTemplateRequest.php | 65 - .../Api/GetDeviceProfileTemplateResponse.php | 163 -- .../Api/GetDeviceQueueItemsRequest.php | 99 - .../Api/GetDeviceQueueItemsResponse.php | 99 - .../Chirpstack/Api/GetDeviceRequest.php | 65 - .../Chirpstack/Api/GetDeviceResponse.php | 285 --- .../Api/GetDevicesSummaryRequest.php | 65 - .../Api/GetDevicesSummaryResponse.php | 171 -- .../Api/GetGatewayDutyCycleMetricsRequest.php | 153 -- .../GetGatewayDutyCycleMetricsResponse.php | 119 - .../Api/GetGatewayMetricsRequest.php | 187 -- .../Api/GetGatewayMetricsResponse.php | 339 --- .../Chirpstack/Api/GetGatewayRequest.php | 65 - .../Chirpstack/Api/GetGatewayResponse.php | 207 -- .../Api/GetGatewaysSummaryRequest.php | 65 - .../Api/GetGatewaysSummaryResponse.php | 133 - .../Api/GetGcpPubSubIntegrationRequest.php | 65 - .../Api/GetGcpPubSubIntegrationResponse.php | 75 - .../Api/GetHttpIntegrationRequest.php | 65 - .../Api/GetHttpIntegrationResponse.php | 75 - .../Api/GetIftttIntegrationRequest.php | 65 - .../Api/GetIftttIntegrationResponse.php | 75 - .../Api/GetInfluxDbIntegrationRequest.php | 65 - .../Api/GetInfluxDbIntegrationResponse.php | 75 - .../Api/GetLoraCloudIntegrationRequest.php | 65 - .../Api/GetLoraCloudIntegrationResponse.php | 75 - .../Api/GetMulticastGroupRequest.php | 65 - .../Api/GetMulticastGroupResponse.php | 163 -- .../Api/GetMyDevicesIntegrationRequest.php | 65 - .../Api/GetMyDevicesIntegrationResponse.php | 75 - .../Api/GetPilotThingsIntegrationRequest.php | 65 - .../Api/GetPilotThingsIntegrationResponse.php | 75 - .../Api/GetRandomDevAddrRequest.php | 65 - .../Api/GetRandomDevAddrResponse.php | 65 - .../Chirpstack/Api/GetRegionRequest.php | 65 - .../Chirpstack/Api/GetRegionResponse.php | 405 --- .../Chirpstack/Api/GetRelayGatewayRequest.php | 99 - .../Api/GetRelayGatewayResponse.php | 207 -- .../Chirpstack/Api/GetTenantRequest.php | 65 - .../Chirpstack/Api/GetTenantResponse.php | 163 -- .../Chirpstack/Api/GetTenantUserRequest.php | 99 - .../Chirpstack/Api/GetTenantUserResponse.php | 163 -- .../Api/GetThingsBoardIntegrationRequest.php | 65 - .../Api/GetThingsBoardIntegrationResponse.php | 75 - .../Chirpstack/Api/GetUserRequest.php | 65 - .../Chirpstack/Api/GetUserResponse.php | 163 -- .../Chirpstack/Api/GetVersionResponse.php | 65 - .../Chirpstack/Api/GlobalSearchRequest.php | 133 - .../Chirpstack/Api/GlobalSearchResponse.php | 58 - .../Chirpstack/Api/GlobalSearchResult.php | 371 --- .../Chirpstack/Api/HttpIntegration.php | 179 -- .../Chirpstack/Api/IftttIntegration.php | 269 -- .../Chirpstack/Api/InfluxDbIntegration.php | 405 --- .../Chirpstack/Api/InfluxDbPrecision.php | 68 - .../Chirpstack/Api/InfluxDbVersion.php | 48 - .../Chirpstack/Api/IntegrationKind.php | 93 - .../Chirpstack/Api/IntegrationListItem.php | 65 - .../Chirpstack/Api/InternalServiceClient.php | 275 -- .../Chirpstack/Api/ListApiKeysRequest.php | 167 -- .../Chirpstack/Api/ListApiKeysResponse.php | 92 - .../Api/ListApplicationsRequest.php | 167 -- .../Api/ListApplicationsResponse.php | 99 - ...ListDeviceProfileAdrAlgorithmsResponse.php | 99 - .../Api/ListDeviceProfileTemplatesRequest.php | 99 - .../ListDeviceProfileTemplatesResponse.php | 99 - .../Api/ListDeviceProfilesRequest.php | 167 -- .../Api/ListDeviceProfilesResponse.php | 99 - .../Chirpstack/Api/ListDevicesRequest.php | 201 -- .../Chirpstack/Api/ListDevicesResponse.php | 99 - .../Chirpstack/Api/ListGatewaysRequest.php | 205 -- .../Chirpstack/Api/ListGatewaysResponse.php | 99 - .../Api/ListIntegrationsRequest.php | 65 - .../Api/ListIntegrationsResponse.php | 99 - .../Api/ListMulticastGroupQueueRequest.php | 65 - .../Api/ListMulticastGroupQueueResponse.php | 58 - .../Api/ListMulticastGroupsRequest.php | 167 -- .../Api/ListMulticastGroupsResponse.php | 99 - .../Chirpstack/Api/ListRegionsResponse.php | 65 - .../Api/ListRelayDevicesRequest.php | 133 - .../Api/ListRelayDevicesResponse.php | 99 - .../Api/ListRelayGatewaysRequest.php | 137 - .../Api/ListRelayGatewaysResponse.php | 99 - .../Chirpstack/Api/ListRelaysRequest.php | 133 - .../Chirpstack/Api/ListRelaysResponse.php | 99 - .../Chirpstack/Api/ListTenantUsersRequest.php | 133 - .../Api/ListTenantUsersResponse.php | 99 - .../Chirpstack/Api/ListTenantsRequest.php | 171 -- .../Chirpstack/Api/ListTenantsResponse.php | 99 - .../Chirpstack/Api/ListUsersRequest.php | 99 - .../Chirpstack/Api/ListUsersResponse.php | 99 - api/php/generated/Chirpstack/Api/LogItem.php | 211 -- .../generated/Chirpstack/Api/LoginRequest.php | 99 - .../Chirpstack/Api/LoginResponse.php | 65 - .../Chirpstack/Api/LoraCloudIntegration.php | 109 - .../Api/LoraCloudModemGeolocationServices.php | 637 ----- .../generated/Chirpstack/Api/Measurement.php | 99 - .../Chirpstack/Api/MeasurementKind.php | 74 - .../Chirpstack/Api/MulticastGroup.php | 527 ---- .../Chirpstack/Api/MulticastGroupListItem.php | 255 -- .../Api/MulticastGroupQueueItem.php | 171 -- .../Api/MulticastGroupSchedulingType.php | 57 - .../Api/MulticastGroupServiceClient.php | 200 -- .../Chirpstack/Api/MulticastGroupType.php | 52 - .../Chirpstack/Api/MyDevicesIntegration.php | 99 - api/php/generated/Chirpstack/Api/OAuth2.php | 201 -- .../Chirpstack/Api/OAuth2LoginRequest.php | 99 - .../Chirpstack/Api/OAuth2LoginResponse.php | 65 - .../Chirpstack/Api/OpenIdConnect.php | 201 -- .../Api/OpenIdConnectLoginRequest.php | 99 - .../Api/OpenIdConnectLoginResponse.php | 65 - .../Chirpstack/Api/PilotThingsIntegration.php | 133 - .../Chirpstack/Api/ProfileResponse.php | 109 - .../Chirpstack/Api/RegionChannel.php | 133 - .../Chirpstack/Api/RegionListItem.php | 133 - .../Chirpstack/Api/RelayDeviceListItem.php | 143 -- .../generated/Chirpstack/Api/RelayGateway.php | 243 -- .../Chirpstack/Api/RelayGatewayListItem.php | 375 --- .../Chirpstack/Api/RelayListItem.php | 99 - .../Chirpstack/Api/RelayModeActivation.php | 66 - .../Chirpstack/Api/RelayServiceClient.php | 80 - .../RemoveDeviceFromMulticastGroupRequest.php | 99 - ...RemoveGatewayFromMulticastGroupRequest.php | 99 - .../Api/RemoveRelayDeviceRequest.php | 99 - .../Chirpstack/Api/SecondChAckOffset.php | 80 - .../Chirpstack/Api/SettingsResponse.php | 119 - .../Api/StreamDeviceEventsRequest.php | 65 - .../Api/StreamDeviceFramesRequest.php | 65 - .../Api/StreamGatewayFramesRequest.php | 65 - api/php/generated/Chirpstack/Api/Tenant.php | 377 --- .../Chirpstack/Api/TenantListItem.php | 365 --- .../Chirpstack/Api/TenantServiceClient.php | 171 -- .../generated/Chirpstack/Api/TenantUser.php | 243 -- .../Chirpstack/Api/TenantUserListItem.php | 331 --- .../Chirpstack/Api/ThingsBoardIntegration.php | 99 - .../Api/UpdateApplicationRequest.php | 75 - .../Api/UpdateAwsSnsIntegrationRequest.php | 75 - ...pdateAzureServiceBusIntegrationRequest.php | 75 - .../Api/UpdateDeviceKeysRequest.php | 75 - .../Api/UpdateDeviceProfileRequest.php | 75 - .../UpdateDeviceProfileTemplateRequest.php | 75 - .../Chirpstack/Api/UpdateDeviceRequest.php | 75 - .../Chirpstack/Api/UpdateGatewayRequest.php | 75 - .../Api/UpdateGcpPubSubIntegrationRequest.php | 75 - .../Api/UpdateHttpIntegrationRequest.php | 75 - .../Api/UpdateIftttIntegrationRequest.php | 75 - .../Api/UpdateInfluxDbIntegrationRequest.php | 75 - .../Api/UpdateLoraCloudIntegrationRequest.php | 75 - .../Api/UpdateMulticastGroupRequest.php | 75 - .../Api/UpdateMyDevicesIntegrationRequest.php | 75 - .../UpdatePilotThingsIntegrationRequest.php | 75 - .../Api/UpdateRelayGatewayRequest.php | 75 - .../Chirpstack/Api/UpdateTenantRequest.php | 75 - .../Api/UpdateTenantUserRequest.php | 75 - .../UpdateThingsBoardIntegrationRequest.php | 75 - .../Api/UpdateUserPasswordRequest.php | 99 - .../Chirpstack/Api/UpdateUserRequest.php | 75 - api/php/generated/Chirpstack/Api/User.php | 205 -- .../generated/Chirpstack/Api/UserListItem.php | 255 -- .../Chirpstack/Api/UserServiceClient.php | 110 - .../generated/Chirpstack/Api/UserTenant.php | 175 -- .../Chirpstack/Api/UserTenantLink.php | 265 -- .../Chirpstack/Common/Aggregation.php | 66 - .../Chirpstack/Common/DeviceClass.php | 59 - .../Chirpstack/Common/JoinServerContext.php | 111 - .../Chirpstack/Common/KeyEnvelope.php | 99 - .../generated/Chirpstack/Common/Location.php | 201 -- .../Chirpstack/Common/LocationSource.php | 87 - api/php/generated/Chirpstack/Common/MType.php | 94 - .../Chirpstack/Common/MacVersion.php | 68 - .../generated/Chirpstack/Common/Metric.php | 167 -- .../Chirpstack/Common/MetricDataset.php | 103 - .../Chirpstack/Common/MetricKind.php | 60 - .../Chirpstack/Common/Modulation.php | 59 - .../Chirpstack/Common/RegParamsRevision.php | 73 - .../generated/Chirpstack/Common/Region.php | 136 - .../Chirpstack/Common/Regulation.php | 52 - .../Chirpstack/Gateway/CRCStatus.php | 59 - .../Gateway/ChannelConfiguration.php | 242 -- .../generated/Chirpstack/Gateway/CodeRate.php | 109 - .../Chirpstack/Gateway/ConnState.php | 132 - .../Chirpstack/Gateway/ConnState/State.php | 51 - .../Chirpstack/Gateway/ConnState_State.php | 16 - .../Chirpstack/Gateway/DelayTimingInfo.php | 83 - .../Chirpstack/Gateway/DownlinkFrame.php | 225 -- .../Chirpstack/Gateway/DownlinkFrameItem.php | 153 -- .../Chirpstack/Gateway/DownlinkTiming.php | 59 - .../Chirpstack/Gateway/DownlinkTxAck.php | 213 -- .../Chirpstack/Gateway/DownlinkTxAckItem.php | 65 - .../Chirpstack/Gateway/DownlinkTxInfo.php | 293 --- .../Gateway/DownlinkTxInfoLegacy.php | 494 ---- .../Chirpstack/Gateway/DutyCycleBand.php | 221 -- .../Chirpstack/Gateway/DutyCycleStats.php | 143 -- .../Gateway/EncryptedFineTimestamp.php | 133 - .../Chirpstack/Gateway/FineTimestampType.php | 59 - .../Gateway/FskModulationConfig.php | 137 - .../Chirpstack/Gateway/FskModulationInfo.php | 99 - .../Chirpstack/Gateway/GPSEpochTimingInfo.php | 75 - .../Gateway/GatewayCommandExecRequest.php | 255 -- .../Gateway/GatewayCommandExecResponse.php | 239 -- .../Gateway/GatewayConfiguration.php | 215 -- .../Chirpstack/Gateway/GatewayStats.php | 613 ----- .../Gateway/ImmediatelyTimingInfo.php | 33 - .../Gateway/LoraModulationConfig.php | 137 - .../Chirpstack/Gateway/LoraModulationInfo.php | 273 -- .../Gateway/LrFhssModulationInfo.php | 171 -- .../Chirpstack/Gateway/MeshHeartbeat.php | 179 -- .../Gateway/MeshHeartbeatRelayPath.php | 133 - .../Chirpstack/Gateway/Modulation.php | 139 -- .../Chirpstack/Gateway/PerModulationCount.php | 109 - .../Chirpstack/Gateway/PlainFineTimestamp.php | 75 - .../Gateway/RawPacketForwarderCommand.php | 141 -- .../Gateway/RawPacketForwarderEvent.php | 141 -- .../generated/Chirpstack/Gateway/Timing.php | 139 -- .../Chirpstack/Gateway/TxAckStatus.php | 124 - .../Chirpstack/Gateway/UplinkFrame.php | 241 -- .../Chirpstack/Gateway/UplinkFrameSet.php | 143 -- .../Chirpstack/Gateway/UplinkRxInfo.php | 637 ----- .../Chirpstack/Gateway/UplinkRxInfoLegacy.php | 654 ----- .../Chirpstack/Gateway/UplinkTxInfo.php | 109 - .../Chirpstack/Gateway/UplinkTxInfoLegacy.php | 207 -- .../Chirpstack/Integration/AckEvent.php | 258 -- .../Chirpstack/Integration/DeviceInfo.php | 373 --- .../Integration/DownlinkCommand.php | 260 -- .../Integration/IntegrationEvent.php | 269 -- .../Chirpstack/Integration/JoinEvent.php | 290 --- .../Chirpstack/Integration/LocationEvent.php | 199 -- .../Chirpstack/Integration/LogCode.php | 116 - .../Chirpstack/Integration/LogEvent.php | 257 -- .../Chirpstack/Integration/LogLevel.php | 59 - .../Chirpstack/Integration/StatusEvent.php | 296 --- .../Chirpstack/Integration/TxAckEvent.php | 303 --- .../Chirpstack/Integration/UplinkEvent.php | 619 ----- .../Integration/UplinkRelayRxInfo.php | 237 -- .../Chirpstack/Stream/ApiRequestLog.php | 133 - .../Stream/BackendInterfacesRequest.php | 347 --- .../Chirpstack/Stream/DownlinkFrameLog.php | 391 --- .../Chirpstack/Stream/DownlinkMeta.php | 313 --- .../Chirpstack/Stream/UplinkFrameLog.php | 357 --- .../Chirpstack/Stream/UplinkMeta.php | 279 --- .../Chirpstack/Api/Application.php | Bin 15995 -> 0 bytes .../GPBMetadata/Chirpstack/Api/Device.php | 227 -- .../Chirpstack/Api/DeviceProfile.php | Bin 5287 -> 0 bytes .../Chirpstack/Api/DeviceProfileTemplate.php | 116 - .../GPBMetadata/Chirpstack/Api/Gateway.php | Bin 5942 -> 0 bytes .../GPBMetadata/Chirpstack/Api/Internal.php | Bin 5164 -> 0 bytes .../Chirpstack/Api/MulticastGroup.php | Bin 4841 -> 0 bytes .../GPBMetadata/Chirpstack/Api/Relay.php | 65 - .../GPBMetadata/Chirpstack/Api/Tenant.php | 139 -- .../GPBMetadata/Chirpstack/Api/User.php | 92 - .../GPBMetadata/Chirpstack/Common/Common.php | Bin 2249 -> 0 bytes .../GPBMetadata/Chirpstack/Gateway/Gw.php | Bin 8528 -> 0 bytes .../Chirpstack/Integration/Integration.php | Bin 4034 -> 0 bytes .../Chirpstack/Stream/ApiRequest.php | 37 - .../Chirpstack/Stream/BackendInterfaces.php | 38 - .../GPBMetadata/Chirpstack/Stream/Frame.php | 54 - .../GPBMetadata/Chirpstack/Stream/Meta.php | 48 - .../GPBMetadata/Google/Api/Annotations.php | 29 - .../generated/GPBMetadata/Google/Api/Http.php | Bin 1057 -> 0 bytes .../Google/Api/CustomHttpPattern.php | 101 - api/php/generated/Google/Api/Http.php | 123 - api/php/generated/Google/Api/HttpRule.php | 660 ----- 374 files changed, 1 insertion(+), 54394 deletions(-) create mode 100644 api/php/.gitignore delete mode 100644 api/php/generated/Chirpstack/Api/ActivateDeviceRequest.php delete mode 100644 api/php/generated/Chirpstack/Api/AddDeviceToMulticastGroupRequest.php delete mode 100644 api/php/generated/Chirpstack/Api/AddGatewayToMulticastGroupRequest.php delete mode 100644 api/php/generated/Chirpstack/Api/AddRelayDeviceRequest.php delete mode 100644 api/php/generated/Chirpstack/Api/AddTenantUserRequest.php delete mode 100644 api/php/generated/Chirpstack/Api/AdrAlgorithmListItem.php delete mode 100644 api/php/generated/Chirpstack/Api/ApiKey.php delete mode 100644 api/php/generated/Chirpstack/Api/Application.php delete mode 100644 api/php/generated/Chirpstack/Api/ApplicationListItem.php delete mode 100644 api/php/generated/Chirpstack/Api/ApplicationServiceClient.php delete mode 100644 api/php/generated/Chirpstack/Api/AwsSnsIntegration.php delete mode 100644 api/php/generated/Chirpstack/Api/AzureServiceBusIntegration.php delete mode 100644 api/php/generated/Chirpstack/Api/CadPeriodicity.php delete mode 100644 api/php/generated/Chirpstack/Api/CodecRuntime.php delete mode 100644 api/php/generated/Chirpstack/Api/CreateApiKeyRequest.php delete mode 100644 api/php/generated/Chirpstack/Api/CreateApiKeyResponse.php delete mode 100644 api/php/generated/Chirpstack/Api/CreateApplicationRequest.php delete mode 100644 api/php/generated/Chirpstack/Api/CreateApplicationResponse.php delete mode 100644 api/php/generated/Chirpstack/Api/CreateAwsSnsIntegrationRequest.php delete mode 100644 api/php/generated/Chirpstack/Api/CreateAzureServiceBusIntegrationRequest.php delete mode 100644 api/php/generated/Chirpstack/Api/CreateDeviceKeysRequest.php delete mode 100644 api/php/generated/Chirpstack/Api/CreateDeviceProfileRequest.php delete mode 100644 api/php/generated/Chirpstack/Api/CreateDeviceProfileResponse.php delete mode 100644 api/php/generated/Chirpstack/Api/CreateDeviceProfileTemplateRequest.php delete mode 100644 api/php/generated/Chirpstack/Api/CreateDeviceRequest.php delete mode 100644 api/php/generated/Chirpstack/Api/CreateGatewayRequest.php delete mode 100644 api/php/generated/Chirpstack/Api/CreateGcpPubSubIntegrationRequest.php delete mode 100644 api/php/generated/Chirpstack/Api/CreateHttpIntegrationRequest.php delete mode 100644 api/php/generated/Chirpstack/Api/CreateIftttIntegrationRequest.php delete mode 100644 api/php/generated/Chirpstack/Api/CreateInfluxDbIntegrationRequest.php delete mode 100644 api/php/generated/Chirpstack/Api/CreateLoraCloudIntegrationRequest.php delete mode 100644 api/php/generated/Chirpstack/Api/CreateMulticastGroupRequest.php delete mode 100644 api/php/generated/Chirpstack/Api/CreateMulticastGroupResponse.php delete mode 100644 api/php/generated/Chirpstack/Api/CreateMyDevicesIntegrationRequest.php delete mode 100644 api/php/generated/Chirpstack/Api/CreatePilotThingsIntegrationRequest.php delete mode 100644 api/php/generated/Chirpstack/Api/CreateTenantRequest.php delete mode 100644 api/php/generated/Chirpstack/Api/CreateTenantResponse.php delete mode 100644 api/php/generated/Chirpstack/Api/CreateThingsBoardIntegrationRequest.php delete mode 100644 api/php/generated/Chirpstack/Api/CreateUserRequest.php delete mode 100644 api/php/generated/Chirpstack/Api/CreateUserResponse.php delete mode 100644 api/php/generated/Chirpstack/Api/DeactivateDeviceRequest.php delete mode 100644 api/php/generated/Chirpstack/Api/DeleteApiKeyRequest.php delete mode 100644 api/php/generated/Chirpstack/Api/DeleteApplicationRequest.php delete mode 100644 api/php/generated/Chirpstack/Api/DeleteAwsSnsIntegrationRequest.php delete mode 100644 api/php/generated/Chirpstack/Api/DeleteAzureServiceBusIntegrationRequest.php delete mode 100644 api/php/generated/Chirpstack/Api/DeleteDeviceKeysRequest.php delete mode 100644 api/php/generated/Chirpstack/Api/DeleteDeviceProfileRequest.php delete mode 100644 api/php/generated/Chirpstack/Api/DeleteDeviceProfileTemplateRequest.php delete mode 100644 api/php/generated/Chirpstack/Api/DeleteDeviceRequest.php delete mode 100644 api/php/generated/Chirpstack/Api/DeleteGatewayRequest.php delete mode 100644 api/php/generated/Chirpstack/Api/DeleteGcpPubSubIntegrationRequest.php delete mode 100644 api/php/generated/Chirpstack/Api/DeleteHttpIntegrationRequest.php delete mode 100644 api/php/generated/Chirpstack/Api/DeleteIftttIntegrationRequest.php delete mode 100644 api/php/generated/Chirpstack/Api/DeleteInfluxDbIntegrationRequest.php delete mode 100644 api/php/generated/Chirpstack/Api/DeleteLoraCloudIntegrationRequest.php delete mode 100644 api/php/generated/Chirpstack/Api/DeleteMulticastGroupRequest.php delete mode 100644 api/php/generated/Chirpstack/Api/DeleteMyDevicesIntegrationRequest.php delete mode 100644 api/php/generated/Chirpstack/Api/DeletePilotThingsIntegrationRequest.php delete mode 100644 api/php/generated/Chirpstack/Api/DeleteRelayGatewayRequest.php delete mode 100644 api/php/generated/Chirpstack/Api/DeleteTenantRequest.php delete mode 100644 api/php/generated/Chirpstack/Api/DeleteTenantUserRequest.php delete mode 100644 api/php/generated/Chirpstack/Api/DeleteThingsBoardIntegrationRequest.php delete mode 100644 api/php/generated/Chirpstack/Api/DeleteUserRequest.php delete mode 100644 api/php/generated/Chirpstack/Api/Device.php delete mode 100644 api/php/generated/Chirpstack/Api/DeviceActivation.php delete mode 100644 api/php/generated/Chirpstack/Api/DeviceKeys.php delete mode 100644 api/php/generated/Chirpstack/Api/DeviceListItem.php delete mode 100644 api/php/generated/Chirpstack/Api/DeviceProfile.php delete mode 100644 api/php/generated/Chirpstack/Api/DeviceProfileListItem.php delete mode 100644 api/php/generated/Chirpstack/Api/DeviceProfileServiceClient.php delete mode 100644 api/php/generated/Chirpstack/Api/DeviceProfileTemplate.php delete mode 100644 api/php/generated/Chirpstack/Api/DeviceProfileTemplateListItem.php delete mode 100644 api/php/generated/Chirpstack/Api/DeviceProfileTemplateServiceClient.php delete mode 100644 api/php/generated/Chirpstack/Api/DeviceQueueItem.php delete mode 100644 api/php/generated/Chirpstack/Api/DeviceServiceClient.php delete mode 100644 api/php/generated/Chirpstack/Api/DeviceState.php delete mode 100644 api/php/generated/Chirpstack/Api/DeviceStatus.php delete mode 100644 api/php/generated/Chirpstack/Api/Encoding.php delete mode 100644 api/php/generated/Chirpstack/Api/EnqueueDeviceQueueItemRequest.php delete mode 100644 api/php/generated/Chirpstack/Api/EnqueueDeviceQueueItemResponse.php delete mode 100644 api/php/generated/Chirpstack/Api/EnqueueMulticastGroupQueueItemRequest.php delete mode 100644 api/php/generated/Chirpstack/Api/EnqueueMulticastGroupQueueItemResponse.php delete mode 100644 api/php/generated/Chirpstack/Api/FlushDevNoncesRequest.php delete mode 100644 api/php/generated/Chirpstack/Api/FlushDeviceQueueRequest.php delete mode 100644 api/php/generated/Chirpstack/Api/FlushMulticastGroupQueueRequest.php delete mode 100644 api/php/generated/Chirpstack/Api/Gateway.php delete mode 100644 api/php/generated/Chirpstack/Api/GatewayListItem.php delete mode 100644 api/php/generated/Chirpstack/Api/GatewayServiceClient.php delete mode 100644 api/php/generated/Chirpstack/Api/GatewayState.php delete mode 100644 api/php/generated/Chirpstack/Api/GcpPubSubIntegration.php delete mode 100644 api/php/generated/Chirpstack/Api/GenerateGatewayClientCertificateRequest.php delete mode 100644 api/php/generated/Chirpstack/Api/GenerateGatewayClientCertificateResponse.php delete mode 100644 api/php/generated/Chirpstack/Api/GenerateMqttIntegrationClientCertificateRequest.php delete mode 100644 api/php/generated/Chirpstack/Api/GenerateMqttIntegrationClientCertificateResponse.php delete mode 100644 api/php/generated/Chirpstack/Api/GetApplicationRequest.php delete mode 100644 api/php/generated/Chirpstack/Api/GetApplicationResponse.php delete mode 100644 api/php/generated/Chirpstack/Api/GetAwsSnsIntegrationRequest.php delete mode 100644 api/php/generated/Chirpstack/Api/GetAwsSnsIntegrationResponse.php delete mode 100644 api/php/generated/Chirpstack/Api/GetAzureServiceBusIntegrationRequest.php delete mode 100644 api/php/generated/Chirpstack/Api/GetAzureServiceBusIntegrationResponse.php delete mode 100644 api/php/generated/Chirpstack/Api/GetDeviceActivationRequest.php delete mode 100644 api/php/generated/Chirpstack/Api/GetDeviceActivationResponse.php delete mode 100644 api/php/generated/Chirpstack/Api/GetDeviceKeysRequest.php delete mode 100644 api/php/generated/Chirpstack/Api/GetDeviceKeysResponse.php delete mode 100644 api/php/generated/Chirpstack/Api/GetDeviceLinkMetricsRequest.php delete mode 100644 api/php/generated/Chirpstack/Api/GetDeviceLinkMetricsResponse.php delete mode 100644 api/php/generated/Chirpstack/Api/GetDeviceMetricsRequest.php delete mode 100644 api/php/generated/Chirpstack/Api/GetDeviceMetricsResponse.php delete mode 100644 api/php/generated/Chirpstack/Api/GetDeviceNextFCntDownRequest.php delete mode 100644 api/php/generated/Chirpstack/Api/GetDeviceNextFCntDownResponse.php delete mode 100644 api/php/generated/Chirpstack/Api/GetDeviceProfileRequest.php delete mode 100644 api/php/generated/Chirpstack/Api/GetDeviceProfileResponse.php delete mode 100644 api/php/generated/Chirpstack/Api/GetDeviceProfileTemplateRequest.php delete mode 100644 api/php/generated/Chirpstack/Api/GetDeviceProfileTemplateResponse.php delete mode 100644 api/php/generated/Chirpstack/Api/GetDeviceQueueItemsRequest.php delete mode 100644 api/php/generated/Chirpstack/Api/GetDeviceQueueItemsResponse.php delete mode 100644 api/php/generated/Chirpstack/Api/GetDeviceRequest.php delete mode 100644 api/php/generated/Chirpstack/Api/GetDeviceResponse.php delete mode 100644 api/php/generated/Chirpstack/Api/GetDevicesSummaryRequest.php delete mode 100644 api/php/generated/Chirpstack/Api/GetDevicesSummaryResponse.php delete mode 100644 api/php/generated/Chirpstack/Api/GetGatewayDutyCycleMetricsRequest.php delete mode 100644 api/php/generated/Chirpstack/Api/GetGatewayDutyCycleMetricsResponse.php delete mode 100644 api/php/generated/Chirpstack/Api/GetGatewayMetricsRequest.php delete mode 100644 api/php/generated/Chirpstack/Api/GetGatewayMetricsResponse.php delete mode 100644 api/php/generated/Chirpstack/Api/GetGatewayRequest.php delete mode 100644 api/php/generated/Chirpstack/Api/GetGatewayResponse.php delete mode 100644 api/php/generated/Chirpstack/Api/GetGatewaysSummaryRequest.php delete mode 100644 api/php/generated/Chirpstack/Api/GetGatewaysSummaryResponse.php delete mode 100644 api/php/generated/Chirpstack/Api/GetGcpPubSubIntegrationRequest.php delete mode 100644 api/php/generated/Chirpstack/Api/GetGcpPubSubIntegrationResponse.php delete mode 100644 api/php/generated/Chirpstack/Api/GetHttpIntegrationRequest.php delete mode 100644 api/php/generated/Chirpstack/Api/GetHttpIntegrationResponse.php delete mode 100644 api/php/generated/Chirpstack/Api/GetIftttIntegrationRequest.php delete mode 100644 api/php/generated/Chirpstack/Api/GetIftttIntegrationResponse.php delete mode 100644 api/php/generated/Chirpstack/Api/GetInfluxDbIntegrationRequest.php delete mode 100644 api/php/generated/Chirpstack/Api/GetInfluxDbIntegrationResponse.php delete mode 100644 api/php/generated/Chirpstack/Api/GetLoraCloudIntegrationRequest.php delete mode 100644 api/php/generated/Chirpstack/Api/GetLoraCloudIntegrationResponse.php delete mode 100644 api/php/generated/Chirpstack/Api/GetMulticastGroupRequest.php delete mode 100644 api/php/generated/Chirpstack/Api/GetMulticastGroupResponse.php delete mode 100644 api/php/generated/Chirpstack/Api/GetMyDevicesIntegrationRequest.php delete mode 100644 api/php/generated/Chirpstack/Api/GetMyDevicesIntegrationResponse.php delete mode 100644 api/php/generated/Chirpstack/Api/GetPilotThingsIntegrationRequest.php delete mode 100644 api/php/generated/Chirpstack/Api/GetPilotThingsIntegrationResponse.php delete mode 100644 api/php/generated/Chirpstack/Api/GetRandomDevAddrRequest.php delete mode 100644 api/php/generated/Chirpstack/Api/GetRandomDevAddrResponse.php delete mode 100644 api/php/generated/Chirpstack/Api/GetRegionRequest.php delete mode 100644 api/php/generated/Chirpstack/Api/GetRegionResponse.php delete mode 100644 api/php/generated/Chirpstack/Api/GetRelayGatewayRequest.php delete mode 100644 api/php/generated/Chirpstack/Api/GetRelayGatewayResponse.php delete mode 100644 api/php/generated/Chirpstack/Api/GetTenantRequest.php delete mode 100644 api/php/generated/Chirpstack/Api/GetTenantResponse.php delete mode 100644 api/php/generated/Chirpstack/Api/GetTenantUserRequest.php delete mode 100644 api/php/generated/Chirpstack/Api/GetTenantUserResponse.php delete mode 100644 api/php/generated/Chirpstack/Api/GetThingsBoardIntegrationRequest.php delete mode 100644 api/php/generated/Chirpstack/Api/GetThingsBoardIntegrationResponse.php delete mode 100644 api/php/generated/Chirpstack/Api/GetUserRequest.php delete mode 100644 api/php/generated/Chirpstack/Api/GetUserResponse.php delete mode 100644 api/php/generated/Chirpstack/Api/GetVersionResponse.php delete mode 100644 api/php/generated/Chirpstack/Api/GlobalSearchRequest.php delete mode 100644 api/php/generated/Chirpstack/Api/GlobalSearchResponse.php delete mode 100644 api/php/generated/Chirpstack/Api/GlobalSearchResult.php delete mode 100644 api/php/generated/Chirpstack/Api/HttpIntegration.php delete mode 100644 api/php/generated/Chirpstack/Api/IftttIntegration.php delete mode 100644 api/php/generated/Chirpstack/Api/InfluxDbIntegration.php delete mode 100644 api/php/generated/Chirpstack/Api/InfluxDbPrecision.php delete mode 100644 api/php/generated/Chirpstack/Api/InfluxDbVersion.php delete mode 100644 api/php/generated/Chirpstack/Api/IntegrationKind.php delete mode 100644 api/php/generated/Chirpstack/Api/IntegrationListItem.php delete mode 100644 api/php/generated/Chirpstack/Api/InternalServiceClient.php delete mode 100644 api/php/generated/Chirpstack/Api/ListApiKeysRequest.php delete mode 100644 api/php/generated/Chirpstack/Api/ListApiKeysResponse.php delete mode 100644 api/php/generated/Chirpstack/Api/ListApplicationsRequest.php delete mode 100644 api/php/generated/Chirpstack/Api/ListApplicationsResponse.php delete mode 100644 api/php/generated/Chirpstack/Api/ListDeviceProfileAdrAlgorithmsResponse.php delete mode 100644 api/php/generated/Chirpstack/Api/ListDeviceProfileTemplatesRequest.php delete mode 100644 api/php/generated/Chirpstack/Api/ListDeviceProfileTemplatesResponse.php delete mode 100644 api/php/generated/Chirpstack/Api/ListDeviceProfilesRequest.php delete mode 100644 api/php/generated/Chirpstack/Api/ListDeviceProfilesResponse.php delete mode 100644 api/php/generated/Chirpstack/Api/ListDevicesRequest.php delete mode 100644 api/php/generated/Chirpstack/Api/ListDevicesResponse.php delete mode 100644 api/php/generated/Chirpstack/Api/ListGatewaysRequest.php delete mode 100644 api/php/generated/Chirpstack/Api/ListGatewaysResponse.php delete mode 100644 api/php/generated/Chirpstack/Api/ListIntegrationsRequest.php delete mode 100644 api/php/generated/Chirpstack/Api/ListIntegrationsResponse.php delete mode 100644 api/php/generated/Chirpstack/Api/ListMulticastGroupQueueRequest.php delete mode 100644 api/php/generated/Chirpstack/Api/ListMulticastGroupQueueResponse.php delete mode 100644 api/php/generated/Chirpstack/Api/ListMulticastGroupsRequest.php delete mode 100644 api/php/generated/Chirpstack/Api/ListMulticastGroupsResponse.php delete mode 100644 api/php/generated/Chirpstack/Api/ListRegionsResponse.php delete mode 100644 api/php/generated/Chirpstack/Api/ListRelayDevicesRequest.php delete mode 100644 api/php/generated/Chirpstack/Api/ListRelayDevicesResponse.php delete mode 100644 api/php/generated/Chirpstack/Api/ListRelayGatewaysRequest.php delete mode 100644 api/php/generated/Chirpstack/Api/ListRelayGatewaysResponse.php delete mode 100644 api/php/generated/Chirpstack/Api/ListRelaysRequest.php delete mode 100644 api/php/generated/Chirpstack/Api/ListRelaysResponse.php delete mode 100644 api/php/generated/Chirpstack/Api/ListTenantUsersRequest.php delete mode 100644 api/php/generated/Chirpstack/Api/ListTenantUsersResponse.php delete mode 100644 api/php/generated/Chirpstack/Api/ListTenantsRequest.php delete mode 100644 api/php/generated/Chirpstack/Api/ListTenantsResponse.php delete mode 100644 api/php/generated/Chirpstack/Api/ListUsersRequest.php delete mode 100644 api/php/generated/Chirpstack/Api/ListUsersResponse.php delete mode 100644 api/php/generated/Chirpstack/Api/LogItem.php delete mode 100644 api/php/generated/Chirpstack/Api/LoginRequest.php delete mode 100644 api/php/generated/Chirpstack/Api/LoginResponse.php delete mode 100644 api/php/generated/Chirpstack/Api/LoraCloudIntegration.php delete mode 100644 api/php/generated/Chirpstack/Api/LoraCloudModemGeolocationServices.php delete mode 100644 api/php/generated/Chirpstack/Api/Measurement.php delete mode 100644 api/php/generated/Chirpstack/Api/MeasurementKind.php delete mode 100644 api/php/generated/Chirpstack/Api/MulticastGroup.php delete mode 100644 api/php/generated/Chirpstack/Api/MulticastGroupListItem.php delete mode 100644 api/php/generated/Chirpstack/Api/MulticastGroupQueueItem.php delete mode 100644 api/php/generated/Chirpstack/Api/MulticastGroupSchedulingType.php delete mode 100644 api/php/generated/Chirpstack/Api/MulticastGroupServiceClient.php delete mode 100644 api/php/generated/Chirpstack/Api/MulticastGroupType.php delete mode 100644 api/php/generated/Chirpstack/Api/MyDevicesIntegration.php delete mode 100644 api/php/generated/Chirpstack/Api/OAuth2.php delete mode 100644 api/php/generated/Chirpstack/Api/OAuth2LoginRequest.php delete mode 100644 api/php/generated/Chirpstack/Api/OAuth2LoginResponse.php delete mode 100644 api/php/generated/Chirpstack/Api/OpenIdConnect.php delete mode 100644 api/php/generated/Chirpstack/Api/OpenIdConnectLoginRequest.php delete mode 100644 api/php/generated/Chirpstack/Api/OpenIdConnectLoginResponse.php delete mode 100644 api/php/generated/Chirpstack/Api/PilotThingsIntegration.php delete mode 100644 api/php/generated/Chirpstack/Api/ProfileResponse.php delete mode 100644 api/php/generated/Chirpstack/Api/RegionChannel.php delete mode 100644 api/php/generated/Chirpstack/Api/RegionListItem.php delete mode 100644 api/php/generated/Chirpstack/Api/RelayDeviceListItem.php delete mode 100644 api/php/generated/Chirpstack/Api/RelayGateway.php delete mode 100644 api/php/generated/Chirpstack/Api/RelayGatewayListItem.php delete mode 100644 api/php/generated/Chirpstack/Api/RelayListItem.php delete mode 100644 api/php/generated/Chirpstack/Api/RelayModeActivation.php delete mode 100644 api/php/generated/Chirpstack/Api/RelayServiceClient.php delete mode 100644 api/php/generated/Chirpstack/Api/RemoveDeviceFromMulticastGroupRequest.php delete mode 100644 api/php/generated/Chirpstack/Api/RemoveGatewayFromMulticastGroupRequest.php delete mode 100644 api/php/generated/Chirpstack/Api/RemoveRelayDeviceRequest.php delete mode 100644 api/php/generated/Chirpstack/Api/SecondChAckOffset.php delete mode 100644 api/php/generated/Chirpstack/Api/SettingsResponse.php delete mode 100644 api/php/generated/Chirpstack/Api/StreamDeviceEventsRequest.php delete mode 100644 api/php/generated/Chirpstack/Api/StreamDeviceFramesRequest.php delete mode 100644 api/php/generated/Chirpstack/Api/StreamGatewayFramesRequest.php delete mode 100644 api/php/generated/Chirpstack/Api/Tenant.php delete mode 100644 api/php/generated/Chirpstack/Api/TenantListItem.php delete mode 100644 api/php/generated/Chirpstack/Api/TenantServiceClient.php delete mode 100644 api/php/generated/Chirpstack/Api/TenantUser.php delete mode 100644 api/php/generated/Chirpstack/Api/TenantUserListItem.php delete mode 100644 api/php/generated/Chirpstack/Api/ThingsBoardIntegration.php delete mode 100644 api/php/generated/Chirpstack/Api/UpdateApplicationRequest.php delete mode 100644 api/php/generated/Chirpstack/Api/UpdateAwsSnsIntegrationRequest.php delete mode 100644 api/php/generated/Chirpstack/Api/UpdateAzureServiceBusIntegrationRequest.php delete mode 100644 api/php/generated/Chirpstack/Api/UpdateDeviceKeysRequest.php delete mode 100644 api/php/generated/Chirpstack/Api/UpdateDeviceProfileRequest.php delete mode 100644 api/php/generated/Chirpstack/Api/UpdateDeviceProfileTemplateRequest.php delete mode 100644 api/php/generated/Chirpstack/Api/UpdateDeviceRequest.php delete mode 100644 api/php/generated/Chirpstack/Api/UpdateGatewayRequest.php delete mode 100644 api/php/generated/Chirpstack/Api/UpdateGcpPubSubIntegrationRequest.php delete mode 100644 api/php/generated/Chirpstack/Api/UpdateHttpIntegrationRequest.php delete mode 100644 api/php/generated/Chirpstack/Api/UpdateIftttIntegrationRequest.php delete mode 100644 api/php/generated/Chirpstack/Api/UpdateInfluxDbIntegrationRequest.php delete mode 100644 api/php/generated/Chirpstack/Api/UpdateLoraCloudIntegrationRequest.php delete mode 100644 api/php/generated/Chirpstack/Api/UpdateMulticastGroupRequest.php delete mode 100644 api/php/generated/Chirpstack/Api/UpdateMyDevicesIntegrationRequest.php delete mode 100644 api/php/generated/Chirpstack/Api/UpdatePilotThingsIntegrationRequest.php delete mode 100644 api/php/generated/Chirpstack/Api/UpdateRelayGatewayRequest.php delete mode 100644 api/php/generated/Chirpstack/Api/UpdateTenantRequest.php delete mode 100644 api/php/generated/Chirpstack/Api/UpdateTenantUserRequest.php delete mode 100644 api/php/generated/Chirpstack/Api/UpdateThingsBoardIntegrationRequest.php delete mode 100644 api/php/generated/Chirpstack/Api/UpdateUserPasswordRequest.php delete mode 100644 api/php/generated/Chirpstack/Api/UpdateUserRequest.php delete mode 100644 api/php/generated/Chirpstack/Api/User.php delete mode 100644 api/php/generated/Chirpstack/Api/UserListItem.php delete mode 100644 api/php/generated/Chirpstack/Api/UserServiceClient.php delete mode 100644 api/php/generated/Chirpstack/Api/UserTenant.php delete mode 100644 api/php/generated/Chirpstack/Api/UserTenantLink.php delete mode 100644 api/php/generated/Chirpstack/Common/Aggregation.php delete mode 100644 api/php/generated/Chirpstack/Common/DeviceClass.php delete mode 100644 api/php/generated/Chirpstack/Common/JoinServerContext.php delete mode 100644 api/php/generated/Chirpstack/Common/KeyEnvelope.php delete mode 100644 api/php/generated/Chirpstack/Common/Location.php delete mode 100644 api/php/generated/Chirpstack/Common/LocationSource.php delete mode 100644 api/php/generated/Chirpstack/Common/MType.php delete mode 100644 api/php/generated/Chirpstack/Common/MacVersion.php delete mode 100644 api/php/generated/Chirpstack/Common/Metric.php delete mode 100644 api/php/generated/Chirpstack/Common/MetricDataset.php delete mode 100644 api/php/generated/Chirpstack/Common/MetricKind.php delete mode 100644 api/php/generated/Chirpstack/Common/Modulation.php delete mode 100644 api/php/generated/Chirpstack/Common/RegParamsRevision.php delete mode 100644 api/php/generated/Chirpstack/Common/Region.php delete mode 100644 api/php/generated/Chirpstack/Common/Regulation.php delete mode 100644 api/php/generated/Chirpstack/Gateway/CRCStatus.php delete mode 100644 api/php/generated/Chirpstack/Gateway/ChannelConfiguration.php delete mode 100644 api/php/generated/Chirpstack/Gateway/CodeRate.php delete mode 100644 api/php/generated/Chirpstack/Gateway/ConnState.php delete mode 100644 api/php/generated/Chirpstack/Gateway/ConnState/State.php delete mode 100644 api/php/generated/Chirpstack/Gateway/ConnState_State.php delete mode 100644 api/php/generated/Chirpstack/Gateway/DelayTimingInfo.php delete mode 100644 api/php/generated/Chirpstack/Gateway/DownlinkFrame.php delete mode 100644 api/php/generated/Chirpstack/Gateway/DownlinkFrameItem.php delete mode 100644 api/php/generated/Chirpstack/Gateway/DownlinkTiming.php delete mode 100644 api/php/generated/Chirpstack/Gateway/DownlinkTxAck.php delete mode 100644 api/php/generated/Chirpstack/Gateway/DownlinkTxAckItem.php delete mode 100644 api/php/generated/Chirpstack/Gateway/DownlinkTxInfo.php delete mode 100644 api/php/generated/Chirpstack/Gateway/DownlinkTxInfoLegacy.php delete mode 100644 api/php/generated/Chirpstack/Gateway/DutyCycleBand.php delete mode 100644 api/php/generated/Chirpstack/Gateway/DutyCycleStats.php delete mode 100644 api/php/generated/Chirpstack/Gateway/EncryptedFineTimestamp.php delete mode 100644 api/php/generated/Chirpstack/Gateway/FineTimestampType.php delete mode 100644 api/php/generated/Chirpstack/Gateway/FskModulationConfig.php delete mode 100644 api/php/generated/Chirpstack/Gateway/FskModulationInfo.php delete mode 100644 api/php/generated/Chirpstack/Gateway/GPSEpochTimingInfo.php delete mode 100644 api/php/generated/Chirpstack/Gateway/GatewayCommandExecRequest.php delete mode 100644 api/php/generated/Chirpstack/Gateway/GatewayCommandExecResponse.php delete mode 100644 api/php/generated/Chirpstack/Gateway/GatewayConfiguration.php delete mode 100644 api/php/generated/Chirpstack/Gateway/GatewayStats.php delete mode 100644 api/php/generated/Chirpstack/Gateway/ImmediatelyTimingInfo.php delete mode 100644 api/php/generated/Chirpstack/Gateway/LoraModulationConfig.php delete mode 100644 api/php/generated/Chirpstack/Gateway/LoraModulationInfo.php delete mode 100644 api/php/generated/Chirpstack/Gateway/LrFhssModulationInfo.php delete mode 100644 api/php/generated/Chirpstack/Gateway/MeshHeartbeat.php delete mode 100644 api/php/generated/Chirpstack/Gateway/MeshHeartbeatRelayPath.php delete mode 100644 api/php/generated/Chirpstack/Gateway/Modulation.php delete mode 100644 api/php/generated/Chirpstack/Gateway/PerModulationCount.php delete mode 100644 api/php/generated/Chirpstack/Gateway/PlainFineTimestamp.php delete mode 100644 api/php/generated/Chirpstack/Gateway/RawPacketForwarderCommand.php delete mode 100644 api/php/generated/Chirpstack/Gateway/RawPacketForwarderEvent.php delete mode 100644 api/php/generated/Chirpstack/Gateway/Timing.php delete mode 100644 api/php/generated/Chirpstack/Gateway/TxAckStatus.php delete mode 100644 api/php/generated/Chirpstack/Gateway/UplinkFrame.php delete mode 100644 api/php/generated/Chirpstack/Gateway/UplinkFrameSet.php delete mode 100644 api/php/generated/Chirpstack/Gateway/UplinkRxInfo.php delete mode 100644 api/php/generated/Chirpstack/Gateway/UplinkRxInfoLegacy.php delete mode 100644 api/php/generated/Chirpstack/Gateway/UplinkTxInfo.php delete mode 100644 api/php/generated/Chirpstack/Gateway/UplinkTxInfoLegacy.php delete mode 100644 api/php/generated/Chirpstack/Integration/AckEvent.php delete mode 100644 api/php/generated/Chirpstack/Integration/DeviceInfo.php delete mode 100644 api/php/generated/Chirpstack/Integration/DownlinkCommand.php delete mode 100644 api/php/generated/Chirpstack/Integration/IntegrationEvent.php delete mode 100644 api/php/generated/Chirpstack/Integration/JoinEvent.php delete mode 100644 api/php/generated/Chirpstack/Integration/LocationEvent.php delete mode 100644 api/php/generated/Chirpstack/Integration/LogCode.php delete mode 100644 api/php/generated/Chirpstack/Integration/LogEvent.php delete mode 100644 api/php/generated/Chirpstack/Integration/LogLevel.php delete mode 100644 api/php/generated/Chirpstack/Integration/StatusEvent.php delete mode 100644 api/php/generated/Chirpstack/Integration/TxAckEvent.php delete mode 100644 api/php/generated/Chirpstack/Integration/UplinkEvent.php delete mode 100644 api/php/generated/Chirpstack/Integration/UplinkRelayRxInfo.php delete mode 100644 api/php/generated/Chirpstack/Stream/ApiRequestLog.php delete mode 100644 api/php/generated/Chirpstack/Stream/BackendInterfacesRequest.php delete mode 100644 api/php/generated/Chirpstack/Stream/DownlinkFrameLog.php delete mode 100644 api/php/generated/Chirpstack/Stream/DownlinkMeta.php delete mode 100644 api/php/generated/Chirpstack/Stream/UplinkFrameLog.php delete mode 100644 api/php/generated/Chirpstack/Stream/UplinkMeta.php delete mode 100644 api/php/generated/GPBMetadata/Chirpstack/Api/Application.php delete mode 100644 api/php/generated/GPBMetadata/Chirpstack/Api/Device.php delete mode 100644 api/php/generated/GPBMetadata/Chirpstack/Api/DeviceProfile.php delete mode 100644 api/php/generated/GPBMetadata/Chirpstack/Api/DeviceProfileTemplate.php delete mode 100644 api/php/generated/GPBMetadata/Chirpstack/Api/Gateway.php delete mode 100644 api/php/generated/GPBMetadata/Chirpstack/Api/Internal.php delete mode 100644 api/php/generated/GPBMetadata/Chirpstack/Api/MulticastGroup.php delete mode 100644 api/php/generated/GPBMetadata/Chirpstack/Api/Relay.php delete mode 100644 api/php/generated/GPBMetadata/Chirpstack/Api/Tenant.php delete mode 100644 api/php/generated/GPBMetadata/Chirpstack/Api/User.php delete mode 100644 api/php/generated/GPBMetadata/Chirpstack/Common/Common.php delete mode 100644 api/php/generated/GPBMetadata/Chirpstack/Gateway/Gw.php delete mode 100644 api/php/generated/GPBMetadata/Chirpstack/Integration/Integration.php delete mode 100644 api/php/generated/GPBMetadata/Chirpstack/Stream/ApiRequest.php delete mode 100644 api/php/generated/GPBMetadata/Chirpstack/Stream/BackendInterfaces.php delete mode 100644 api/php/generated/GPBMetadata/Chirpstack/Stream/Frame.php delete mode 100644 api/php/generated/GPBMetadata/Chirpstack/Stream/Meta.php delete mode 100644 api/php/generated/GPBMetadata/Google/Api/Annotations.php delete mode 100644 api/php/generated/GPBMetadata/Google/Api/Http.php delete mode 100644 api/php/generated/Google/Api/CustomHttpPattern.php delete mode 100644 api/php/generated/Google/Api/Http.php delete mode 100644 api/php/generated/Google/Api/HttpRule.php diff --git a/api/php/.gitignore b/api/php/.gitignore new file mode 100644 index 00000000..c6b8b001 --- /dev/null +++ b/api/php/.gitignore @@ -0,0 +1 @@ +/generated \ No newline at end of file diff --git a/api/php/generated/Chirpstack/Api/ActivateDeviceRequest.php b/api/php/generated/Chirpstack/Api/ActivateDeviceRequest.php deleted file mode 100644 index 59c4db9c..00000000 --- a/api/php/generated/Chirpstack/Api/ActivateDeviceRequest.php +++ /dev/null @@ -1,75 +0,0 @@ -api.ActivateDeviceRequest - */ -class ActivateDeviceRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Device activation object. - * - * Generated from protobuf field .api.DeviceActivation device_activation = 1; - */ - protected $device_activation = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Chirpstack\Api\DeviceActivation $device_activation - * Device activation object. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Chirpstack\Api\Device::initOnce(); - parent::__construct($data); - } - - /** - * Device activation object. - * - * Generated from protobuf field .api.DeviceActivation device_activation = 1; - * @return \Chirpstack\Api\DeviceActivation|null - */ - public function getDeviceActivation() - { - return $this->device_activation; - } - - public function hasDeviceActivation() - { - return isset($this->device_activation); - } - - public function clearDeviceActivation() - { - unset($this->device_activation); - } - - /** - * Device activation object. - * - * Generated from protobuf field .api.DeviceActivation device_activation = 1; - * @param \Chirpstack\Api\DeviceActivation $var - * @return $this - */ - public function setDeviceActivation($var) - { - GPBUtil::checkMessage($var, \Chirpstack\Api\DeviceActivation::class); - $this->device_activation = $var; - - return $this; - } - -} - diff --git a/api/php/generated/Chirpstack/Api/AddDeviceToMulticastGroupRequest.php b/api/php/generated/Chirpstack/Api/AddDeviceToMulticastGroupRequest.php deleted file mode 100644 index db254eb6..00000000 --- a/api/php/generated/Chirpstack/Api/AddDeviceToMulticastGroupRequest.php +++ /dev/null @@ -1,99 +0,0 @@ -api.AddDeviceToMulticastGroupRequest - */ -class AddDeviceToMulticastGroupRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Multicast group ID. - * - * Generated from protobuf field string multicast_group_id = 1; - */ - protected $multicast_group_id = ''; - /** - * Device EUI (HEX encoded). - * - * Generated from protobuf field string dev_eui = 2; - */ - protected $dev_eui = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $multicast_group_id - * Multicast group ID. - * @type string $dev_eui - * Device EUI (HEX encoded). - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Chirpstack\Api\MulticastGroup::initOnce(); - parent::__construct($data); - } - - /** - * Multicast group ID. - * - * Generated from protobuf field string multicast_group_id = 1; - * @return string - */ - public function getMulticastGroupId() - { - return $this->multicast_group_id; - } - - /** - * Multicast group ID. - * - * Generated from protobuf field string multicast_group_id = 1; - * @param string $var - * @return $this - */ - public function setMulticastGroupId($var) - { - GPBUtil::checkString($var, True); - $this->multicast_group_id = $var; - - return $this; - } - - /** - * Device EUI (HEX encoded). - * - * Generated from protobuf field string dev_eui = 2; - * @return string - */ - public function getDevEui() - { - return $this->dev_eui; - } - - /** - * Device EUI (HEX encoded). - * - * Generated from protobuf field string dev_eui = 2; - * @param string $var - * @return $this - */ - public function setDevEui($var) - { - GPBUtil::checkString($var, True); - $this->dev_eui = $var; - - return $this; - } - -} - diff --git a/api/php/generated/Chirpstack/Api/AddGatewayToMulticastGroupRequest.php b/api/php/generated/Chirpstack/Api/AddGatewayToMulticastGroupRequest.php deleted file mode 100644 index 5c88d1da..00000000 --- a/api/php/generated/Chirpstack/Api/AddGatewayToMulticastGroupRequest.php +++ /dev/null @@ -1,99 +0,0 @@ -api.AddGatewayToMulticastGroupRequest - */ -class AddGatewayToMulticastGroupRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Multicast group ID. - * - * Generated from protobuf field string multicast_group_id = 1; - */ - protected $multicast_group_id = ''; - /** - * Gateway ID (HEX encoded). - * - * Generated from protobuf field string gateway_id = 2; - */ - protected $gateway_id = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $multicast_group_id - * Multicast group ID. - * @type string $gateway_id - * Gateway ID (HEX encoded). - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Chirpstack\Api\MulticastGroup::initOnce(); - parent::__construct($data); - } - - /** - * Multicast group ID. - * - * Generated from protobuf field string multicast_group_id = 1; - * @return string - */ - public function getMulticastGroupId() - { - return $this->multicast_group_id; - } - - /** - * Multicast group ID. - * - * Generated from protobuf field string multicast_group_id = 1; - * @param string $var - * @return $this - */ - public function setMulticastGroupId($var) - { - GPBUtil::checkString($var, True); - $this->multicast_group_id = $var; - - return $this; - } - - /** - * Gateway ID (HEX encoded). - * - * Generated from protobuf field string gateway_id = 2; - * @return string - */ - public function getGatewayId() - { - return $this->gateway_id; - } - - /** - * Gateway ID (HEX encoded). - * - * Generated from protobuf field string gateway_id = 2; - * @param string $var - * @return $this - */ - public function setGatewayId($var) - { - GPBUtil::checkString($var, True); - $this->gateway_id = $var; - - return $this; - } - -} - diff --git a/api/php/generated/Chirpstack/Api/AddRelayDeviceRequest.php b/api/php/generated/Chirpstack/Api/AddRelayDeviceRequest.php deleted file mode 100644 index 29e06068..00000000 --- a/api/php/generated/Chirpstack/Api/AddRelayDeviceRequest.php +++ /dev/null @@ -1,99 +0,0 @@ -api.AddRelayDeviceRequest - */ -class AddRelayDeviceRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Relay DevEUI (EUI64). - * - * Generated from protobuf field string relay_dev_eui = 1; - */ - protected $relay_dev_eui = ''; - /** - * Device DevEUI (EUI64). - * - * Generated from protobuf field string device_dev_eui = 2; - */ - protected $device_dev_eui = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $relay_dev_eui - * Relay DevEUI (EUI64). - * @type string $device_dev_eui - * Device DevEUI (EUI64). - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Chirpstack\Api\Relay::initOnce(); - parent::__construct($data); - } - - /** - * Relay DevEUI (EUI64). - * - * Generated from protobuf field string relay_dev_eui = 1; - * @return string - */ - public function getRelayDevEui() - { - return $this->relay_dev_eui; - } - - /** - * Relay DevEUI (EUI64). - * - * Generated from protobuf field string relay_dev_eui = 1; - * @param string $var - * @return $this - */ - public function setRelayDevEui($var) - { - GPBUtil::checkString($var, True); - $this->relay_dev_eui = $var; - - return $this; - } - - /** - * Device DevEUI (EUI64). - * - * Generated from protobuf field string device_dev_eui = 2; - * @return string - */ - public function getDeviceDevEui() - { - return $this->device_dev_eui; - } - - /** - * Device DevEUI (EUI64). - * - * Generated from protobuf field string device_dev_eui = 2; - * @param string $var - * @return $this - */ - public function setDeviceDevEui($var) - { - GPBUtil::checkString($var, True); - $this->device_dev_eui = $var; - - return $this; - } - -} - diff --git a/api/php/generated/Chirpstack/Api/AddTenantUserRequest.php b/api/php/generated/Chirpstack/Api/AddTenantUserRequest.php deleted file mode 100644 index 674b0431..00000000 --- a/api/php/generated/Chirpstack/Api/AddTenantUserRequest.php +++ /dev/null @@ -1,75 +0,0 @@ -api.AddTenantUserRequest - */ -class AddTenantUserRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Tenant user object. - * - * Generated from protobuf field .api.TenantUser tenant_user = 1; - */ - protected $tenant_user = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Chirpstack\Api\TenantUser $tenant_user - * Tenant user object. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Chirpstack\Api\Tenant::initOnce(); - parent::__construct($data); - } - - /** - * Tenant user object. - * - * Generated from protobuf field .api.TenantUser tenant_user = 1; - * @return \Chirpstack\Api\TenantUser|null - */ - public function getTenantUser() - { - return $this->tenant_user; - } - - public function hasTenantUser() - { - return isset($this->tenant_user); - } - - public function clearTenantUser() - { - unset($this->tenant_user); - } - - /** - * Tenant user object. - * - * Generated from protobuf field .api.TenantUser tenant_user = 1; - * @param \Chirpstack\Api\TenantUser $var - * @return $this - */ - public function setTenantUser($var) - { - GPBUtil::checkMessage($var, \Chirpstack\Api\TenantUser::class); - $this->tenant_user = $var; - - return $this; - } - -} - diff --git a/api/php/generated/Chirpstack/Api/AdrAlgorithmListItem.php b/api/php/generated/Chirpstack/Api/AdrAlgorithmListItem.php deleted file mode 100644 index a1146cd8..00000000 --- a/api/php/generated/Chirpstack/Api/AdrAlgorithmListItem.php +++ /dev/null @@ -1,99 +0,0 @@ -api.AdrAlgorithmListItem - */ -class AdrAlgorithmListItem extends \Google\Protobuf\Internal\Message -{ - /** - * Algorithm ID. - * - * Generated from protobuf field string id = 1; - */ - protected $id = ''; - /** - * Algorithm name. - * - * Generated from protobuf field string name = 2; - */ - protected $name = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $id - * Algorithm ID. - * @type string $name - * Algorithm name. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Chirpstack\Api\DeviceProfile::initOnce(); - parent::__construct($data); - } - - /** - * Algorithm ID. - * - * Generated from protobuf field string id = 1; - * @return string - */ - public function getId() - { - return $this->id; - } - - /** - * Algorithm ID. - * - * Generated from protobuf field string id = 1; - * @param string $var - * @return $this - */ - public function setId($var) - { - GPBUtil::checkString($var, True); - $this->id = $var; - - return $this; - } - - /** - * Algorithm name. - * - * Generated from protobuf field string name = 2; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Algorithm name. - * - * Generated from protobuf field string name = 2; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/api/php/generated/Chirpstack/Api/ApiKey.php b/api/php/generated/Chirpstack/Api/ApiKey.php deleted file mode 100644 index 208e3575..00000000 --- a/api/php/generated/Chirpstack/Api/ApiKey.php +++ /dev/null @@ -1,175 +0,0 @@ -api.ApiKey - */ -class ApiKey extends \Google\Protobuf\Internal\Message -{ - /** - * API key ID. - * This value will be automatically generated on create. - * - * Generated from protobuf field string id = 1; - */ - protected $id = ''; - /** - * Name. - * - * Generated from protobuf field string name = 2; - */ - protected $name = ''; - /** - * Is global admin key. - * - * Generated from protobuf field bool is_admin = 3; - */ - protected $is_admin = false; - /** - * Tenant ID. - * In case the API key is intended to manage resources under a single tenant. - * - * Generated from protobuf field string tenant_id = 4; - */ - protected $tenant_id = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $id - * API key ID. - * This value will be automatically generated on create. - * @type string $name - * Name. - * @type bool $is_admin - * Is global admin key. - * @type string $tenant_id - * Tenant ID. - * In case the API key is intended to manage resources under a single tenant. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Chirpstack\Api\Internal::initOnce(); - parent::__construct($data); - } - - /** - * API key ID. - * This value will be automatically generated on create. - * - * Generated from protobuf field string id = 1; - * @return string - */ - public function getId() - { - return $this->id; - } - - /** - * API key ID. - * This value will be automatically generated on create. - * - * Generated from protobuf field string id = 1; - * @param string $var - * @return $this - */ - public function setId($var) - { - GPBUtil::checkString($var, True); - $this->id = $var; - - return $this; - } - - /** - * Name. - * - * Generated from protobuf field string name = 2; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Name. - * - * Generated from protobuf field string name = 2; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Is global admin key. - * - * Generated from protobuf field bool is_admin = 3; - * @return bool - */ - public function getIsAdmin() - { - return $this->is_admin; - } - - /** - * Is global admin key. - * - * Generated from protobuf field bool is_admin = 3; - * @param bool $var - * @return $this - */ - public function setIsAdmin($var) - { - GPBUtil::checkBool($var); - $this->is_admin = $var; - - return $this; - } - - /** - * Tenant ID. - * In case the API key is intended to manage resources under a single tenant. - * - * Generated from protobuf field string tenant_id = 4; - * @return string - */ - public function getTenantId() - { - return $this->tenant_id; - } - - /** - * Tenant ID. - * In case the API key is intended to manage resources under a single tenant. - * - * Generated from protobuf field string tenant_id = 4; - * @param string $var - * @return $this - */ - public function setTenantId($var) - { - GPBUtil::checkString($var, True); - $this->tenant_id = $var; - - return $this; - } - -} - diff --git a/api/php/generated/Chirpstack/Api/Application.php b/api/php/generated/Chirpstack/Api/Application.php deleted file mode 100644 index 5db764f2..00000000 --- a/api/php/generated/Chirpstack/Api/Application.php +++ /dev/null @@ -1,217 +0,0 @@ -api.Application - */ -class Application extends \Google\Protobuf\Internal\Message -{ - /** - * Application ID (UUID). - * Note: on create this will be automatically generated. - * - * Generated from protobuf field string id = 1; - */ - protected $id = ''; - /** - * Application name. - * - * Generated from protobuf field string name = 2; - */ - protected $name = ''; - /** - * Application description. - * - * Generated from protobuf field string description = 3; - */ - protected $description = ''; - /** - * Tenant ID (UUID). - * - * Generated from protobuf field string tenant_id = 4; - */ - protected $tenant_id = ''; - /** - * Tags (user defined). - * These tags can be used to add additional information to the application. - * These tags are exposed in all the integration events of devices under - * this application. - * - * Generated from protobuf field map tags = 5; - */ - private $tags; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $id - * Application ID (UUID). - * Note: on create this will be automatically generated. - * @type string $name - * Application name. - * @type string $description - * Application description. - * @type string $tenant_id - * Tenant ID (UUID). - * @type array|\Google\Protobuf\Internal\MapField $tags - * Tags (user defined). - * These tags can be used to add additional information to the application. - * These tags are exposed in all the integration events of devices under - * this application. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Chirpstack\Api\Application::initOnce(); - parent::__construct($data); - } - - /** - * Application ID (UUID). - * Note: on create this will be automatically generated. - * - * Generated from protobuf field string id = 1; - * @return string - */ - public function getId() - { - return $this->id; - } - - /** - * Application ID (UUID). - * Note: on create this will be automatically generated. - * - * Generated from protobuf field string id = 1; - * @param string $var - * @return $this - */ - public function setId($var) - { - GPBUtil::checkString($var, True); - $this->id = $var; - - return $this; - } - - /** - * Application name. - * - * Generated from protobuf field string name = 2; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Application name. - * - * Generated from protobuf field string name = 2; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Application description. - * - * Generated from protobuf field string description = 3; - * @return string - */ - public function getDescription() - { - return $this->description; - } - - /** - * Application description. - * - * Generated from protobuf field string description = 3; - * @param string $var - * @return $this - */ - public function setDescription($var) - { - GPBUtil::checkString($var, True); - $this->description = $var; - - return $this; - } - - /** - * Tenant ID (UUID). - * - * Generated from protobuf field string tenant_id = 4; - * @return string - */ - public function getTenantId() - { - return $this->tenant_id; - } - - /** - * Tenant ID (UUID). - * - * Generated from protobuf field string tenant_id = 4; - * @param string $var - * @return $this - */ - public function setTenantId($var) - { - GPBUtil::checkString($var, True); - $this->tenant_id = $var; - - return $this; - } - - /** - * Tags (user defined). - * These tags can be used to add additional information to the application. - * These tags are exposed in all the integration events of devices under - * this application. - * - * Generated from protobuf field map tags = 5; - * @return \Google\Protobuf\Internal\MapField - */ - public function getTags() - { - return $this->tags; - } - - /** - * Tags (user defined). - * These tags can be used to add additional information to the application. - * These tags are exposed in all the integration events of devices under - * this application. - * - * Generated from protobuf field map tags = 5; - * @param array|\Google\Protobuf\Internal\MapField $var - * @return $this - */ - public function setTags($var) - { - $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); - $this->tags = $arr; - - return $this; - } - -} - diff --git a/api/php/generated/Chirpstack/Api/ApplicationListItem.php b/api/php/generated/Chirpstack/Api/ApplicationListItem.php deleted file mode 100644 index 4ad5ed4c..00000000 --- a/api/php/generated/Chirpstack/Api/ApplicationListItem.php +++ /dev/null @@ -1,221 +0,0 @@ -api.ApplicationListItem - */ -class ApplicationListItem extends \Google\Protobuf\Internal\Message -{ - /** - * Application ID (UUID). - * - * Generated from protobuf field string id = 1; - */ - protected $id = ''; - /** - * Created at timestamp. - * - * Generated from protobuf field .google.protobuf.Timestamp created_at = 2; - */ - protected $created_at = null; - /** - * Last update timestamp. - * - * Generated from protobuf field .google.protobuf.Timestamp updated_at = 3; - */ - protected $updated_at = null; - /** - * Application name. - * - * Generated from protobuf field string name = 4; - */ - protected $name = ''; - /** - * Application description. - * - * Generated from protobuf field string description = 5; - */ - protected $description = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $id - * Application ID (UUID). - * @type \Google\Protobuf\Timestamp $created_at - * Created at timestamp. - * @type \Google\Protobuf\Timestamp $updated_at - * Last update timestamp. - * @type string $name - * Application name. - * @type string $description - * Application description. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Chirpstack\Api\Application::initOnce(); - parent::__construct($data); - } - - /** - * Application ID (UUID). - * - * Generated from protobuf field string id = 1; - * @return string - */ - public function getId() - { - return $this->id; - } - - /** - * Application ID (UUID). - * - * Generated from protobuf field string id = 1; - * @param string $var - * @return $this - */ - public function setId($var) - { - GPBUtil::checkString($var, True); - $this->id = $var; - - return $this; - } - - /** - * Created at timestamp. - * - * Generated from protobuf field .google.protobuf.Timestamp created_at = 2; - * @return \Google\Protobuf\Timestamp|null - */ - public function getCreatedAt() - { - return $this->created_at; - } - - public function hasCreatedAt() - { - return isset($this->created_at); - } - - public function clearCreatedAt() - { - unset($this->created_at); - } - - /** - * Created at timestamp. - * - * Generated from protobuf field .google.protobuf.Timestamp created_at = 2; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setCreatedAt($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->created_at = $var; - - return $this; - } - - /** - * Last update timestamp. - * - * Generated from protobuf field .google.protobuf.Timestamp updated_at = 3; - * @return \Google\Protobuf\Timestamp|null - */ - public function getUpdatedAt() - { - return $this->updated_at; - } - - public function hasUpdatedAt() - { - return isset($this->updated_at); - } - - public function clearUpdatedAt() - { - unset($this->updated_at); - } - - /** - * Last update timestamp. - * - * Generated from protobuf field .google.protobuf.Timestamp updated_at = 3; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setUpdatedAt($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->updated_at = $var; - - return $this; - } - - /** - * Application name. - * - * Generated from protobuf field string name = 4; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Application name. - * - * Generated from protobuf field string name = 4; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Application description. - * - * Generated from protobuf field string description = 5; - * @return string - */ - public function getDescription() - { - return $this->description; - } - - /** - * Application description. - * - * Generated from protobuf field string description = 5; - * @param string $var - * @return $this - */ - public function setDescription($var) - { - GPBUtil::checkString($var, True); - $this->description = $var; - - return $this; - } - -} - diff --git a/api/php/generated/Chirpstack/Api/ApplicationServiceClient.php b/api/php/generated/Chirpstack/Api/ApplicationServiceClient.php deleted file mode 100644 index 2e640fc5..00000000 --- a/api/php/generated/Chirpstack/Api/ApplicationServiceClient.php +++ /dev/null @@ -1,726 +0,0 @@ -_simpleRequest('/api.ApplicationService/Create', - $argument, - ['\Chirpstack\Api\CreateApplicationResponse', 'decode'], - $metadata, $options); - } - - /** - * Get the application for the given ID. - * @param \Chirpstack\Api\GetApplicationRequest $argument input argument - * @param array $metadata metadata - * @param array $options call options - * @return \Grpc\UnaryCall - */ - public function Get(\Chirpstack\Api\GetApplicationRequest $argument, - $metadata = [], $options = []) { - return $this->_simpleRequest('/api.ApplicationService/Get', - $argument, - ['\Chirpstack\Api\GetApplicationResponse', 'decode'], - $metadata, $options); - } - - /** - * Update updates the given application. - * @param \Chirpstack\Api\UpdateApplicationRequest $argument input argument - * @param array $metadata metadata - * @param array $options call options - * @return \Grpc\UnaryCall - */ - public function Update(\Chirpstack\Api\UpdateApplicationRequest $argument, - $metadata = [], $options = []) { - return $this->_simpleRequest('/api.ApplicationService/Update', - $argument, - ['\Google\Protobuf\GPBEmpty', 'decode'], - $metadata, $options); - } - - /** - * Delete the application for the given ID. - * @param \Chirpstack\Api\DeleteApplicationRequest $argument input argument - * @param array $metadata metadata - * @param array $options call options - * @return \Grpc\UnaryCall - */ - public function Delete(\Chirpstack\Api\DeleteApplicationRequest $argument, - $metadata = [], $options = []) { - return $this->_simpleRequest('/api.ApplicationService/Delete', - $argument, - ['\Google\Protobuf\GPBEmpty', 'decode'], - $metadata, $options); - } - - /** - * Get the list of applications. - * @param \Chirpstack\Api\ListApplicationsRequest $argument input argument - * @param array $metadata metadata - * @param array $options call options - * @return \Grpc\UnaryCall - */ - public function List(\Chirpstack\Api\ListApplicationsRequest $argument, - $metadata = [], $options = []) { - return $this->_simpleRequest('/api.ApplicationService/List', - $argument, - ['\Chirpstack\Api\ListApplicationsResponse', 'decode'], - $metadata, $options); - } - - /** - * List all configured integrations. - * @param \Chirpstack\Api\ListIntegrationsRequest $argument input argument - * @param array $metadata metadata - * @param array $options call options - * @return \Grpc\UnaryCall - */ - public function ListIntegrations(\Chirpstack\Api\ListIntegrationsRequest $argument, - $metadata = [], $options = []) { - return $this->_simpleRequest('/api.ApplicationService/ListIntegrations', - $argument, - ['\Chirpstack\Api\ListIntegrationsResponse', 'decode'], - $metadata, $options); - } - - /** - * Create HTTP integration. - * @param \Chirpstack\Api\CreateHttpIntegrationRequest $argument input argument - * @param array $metadata metadata - * @param array $options call options - * @return \Grpc\UnaryCall - */ - public function CreateHttpIntegration(\Chirpstack\Api\CreateHttpIntegrationRequest $argument, - $metadata = [], $options = []) { - return $this->_simpleRequest('/api.ApplicationService/CreateHttpIntegration', - $argument, - ['\Google\Protobuf\GPBEmpty', 'decode'], - $metadata, $options); - } - - /** - * Get the configured HTTP integration. - * @param \Chirpstack\Api\GetHttpIntegrationRequest $argument input argument - * @param array $metadata metadata - * @param array $options call options - * @return \Grpc\UnaryCall - */ - public function GetHttpIntegration(\Chirpstack\Api\GetHttpIntegrationRequest $argument, - $metadata = [], $options = []) { - return $this->_simpleRequest('/api.ApplicationService/GetHttpIntegration', - $argument, - ['\Chirpstack\Api\GetHttpIntegrationResponse', 'decode'], - $metadata, $options); - } - - /** - * Update the HTTP integration. - * @param \Chirpstack\Api\UpdateHttpIntegrationRequest $argument input argument - * @param array $metadata metadata - * @param array $options call options - * @return \Grpc\UnaryCall - */ - public function UpdateHttpIntegration(\Chirpstack\Api\UpdateHttpIntegrationRequest $argument, - $metadata = [], $options = []) { - return $this->_simpleRequest('/api.ApplicationService/UpdateHttpIntegration', - $argument, - ['\Google\Protobuf\GPBEmpty', 'decode'], - $metadata, $options); - } - - /** - * Delete the HTTP integration. - * @param \Chirpstack\Api\DeleteHttpIntegrationRequest $argument input argument - * @param array $metadata metadata - * @param array $options call options - * @return \Grpc\UnaryCall - */ - public function DeleteHttpIntegration(\Chirpstack\Api\DeleteHttpIntegrationRequest $argument, - $metadata = [], $options = []) { - return $this->_simpleRequest('/api.ApplicationService/DeleteHttpIntegration', - $argument, - ['\Google\Protobuf\GPBEmpty', 'decode'], - $metadata, $options); - } - - /** - * Create InfluxDb integration. - * @param \Chirpstack\Api\CreateInfluxDbIntegrationRequest $argument input argument - * @param array $metadata metadata - * @param array $options call options - * @return \Grpc\UnaryCall - */ - public function CreateInfluxDbIntegration(\Chirpstack\Api\CreateInfluxDbIntegrationRequest $argument, - $metadata = [], $options = []) { - return $this->_simpleRequest('/api.ApplicationService/CreateInfluxDbIntegration', - $argument, - ['\Google\Protobuf\GPBEmpty', 'decode'], - $metadata, $options); - } - - /** - * Get InfluxDb integration. - * @param \Chirpstack\Api\GetInfluxDbIntegrationRequest $argument input argument - * @param array $metadata metadata - * @param array $options call options - * @return \Grpc\UnaryCall - */ - public function GetInfluxDbIntegration(\Chirpstack\Api\GetInfluxDbIntegrationRequest $argument, - $metadata = [], $options = []) { - return $this->_simpleRequest('/api.ApplicationService/GetInfluxDbIntegration', - $argument, - ['\Chirpstack\Api\GetInfluxDbIntegrationResponse', 'decode'], - $metadata, $options); - } - - /** - * Update InfluxDb integration. - * @param \Chirpstack\Api\UpdateInfluxDbIntegrationRequest $argument input argument - * @param array $metadata metadata - * @param array $options call options - * @return \Grpc\UnaryCall - */ - public function UpdateInfluxDbIntegration(\Chirpstack\Api\UpdateInfluxDbIntegrationRequest $argument, - $metadata = [], $options = []) { - return $this->_simpleRequest('/api.ApplicationService/UpdateInfluxDbIntegration', - $argument, - ['\Google\Protobuf\GPBEmpty', 'decode'], - $metadata, $options); - } - - /** - * Delete InfluxDb integration. - * @param \Chirpstack\Api\DeleteInfluxDbIntegrationRequest $argument input argument - * @param array $metadata metadata - * @param array $options call options - * @return \Grpc\UnaryCall - */ - public function DeleteInfluxDbIntegration(\Chirpstack\Api\DeleteInfluxDbIntegrationRequest $argument, - $metadata = [], $options = []) { - return $this->_simpleRequest('/api.ApplicationService/DeleteInfluxDbIntegration', - $argument, - ['\Google\Protobuf\GPBEmpty', 'decode'], - $metadata, $options); - } - - /** - * Create ThingsBoard integration. - * @param \Chirpstack\Api\CreateThingsBoardIntegrationRequest $argument input argument - * @param array $metadata metadata - * @param array $options call options - * @return \Grpc\UnaryCall - */ - public function CreateThingsBoardIntegration(\Chirpstack\Api\CreateThingsBoardIntegrationRequest $argument, - $metadata = [], $options = []) { - return $this->_simpleRequest('/api.ApplicationService/CreateThingsBoardIntegration', - $argument, - ['\Google\Protobuf\GPBEmpty', 'decode'], - $metadata, $options); - } - - /** - * Get ThingsBoard integration. - * @param \Chirpstack\Api\GetThingsBoardIntegrationRequest $argument input argument - * @param array $metadata metadata - * @param array $options call options - * @return \Grpc\UnaryCall - */ - public function GetThingsBoardIntegration(\Chirpstack\Api\GetThingsBoardIntegrationRequest $argument, - $metadata = [], $options = []) { - return $this->_simpleRequest('/api.ApplicationService/GetThingsBoardIntegration', - $argument, - ['\Chirpstack\Api\GetThingsBoardIntegrationResponse', 'decode'], - $metadata, $options); - } - - /** - * Update ThingsBoard integration. - * @param \Chirpstack\Api\UpdateThingsBoardIntegrationRequest $argument input argument - * @param array $metadata metadata - * @param array $options call options - * @return \Grpc\UnaryCall - */ - public function UpdateThingsBoardIntegration(\Chirpstack\Api\UpdateThingsBoardIntegrationRequest $argument, - $metadata = [], $options = []) { - return $this->_simpleRequest('/api.ApplicationService/UpdateThingsBoardIntegration', - $argument, - ['\Google\Protobuf\GPBEmpty', 'decode'], - $metadata, $options); - } - - /** - * Delete ThingsBoard integration. - * @param \Chirpstack\Api\DeleteThingsBoardIntegrationRequest $argument input argument - * @param array $metadata metadata - * @param array $options call options - * @return \Grpc\UnaryCall - */ - public function DeleteThingsBoardIntegration(\Chirpstack\Api\DeleteThingsBoardIntegrationRequest $argument, - $metadata = [], $options = []) { - return $this->_simpleRequest('/api.ApplicationService/DeleteThingsBoardIntegration', - $argument, - ['\Google\Protobuf\GPBEmpty', 'decode'], - $metadata, $options); - } - - /** - * Create myDevices integration. - * @param \Chirpstack\Api\CreateMyDevicesIntegrationRequest $argument input argument - * @param array $metadata metadata - * @param array $options call options - * @return \Grpc\UnaryCall - */ - public function CreateMyDevicesIntegration(\Chirpstack\Api\CreateMyDevicesIntegrationRequest $argument, - $metadata = [], $options = []) { - return $this->_simpleRequest('/api.ApplicationService/CreateMyDevicesIntegration', - $argument, - ['\Google\Protobuf\GPBEmpty', 'decode'], - $metadata, $options); - } - - /** - * Get myDevices integration. - * @param \Chirpstack\Api\GetMyDevicesIntegrationRequest $argument input argument - * @param array $metadata metadata - * @param array $options call options - * @return \Grpc\UnaryCall - */ - public function GetMyDevicesIntegration(\Chirpstack\Api\GetMyDevicesIntegrationRequest $argument, - $metadata = [], $options = []) { - return $this->_simpleRequest('/api.ApplicationService/GetMyDevicesIntegration', - $argument, - ['\Chirpstack\Api\GetMyDevicesIntegrationResponse', 'decode'], - $metadata, $options); - } - - /** - * Update myDevices integration. - * @param \Chirpstack\Api\UpdateMyDevicesIntegrationRequest $argument input argument - * @param array $metadata metadata - * @param array $options call options - * @return \Grpc\UnaryCall - */ - public function UpdateMyDevicesIntegration(\Chirpstack\Api\UpdateMyDevicesIntegrationRequest $argument, - $metadata = [], $options = []) { - return $this->_simpleRequest('/api.ApplicationService/UpdateMyDevicesIntegration', - $argument, - ['\Google\Protobuf\GPBEmpty', 'decode'], - $metadata, $options); - } - - /** - * Delete myDevices integration. - * @param \Chirpstack\Api\DeleteMyDevicesIntegrationRequest $argument input argument - * @param array $metadata metadata - * @param array $options call options - * @return \Grpc\UnaryCall - */ - public function DeleteMyDevicesIntegration(\Chirpstack\Api\DeleteMyDevicesIntegrationRequest $argument, - $metadata = [], $options = []) { - return $this->_simpleRequest('/api.ApplicationService/DeleteMyDevicesIntegration', - $argument, - ['\Google\Protobuf\GPBEmpty', 'decode'], - $metadata, $options); - } - - /** - * Create LoRaCloud integration. - * @param \Chirpstack\Api\CreateLoraCloudIntegrationRequest $argument input argument - * @param array $metadata metadata - * @param array $options call options - * @return \Grpc\UnaryCall - */ - public function CreateLoraCloudIntegration(\Chirpstack\Api\CreateLoraCloudIntegrationRequest $argument, - $metadata = [], $options = []) { - return $this->_simpleRequest('/api.ApplicationService/CreateLoraCloudIntegration', - $argument, - ['\Google\Protobuf\GPBEmpty', 'decode'], - $metadata, $options); - } - - /** - * Get LoRaCloud integration. - * @param \Chirpstack\Api\GetLoraCloudIntegrationRequest $argument input argument - * @param array $metadata metadata - * @param array $options call options - * @return \Grpc\UnaryCall - */ - public function GetLoraCloudIntegration(\Chirpstack\Api\GetLoraCloudIntegrationRequest $argument, - $metadata = [], $options = []) { - return $this->_simpleRequest('/api.ApplicationService/GetLoraCloudIntegration', - $argument, - ['\Chirpstack\Api\GetLoraCloudIntegrationResponse', 'decode'], - $metadata, $options); - } - - /** - * Update LoRaCloud integration. - * @param \Chirpstack\Api\UpdateLoraCloudIntegrationRequest $argument input argument - * @param array $metadata metadata - * @param array $options call options - * @return \Grpc\UnaryCall - */ - public function UpdateLoraCloudIntegration(\Chirpstack\Api\UpdateLoraCloudIntegrationRequest $argument, - $metadata = [], $options = []) { - return $this->_simpleRequest('/api.ApplicationService/UpdateLoraCloudIntegration', - $argument, - ['\Google\Protobuf\GPBEmpty', 'decode'], - $metadata, $options); - } - - /** - * Delete LoRaCloud integration. - * @param \Chirpstack\Api\DeleteLoraCloudIntegrationRequest $argument input argument - * @param array $metadata metadata - * @param array $options call options - * @return \Grpc\UnaryCall - */ - public function DeleteLoraCloudIntegration(\Chirpstack\Api\DeleteLoraCloudIntegrationRequest $argument, - $metadata = [], $options = []) { - return $this->_simpleRequest('/api.ApplicationService/DeleteLoraCloudIntegration', - $argument, - ['\Google\Protobuf\GPBEmpty', 'decode'], - $metadata, $options); - } - - /** - * Create GCP Pub/Sub integration. - * @param \Chirpstack\Api\CreateGcpPubSubIntegrationRequest $argument input argument - * @param array $metadata metadata - * @param array $options call options - * @return \Grpc\UnaryCall - */ - public function CreateGcpPubSubIntegration(\Chirpstack\Api\CreateGcpPubSubIntegrationRequest $argument, - $metadata = [], $options = []) { - return $this->_simpleRequest('/api.ApplicationService/CreateGcpPubSubIntegration', - $argument, - ['\Google\Protobuf\GPBEmpty', 'decode'], - $metadata, $options); - } - - /** - * Get GCP Pub/Sub integration. - * @param \Chirpstack\Api\GetGcpPubSubIntegrationRequest $argument input argument - * @param array $metadata metadata - * @param array $options call options - * @return \Grpc\UnaryCall - */ - public function GetGcpPubSubIntegration(\Chirpstack\Api\GetGcpPubSubIntegrationRequest $argument, - $metadata = [], $options = []) { - return $this->_simpleRequest('/api.ApplicationService/GetGcpPubSubIntegration', - $argument, - ['\Chirpstack\Api\GetGcpPubSubIntegrationResponse', 'decode'], - $metadata, $options); - } - - /** - * Update GCP Pub/Sub integration. - * @param \Chirpstack\Api\UpdateGcpPubSubIntegrationRequest $argument input argument - * @param array $metadata metadata - * @param array $options call options - * @return \Grpc\UnaryCall - */ - public function UpdateGcpPubSubIntegration(\Chirpstack\Api\UpdateGcpPubSubIntegrationRequest $argument, - $metadata = [], $options = []) { - return $this->_simpleRequest('/api.ApplicationService/UpdateGcpPubSubIntegration', - $argument, - ['\Google\Protobuf\GPBEmpty', 'decode'], - $metadata, $options); - } - - /** - * Delete GCP Pub/Sub integration. - * @param \Chirpstack\Api\DeleteGcpPubSubIntegrationRequest $argument input argument - * @param array $metadata metadata - * @param array $options call options - * @return \Grpc\UnaryCall - */ - public function DeleteGcpPubSubIntegration(\Chirpstack\Api\DeleteGcpPubSubIntegrationRequest $argument, - $metadata = [], $options = []) { - return $this->_simpleRequest('/api.ApplicationService/DeleteGcpPubSubIntegration', - $argument, - ['\Google\Protobuf\GPBEmpty', 'decode'], - $metadata, $options); - } - - /** - * Create AWS SNS integration. - * @param \Chirpstack\Api\CreateAwsSnsIntegrationRequest $argument input argument - * @param array $metadata metadata - * @param array $options call options - * @return \Grpc\UnaryCall - */ - public function CreateAwsSnsIntegration(\Chirpstack\Api\CreateAwsSnsIntegrationRequest $argument, - $metadata = [], $options = []) { - return $this->_simpleRequest('/api.ApplicationService/CreateAwsSnsIntegration', - $argument, - ['\Google\Protobuf\GPBEmpty', 'decode'], - $metadata, $options); - } - - /** - * Get AWS SNS integration. - * @param \Chirpstack\Api\GetAwsSnsIntegrationRequest $argument input argument - * @param array $metadata metadata - * @param array $options call options - * @return \Grpc\UnaryCall - */ - public function GetAwsSnsIntegration(\Chirpstack\Api\GetAwsSnsIntegrationRequest $argument, - $metadata = [], $options = []) { - return $this->_simpleRequest('/api.ApplicationService/GetAwsSnsIntegration', - $argument, - ['\Chirpstack\Api\GetAwsSnsIntegrationResponse', 'decode'], - $metadata, $options); - } - - /** - * Update AWS SNS integration. - * @param \Chirpstack\Api\UpdateAwsSnsIntegrationRequest $argument input argument - * @param array $metadata metadata - * @param array $options call options - * @return \Grpc\UnaryCall - */ - public function UpdateAwsSnsIntegration(\Chirpstack\Api\UpdateAwsSnsIntegrationRequest $argument, - $metadata = [], $options = []) { - return $this->_simpleRequest('/api.ApplicationService/UpdateAwsSnsIntegration', - $argument, - ['\Google\Protobuf\GPBEmpty', 'decode'], - $metadata, $options); - } - - /** - * Delete AWS SNS integration. - * @param \Chirpstack\Api\DeleteAwsSnsIntegrationRequest $argument input argument - * @param array $metadata metadata - * @param array $options call options - * @return \Grpc\UnaryCall - */ - public function DeleteAwsSnsIntegration(\Chirpstack\Api\DeleteAwsSnsIntegrationRequest $argument, - $metadata = [], $options = []) { - return $this->_simpleRequest('/api.ApplicationService/DeleteAwsSnsIntegration', - $argument, - ['\Google\Protobuf\GPBEmpty', 'decode'], - $metadata, $options); - } - - /** - * Create Azure Service-Bus integration. - * @param \Chirpstack\Api\CreateAzureServiceBusIntegrationRequest $argument input argument - * @param array $metadata metadata - * @param array $options call options - * @return \Grpc\UnaryCall - */ - public function CreateAzureServiceBusIntegration(\Chirpstack\Api\CreateAzureServiceBusIntegrationRequest $argument, - $metadata = [], $options = []) { - return $this->_simpleRequest('/api.ApplicationService/CreateAzureServiceBusIntegration', - $argument, - ['\Google\Protobuf\GPBEmpty', 'decode'], - $metadata, $options); - } - - /** - * Get Azure Service-Bus integration. - * @param \Chirpstack\Api\GetAzureServiceBusIntegrationRequest $argument input argument - * @param array $metadata metadata - * @param array $options call options - * @return \Grpc\UnaryCall - */ - public function GetAzureServiceBusIntegration(\Chirpstack\Api\GetAzureServiceBusIntegrationRequest $argument, - $metadata = [], $options = []) { - return $this->_simpleRequest('/api.ApplicationService/GetAzureServiceBusIntegration', - $argument, - ['\Chirpstack\Api\GetAzureServiceBusIntegrationResponse', 'decode'], - $metadata, $options); - } - - /** - * Update Azure Service-Bus integration. - * @param \Chirpstack\Api\UpdateAzureServiceBusIntegrationRequest $argument input argument - * @param array $metadata metadata - * @param array $options call options - * @return \Grpc\UnaryCall - */ - public function UpdateAzureServiceBusIntegration(\Chirpstack\Api\UpdateAzureServiceBusIntegrationRequest $argument, - $metadata = [], $options = []) { - return $this->_simpleRequest('/api.ApplicationService/UpdateAzureServiceBusIntegration', - $argument, - ['\Google\Protobuf\GPBEmpty', 'decode'], - $metadata, $options); - } - - /** - * Delete Azure Service-Bus integration. - * @param \Chirpstack\Api\DeleteAzureServiceBusIntegrationRequest $argument input argument - * @param array $metadata metadata - * @param array $options call options - * @return \Grpc\UnaryCall - */ - public function DeleteAzureServiceBusIntegration(\Chirpstack\Api\DeleteAzureServiceBusIntegrationRequest $argument, - $metadata = [], $options = []) { - return $this->_simpleRequest('/api.ApplicationService/DeleteAzureServiceBusIntegration', - $argument, - ['\Google\Protobuf\GPBEmpty', 'decode'], - $metadata, $options); - } - - /** - * Create Pilot Things integration. - * @param \Chirpstack\Api\CreatePilotThingsIntegrationRequest $argument input argument - * @param array $metadata metadata - * @param array $options call options - * @return \Grpc\UnaryCall - */ - public function CreatePilotThingsIntegration(\Chirpstack\Api\CreatePilotThingsIntegrationRequest $argument, - $metadata = [], $options = []) { - return $this->_simpleRequest('/api.ApplicationService/CreatePilotThingsIntegration', - $argument, - ['\Google\Protobuf\GPBEmpty', 'decode'], - $metadata, $options); - } - - /** - * Get Pilot Things integration. - * @param \Chirpstack\Api\GetPilotThingsIntegrationRequest $argument input argument - * @param array $metadata metadata - * @param array $options call options - * @return \Grpc\UnaryCall - */ - public function GetPilotThingsIntegration(\Chirpstack\Api\GetPilotThingsIntegrationRequest $argument, - $metadata = [], $options = []) { - return $this->_simpleRequest('/api.ApplicationService/GetPilotThingsIntegration', - $argument, - ['\Chirpstack\Api\GetPilotThingsIntegrationResponse', 'decode'], - $metadata, $options); - } - - /** - * Update Pilot Things integration. - * @param \Chirpstack\Api\UpdatePilotThingsIntegrationRequest $argument input argument - * @param array $metadata metadata - * @param array $options call options - * @return \Grpc\UnaryCall - */ - public function UpdatePilotThingsIntegration(\Chirpstack\Api\UpdatePilotThingsIntegrationRequest $argument, - $metadata = [], $options = []) { - return $this->_simpleRequest('/api.ApplicationService/UpdatePilotThingsIntegration', - $argument, - ['\Google\Protobuf\GPBEmpty', 'decode'], - $metadata, $options); - } - - /** - * Delete Pilot Things integration. - * @param \Chirpstack\Api\DeletePilotThingsIntegrationRequest $argument input argument - * @param array $metadata metadata - * @param array $options call options - * @return \Grpc\UnaryCall - */ - public function DeletePilotThingsIntegration(\Chirpstack\Api\DeletePilotThingsIntegrationRequest $argument, - $metadata = [], $options = []) { - return $this->_simpleRequest('/api.ApplicationService/DeletePilotThingsIntegration', - $argument, - ['\Google\Protobuf\GPBEmpty', 'decode'], - $metadata, $options); - } - - /** - * Create IFTTT integration. - * @param \Chirpstack\Api\CreateIftttIntegrationRequest $argument input argument - * @param array $metadata metadata - * @param array $options call options - * @return \Grpc\UnaryCall - */ - public function CreateIftttIntegration(\Chirpstack\Api\CreateIftttIntegrationRequest $argument, - $metadata = [], $options = []) { - return $this->_simpleRequest('/api.ApplicationService/CreateIftttIntegration', - $argument, - ['\Google\Protobuf\GPBEmpty', 'decode'], - $metadata, $options); - } - - /** - * Get IFTTT integration. - * @param \Chirpstack\Api\GetIftttIntegrationRequest $argument input argument - * @param array $metadata metadata - * @param array $options call options - * @return \Grpc\UnaryCall - */ - public function GetIftttIntegration(\Chirpstack\Api\GetIftttIntegrationRequest $argument, - $metadata = [], $options = []) { - return $this->_simpleRequest('/api.ApplicationService/GetIftttIntegration', - $argument, - ['\Chirpstack\Api\GetIftttIntegrationResponse', 'decode'], - $metadata, $options); - } - - /** - * Update IFTTT integration. - * @param \Chirpstack\Api\UpdateIftttIntegrationRequest $argument input argument - * @param array $metadata metadata - * @param array $options call options - * @return \Grpc\UnaryCall - */ - public function UpdateIftttIntegration(\Chirpstack\Api\UpdateIftttIntegrationRequest $argument, - $metadata = [], $options = []) { - return $this->_simpleRequest('/api.ApplicationService/UpdateIftttIntegration', - $argument, - ['\Google\Protobuf\GPBEmpty', 'decode'], - $metadata, $options); - } - - /** - * Delete IFTTT integration. - * @param \Chirpstack\Api\DeleteIftttIntegrationRequest $argument input argument - * @param array $metadata metadata - * @param array $options call options - * @return \Grpc\UnaryCall - */ - public function DeleteIftttIntegration(\Chirpstack\Api\DeleteIftttIntegrationRequest $argument, - $metadata = [], $options = []) { - return $this->_simpleRequest('/api.ApplicationService/DeleteIftttIntegration', - $argument, - ['\Google\Protobuf\GPBEmpty', 'decode'], - $metadata, $options); - } - - /** - * Generates application ID specific client-certificate. - * @param \Chirpstack\Api\GenerateMqttIntegrationClientCertificateRequest $argument input argument - * @param array $metadata metadata - * @param array $options call options - * @return \Grpc\UnaryCall - */ - public function GenerateMqttIntegrationClientCertificate(\Chirpstack\Api\GenerateMqttIntegrationClientCertificateRequest $argument, - $metadata = [], $options = []) { - return $this->_simpleRequest('/api.ApplicationService/GenerateMqttIntegrationClientCertificate', - $argument, - ['\Chirpstack\Api\GenerateMqttIntegrationClientCertificateResponse', 'decode'], - $metadata, $options); - } - -} diff --git a/api/php/generated/Chirpstack/Api/AwsSnsIntegration.php b/api/php/generated/Chirpstack/Api/AwsSnsIntegration.php deleted file mode 100644 index d5e4ba1c..00000000 --- a/api/php/generated/Chirpstack/Api/AwsSnsIntegration.php +++ /dev/null @@ -1,235 +0,0 @@ -api.AwsSnsIntegration - */ -class AwsSnsIntegration extends \Google\Protobuf\Internal\Message -{ - /** - * Application ID (UUID). - * - * Generated from protobuf field string application_id = 1; - */ - protected $application_id = ''; - /** - * Encoding. - * - * Generated from protobuf field .api.Encoding encoding = 2; - */ - protected $encoding = 0; - /** - * AWS region. - * - * Generated from protobuf field string region = 3; - */ - protected $region = ''; - /** - * AWS Access Key ID. - * - * Generated from protobuf field string access_key_id = 4; - */ - protected $access_key_id = ''; - /** - * AWS Secret Access Key. - * - * Generated from protobuf field string secret_access_key = 5; - */ - protected $secret_access_key = ''; - /** - * Topic ARN. - * - * Generated from protobuf field string topic_arn = 6; - */ - protected $topic_arn = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $application_id - * Application ID (UUID). - * @type int $encoding - * Encoding. - * @type string $region - * AWS region. - * @type string $access_key_id - * AWS Access Key ID. - * @type string $secret_access_key - * AWS Secret Access Key. - * @type string $topic_arn - * Topic ARN. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Chirpstack\Api\Application::initOnce(); - parent::__construct($data); - } - - /** - * Application ID (UUID). - * - * Generated from protobuf field string application_id = 1; - * @return string - */ - public function getApplicationId() - { - return $this->application_id; - } - - /** - * Application ID (UUID). - * - * Generated from protobuf field string application_id = 1; - * @param string $var - * @return $this - */ - public function setApplicationId($var) - { - GPBUtil::checkString($var, True); - $this->application_id = $var; - - return $this; - } - - /** - * Encoding. - * - * Generated from protobuf field .api.Encoding encoding = 2; - * @return int - */ - public function getEncoding() - { - return $this->encoding; - } - - /** - * Encoding. - * - * Generated from protobuf field .api.Encoding encoding = 2; - * @param int $var - * @return $this - */ - public function setEncoding($var) - { - GPBUtil::checkEnum($var, \Chirpstack\Api\Encoding::class); - $this->encoding = $var; - - return $this; - } - - /** - * AWS region. - * - * Generated from protobuf field string region = 3; - * @return string - */ - public function getRegion() - { - return $this->region; - } - - /** - * AWS region. - * - * Generated from protobuf field string region = 3; - * @param string $var - * @return $this - */ - public function setRegion($var) - { - GPBUtil::checkString($var, True); - $this->region = $var; - - return $this; - } - - /** - * AWS Access Key ID. - * - * Generated from protobuf field string access_key_id = 4; - * @return string - */ - public function getAccessKeyId() - { - return $this->access_key_id; - } - - /** - * AWS Access Key ID. - * - * Generated from protobuf field string access_key_id = 4; - * @param string $var - * @return $this - */ - public function setAccessKeyId($var) - { - GPBUtil::checkString($var, True); - $this->access_key_id = $var; - - return $this; - } - - /** - * AWS Secret Access Key. - * - * Generated from protobuf field string secret_access_key = 5; - * @return string - */ - public function getSecretAccessKey() - { - return $this->secret_access_key; - } - - /** - * AWS Secret Access Key. - * - * Generated from protobuf field string secret_access_key = 5; - * @param string $var - * @return $this - */ - public function setSecretAccessKey($var) - { - GPBUtil::checkString($var, True); - $this->secret_access_key = $var; - - return $this; - } - - /** - * Topic ARN. - * - * Generated from protobuf field string topic_arn = 6; - * @return string - */ - public function getTopicArn() - { - return $this->topic_arn; - } - - /** - * Topic ARN. - * - * Generated from protobuf field string topic_arn = 6; - * @param string $var - * @return $this - */ - public function setTopicArn($var) - { - GPBUtil::checkString($var, True); - $this->topic_arn = $var; - - return $this; - } - -} - diff --git a/api/php/generated/Chirpstack/Api/AzureServiceBusIntegration.php b/api/php/generated/Chirpstack/Api/AzureServiceBusIntegration.php deleted file mode 100644 index ebd8457f..00000000 --- a/api/php/generated/Chirpstack/Api/AzureServiceBusIntegration.php +++ /dev/null @@ -1,171 +0,0 @@ -api.AzureServiceBusIntegration - */ -class AzureServiceBusIntegration extends \Google\Protobuf\Internal\Message -{ - /** - * Application ID (UUID). - * - * Generated from protobuf field string application_id = 1; - */ - protected $application_id = ''; - /** - * Encoding. - * - * Generated from protobuf field .api.Encoding encoding = 2; - */ - protected $encoding = 0; - /** - * Connection string. - * - * Generated from protobuf field string connection_string = 3; - */ - protected $connection_string = ''; - /** - * Publish name. - * This is the name of the topic or queue. - * - * Generated from protobuf field string publish_name = 4; - */ - protected $publish_name = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $application_id - * Application ID (UUID). - * @type int $encoding - * Encoding. - * @type string $connection_string - * Connection string. - * @type string $publish_name - * Publish name. - * This is the name of the topic or queue. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Chirpstack\Api\Application::initOnce(); - parent::__construct($data); - } - - /** - * Application ID (UUID). - * - * Generated from protobuf field string application_id = 1; - * @return string - */ - public function getApplicationId() - { - return $this->application_id; - } - - /** - * Application ID (UUID). - * - * Generated from protobuf field string application_id = 1; - * @param string $var - * @return $this - */ - public function setApplicationId($var) - { - GPBUtil::checkString($var, True); - $this->application_id = $var; - - return $this; - } - - /** - * Encoding. - * - * Generated from protobuf field .api.Encoding encoding = 2; - * @return int - */ - public function getEncoding() - { - return $this->encoding; - } - - /** - * Encoding. - * - * Generated from protobuf field .api.Encoding encoding = 2; - * @param int $var - * @return $this - */ - public function setEncoding($var) - { - GPBUtil::checkEnum($var, \Chirpstack\Api\Encoding::class); - $this->encoding = $var; - - return $this; - } - - /** - * Connection string. - * - * Generated from protobuf field string connection_string = 3; - * @return string - */ - public function getConnectionString() - { - return $this->connection_string; - } - - /** - * Connection string. - * - * Generated from protobuf field string connection_string = 3; - * @param string $var - * @return $this - */ - public function setConnectionString($var) - { - GPBUtil::checkString($var, True); - $this->connection_string = $var; - - return $this; - } - - /** - * Publish name. - * This is the name of the topic or queue. - * - * Generated from protobuf field string publish_name = 4; - * @return string - */ - public function getPublishName() - { - return $this->publish_name; - } - - /** - * Publish name. - * This is the name of the topic or queue. - * - * Generated from protobuf field string publish_name = 4; - * @param string $var - * @return $this - */ - public function setPublishName($var) - { - GPBUtil::checkString($var, True); - $this->publish_name = $var; - - return $this; - } - -} - diff --git a/api/php/generated/Chirpstack/Api/CadPeriodicity.php b/api/php/generated/Chirpstack/Api/CadPeriodicity.php deleted file mode 100644 index d12739a5..00000000 --- a/api/php/generated/Chirpstack/Api/CadPeriodicity.php +++ /dev/null @@ -1,80 +0,0 @@ -api.CadPeriodicity - */ -class CadPeriodicity -{ - /** - * 1 second. - * - * Generated from protobuf enum SEC_1 = 0; - */ - const SEC_1 = 0; - /** - * 500 milliseconds - * - * Generated from protobuf enum MS_500 = 1; - */ - const MS_500 = 1; - /** - * 250 milliseconds - * - * Generated from protobuf enum MS_250 = 2; - */ - const MS_250 = 2; - /** - * 100 milliseconds - * - * Generated from protobuf enum MS_100 = 3; - */ - const MS_100 = 3; - /** - * 50 milliseconds - * - * Generated from protobuf enum MS_50 = 4; - */ - const MS_50 = 4; - /** - * 20 milliseconds - * - * Generated from protobuf enum MS_20 = 5; - */ - const MS_20 = 5; - - private static $valueToName = [ - self::SEC_1 => 'SEC_1', - self::MS_500 => 'MS_500', - self::MS_250 => 'MS_250', - self::MS_100 => 'MS_100', - self::MS_50 => 'MS_50', - self::MS_20 => 'MS_20', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - diff --git a/api/php/generated/Chirpstack/Api/CodecRuntime.php b/api/php/generated/Chirpstack/Api/CodecRuntime.php deleted file mode 100644 index d80a7e09..00000000 --- a/api/php/generated/Chirpstack/Api/CodecRuntime.php +++ /dev/null @@ -1,59 +0,0 @@ -api.CodecRuntime - */ -class CodecRuntime -{ - /** - * None. - * - * Generated from protobuf enum NONE = 0; - */ - const NONE = 0; - /** - * Cayenne LPP. - * - * Generated from protobuf enum CAYENNE_LPP = 1; - */ - const CAYENNE_LPP = 1; - /** - * JavaScript. - * - * Generated from protobuf enum JS = 2; - */ - const JS = 2; - - private static $valueToName = [ - self::NONE => 'NONE', - self::CAYENNE_LPP => 'CAYENNE_LPP', - self::JS => 'JS', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - diff --git a/api/php/generated/Chirpstack/Api/CreateApiKeyRequest.php b/api/php/generated/Chirpstack/Api/CreateApiKeyRequest.php deleted file mode 100644 index a2e5f67d..00000000 --- a/api/php/generated/Chirpstack/Api/CreateApiKeyRequest.php +++ /dev/null @@ -1,75 +0,0 @@ -api.CreateApiKeyRequest - */ -class CreateApiKeyRequest extends \Google\Protobuf\Internal\Message -{ - /** - * The API key to create. - * - * Generated from protobuf field .api.ApiKey api_key = 1; - */ - protected $api_key = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Chirpstack\Api\ApiKey $api_key - * The API key to create. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Chirpstack\Api\Internal::initOnce(); - parent::__construct($data); - } - - /** - * The API key to create. - * - * Generated from protobuf field .api.ApiKey api_key = 1; - * @return \Chirpstack\Api\ApiKey|null - */ - public function getApiKey() - { - return $this->api_key; - } - - public function hasApiKey() - { - return isset($this->api_key); - } - - public function clearApiKey() - { - unset($this->api_key); - } - - /** - * The API key to create. - * - * Generated from protobuf field .api.ApiKey api_key = 1; - * @param \Chirpstack\Api\ApiKey $var - * @return $this - */ - public function setApiKey($var) - { - GPBUtil::checkMessage($var, \Chirpstack\Api\ApiKey::class); - $this->api_key = $var; - - return $this; - } - -} - diff --git a/api/php/generated/Chirpstack/Api/CreateApiKeyResponse.php b/api/php/generated/Chirpstack/Api/CreateApiKeyResponse.php deleted file mode 100644 index afc3dfda..00000000 --- a/api/php/generated/Chirpstack/Api/CreateApiKeyResponse.php +++ /dev/null @@ -1,99 +0,0 @@ -api.CreateApiKeyResponse - */ -class CreateApiKeyResponse extends \Google\Protobuf\Internal\Message -{ - /** - * API key ID. - * - * Generated from protobuf field string id = 1; - */ - protected $id = ''; - /** - * API token for authentication API requests. - * - * Generated from protobuf field string token = 2; - */ - protected $token = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $id - * API key ID. - * @type string $token - * API token for authentication API requests. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Chirpstack\Api\Internal::initOnce(); - parent::__construct($data); - } - - /** - * API key ID. - * - * Generated from protobuf field string id = 1; - * @return string - */ - public function getId() - { - return $this->id; - } - - /** - * API key ID. - * - * Generated from protobuf field string id = 1; - * @param string $var - * @return $this - */ - public function setId($var) - { - GPBUtil::checkString($var, True); - $this->id = $var; - - return $this; - } - - /** - * API token for authentication API requests. - * - * Generated from protobuf field string token = 2; - * @return string - */ - public function getToken() - { - return $this->token; - } - - /** - * API token for authentication API requests. - * - * Generated from protobuf field string token = 2; - * @param string $var - * @return $this - */ - public function setToken($var) - { - GPBUtil::checkString($var, True); - $this->token = $var; - - return $this; - } - -} - diff --git a/api/php/generated/Chirpstack/Api/CreateApplicationRequest.php b/api/php/generated/Chirpstack/Api/CreateApplicationRequest.php deleted file mode 100644 index a3a940e6..00000000 --- a/api/php/generated/Chirpstack/Api/CreateApplicationRequest.php +++ /dev/null @@ -1,75 +0,0 @@ -api.CreateApplicationRequest - */ -class CreateApplicationRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Application object to create. - * - * Generated from protobuf field .api.Application application = 1; - */ - protected $application = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Chirpstack\Api\Application $application - * Application object to create. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Chirpstack\Api\Application::initOnce(); - parent::__construct($data); - } - - /** - * Application object to create. - * - * Generated from protobuf field .api.Application application = 1; - * @return \Chirpstack\Api\Application|null - */ - public function getApplication() - { - return $this->application; - } - - public function hasApplication() - { - return isset($this->application); - } - - public function clearApplication() - { - unset($this->application); - } - - /** - * Application object to create. - * - * Generated from protobuf field .api.Application application = 1; - * @param \Chirpstack\Api\Application $var - * @return $this - */ - public function setApplication($var) - { - GPBUtil::checkMessage($var, \Chirpstack\Api\Application::class); - $this->application = $var; - - return $this; - } - -} - diff --git a/api/php/generated/Chirpstack/Api/CreateApplicationResponse.php b/api/php/generated/Chirpstack/Api/CreateApplicationResponse.php deleted file mode 100644 index 0e7e70f2..00000000 --- a/api/php/generated/Chirpstack/Api/CreateApplicationResponse.php +++ /dev/null @@ -1,65 +0,0 @@ -api.CreateApplicationResponse - */ -class CreateApplicationResponse extends \Google\Protobuf\Internal\Message -{ - /** - * Application ID (UUID). - * - * Generated from protobuf field string id = 1; - */ - protected $id = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $id - * Application ID (UUID). - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Chirpstack\Api\Application::initOnce(); - parent::__construct($data); - } - - /** - * Application ID (UUID). - * - * Generated from protobuf field string id = 1; - * @return string - */ - public function getId() - { - return $this->id; - } - - /** - * Application ID (UUID). - * - * Generated from protobuf field string id = 1; - * @param string $var - * @return $this - */ - public function setId($var) - { - GPBUtil::checkString($var, True); - $this->id = $var; - - return $this; - } - -} - diff --git a/api/php/generated/Chirpstack/Api/CreateAwsSnsIntegrationRequest.php b/api/php/generated/Chirpstack/Api/CreateAwsSnsIntegrationRequest.php deleted file mode 100644 index 77507a16..00000000 --- a/api/php/generated/Chirpstack/Api/CreateAwsSnsIntegrationRequest.php +++ /dev/null @@ -1,75 +0,0 @@ -api.CreateAwsSnsIntegrationRequest - */ -class CreateAwsSnsIntegrationRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Integration object to create. - * - * Generated from protobuf field .api.AwsSnsIntegration integration = 1; - */ - protected $integration = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Chirpstack\Api\AwsSnsIntegration $integration - * Integration object to create. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Chirpstack\Api\Application::initOnce(); - parent::__construct($data); - } - - /** - * Integration object to create. - * - * Generated from protobuf field .api.AwsSnsIntegration integration = 1; - * @return \Chirpstack\Api\AwsSnsIntegration|null - */ - public function getIntegration() - { - return $this->integration; - } - - public function hasIntegration() - { - return isset($this->integration); - } - - public function clearIntegration() - { - unset($this->integration); - } - - /** - * Integration object to create. - * - * Generated from protobuf field .api.AwsSnsIntegration integration = 1; - * @param \Chirpstack\Api\AwsSnsIntegration $var - * @return $this - */ - public function setIntegration($var) - { - GPBUtil::checkMessage($var, \Chirpstack\Api\AwsSnsIntegration::class); - $this->integration = $var; - - return $this; - } - -} - diff --git a/api/php/generated/Chirpstack/Api/CreateAzureServiceBusIntegrationRequest.php b/api/php/generated/Chirpstack/Api/CreateAzureServiceBusIntegrationRequest.php deleted file mode 100644 index 44f064dd..00000000 --- a/api/php/generated/Chirpstack/Api/CreateAzureServiceBusIntegrationRequest.php +++ /dev/null @@ -1,75 +0,0 @@ -api.CreateAzureServiceBusIntegrationRequest - */ -class CreateAzureServiceBusIntegrationRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Integration object to create. - * - * Generated from protobuf field .api.AzureServiceBusIntegration integration = 1; - */ - protected $integration = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Chirpstack\Api\AzureServiceBusIntegration $integration - * Integration object to create. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Chirpstack\Api\Application::initOnce(); - parent::__construct($data); - } - - /** - * Integration object to create. - * - * Generated from protobuf field .api.AzureServiceBusIntegration integration = 1; - * @return \Chirpstack\Api\AzureServiceBusIntegration|null - */ - public function getIntegration() - { - return $this->integration; - } - - public function hasIntegration() - { - return isset($this->integration); - } - - public function clearIntegration() - { - unset($this->integration); - } - - /** - * Integration object to create. - * - * Generated from protobuf field .api.AzureServiceBusIntegration integration = 1; - * @param \Chirpstack\Api\AzureServiceBusIntegration $var - * @return $this - */ - public function setIntegration($var) - { - GPBUtil::checkMessage($var, \Chirpstack\Api\AzureServiceBusIntegration::class); - $this->integration = $var; - - return $this; - } - -} - diff --git a/api/php/generated/Chirpstack/Api/CreateDeviceKeysRequest.php b/api/php/generated/Chirpstack/Api/CreateDeviceKeysRequest.php deleted file mode 100644 index 4e50de69..00000000 --- a/api/php/generated/Chirpstack/Api/CreateDeviceKeysRequest.php +++ /dev/null @@ -1,75 +0,0 @@ -api.CreateDeviceKeysRequest - */ -class CreateDeviceKeysRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Device-keys object. - * - * Generated from protobuf field .api.DeviceKeys device_keys = 1; - */ - protected $device_keys = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Chirpstack\Api\DeviceKeys $device_keys - * Device-keys object. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Chirpstack\Api\Device::initOnce(); - parent::__construct($data); - } - - /** - * Device-keys object. - * - * Generated from protobuf field .api.DeviceKeys device_keys = 1; - * @return \Chirpstack\Api\DeviceKeys|null - */ - public function getDeviceKeys() - { - return $this->device_keys; - } - - public function hasDeviceKeys() - { - return isset($this->device_keys); - } - - public function clearDeviceKeys() - { - unset($this->device_keys); - } - - /** - * Device-keys object. - * - * Generated from protobuf field .api.DeviceKeys device_keys = 1; - * @param \Chirpstack\Api\DeviceKeys $var - * @return $this - */ - public function setDeviceKeys($var) - { - GPBUtil::checkMessage($var, \Chirpstack\Api\DeviceKeys::class); - $this->device_keys = $var; - - return $this; - } - -} - diff --git a/api/php/generated/Chirpstack/Api/CreateDeviceProfileRequest.php b/api/php/generated/Chirpstack/Api/CreateDeviceProfileRequest.php deleted file mode 100644 index c41599cf..00000000 --- a/api/php/generated/Chirpstack/Api/CreateDeviceProfileRequest.php +++ /dev/null @@ -1,75 +0,0 @@ -api.CreateDeviceProfileRequest - */ -class CreateDeviceProfileRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Object to create. - * - * Generated from protobuf field .api.DeviceProfile device_profile = 1; - */ - protected $device_profile = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Chirpstack\Api\DeviceProfile $device_profile - * Object to create. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Chirpstack\Api\DeviceProfile::initOnce(); - parent::__construct($data); - } - - /** - * Object to create. - * - * Generated from protobuf field .api.DeviceProfile device_profile = 1; - * @return \Chirpstack\Api\DeviceProfile|null - */ - public function getDeviceProfile() - { - return $this->device_profile; - } - - public function hasDeviceProfile() - { - return isset($this->device_profile); - } - - public function clearDeviceProfile() - { - unset($this->device_profile); - } - - /** - * Object to create. - * - * Generated from protobuf field .api.DeviceProfile device_profile = 1; - * @param \Chirpstack\Api\DeviceProfile $var - * @return $this - */ - public function setDeviceProfile($var) - { - GPBUtil::checkMessage($var, \Chirpstack\Api\DeviceProfile::class); - $this->device_profile = $var; - - return $this; - } - -} - diff --git a/api/php/generated/Chirpstack/Api/CreateDeviceProfileResponse.php b/api/php/generated/Chirpstack/Api/CreateDeviceProfileResponse.php deleted file mode 100644 index 91010555..00000000 --- a/api/php/generated/Chirpstack/Api/CreateDeviceProfileResponse.php +++ /dev/null @@ -1,65 +0,0 @@ -api.CreateDeviceProfileResponse - */ -class CreateDeviceProfileResponse extends \Google\Protobuf\Internal\Message -{ - /** - * ID (UUID). - * - * Generated from protobuf field string id = 1; - */ - protected $id = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $id - * ID (UUID). - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Chirpstack\Api\DeviceProfile::initOnce(); - parent::__construct($data); - } - - /** - * ID (UUID). - * - * Generated from protobuf field string id = 1; - * @return string - */ - public function getId() - { - return $this->id; - } - - /** - * ID (UUID). - * - * Generated from protobuf field string id = 1; - * @param string $var - * @return $this - */ - public function setId($var) - { - GPBUtil::checkString($var, True); - $this->id = $var; - - return $this; - } - -} - diff --git a/api/php/generated/Chirpstack/Api/CreateDeviceProfileTemplateRequest.php b/api/php/generated/Chirpstack/Api/CreateDeviceProfileTemplateRequest.php deleted file mode 100644 index 335725b9..00000000 --- a/api/php/generated/Chirpstack/Api/CreateDeviceProfileTemplateRequest.php +++ /dev/null @@ -1,75 +0,0 @@ -api.CreateDeviceProfileTemplateRequest - */ -class CreateDeviceProfileTemplateRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Object to create. - * - * Generated from protobuf field .api.DeviceProfileTemplate device_profile_template = 1; - */ - protected $device_profile_template = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Chirpstack\Api\DeviceProfileTemplate $device_profile_template - * Object to create. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Chirpstack\Api\DeviceProfileTemplate::initOnce(); - parent::__construct($data); - } - - /** - * Object to create. - * - * Generated from protobuf field .api.DeviceProfileTemplate device_profile_template = 1; - * @return \Chirpstack\Api\DeviceProfileTemplate|null - */ - public function getDeviceProfileTemplate() - { - return $this->device_profile_template; - } - - public function hasDeviceProfileTemplate() - { - return isset($this->device_profile_template); - } - - public function clearDeviceProfileTemplate() - { - unset($this->device_profile_template); - } - - /** - * Object to create. - * - * Generated from protobuf field .api.DeviceProfileTemplate device_profile_template = 1; - * @param \Chirpstack\Api\DeviceProfileTemplate $var - * @return $this - */ - public function setDeviceProfileTemplate($var) - { - GPBUtil::checkMessage($var, \Chirpstack\Api\DeviceProfileTemplate::class); - $this->device_profile_template = $var; - - return $this; - } - -} - diff --git a/api/php/generated/Chirpstack/Api/CreateDeviceRequest.php b/api/php/generated/Chirpstack/Api/CreateDeviceRequest.php deleted file mode 100644 index c8dbc0ed..00000000 --- a/api/php/generated/Chirpstack/Api/CreateDeviceRequest.php +++ /dev/null @@ -1,75 +0,0 @@ -api.CreateDeviceRequest - */ -class CreateDeviceRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Device object. - * - * Generated from protobuf field .api.Device device = 1; - */ - protected $device = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Chirpstack\Api\Device $device - * Device object. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Chirpstack\Api\Device::initOnce(); - parent::__construct($data); - } - - /** - * Device object. - * - * Generated from protobuf field .api.Device device = 1; - * @return \Chirpstack\Api\Device|null - */ - public function getDevice() - { - return $this->device; - } - - public function hasDevice() - { - return isset($this->device); - } - - public function clearDevice() - { - unset($this->device); - } - - /** - * Device object. - * - * Generated from protobuf field .api.Device device = 1; - * @param \Chirpstack\Api\Device $var - * @return $this - */ - public function setDevice($var) - { - GPBUtil::checkMessage($var, \Chirpstack\Api\Device::class); - $this->device = $var; - - return $this; - } - -} - diff --git a/api/php/generated/Chirpstack/Api/CreateGatewayRequest.php b/api/php/generated/Chirpstack/Api/CreateGatewayRequest.php deleted file mode 100644 index 7c2852b1..00000000 --- a/api/php/generated/Chirpstack/Api/CreateGatewayRequest.php +++ /dev/null @@ -1,75 +0,0 @@ -api.CreateGatewayRequest - */ -class CreateGatewayRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Gateway object. - * - * Generated from protobuf field .api.Gateway gateway = 1; - */ - protected $gateway = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Chirpstack\Api\Gateway $gateway - * Gateway object. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Chirpstack\Api\Gateway::initOnce(); - parent::__construct($data); - } - - /** - * Gateway object. - * - * Generated from protobuf field .api.Gateway gateway = 1; - * @return \Chirpstack\Api\Gateway|null - */ - public function getGateway() - { - return $this->gateway; - } - - public function hasGateway() - { - return isset($this->gateway); - } - - public function clearGateway() - { - unset($this->gateway); - } - - /** - * Gateway object. - * - * Generated from protobuf field .api.Gateway gateway = 1; - * @param \Chirpstack\Api\Gateway $var - * @return $this - */ - public function setGateway($var) - { - GPBUtil::checkMessage($var, \Chirpstack\Api\Gateway::class); - $this->gateway = $var; - - return $this; - } - -} - diff --git a/api/php/generated/Chirpstack/Api/CreateGcpPubSubIntegrationRequest.php b/api/php/generated/Chirpstack/Api/CreateGcpPubSubIntegrationRequest.php deleted file mode 100644 index 6cf89d29..00000000 --- a/api/php/generated/Chirpstack/Api/CreateGcpPubSubIntegrationRequest.php +++ /dev/null @@ -1,75 +0,0 @@ -api.CreateGcpPubSubIntegrationRequest - */ -class CreateGcpPubSubIntegrationRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Integration object to create. - * - * Generated from protobuf field .api.GcpPubSubIntegration integration = 1; - */ - protected $integration = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Chirpstack\Api\GcpPubSubIntegration $integration - * Integration object to create. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Chirpstack\Api\Application::initOnce(); - parent::__construct($data); - } - - /** - * Integration object to create. - * - * Generated from protobuf field .api.GcpPubSubIntegration integration = 1; - * @return \Chirpstack\Api\GcpPubSubIntegration|null - */ - public function getIntegration() - { - return $this->integration; - } - - public function hasIntegration() - { - return isset($this->integration); - } - - public function clearIntegration() - { - unset($this->integration); - } - - /** - * Integration object to create. - * - * Generated from protobuf field .api.GcpPubSubIntegration integration = 1; - * @param \Chirpstack\Api\GcpPubSubIntegration $var - * @return $this - */ - public function setIntegration($var) - { - GPBUtil::checkMessage($var, \Chirpstack\Api\GcpPubSubIntegration::class); - $this->integration = $var; - - return $this; - } - -} - diff --git a/api/php/generated/Chirpstack/Api/CreateHttpIntegrationRequest.php b/api/php/generated/Chirpstack/Api/CreateHttpIntegrationRequest.php deleted file mode 100644 index 62e379bc..00000000 --- a/api/php/generated/Chirpstack/Api/CreateHttpIntegrationRequest.php +++ /dev/null @@ -1,75 +0,0 @@ -api.CreateHttpIntegrationRequest - */ -class CreateHttpIntegrationRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Integration object to create. - * - * Generated from protobuf field .api.HttpIntegration integration = 1; - */ - protected $integration = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Chirpstack\Api\HttpIntegration $integration - * Integration object to create. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Chirpstack\Api\Application::initOnce(); - parent::__construct($data); - } - - /** - * Integration object to create. - * - * Generated from protobuf field .api.HttpIntegration integration = 1; - * @return \Chirpstack\Api\HttpIntegration|null - */ - public function getIntegration() - { - return $this->integration; - } - - public function hasIntegration() - { - return isset($this->integration); - } - - public function clearIntegration() - { - unset($this->integration); - } - - /** - * Integration object to create. - * - * Generated from protobuf field .api.HttpIntegration integration = 1; - * @param \Chirpstack\Api\HttpIntegration $var - * @return $this - */ - public function setIntegration($var) - { - GPBUtil::checkMessage($var, \Chirpstack\Api\HttpIntegration::class); - $this->integration = $var; - - return $this; - } - -} - diff --git a/api/php/generated/Chirpstack/Api/CreateIftttIntegrationRequest.php b/api/php/generated/Chirpstack/Api/CreateIftttIntegrationRequest.php deleted file mode 100644 index 1c483e6b..00000000 --- a/api/php/generated/Chirpstack/Api/CreateIftttIntegrationRequest.php +++ /dev/null @@ -1,75 +0,0 @@ -api.CreateIftttIntegrationRequest - */ -class CreateIftttIntegrationRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Integration object. - * - * Generated from protobuf field .api.IftttIntegration integration = 1; - */ - protected $integration = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Chirpstack\Api\IftttIntegration $integration - * Integration object. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Chirpstack\Api\Application::initOnce(); - parent::__construct($data); - } - - /** - * Integration object. - * - * Generated from protobuf field .api.IftttIntegration integration = 1; - * @return \Chirpstack\Api\IftttIntegration|null - */ - public function getIntegration() - { - return $this->integration; - } - - public function hasIntegration() - { - return isset($this->integration); - } - - public function clearIntegration() - { - unset($this->integration); - } - - /** - * Integration object. - * - * Generated from protobuf field .api.IftttIntegration integration = 1; - * @param \Chirpstack\Api\IftttIntegration $var - * @return $this - */ - public function setIntegration($var) - { - GPBUtil::checkMessage($var, \Chirpstack\Api\IftttIntegration::class); - $this->integration = $var; - - return $this; - } - -} - diff --git a/api/php/generated/Chirpstack/Api/CreateInfluxDbIntegrationRequest.php b/api/php/generated/Chirpstack/Api/CreateInfluxDbIntegrationRequest.php deleted file mode 100644 index 03dd40a2..00000000 --- a/api/php/generated/Chirpstack/Api/CreateInfluxDbIntegrationRequest.php +++ /dev/null @@ -1,75 +0,0 @@ -api.CreateInfluxDbIntegrationRequest - */ -class CreateInfluxDbIntegrationRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Integration object to create. - * - * Generated from protobuf field .api.InfluxDbIntegration integration = 1; - */ - protected $integration = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Chirpstack\Api\InfluxDbIntegration $integration - * Integration object to create. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Chirpstack\Api\Application::initOnce(); - parent::__construct($data); - } - - /** - * Integration object to create. - * - * Generated from protobuf field .api.InfluxDbIntegration integration = 1; - * @return \Chirpstack\Api\InfluxDbIntegration|null - */ - public function getIntegration() - { - return $this->integration; - } - - public function hasIntegration() - { - return isset($this->integration); - } - - public function clearIntegration() - { - unset($this->integration); - } - - /** - * Integration object to create. - * - * Generated from protobuf field .api.InfluxDbIntegration integration = 1; - * @param \Chirpstack\Api\InfluxDbIntegration $var - * @return $this - */ - public function setIntegration($var) - { - GPBUtil::checkMessage($var, \Chirpstack\Api\InfluxDbIntegration::class); - $this->integration = $var; - - return $this; - } - -} - diff --git a/api/php/generated/Chirpstack/Api/CreateLoraCloudIntegrationRequest.php b/api/php/generated/Chirpstack/Api/CreateLoraCloudIntegrationRequest.php deleted file mode 100644 index 1a046533..00000000 --- a/api/php/generated/Chirpstack/Api/CreateLoraCloudIntegrationRequest.php +++ /dev/null @@ -1,75 +0,0 @@ -api.CreateLoraCloudIntegrationRequest - */ -class CreateLoraCloudIntegrationRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Integration object to create. - * - * Generated from protobuf field .api.LoraCloudIntegration integration = 1; - */ - protected $integration = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Chirpstack\Api\LoraCloudIntegration $integration - * Integration object to create. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Chirpstack\Api\Application::initOnce(); - parent::__construct($data); - } - - /** - * Integration object to create. - * - * Generated from protobuf field .api.LoraCloudIntegration integration = 1; - * @return \Chirpstack\Api\LoraCloudIntegration|null - */ - public function getIntegration() - { - return $this->integration; - } - - public function hasIntegration() - { - return isset($this->integration); - } - - public function clearIntegration() - { - unset($this->integration); - } - - /** - * Integration object to create. - * - * Generated from protobuf field .api.LoraCloudIntegration integration = 1; - * @param \Chirpstack\Api\LoraCloudIntegration $var - * @return $this - */ - public function setIntegration($var) - { - GPBUtil::checkMessage($var, \Chirpstack\Api\LoraCloudIntegration::class); - $this->integration = $var; - - return $this; - } - -} - diff --git a/api/php/generated/Chirpstack/Api/CreateMulticastGroupRequest.php b/api/php/generated/Chirpstack/Api/CreateMulticastGroupRequest.php deleted file mode 100644 index 2e7eff72..00000000 --- a/api/php/generated/Chirpstack/Api/CreateMulticastGroupRequest.php +++ /dev/null @@ -1,75 +0,0 @@ -api.CreateMulticastGroupRequest - */ -class CreateMulticastGroupRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Multicast group to create. - * - * Generated from protobuf field .api.MulticastGroup multicast_group = 1; - */ - protected $multicast_group = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Chirpstack\Api\MulticastGroup $multicast_group - * Multicast group to create. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Chirpstack\Api\MulticastGroup::initOnce(); - parent::__construct($data); - } - - /** - * Multicast group to create. - * - * Generated from protobuf field .api.MulticastGroup multicast_group = 1; - * @return \Chirpstack\Api\MulticastGroup|null - */ - public function getMulticastGroup() - { - return $this->multicast_group; - } - - public function hasMulticastGroup() - { - return isset($this->multicast_group); - } - - public function clearMulticastGroup() - { - unset($this->multicast_group); - } - - /** - * Multicast group to create. - * - * Generated from protobuf field .api.MulticastGroup multicast_group = 1; - * @param \Chirpstack\Api\MulticastGroup $var - * @return $this - */ - public function setMulticastGroup($var) - { - GPBUtil::checkMessage($var, \Chirpstack\Api\MulticastGroup::class); - $this->multicast_group = $var; - - return $this; - } - -} - diff --git a/api/php/generated/Chirpstack/Api/CreateMulticastGroupResponse.php b/api/php/generated/Chirpstack/Api/CreateMulticastGroupResponse.php deleted file mode 100644 index b669f1e7..00000000 --- a/api/php/generated/Chirpstack/Api/CreateMulticastGroupResponse.php +++ /dev/null @@ -1,65 +0,0 @@ -api.CreateMulticastGroupResponse - */ -class CreateMulticastGroupResponse extends \Google\Protobuf\Internal\Message -{ - /** - * ID of created multicast group (UUID). - * - * Generated from protobuf field string id = 1; - */ - protected $id = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $id - * ID of created multicast group (UUID). - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Chirpstack\Api\MulticastGroup::initOnce(); - parent::__construct($data); - } - - /** - * ID of created multicast group (UUID). - * - * Generated from protobuf field string id = 1; - * @return string - */ - public function getId() - { - return $this->id; - } - - /** - * ID of created multicast group (UUID). - * - * Generated from protobuf field string id = 1; - * @param string $var - * @return $this - */ - public function setId($var) - { - GPBUtil::checkString($var, True); - $this->id = $var; - - return $this; - } - -} - diff --git a/api/php/generated/Chirpstack/Api/CreateMyDevicesIntegrationRequest.php b/api/php/generated/Chirpstack/Api/CreateMyDevicesIntegrationRequest.php deleted file mode 100644 index 70ca9716..00000000 --- a/api/php/generated/Chirpstack/Api/CreateMyDevicesIntegrationRequest.php +++ /dev/null @@ -1,75 +0,0 @@ -api.CreateMyDevicesIntegrationRequest - */ -class CreateMyDevicesIntegrationRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Integration object to create. - * - * Generated from protobuf field .api.MyDevicesIntegration integration = 1; - */ - protected $integration = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Chirpstack\Api\MyDevicesIntegration $integration - * Integration object to create. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Chirpstack\Api\Application::initOnce(); - parent::__construct($data); - } - - /** - * Integration object to create. - * - * Generated from protobuf field .api.MyDevicesIntegration integration = 1; - * @return \Chirpstack\Api\MyDevicesIntegration|null - */ - public function getIntegration() - { - return $this->integration; - } - - public function hasIntegration() - { - return isset($this->integration); - } - - public function clearIntegration() - { - unset($this->integration); - } - - /** - * Integration object to create. - * - * Generated from protobuf field .api.MyDevicesIntegration integration = 1; - * @param \Chirpstack\Api\MyDevicesIntegration $var - * @return $this - */ - public function setIntegration($var) - { - GPBUtil::checkMessage($var, \Chirpstack\Api\MyDevicesIntegration::class); - $this->integration = $var; - - return $this; - } - -} - diff --git a/api/php/generated/Chirpstack/Api/CreatePilotThingsIntegrationRequest.php b/api/php/generated/Chirpstack/Api/CreatePilotThingsIntegrationRequest.php deleted file mode 100644 index 68f52a6a..00000000 --- a/api/php/generated/Chirpstack/Api/CreatePilotThingsIntegrationRequest.php +++ /dev/null @@ -1,75 +0,0 @@ -api.CreatePilotThingsIntegrationRequest - */ -class CreatePilotThingsIntegrationRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Integration object to create. - * - * Generated from protobuf field .api.PilotThingsIntegration integration = 1; - */ - protected $integration = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Chirpstack\Api\PilotThingsIntegration $integration - * Integration object to create. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Chirpstack\Api\Application::initOnce(); - parent::__construct($data); - } - - /** - * Integration object to create. - * - * Generated from protobuf field .api.PilotThingsIntegration integration = 1; - * @return \Chirpstack\Api\PilotThingsIntegration|null - */ - public function getIntegration() - { - return $this->integration; - } - - public function hasIntegration() - { - return isset($this->integration); - } - - public function clearIntegration() - { - unset($this->integration); - } - - /** - * Integration object to create. - * - * Generated from protobuf field .api.PilotThingsIntegration integration = 1; - * @param \Chirpstack\Api\PilotThingsIntegration $var - * @return $this - */ - public function setIntegration($var) - { - GPBUtil::checkMessage($var, \Chirpstack\Api\PilotThingsIntegration::class); - $this->integration = $var; - - return $this; - } - -} - diff --git a/api/php/generated/Chirpstack/Api/CreateTenantRequest.php b/api/php/generated/Chirpstack/Api/CreateTenantRequest.php deleted file mode 100644 index 95825d40..00000000 --- a/api/php/generated/Chirpstack/Api/CreateTenantRequest.php +++ /dev/null @@ -1,75 +0,0 @@ -api.CreateTenantRequest - */ -class CreateTenantRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Tenant object to create. - * - * Generated from protobuf field .api.Tenant tenant = 1; - */ - protected $tenant = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Chirpstack\Api\Tenant $tenant - * Tenant object to create. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Chirpstack\Api\Tenant::initOnce(); - parent::__construct($data); - } - - /** - * Tenant object to create. - * - * Generated from protobuf field .api.Tenant tenant = 1; - * @return \Chirpstack\Api\Tenant|null - */ - public function getTenant() - { - return $this->tenant; - } - - public function hasTenant() - { - return isset($this->tenant); - } - - public function clearTenant() - { - unset($this->tenant); - } - - /** - * Tenant object to create. - * - * Generated from protobuf field .api.Tenant tenant = 1; - * @param \Chirpstack\Api\Tenant $var - * @return $this - */ - public function setTenant($var) - { - GPBUtil::checkMessage($var, \Chirpstack\Api\Tenant::class); - $this->tenant = $var; - - return $this; - } - -} - diff --git a/api/php/generated/Chirpstack/Api/CreateTenantResponse.php b/api/php/generated/Chirpstack/Api/CreateTenantResponse.php deleted file mode 100644 index 42f86e6c..00000000 --- a/api/php/generated/Chirpstack/Api/CreateTenantResponse.php +++ /dev/null @@ -1,65 +0,0 @@ -api.CreateTenantResponse - */ -class CreateTenantResponse extends \Google\Protobuf\Internal\Message -{ - /** - * Tenant ID. - * - * Generated from protobuf field string id = 1; - */ - protected $id = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $id - * Tenant ID. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Chirpstack\Api\Tenant::initOnce(); - parent::__construct($data); - } - - /** - * Tenant ID. - * - * Generated from protobuf field string id = 1; - * @return string - */ - public function getId() - { - return $this->id; - } - - /** - * Tenant ID. - * - * Generated from protobuf field string id = 1; - * @param string $var - * @return $this - */ - public function setId($var) - { - GPBUtil::checkString($var, True); - $this->id = $var; - - return $this; - } - -} - diff --git a/api/php/generated/Chirpstack/Api/CreateThingsBoardIntegrationRequest.php b/api/php/generated/Chirpstack/Api/CreateThingsBoardIntegrationRequest.php deleted file mode 100644 index 9aa53632..00000000 --- a/api/php/generated/Chirpstack/Api/CreateThingsBoardIntegrationRequest.php +++ /dev/null @@ -1,75 +0,0 @@ -api.CreateThingsBoardIntegrationRequest - */ -class CreateThingsBoardIntegrationRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Integration object to create. - * - * Generated from protobuf field .api.ThingsBoardIntegration integration = 1; - */ - protected $integration = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Chirpstack\Api\ThingsBoardIntegration $integration - * Integration object to create. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Chirpstack\Api\Application::initOnce(); - parent::__construct($data); - } - - /** - * Integration object to create. - * - * Generated from protobuf field .api.ThingsBoardIntegration integration = 1; - * @return \Chirpstack\Api\ThingsBoardIntegration|null - */ - public function getIntegration() - { - return $this->integration; - } - - public function hasIntegration() - { - return isset($this->integration); - } - - public function clearIntegration() - { - unset($this->integration); - } - - /** - * Integration object to create. - * - * Generated from protobuf field .api.ThingsBoardIntegration integration = 1; - * @param \Chirpstack\Api\ThingsBoardIntegration $var - * @return $this - */ - public function setIntegration($var) - { - GPBUtil::checkMessage($var, \Chirpstack\Api\ThingsBoardIntegration::class); - $this->integration = $var; - - return $this; - } - -} - diff --git a/api/php/generated/Chirpstack/Api/CreateUserRequest.php b/api/php/generated/Chirpstack/Api/CreateUserRequest.php deleted file mode 100644 index 3a281315..00000000 --- a/api/php/generated/Chirpstack/Api/CreateUserRequest.php +++ /dev/null @@ -1,143 +0,0 @@ -api.CreateUserRequest - */ -class CreateUserRequest extends \Google\Protobuf\Internal\Message -{ - /** - * User object to create. - * - * Generated from protobuf field .api.User user = 1; - */ - protected $user = null; - /** - * Password to set for the user. - * - * Generated from protobuf field string password = 2; - */ - protected $password = ''; - /** - * Add the user to the following tenants. - * - * Generated from protobuf field repeated .api.UserTenant tenants = 3; - */ - private $tenants; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Chirpstack\Api\User $user - * User object to create. - * @type string $password - * Password to set for the user. - * @type array<\Chirpstack\Api\UserTenant>|\Google\Protobuf\Internal\RepeatedField $tenants - * Add the user to the following tenants. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Chirpstack\Api\User::initOnce(); - parent::__construct($data); - } - - /** - * User object to create. - * - * Generated from protobuf field .api.User user = 1; - * @return \Chirpstack\Api\User|null - */ - public function getUser() - { - return $this->user; - } - - public function hasUser() - { - return isset($this->user); - } - - public function clearUser() - { - unset($this->user); - } - - /** - * User object to create. - * - * Generated from protobuf field .api.User user = 1; - * @param \Chirpstack\Api\User $var - * @return $this - */ - public function setUser($var) - { - GPBUtil::checkMessage($var, \Chirpstack\Api\User::class); - $this->user = $var; - - return $this; - } - - /** - * Password to set for the user. - * - * Generated from protobuf field string password = 2; - * @return string - */ - public function getPassword() - { - return $this->password; - } - - /** - * Password to set for the user. - * - * Generated from protobuf field string password = 2; - * @param string $var - * @return $this - */ - public function setPassword($var) - { - GPBUtil::checkString($var, True); - $this->password = $var; - - return $this; - } - - /** - * Add the user to the following tenants. - * - * Generated from protobuf field repeated .api.UserTenant tenants = 3; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getTenants() - { - return $this->tenants; - } - - /** - * Add the user to the following tenants. - * - * Generated from protobuf field repeated .api.UserTenant tenants = 3; - * @param array<\Chirpstack\Api\UserTenant>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setTenants($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Chirpstack\Api\UserTenant::class); - $this->tenants = $arr; - - return $this; - } - -} - diff --git a/api/php/generated/Chirpstack/Api/CreateUserResponse.php b/api/php/generated/Chirpstack/Api/CreateUserResponse.php deleted file mode 100644 index ef2f04f3..00000000 --- a/api/php/generated/Chirpstack/Api/CreateUserResponse.php +++ /dev/null @@ -1,65 +0,0 @@ -api.CreateUserResponse - */ -class CreateUserResponse extends \Google\Protobuf\Internal\Message -{ - /** - * User ID. - * - * Generated from protobuf field string id = 1; - */ - protected $id = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $id - * User ID. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Chirpstack\Api\User::initOnce(); - parent::__construct($data); - } - - /** - * User ID. - * - * Generated from protobuf field string id = 1; - * @return string - */ - public function getId() - { - return $this->id; - } - - /** - * User ID. - * - * Generated from protobuf field string id = 1; - * @param string $var - * @return $this - */ - public function setId($var) - { - GPBUtil::checkString($var, True); - $this->id = $var; - - return $this; - } - -} - diff --git a/api/php/generated/Chirpstack/Api/DeactivateDeviceRequest.php b/api/php/generated/Chirpstack/Api/DeactivateDeviceRequest.php deleted file mode 100644 index 1032040d..00000000 --- a/api/php/generated/Chirpstack/Api/DeactivateDeviceRequest.php +++ /dev/null @@ -1,65 +0,0 @@ -api.DeactivateDeviceRequest - */ -class DeactivateDeviceRequest extends \Google\Protobuf\Internal\Message -{ - /** - * DevEUI (EUI64). - * - * Generated from protobuf field string dev_eui = 1; - */ - protected $dev_eui = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $dev_eui - * DevEUI (EUI64). - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Chirpstack\Api\Device::initOnce(); - parent::__construct($data); - } - - /** - * DevEUI (EUI64). - * - * Generated from protobuf field string dev_eui = 1; - * @return string - */ - public function getDevEui() - { - return $this->dev_eui; - } - - /** - * DevEUI (EUI64). - * - * Generated from protobuf field string dev_eui = 1; - * @param string $var - * @return $this - */ - public function setDevEui($var) - { - GPBUtil::checkString($var, True); - $this->dev_eui = $var; - - return $this; - } - -} - diff --git a/api/php/generated/Chirpstack/Api/DeleteApiKeyRequest.php b/api/php/generated/Chirpstack/Api/DeleteApiKeyRequest.php deleted file mode 100644 index d6ad0458..00000000 --- a/api/php/generated/Chirpstack/Api/DeleteApiKeyRequest.php +++ /dev/null @@ -1,65 +0,0 @@ -api.DeleteApiKeyRequest - */ -class DeleteApiKeyRequest extends \Google\Protobuf\Internal\Message -{ - /** - * API key ID. - * - * Generated from protobuf field string id = 1; - */ - protected $id = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $id - * API key ID. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Chirpstack\Api\Internal::initOnce(); - parent::__construct($data); - } - - /** - * API key ID. - * - * Generated from protobuf field string id = 1; - * @return string - */ - public function getId() - { - return $this->id; - } - - /** - * API key ID. - * - * Generated from protobuf field string id = 1; - * @param string $var - * @return $this - */ - public function setId($var) - { - GPBUtil::checkString($var, True); - $this->id = $var; - - return $this; - } - -} - diff --git a/api/php/generated/Chirpstack/Api/DeleteApplicationRequest.php b/api/php/generated/Chirpstack/Api/DeleteApplicationRequest.php deleted file mode 100644 index 50b64d68..00000000 --- a/api/php/generated/Chirpstack/Api/DeleteApplicationRequest.php +++ /dev/null @@ -1,65 +0,0 @@ -api.DeleteApplicationRequest - */ -class DeleteApplicationRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Application ID (UUID). - * - * Generated from protobuf field string id = 1; - */ - protected $id = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $id - * Application ID (UUID). - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Chirpstack\Api\Application::initOnce(); - parent::__construct($data); - } - - /** - * Application ID (UUID). - * - * Generated from protobuf field string id = 1; - * @return string - */ - public function getId() - { - return $this->id; - } - - /** - * Application ID (UUID). - * - * Generated from protobuf field string id = 1; - * @param string $var - * @return $this - */ - public function setId($var) - { - GPBUtil::checkString($var, True); - $this->id = $var; - - return $this; - } - -} - diff --git a/api/php/generated/Chirpstack/Api/DeleteAwsSnsIntegrationRequest.php b/api/php/generated/Chirpstack/Api/DeleteAwsSnsIntegrationRequest.php deleted file mode 100644 index 68e2a436..00000000 --- a/api/php/generated/Chirpstack/Api/DeleteAwsSnsIntegrationRequest.php +++ /dev/null @@ -1,65 +0,0 @@ -api.DeleteAwsSnsIntegrationRequest - */ -class DeleteAwsSnsIntegrationRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Application ID (UUID). - * - * Generated from protobuf field string application_id = 1; - */ - protected $application_id = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $application_id - * Application ID (UUID). - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Chirpstack\Api\Application::initOnce(); - parent::__construct($data); - } - - /** - * Application ID (UUID). - * - * Generated from protobuf field string application_id = 1; - * @return string - */ - public function getApplicationId() - { - return $this->application_id; - } - - /** - * Application ID (UUID). - * - * Generated from protobuf field string application_id = 1; - * @param string $var - * @return $this - */ - public function setApplicationId($var) - { - GPBUtil::checkString($var, True); - $this->application_id = $var; - - return $this; - } - -} - diff --git a/api/php/generated/Chirpstack/Api/DeleteAzureServiceBusIntegrationRequest.php b/api/php/generated/Chirpstack/Api/DeleteAzureServiceBusIntegrationRequest.php deleted file mode 100644 index 5b631805..00000000 --- a/api/php/generated/Chirpstack/Api/DeleteAzureServiceBusIntegrationRequest.php +++ /dev/null @@ -1,65 +0,0 @@ -api.DeleteAzureServiceBusIntegrationRequest - */ -class DeleteAzureServiceBusIntegrationRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Application ID (UUID). - * - * Generated from protobuf field string application_id = 1; - */ - protected $application_id = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $application_id - * Application ID (UUID). - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Chirpstack\Api\Application::initOnce(); - parent::__construct($data); - } - - /** - * Application ID (UUID). - * - * Generated from protobuf field string application_id = 1; - * @return string - */ - public function getApplicationId() - { - return $this->application_id; - } - - /** - * Application ID (UUID). - * - * Generated from protobuf field string application_id = 1; - * @param string $var - * @return $this - */ - public function setApplicationId($var) - { - GPBUtil::checkString($var, True); - $this->application_id = $var; - - return $this; - } - -} - diff --git a/api/php/generated/Chirpstack/Api/DeleteDeviceKeysRequest.php b/api/php/generated/Chirpstack/Api/DeleteDeviceKeysRequest.php deleted file mode 100644 index f49b7740..00000000 --- a/api/php/generated/Chirpstack/Api/DeleteDeviceKeysRequest.php +++ /dev/null @@ -1,65 +0,0 @@ -api.DeleteDeviceKeysRequest - */ -class DeleteDeviceKeysRequest extends \Google\Protobuf\Internal\Message -{ - /** - * DevEUI (EUI64). - * - * Generated from protobuf field string dev_eui = 1; - */ - protected $dev_eui = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $dev_eui - * DevEUI (EUI64). - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Chirpstack\Api\Device::initOnce(); - parent::__construct($data); - } - - /** - * DevEUI (EUI64). - * - * Generated from protobuf field string dev_eui = 1; - * @return string - */ - public function getDevEui() - { - return $this->dev_eui; - } - - /** - * DevEUI (EUI64). - * - * Generated from protobuf field string dev_eui = 1; - * @param string $var - * @return $this - */ - public function setDevEui($var) - { - GPBUtil::checkString($var, True); - $this->dev_eui = $var; - - return $this; - } - -} - diff --git a/api/php/generated/Chirpstack/Api/DeleteDeviceProfileRequest.php b/api/php/generated/Chirpstack/Api/DeleteDeviceProfileRequest.php deleted file mode 100644 index 6d7458eb..00000000 --- a/api/php/generated/Chirpstack/Api/DeleteDeviceProfileRequest.php +++ /dev/null @@ -1,65 +0,0 @@ -api.DeleteDeviceProfileRequest - */ -class DeleteDeviceProfileRequest extends \Google\Protobuf\Internal\Message -{ - /** - * ID (UUID). - * - * Generated from protobuf field string id = 1; - */ - protected $id = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $id - * ID (UUID). - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Chirpstack\Api\DeviceProfile::initOnce(); - parent::__construct($data); - } - - /** - * ID (UUID). - * - * Generated from protobuf field string id = 1; - * @return string - */ - public function getId() - { - return $this->id; - } - - /** - * ID (UUID). - * - * Generated from protobuf field string id = 1; - * @param string $var - * @return $this - */ - public function setId($var) - { - GPBUtil::checkString($var, True); - $this->id = $var; - - return $this; - } - -} - diff --git a/api/php/generated/Chirpstack/Api/DeleteDeviceProfileTemplateRequest.php b/api/php/generated/Chirpstack/Api/DeleteDeviceProfileTemplateRequest.php deleted file mode 100644 index 33eb39a7..00000000 --- a/api/php/generated/Chirpstack/Api/DeleteDeviceProfileTemplateRequest.php +++ /dev/null @@ -1,65 +0,0 @@ -api.DeleteDeviceProfileTemplateRequest - */ -class DeleteDeviceProfileTemplateRequest extends \Google\Protobuf\Internal\Message -{ - /** - * ID. - * - * Generated from protobuf field string id = 1; - */ - protected $id = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $id - * ID. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Chirpstack\Api\DeviceProfileTemplate::initOnce(); - parent::__construct($data); - } - - /** - * ID. - * - * Generated from protobuf field string id = 1; - * @return string - */ - public function getId() - { - return $this->id; - } - - /** - * ID. - * - * Generated from protobuf field string id = 1; - * @param string $var - * @return $this - */ - public function setId($var) - { - GPBUtil::checkString($var, True); - $this->id = $var; - - return $this; - } - -} - diff --git a/api/php/generated/Chirpstack/Api/DeleteDeviceRequest.php b/api/php/generated/Chirpstack/Api/DeleteDeviceRequest.php deleted file mode 100644 index 713699d8..00000000 --- a/api/php/generated/Chirpstack/Api/DeleteDeviceRequest.php +++ /dev/null @@ -1,65 +0,0 @@ -api.DeleteDeviceRequest - */ -class DeleteDeviceRequest extends \Google\Protobuf\Internal\Message -{ - /** - * DevEUI (EUI64). - * - * Generated from protobuf field string dev_eui = 1; - */ - protected $dev_eui = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $dev_eui - * DevEUI (EUI64). - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Chirpstack\Api\Device::initOnce(); - parent::__construct($data); - } - - /** - * DevEUI (EUI64). - * - * Generated from protobuf field string dev_eui = 1; - * @return string - */ - public function getDevEui() - { - return $this->dev_eui; - } - - /** - * DevEUI (EUI64). - * - * Generated from protobuf field string dev_eui = 1; - * @param string $var - * @return $this - */ - public function setDevEui($var) - { - GPBUtil::checkString($var, True); - $this->dev_eui = $var; - - return $this; - } - -} - diff --git a/api/php/generated/Chirpstack/Api/DeleteGatewayRequest.php b/api/php/generated/Chirpstack/Api/DeleteGatewayRequest.php deleted file mode 100644 index a2776829..00000000 --- a/api/php/generated/Chirpstack/Api/DeleteGatewayRequest.php +++ /dev/null @@ -1,65 +0,0 @@ -api.DeleteGatewayRequest - */ -class DeleteGatewayRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Gateway ID (EUI64). - * - * Generated from protobuf field string gateway_id = 1; - */ - protected $gateway_id = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $gateway_id - * Gateway ID (EUI64). - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Chirpstack\Api\Gateway::initOnce(); - parent::__construct($data); - } - - /** - * Gateway ID (EUI64). - * - * Generated from protobuf field string gateway_id = 1; - * @return string - */ - public function getGatewayId() - { - return $this->gateway_id; - } - - /** - * Gateway ID (EUI64). - * - * Generated from protobuf field string gateway_id = 1; - * @param string $var - * @return $this - */ - public function setGatewayId($var) - { - GPBUtil::checkString($var, True); - $this->gateway_id = $var; - - return $this; - } - -} - diff --git a/api/php/generated/Chirpstack/Api/DeleteGcpPubSubIntegrationRequest.php b/api/php/generated/Chirpstack/Api/DeleteGcpPubSubIntegrationRequest.php deleted file mode 100644 index 79a125e0..00000000 --- a/api/php/generated/Chirpstack/Api/DeleteGcpPubSubIntegrationRequest.php +++ /dev/null @@ -1,65 +0,0 @@ -api.DeleteGcpPubSubIntegrationRequest - */ -class DeleteGcpPubSubIntegrationRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Application ID (UUID). - * - * Generated from protobuf field string application_id = 1; - */ - protected $application_id = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $application_id - * Application ID (UUID). - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Chirpstack\Api\Application::initOnce(); - parent::__construct($data); - } - - /** - * Application ID (UUID). - * - * Generated from protobuf field string application_id = 1; - * @return string - */ - public function getApplicationId() - { - return $this->application_id; - } - - /** - * Application ID (UUID). - * - * Generated from protobuf field string application_id = 1; - * @param string $var - * @return $this - */ - public function setApplicationId($var) - { - GPBUtil::checkString($var, True); - $this->application_id = $var; - - return $this; - } - -} - diff --git a/api/php/generated/Chirpstack/Api/DeleteHttpIntegrationRequest.php b/api/php/generated/Chirpstack/Api/DeleteHttpIntegrationRequest.php deleted file mode 100644 index 0a741f5d..00000000 --- a/api/php/generated/Chirpstack/Api/DeleteHttpIntegrationRequest.php +++ /dev/null @@ -1,65 +0,0 @@ -api.DeleteHttpIntegrationRequest - */ -class DeleteHttpIntegrationRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Application ID (UUID). - * - * Generated from protobuf field string application_id = 1; - */ - protected $application_id = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $application_id - * Application ID (UUID). - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Chirpstack\Api\Application::initOnce(); - parent::__construct($data); - } - - /** - * Application ID (UUID). - * - * Generated from protobuf field string application_id = 1; - * @return string - */ - public function getApplicationId() - { - return $this->application_id; - } - - /** - * Application ID (UUID). - * - * Generated from protobuf field string application_id = 1; - * @param string $var - * @return $this - */ - public function setApplicationId($var) - { - GPBUtil::checkString($var, True); - $this->application_id = $var; - - return $this; - } - -} - diff --git a/api/php/generated/Chirpstack/Api/DeleteIftttIntegrationRequest.php b/api/php/generated/Chirpstack/Api/DeleteIftttIntegrationRequest.php deleted file mode 100644 index 02256dac..00000000 --- a/api/php/generated/Chirpstack/Api/DeleteIftttIntegrationRequest.php +++ /dev/null @@ -1,65 +0,0 @@ -api.DeleteIftttIntegrationRequest - */ -class DeleteIftttIntegrationRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Application ID (UUID). - * - * Generated from protobuf field string application_id = 1; - */ - protected $application_id = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $application_id - * Application ID (UUID). - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Chirpstack\Api\Application::initOnce(); - parent::__construct($data); - } - - /** - * Application ID (UUID). - * - * Generated from protobuf field string application_id = 1; - * @return string - */ - public function getApplicationId() - { - return $this->application_id; - } - - /** - * Application ID (UUID). - * - * Generated from protobuf field string application_id = 1; - * @param string $var - * @return $this - */ - public function setApplicationId($var) - { - GPBUtil::checkString($var, True); - $this->application_id = $var; - - return $this; - } - -} - diff --git a/api/php/generated/Chirpstack/Api/DeleteInfluxDbIntegrationRequest.php b/api/php/generated/Chirpstack/Api/DeleteInfluxDbIntegrationRequest.php deleted file mode 100644 index c8bf6df0..00000000 --- a/api/php/generated/Chirpstack/Api/DeleteInfluxDbIntegrationRequest.php +++ /dev/null @@ -1,65 +0,0 @@ -api.DeleteInfluxDbIntegrationRequest - */ -class DeleteInfluxDbIntegrationRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Application ID (UUID). - * - * Generated from protobuf field string application_id = 1; - */ - protected $application_id = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $application_id - * Application ID (UUID). - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Chirpstack\Api\Application::initOnce(); - parent::__construct($data); - } - - /** - * Application ID (UUID). - * - * Generated from protobuf field string application_id = 1; - * @return string - */ - public function getApplicationId() - { - return $this->application_id; - } - - /** - * Application ID (UUID). - * - * Generated from protobuf field string application_id = 1; - * @param string $var - * @return $this - */ - public function setApplicationId($var) - { - GPBUtil::checkString($var, True); - $this->application_id = $var; - - return $this; - } - -} - diff --git a/api/php/generated/Chirpstack/Api/DeleteLoraCloudIntegrationRequest.php b/api/php/generated/Chirpstack/Api/DeleteLoraCloudIntegrationRequest.php deleted file mode 100644 index 4063952c..00000000 --- a/api/php/generated/Chirpstack/Api/DeleteLoraCloudIntegrationRequest.php +++ /dev/null @@ -1,65 +0,0 @@ -api.DeleteLoraCloudIntegrationRequest - */ -class DeleteLoraCloudIntegrationRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Application ID (UUID). - * - * Generated from protobuf field string application_id = 1; - */ - protected $application_id = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $application_id - * Application ID (UUID). - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Chirpstack\Api\Application::initOnce(); - parent::__construct($data); - } - - /** - * Application ID (UUID). - * - * Generated from protobuf field string application_id = 1; - * @return string - */ - public function getApplicationId() - { - return $this->application_id; - } - - /** - * Application ID (UUID). - * - * Generated from protobuf field string application_id = 1; - * @param string $var - * @return $this - */ - public function setApplicationId($var) - { - GPBUtil::checkString($var, True); - $this->application_id = $var; - - return $this; - } - -} - diff --git a/api/php/generated/Chirpstack/Api/DeleteMulticastGroupRequest.php b/api/php/generated/Chirpstack/Api/DeleteMulticastGroupRequest.php deleted file mode 100644 index 0d218336..00000000 --- a/api/php/generated/Chirpstack/Api/DeleteMulticastGroupRequest.php +++ /dev/null @@ -1,65 +0,0 @@ -api.DeleteMulticastGroupRequest - */ -class DeleteMulticastGroupRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Multicast group iD. - * - * Generated from protobuf field string id = 1; - */ - protected $id = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $id - * Multicast group iD. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Chirpstack\Api\MulticastGroup::initOnce(); - parent::__construct($data); - } - - /** - * Multicast group iD. - * - * Generated from protobuf field string id = 1; - * @return string - */ - public function getId() - { - return $this->id; - } - - /** - * Multicast group iD. - * - * Generated from protobuf field string id = 1; - * @param string $var - * @return $this - */ - public function setId($var) - { - GPBUtil::checkString($var, True); - $this->id = $var; - - return $this; - } - -} - diff --git a/api/php/generated/Chirpstack/Api/DeleteMyDevicesIntegrationRequest.php b/api/php/generated/Chirpstack/Api/DeleteMyDevicesIntegrationRequest.php deleted file mode 100644 index faf1f6d2..00000000 --- a/api/php/generated/Chirpstack/Api/DeleteMyDevicesIntegrationRequest.php +++ /dev/null @@ -1,65 +0,0 @@ -api.DeleteMyDevicesIntegrationRequest - */ -class DeleteMyDevicesIntegrationRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Application ID (UUID). - * - * Generated from protobuf field string application_id = 1; - */ - protected $application_id = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $application_id - * Application ID (UUID). - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Chirpstack\Api\Application::initOnce(); - parent::__construct($data); - } - - /** - * Application ID (UUID). - * - * Generated from protobuf field string application_id = 1; - * @return string - */ - public function getApplicationId() - { - return $this->application_id; - } - - /** - * Application ID (UUID). - * - * Generated from protobuf field string application_id = 1; - * @param string $var - * @return $this - */ - public function setApplicationId($var) - { - GPBUtil::checkString($var, True); - $this->application_id = $var; - - return $this; - } - -} - diff --git a/api/php/generated/Chirpstack/Api/DeletePilotThingsIntegrationRequest.php b/api/php/generated/Chirpstack/Api/DeletePilotThingsIntegrationRequest.php deleted file mode 100644 index 1931c4d8..00000000 --- a/api/php/generated/Chirpstack/Api/DeletePilotThingsIntegrationRequest.php +++ /dev/null @@ -1,65 +0,0 @@ -api.DeletePilotThingsIntegrationRequest - */ -class DeletePilotThingsIntegrationRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Application ID (UUID). - * - * Generated from protobuf field string application_id = 1; - */ - protected $application_id = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $application_id - * Application ID (UUID). - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Chirpstack\Api\Application::initOnce(); - parent::__construct($data); - } - - /** - * Application ID (UUID). - * - * Generated from protobuf field string application_id = 1; - * @return string - */ - public function getApplicationId() - { - return $this->application_id; - } - - /** - * Application ID (UUID). - * - * Generated from protobuf field string application_id = 1; - * @param string $var - * @return $this - */ - public function setApplicationId($var) - { - GPBUtil::checkString($var, True); - $this->application_id = $var; - - return $this; - } - -} - diff --git a/api/php/generated/Chirpstack/Api/DeleteRelayGatewayRequest.php b/api/php/generated/Chirpstack/Api/DeleteRelayGatewayRequest.php deleted file mode 100644 index 47b282dc..00000000 --- a/api/php/generated/Chirpstack/Api/DeleteRelayGatewayRequest.php +++ /dev/null @@ -1,99 +0,0 @@ -api.DeleteRelayGatewayRequest - */ -class DeleteRelayGatewayRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Tenant ID. - * - * Generated from protobuf field string tenant_id = 1; - */ - protected $tenant_id = ''; - /** - * Relay ID (4 byte HEX). - * - * Generated from protobuf field string relay_id = 2; - */ - protected $relay_id = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $tenant_id - * Tenant ID. - * @type string $relay_id - * Relay ID (4 byte HEX). - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Chirpstack\Api\Gateway::initOnce(); - parent::__construct($data); - } - - /** - * Tenant ID. - * - * Generated from protobuf field string tenant_id = 1; - * @return string - */ - public function getTenantId() - { - return $this->tenant_id; - } - - /** - * Tenant ID. - * - * Generated from protobuf field string tenant_id = 1; - * @param string $var - * @return $this - */ - public function setTenantId($var) - { - GPBUtil::checkString($var, True); - $this->tenant_id = $var; - - return $this; - } - - /** - * Relay ID (4 byte HEX). - * - * Generated from protobuf field string relay_id = 2; - * @return string - */ - public function getRelayId() - { - return $this->relay_id; - } - - /** - * Relay ID (4 byte HEX). - * - * Generated from protobuf field string relay_id = 2; - * @param string $var - * @return $this - */ - public function setRelayId($var) - { - GPBUtil::checkString($var, True); - $this->relay_id = $var; - - return $this; - } - -} - diff --git a/api/php/generated/Chirpstack/Api/DeleteTenantRequest.php b/api/php/generated/Chirpstack/Api/DeleteTenantRequest.php deleted file mode 100644 index 8a109bff..00000000 --- a/api/php/generated/Chirpstack/Api/DeleteTenantRequest.php +++ /dev/null @@ -1,65 +0,0 @@ -api.DeleteTenantRequest - */ -class DeleteTenantRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Tenant ID. - * - * Generated from protobuf field string id = 1; - */ - protected $id = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $id - * Tenant ID. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Chirpstack\Api\Tenant::initOnce(); - parent::__construct($data); - } - - /** - * Tenant ID. - * - * Generated from protobuf field string id = 1; - * @return string - */ - public function getId() - { - return $this->id; - } - - /** - * Tenant ID. - * - * Generated from protobuf field string id = 1; - * @param string $var - * @return $this - */ - public function setId($var) - { - GPBUtil::checkString($var, True); - $this->id = $var; - - return $this; - } - -} - diff --git a/api/php/generated/Chirpstack/Api/DeleteTenantUserRequest.php b/api/php/generated/Chirpstack/Api/DeleteTenantUserRequest.php deleted file mode 100644 index a54ee366..00000000 --- a/api/php/generated/Chirpstack/Api/DeleteTenantUserRequest.php +++ /dev/null @@ -1,99 +0,0 @@ -api.DeleteTenantUserRequest - */ -class DeleteTenantUserRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Tenant ID (UUID). - * - * Generated from protobuf field string tenant_id = 1; - */ - protected $tenant_id = ''; - /** - * User ID (UUID). - * - * Generated from protobuf field string user_id = 2; - */ - protected $user_id = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $tenant_id - * Tenant ID (UUID). - * @type string $user_id - * User ID (UUID). - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Chirpstack\Api\Tenant::initOnce(); - parent::__construct($data); - } - - /** - * Tenant ID (UUID). - * - * Generated from protobuf field string tenant_id = 1; - * @return string - */ - public function getTenantId() - { - return $this->tenant_id; - } - - /** - * Tenant ID (UUID). - * - * Generated from protobuf field string tenant_id = 1; - * @param string $var - * @return $this - */ - public function setTenantId($var) - { - GPBUtil::checkString($var, True); - $this->tenant_id = $var; - - return $this; - } - - /** - * User ID (UUID). - * - * Generated from protobuf field string user_id = 2; - * @return string - */ - public function getUserId() - { - return $this->user_id; - } - - /** - * User ID (UUID). - * - * Generated from protobuf field string user_id = 2; - * @param string $var - * @return $this - */ - public function setUserId($var) - { - GPBUtil::checkString($var, True); - $this->user_id = $var; - - return $this; - } - -} - diff --git a/api/php/generated/Chirpstack/Api/DeleteThingsBoardIntegrationRequest.php b/api/php/generated/Chirpstack/Api/DeleteThingsBoardIntegrationRequest.php deleted file mode 100644 index 25d7b61c..00000000 --- a/api/php/generated/Chirpstack/Api/DeleteThingsBoardIntegrationRequest.php +++ /dev/null @@ -1,65 +0,0 @@ -api.DeleteThingsBoardIntegrationRequest - */ -class DeleteThingsBoardIntegrationRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Application ID (UUID). - * - * Generated from protobuf field string application_id = 1; - */ - protected $application_id = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $application_id - * Application ID (UUID). - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Chirpstack\Api\Application::initOnce(); - parent::__construct($data); - } - - /** - * Application ID (UUID). - * - * Generated from protobuf field string application_id = 1; - * @return string - */ - public function getApplicationId() - { - return $this->application_id; - } - - /** - * Application ID (UUID). - * - * Generated from protobuf field string application_id = 1; - * @param string $var - * @return $this - */ - public function setApplicationId($var) - { - GPBUtil::checkString($var, True); - $this->application_id = $var; - - return $this; - } - -} - diff --git a/api/php/generated/Chirpstack/Api/DeleteUserRequest.php b/api/php/generated/Chirpstack/Api/DeleteUserRequest.php deleted file mode 100644 index 1539a4ec..00000000 --- a/api/php/generated/Chirpstack/Api/DeleteUserRequest.php +++ /dev/null @@ -1,65 +0,0 @@ -api.DeleteUserRequest - */ -class DeleteUserRequest extends \Google\Protobuf\Internal\Message -{ - /** - * User ID. - * - * Generated from protobuf field string id = 1; - */ - protected $id = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $id - * User ID. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Chirpstack\Api\User::initOnce(); - parent::__construct($data); - } - - /** - * User ID. - * - * Generated from protobuf field string id = 1; - * @return string - */ - public function getId() - { - return $this->id; - } - - /** - * User ID. - * - * Generated from protobuf field string id = 1; - * @param string $var - * @return $this - */ - public function setId($var) - { - GPBUtil::checkString($var, True); - $this->id = $var; - - return $this; - } - -} - diff --git a/api/php/generated/Chirpstack/Api/Device.php b/api/php/generated/Chirpstack/Api/Device.php deleted file mode 100644 index d3b31f00..00000000 --- a/api/php/generated/Chirpstack/Api/Device.php +++ /dev/null @@ -1,411 +0,0 @@ -api.Device - */ -class Device extends \Google\Protobuf\Internal\Message -{ - /** - * DevEUI (EUI64). - * - * Generated from protobuf field string dev_eui = 1; - */ - protected $dev_eui = ''; - /** - * Name. - * - * Generated from protobuf field string name = 2; - */ - protected $name = ''; - /** - * Description. - * - * Generated from protobuf field string description = 3; - */ - protected $description = ''; - /** - * Application ID (UUID). - * - * Generated from protobuf field string application_id = 4; - */ - protected $application_id = ''; - /** - * Device-profile ID (UUID). - * - * Generated from protobuf field string device_profile_id = 5; - */ - protected $device_profile_id = ''; - /** - * Skip frame-counter checks (this is insecure, but could be helpful for - * debugging). - * - * Generated from protobuf field bool skip_fcnt_check = 6; - */ - protected $skip_fcnt_check = false; - /** - * Device is disabled. - * - * Generated from protobuf field bool is_disabled = 7; - */ - protected $is_disabled = false; - /** - * Variables (user defined). - * These variables can be used together with integrations to store tokens / - * secrets that must be configured per device. These variables are not - * exposed in the event payloads. - * - * Generated from protobuf field map variables = 8; - */ - private $variables; - /** - * Tags (user defined). - * These tags can be used to add additional information to the device. - * These tags are exposed in all the integration events. - * - * Generated from protobuf field map tags = 9; - */ - private $tags; - /** - * JoinEUI (optional, EUI64). - * This field will be automatically set / updated on OTAA. However, in some - * cases it must be pre-configured. For example to allow OTAA using a Relay. - * In this case the Relay needs to know the JoinEUI + DevEUI combinations - * of the devices for which it needs to forward uplinks. - * - * Generated from protobuf field string join_eui = 10; - */ - protected $join_eui = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $dev_eui - * DevEUI (EUI64). - * @type string $name - * Name. - * @type string $description - * Description. - * @type string $application_id - * Application ID (UUID). - * @type string $device_profile_id - * Device-profile ID (UUID). - * @type bool $skip_fcnt_check - * Skip frame-counter checks (this is insecure, but could be helpful for - * debugging). - * @type bool $is_disabled - * Device is disabled. - * @type array|\Google\Protobuf\Internal\MapField $variables - * Variables (user defined). - * These variables can be used together with integrations to store tokens / - * secrets that must be configured per device. These variables are not - * exposed in the event payloads. - * @type array|\Google\Protobuf\Internal\MapField $tags - * Tags (user defined). - * These tags can be used to add additional information to the device. - * These tags are exposed in all the integration events. - * @type string $join_eui - * JoinEUI (optional, EUI64). - * This field will be automatically set / updated on OTAA. However, in some - * cases it must be pre-configured. For example to allow OTAA using a Relay. - * In this case the Relay needs to know the JoinEUI + DevEUI combinations - * of the devices for which it needs to forward uplinks. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Chirpstack\Api\Device::initOnce(); - parent::__construct($data); - } - - /** - * DevEUI (EUI64). - * - * Generated from protobuf field string dev_eui = 1; - * @return string - */ - public function getDevEui() - { - return $this->dev_eui; - } - - /** - * DevEUI (EUI64). - * - * Generated from protobuf field string dev_eui = 1; - * @param string $var - * @return $this - */ - public function setDevEui($var) - { - GPBUtil::checkString($var, True); - $this->dev_eui = $var; - - return $this; - } - - /** - * Name. - * - * Generated from protobuf field string name = 2; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Name. - * - * Generated from protobuf field string name = 2; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Description. - * - * Generated from protobuf field string description = 3; - * @return string - */ - public function getDescription() - { - return $this->description; - } - - /** - * Description. - * - * Generated from protobuf field string description = 3; - * @param string $var - * @return $this - */ - public function setDescription($var) - { - GPBUtil::checkString($var, True); - $this->description = $var; - - return $this; - } - - /** - * Application ID (UUID). - * - * Generated from protobuf field string application_id = 4; - * @return string - */ - public function getApplicationId() - { - return $this->application_id; - } - - /** - * Application ID (UUID). - * - * Generated from protobuf field string application_id = 4; - * @param string $var - * @return $this - */ - public function setApplicationId($var) - { - GPBUtil::checkString($var, True); - $this->application_id = $var; - - return $this; - } - - /** - * Device-profile ID (UUID). - * - * Generated from protobuf field string device_profile_id = 5; - * @return string - */ - public function getDeviceProfileId() - { - return $this->device_profile_id; - } - - /** - * Device-profile ID (UUID). - * - * Generated from protobuf field string device_profile_id = 5; - * @param string $var - * @return $this - */ - public function setDeviceProfileId($var) - { - GPBUtil::checkString($var, True); - $this->device_profile_id = $var; - - return $this; - } - - /** - * Skip frame-counter checks (this is insecure, but could be helpful for - * debugging). - * - * Generated from protobuf field bool skip_fcnt_check = 6; - * @return bool - */ - public function getSkipFcntCheck() - { - return $this->skip_fcnt_check; - } - - /** - * Skip frame-counter checks (this is insecure, but could be helpful for - * debugging). - * - * Generated from protobuf field bool skip_fcnt_check = 6; - * @param bool $var - * @return $this - */ - public function setSkipFcntCheck($var) - { - GPBUtil::checkBool($var); - $this->skip_fcnt_check = $var; - - return $this; - } - - /** - * Device is disabled. - * - * Generated from protobuf field bool is_disabled = 7; - * @return bool - */ - public function getIsDisabled() - { - return $this->is_disabled; - } - - /** - * Device is disabled. - * - * Generated from protobuf field bool is_disabled = 7; - * @param bool $var - * @return $this - */ - public function setIsDisabled($var) - { - GPBUtil::checkBool($var); - $this->is_disabled = $var; - - return $this; - } - - /** - * Variables (user defined). - * These variables can be used together with integrations to store tokens / - * secrets that must be configured per device. These variables are not - * exposed in the event payloads. - * - * Generated from protobuf field map variables = 8; - * @return \Google\Protobuf\Internal\MapField - */ - public function getVariables() - { - return $this->variables; - } - - /** - * Variables (user defined). - * These variables can be used together with integrations to store tokens / - * secrets that must be configured per device. These variables are not - * exposed in the event payloads. - * - * Generated from protobuf field map variables = 8; - * @param array|\Google\Protobuf\Internal\MapField $var - * @return $this - */ - public function setVariables($var) - { - $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); - $this->variables = $arr; - - return $this; - } - - /** - * Tags (user defined). - * These tags can be used to add additional information to the device. - * These tags are exposed in all the integration events. - * - * Generated from protobuf field map tags = 9; - * @return \Google\Protobuf\Internal\MapField - */ - public function getTags() - { - return $this->tags; - } - - /** - * Tags (user defined). - * These tags can be used to add additional information to the device. - * These tags are exposed in all the integration events. - * - * Generated from protobuf field map tags = 9; - * @param array|\Google\Protobuf\Internal\MapField $var - * @return $this - */ - public function setTags($var) - { - $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); - $this->tags = $arr; - - return $this; - } - - /** - * JoinEUI (optional, EUI64). - * This field will be automatically set / updated on OTAA. However, in some - * cases it must be pre-configured. For example to allow OTAA using a Relay. - * In this case the Relay needs to know the JoinEUI + DevEUI combinations - * of the devices for which it needs to forward uplinks. - * - * Generated from protobuf field string join_eui = 10; - * @return string - */ - public function getJoinEui() - { - return $this->join_eui; - } - - /** - * JoinEUI (optional, EUI64). - * This field will be automatically set / updated on OTAA. However, in some - * cases it must be pre-configured. For example to allow OTAA using a Relay. - * In this case the Relay needs to know the JoinEUI + DevEUI combinations - * of the devices for which it needs to forward uplinks. - * - * Generated from protobuf field string join_eui = 10; - * @param string $var - * @return $this - */ - public function setJoinEui($var) - { - GPBUtil::checkString($var, True); - $this->join_eui = $var; - - return $this; - } - -} - diff --git a/api/php/generated/Chirpstack/Api/DeviceActivation.php b/api/php/generated/Chirpstack/Api/DeviceActivation.php deleted file mode 100644 index 0fbfbc31..00000000 --- a/api/php/generated/Chirpstack/Api/DeviceActivation.php +++ /dev/null @@ -1,337 +0,0 @@ -api.DeviceActivation - */ -class DeviceActivation extends \Google\Protobuf\Internal\Message -{ - /** - * Device EUI (EUI64). - * - * Generated from protobuf field string dev_eui = 1; - */ - protected $dev_eui = ''; - /** - * Device address (HEX encoded). - * - * Generated from protobuf field string dev_addr = 2; - */ - protected $dev_addr = ''; - /** - * Application session key (HEX encoded). - * - * Generated from protobuf field string app_s_key = 3; - */ - protected $app_s_key = ''; - /** - * Network session encryption key (HEX encoded). - * - * Generated from protobuf field string nwk_s_enc_key = 4; - */ - protected $nwk_s_enc_key = ''; - /** - * Serving network session integrity key (HEX encoded). - * - * Generated from protobuf field string s_nwk_s_int_key = 8; - */ - protected $s_nwk_s_int_key = ''; - /** - * Forwarding network session integrity key (HEX encoded). - * - * Generated from protobuf field string f_nwk_s_int_key = 9; - */ - protected $f_nwk_s_int_key = ''; - /** - * Uplink frame-counter. - * - * Generated from protobuf field uint32 f_cnt_up = 5; - */ - protected $f_cnt_up = 0; - /** - * Downlink network frame-counter. - * - * Generated from protobuf field uint32 n_f_cnt_down = 6; - */ - protected $n_f_cnt_down = 0; - /** - * Downlink application frame-counter. - * - * Generated from protobuf field uint32 a_f_cnt_down = 10; - */ - protected $a_f_cnt_down = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $dev_eui - * Device EUI (EUI64). - * @type string $dev_addr - * Device address (HEX encoded). - * @type string $app_s_key - * Application session key (HEX encoded). - * @type string $nwk_s_enc_key - * Network session encryption key (HEX encoded). - * @type string $s_nwk_s_int_key - * Serving network session integrity key (HEX encoded). - * @type string $f_nwk_s_int_key - * Forwarding network session integrity key (HEX encoded). - * @type int $f_cnt_up - * Uplink frame-counter. - * @type int $n_f_cnt_down - * Downlink network frame-counter. - * @type int $a_f_cnt_down - * Downlink application frame-counter. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Chirpstack\Api\Device::initOnce(); - parent::__construct($data); - } - - /** - * Device EUI (EUI64). - * - * Generated from protobuf field string dev_eui = 1; - * @return string - */ - public function getDevEui() - { - return $this->dev_eui; - } - - /** - * Device EUI (EUI64). - * - * Generated from protobuf field string dev_eui = 1; - * @param string $var - * @return $this - */ - public function setDevEui($var) - { - GPBUtil::checkString($var, True); - $this->dev_eui = $var; - - return $this; - } - - /** - * Device address (HEX encoded). - * - * Generated from protobuf field string dev_addr = 2; - * @return string - */ - public function getDevAddr() - { - return $this->dev_addr; - } - - /** - * Device address (HEX encoded). - * - * Generated from protobuf field string dev_addr = 2; - * @param string $var - * @return $this - */ - public function setDevAddr($var) - { - GPBUtil::checkString($var, True); - $this->dev_addr = $var; - - return $this; - } - - /** - * Application session key (HEX encoded). - * - * Generated from protobuf field string app_s_key = 3; - * @return string - */ - public function getAppSKey() - { - return $this->app_s_key; - } - - /** - * Application session key (HEX encoded). - * - * Generated from protobuf field string app_s_key = 3; - * @param string $var - * @return $this - */ - public function setAppSKey($var) - { - GPBUtil::checkString($var, True); - $this->app_s_key = $var; - - return $this; - } - - /** - * Network session encryption key (HEX encoded). - * - * Generated from protobuf field string nwk_s_enc_key = 4; - * @return string - */ - public function getNwkSEncKey() - { - return $this->nwk_s_enc_key; - } - - /** - * Network session encryption key (HEX encoded). - * - * Generated from protobuf field string nwk_s_enc_key = 4; - * @param string $var - * @return $this - */ - public function setNwkSEncKey($var) - { - GPBUtil::checkString($var, True); - $this->nwk_s_enc_key = $var; - - return $this; - } - - /** - * Serving network session integrity key (HEX encoded). - * - * Generated from protobuf field string s_nwk_s_int_key = 8; - * @return string - */ - public function getSNwkSIntKey() - { - return $this->s_nwk_s_int_key; - } - - /** - * Serving network session integrity key (HEX encoded). - * - * Generated from protobuf field string s_nwk_s_int_key = 8; - * @param string $var - * @return $this - */ - public function setSNwkSIntKey($var) - { - GPBUtil::checkString($var, True); - $this->s_nwk_s_int_key = $var; - - return $this; - } - - /** - * Forwarding network session integrity key (HEX encoded). - * - * Generated from protobuf field string f_nwk_s_int_key = 9; - * @return string - */ - public function getFNwkSIntKey() - { - return $this->f_nwk_s_int_key; - } - - /** - * Forwarding network session integrity key (HEX encoded). - * - * Generated from protobuf field string f_nwk_s_int_key = 9; - * @param string $var - * @return $this - */ - public function setFNwkSIntKey($var) - { - GPBUtil::checkString($var, True); - $this->f_nwk_s_int_key = $var; - - return $this; - } - - /** - * Uplink frame-counter. - * - * Generated from protobuf field uint32 f_cnt_up = 5; - * @return int - */ - public function getFCntUp() - { - return $this->f_cnt_up; - } - - /** - * Uplink frame-counter. - * - * Generated from protobuf field uint32 f_cnt_up = 5; - * @param int $var - * @return $this - */ - public function setFCntUp($var) - { - GPBUtil::checkUint32($var); - $this->f_cnt_up = $var; - - return $this; - } - - /** - * Downlink network frame-counter. - * - * Generated from protobuf field uint32 n_f_cnt_down = 6; - * @return int - */ - public function getNFCntDown() - { - return $this->n_f_cnt_down; - } - - /** - * Downlink network frame-counter. - * - * Generated from protobuf field uint32 n_f_cnt_down = 6; - * @param int $var - * @return $this - */ - public function setNFCntDown($var) - { - GPBUtil::checkUint32($var); - $this->n_f_cnt_down = $var; - - return $this; - } - - /** - * Downlink application frame-counter. - * - * Generated from protobuf field uint32 a_f_cnt_down = 10; - * @return int - */ - public function getAFCntDown() - { - return $this->a_f_cnt_down; - } - - /** - * Downlink application frame-counter. - * - * Generated from protobuf field uint32 a_f_cnt_down = 10; - * @param int $var - * @return $this - */ - public function setAFCntDown($var) - { - GPBUtil::checkUint32($var); - $this->a_f_cnt_down = $var; - - return $this; - } - -} - diff --git a/api/php/generated/Chirpstack/Api/DeviceKeys.php b/api/php/generated/Chirpstack/Api/DeviceKeys.php deleted file mode 100644 index fb47e9fc..00000000 --- a/api/php/generated/Chirpstack/Api/DeviceKeys.php +++ /dev/null @@ -1,141 +0,0 @@ -api.DeviceKeys - */ -class DeviceKeys extends \Google\Protobuf\Internal\Message -{ - /** - * DevEUI (EUI64). - * - * Generated from protobuf field string dev_eui = 1; - */ - protected $dev_eui = ''; - /** - * Network root key (128 bit). - * Note: For LoRaWAN 1.0.x, use this field for the LoRaWAN 1.0.x 'AppKey`! - * - * Generated from protobuf field string nwk_key = 2; - */ - protected $nwk_key = ''; - /** - * Application root key (128 bit). - * Note: This field only needs to be set for LoRaWAN 1.1.x devices! - * - * Generated from protobuf field string app_key = 3; - */ - protected $app_key = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $dev_eui - * DevEUI (EUI64). - * @type string $nwk_key - * Network root key (128 bit). - * Note: For LoRaWAN 1.0.x, use this field for the LoRaWAN 1.0.x 'AppKey`! - * @type string $app_key - * Application root key (128 bit). - * Note: This field only needs to be set for LoRaWAN 1.1.x devices! - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Chirpstack\Api\Device::initOnce(); - parent::__construct($data); - } - - /** - * DevEUI (EUI64). - * - * Generated from protobuf field string dev_eui = 1; - * @return string - */ - public function getDevEui() - { - return $this->dev_eui; - } - - /** - * DevEUI (EUI64). - * - * Generated from protobuf field string dev_eui = 1; - * @param string $var - * @return $this - */ - public function setDevEui($var) - { - GPBUtil::checkString($var, True); - $this->dev_eui = $var; - - return $this; - } - - /** - * Network root key (128 bit). - * Note: For LoRaWAN 1.0.x, use this field for the LoRaWAN 1.0.x 'AppKey`! - * - * Generated from protobuf field string nwk_key = 2; - * @return string - */ - public function getNwkKey() - { - return $this->nwk_key; - } - - /** - * Network root key (128 bit). - * Note: For LoRaWAN 1.0.x, use this field for the LoRaWAN 1.0.x 'AppKey`! - * - * Generated from protobuf field string nwk_key = 2; - * @param string $var - * @return $this - */ - public function setNwkKey($var) - { - GPBUtil::checkString($var, True); - $this->nwk_key = $var; - - return $this; - } - - /** - * Application root key (128 bit). - * Note: This field only needs to be set for LoRaWAN 1.1.x devices! - * - * Generated from protobuf field string app_key = 3; - * @return string - */ - public function getAppKey() - { - return $this->app_key; - } - - /** - * Application root key (128 bit). - * Note: This field only needs to be set for LoRaWAN 1.1.x devices! - * - * Generated from protobuf field string app_key = 3; - * @param string $var - * @return $this - */ - public function setAppKey($var) - { - GPBUtil::checkString($var, True); - $this->app_key = $var; - - return $this; - } - -} - diff --git a/api/php/generated/Chirpstack/Api/DeviceListItem.php b/api/php/generated/Chirpstack/Api/DeviceListItem.php deleted file mode 100644 index c0a57d9d..00000000 --- a/api/php/generated/Chirpstack/Api/DeviceListItem.php +++ /dev/null @@ -1,377 +0,0 @@ -api.DeviceListItem - */ -class DeviceListItem extends \Google\Protobuf\Internal\Message -{ - /** - * DevEUI (EUI64). - * - * Generated from protobuf field string dev_eui = 1; - */ - protected $dev_eui = ''; - /** - * Created at timestamp. - * - * Generated from protobuf field .google.protobuf.Timestamp created_at = 2; - */ - protected $created_at = null; - /** - * Last update timestamp. - * - * Generated from protobuf field .google.protobuf.Timestamp updated_at = 3; - */ - protected $updated_at = null; - /** - * Last seen at timestamp. - * - * Generated from protobuf field .google.protobuf.Timestamp last_seen_at = 4; - */ - protected $last_seen_at = null; - /** - * Name. - * - * Generated from protobuf field string name = 5; - */ - protected $name = ''; - /** - * Description. - * - * Generated from protobuf field string description = 6; - */ - protected $description = ''; - /** - * Device-profile ID (UUID). - * - * Generated from protobuf field string device_profile_id = 7; - */ - protected $device_profile_id = ''; - /** - * Device-profile name. - * - * Generated from protobuf field string device_profile_name = 8; - */ - protected $device_profile_name = ''; - /** - * Device status. - * - * Generated from protobuf field .api.DeviceStatus device_status = 9; - */ - protected $device_status = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $dev_eui - * DevEUI (EUI64). - * @type \Google\Protobuf\Timestamp $created_at - * Created at timestamp. - * @type \Google\Protobuf\Timestamp $updated_at - * Last update timestamp. - * @type \Google\Protobuf\Timestamp $last_seen_at - * Last seen at timestamp. - * @type string $name - * Name. - * @type string $description - * Description. - * @type string $device_profile_id - * Device-profile ID (UUID). - * @type string $device_profile_name - * Device-profile name. - * @type \Chirpstack\Api\DeviceStatus $device_status - * Device status. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Chirpstack\Api\Device::initOnce(); - parent::__construct($data); - } - - /** - * DevEUI (EUI64). - * - * Generated from protobuf field string dev_eui = 1; - * @return string - */ - public function getDevEui() - { - return $this->dev_eui; - } - - /** - * DevEUI (EUI64). - * - * Generated from protobuf field string dev_eui = 1; - * @param string $var - * @return $this - */ - public function setDevEui($var) - { - GPBUtil::checkString($var, True); - $this->dev_eui = $var; - - return $this; - } - - /** - * Created at timestamp. - * - * Generated from protobuf field .google.protobuf.Timestamp created_at = 2; - * @return \Google\Protobuf\Timestamp|null - */ - public function getCreatedAt() - { - return $this->created_at; - } - - public function hasCreatedAt() - { - return isset($this->created_at); - } - - public function clearCreatedAt() - { - unset($this->created_at); - } - - /** - * Created at timestamp. - * - * Generated from protobuf field .google.protobuf.Timestamp created_at = 2; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setCreatedAt($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->created_at = $var; - - return $this; - } - - /** - * Last update timestamp. - * - * Generated from protobuf field .google.protobuf.Timestamp updated_at = 3; - * @return \Google\Protobuf\Timestamp|null - */ - public function getUpdatedAt() - { - return $this->updated_at; - } - - public function hasUpdatedAt() - { - return isset($this->updated_at); - } - - public function clearUpdatedAt() - { - unset($this->updated_at); - } - - /** - * Last update timestamp. - * - * Generated from protobuf field .google.protobuf.Timestamp updated_at = 3; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setUpdatedAt($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->updated_at = $var; - - return $this; - } - - /** - * Last seen at timestamp. - * - * Generated from protobuf field .google.protobuf.Timestamp last_seen_at = 4; - * @return \Google\Protobuf\Timestamp|null - */ - public function getLastSeenAt() - { - return $this->last_seen_at; - } - - public function hasLastSeenAt() - { - return isset($this->last_seen_at); - } - - public function clearLastSeenAt() - { - unset($this->last_seen_at); - } - - /** - * Last seen at timestamp. - * - * Generated from protobuf field .google.protobuf.Timestamp last_seen_at = 4; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setLastSeenAt($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->last_seen_at = $var; - - return $this; - } - - /** - * Name. - * - * Generated from protobuf field string name = 5; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Name. - * - * Generated from protobuf field string name = 5; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Description. - * - * Generated from protobuf field string description = 6; - * @return string - */ - public function getDescription() - { - return $this->description; - } - - /** - * Description. - * - * Generated from protobuf field string description = 6; - * @param string $var - * @return $this - */ - public function setDescription($var) - { - GPBUtil::checkString($var, True); - $this->description = $var; - - return $this; - } - - /** - * Device-profile ID (UUID). - * - * Generated from protobuf field string device_profile_id = 7; - * @return string - */ - public function getDeviceProfileId() - { - return $this->device_profile_id; - } - - /** - * Device-profile ID (UUID). - * - * Generated from protobuf field string device_profile_id = 7; - * @param string $var - * @return $this - */ - public function setDeviceProfileId($var) - { - GPBUtil::checkString($var, True); - $this->device_profile_id = $var; - - return $this; - } - - /** - * Device-profile name. - * - * Generated from protobuf field string device_profile_name = 8; - * @return string - */ - public function getDeviceProfileName() - { - return $this->device_profile_name; - } - - /** - * Device-profile name. - * - * Generated from protobuf field string device_profile_name = 8; - * @param string $var - * @return $this - */ - public function setDeviceProfileName($var) - { - GPBUtil::checkString($var, True); - $this->device_profile_name = $var; - - return $this; - } - - /** - * Device status. - * - * Generated from protobuf field .api.DeviceStatus device_status = 9; - * @return \Chirpstack\Api\DeviceStatus|null - */ - public function getDeviceStatus() - { - return $this->device_status; - } - - public function hasDeviceStatus() - { - return isset($this->device_status); - } - - public function clearDeviceStatus() - { - unset($this->device_status); - } - - /** - * Device status. - * - * Generated from protobuf field .api.DeviceStatus device_status = 9; - * @param \Chirpstack\Api\DeviceStatus $var - * @return $this - */ - public function setDeviceStatus($var) - { - GPBUtil::checkMessage($var, \Chirpstack\Api\DeviceStatus::class); - $this->device_status = $var; - - return $this; - } - -} - diff --git a/api/php/generated/Chirpstack/Api/DeviceProfile.php b/api/php/generated/Chirpstack/Api/DeviceProfile.php deleted file mode 100644 index 588048f1..00000000 --- a/api/php/generated/Chirpstack/Api/DeviceProfile.php +++ /dev/null @@ -1,2221 +0,0 @@ -api.DeviceProfile - */ -class DeviceProfile extends \Google\Protobuf\Internal\Message -{ - /** - * Device-profile ID (UUID). - * Note: on create this will be automatically generated. - * - * Generated from protobuf field string id = 1; - */ - protected $id = ''; - /** - * Tenant ID (UUID). - * - * Generated from protobuf field string tenant_id = 2; - */ - protected $tenant_id = ''; - /** - * Name. - * - * Generated from protobuf field string name = 3; - */ - protected $name = ''; - /** - * Description. - * - * Generated from protobuf field string description = 26; - */ - protected $description = ''; - /** - * Region. - * - * Generated from protobuf field .common.Region region = 4; - */ - protected $region = 0; - /** - * LoRaWAN mac-version. - * - * Generated from protobuf field .common.MacVersion mac_version = 5; - */ - protected $mac_version = 0; - /** - * Regional parameters revision. - * - * Generated from protobuf field .common.RegParamsRevision reg_params_revision = 6; - */ - protected $reg_params_revision = 0; - /** - * ADR algorithm ID. - * - * Generated from protobuf field string adr_algorithm_id = 7; - */ - protected $adr_algorithm_id = ''; - /** - * Payload codec runtime. - * - * Generated from protobuf field .api.CodecRuntime payload_codec_runtime = 8; - */ - protected $payload_codec_runtime = 0; - /** - * Payload codec script. - * - * Generated from protobuf field string payload_codec_script = 9; - */ - protected $payload_codec_script = ''; - /** - * Flush queue on device activation. - * - * Generated from protobuf field bool flush_queue_on_activate = 10; - */ - protected $flush_queue_on_activate = false; - /** - * Uplink interval (seconds). - * This defines the expected uplink interval which the device uses for - * communication. If the uplink interval has expired and no uplink has - * been received, the device is considered inactive. - * - * Generated from protobuf field uint32 uplink_interval = 11; - */ - protected $uplink_interval = 0; - /** - * Device-status request interval (times / day). - * This defines the times per day that ChirpStack will request the - * device-status from the device. - * - * Generated from protobuf field uint32 device_status_req_interval = 12; - */ - protected $device_status_req_interval = 0; - /** - * Supports OTAA. - * - * Generated from protobuf field bool supports_otaa = 13; - */ - protected $supports_otaa = false; - /** - * Supports Class B. - * - * Generated from protobuf field bool supports_class_b = 14; - */ - protected $supports_class_b = false; - /** - * Supports Class-C. - * - * Generated from protobuf field bool supports_class_c = 15; - */ - protected $supports_class_c = false; - /** - * Class-B timeout (seconds). - * This is the maximum time ChirpStack will wait to receive an acknowledgement - * from the device (if requested). - * - * Generated from protobuf field uint32 class_b_timeout = 16; - */ - protected $class_b_timeout = 0; - /** - * Class-B ping-slots per beacon period. - * Valid options are: 0 - 7. - * The actual number of ping-slots per beacon period equals to 2^k. - * - * Generated from protobuf field uint32 class_b_ping_slot_nb_k = 17; - */ - protected $class_b_ping_slot_nb_k = 0; - /** - * Class-B ping-slot DR. - * - * Generated from protobuf field uint32 class_b_ping_slot_dr = 18; - */ - protected $class_b_ping_slot_dr = 0; - /** - * Class-B ping-slot freq (Hz). - * - * Generated from protobuf field uint32 class_b_ping_slot_freq = 19; - */ - protected $class_b_ping_slot_freq = 0; - /** - * Class-C timeout (seconds). - * This is the maximum time ChirpStack will wait to receive an acknowledgement - * from the device (if requested). - * - * Generated from protobuf field uint32 class_c_timeout = 20; - */ - protected $class_c_timeout = 0; - /** - * RX1 delay (for ABP). - * - * Generated from protobuf field uint32 abp_rx1_delay = 21; - */ - protected $abp_rx1_delay = 0; - /** - * RX1 DR offset (for ABP). - * - * Generated from protobuf field uint32 abp_rx1_dr_offset = 22; - */ - protected $abp_rx1_dr_offset = 0; - /** - * RX2 DR (for ABP). - * - * Generated from protobuf field uint32 abp_rx2_dr = 23; - */ - protected $abp_rx2_dr = 0; - /** - * RX2 frequency (for ABP, Hz). - * - * Generated from protobuf field uint32 abp_rx2_freq = 24; - */ - protected $abp_rx2_freq = 0; - /** - * Tags (user defined). - * These tags can be used to add additional information the the - * device-profile. These tags are exposed in all the integration events of - * devices using this device-profile. - * - * Generated from protobuf field map tags = 25; - */ - private $tags; - /** - * Measurements. - * If defined, ChirpStack will visualize these metrics in the web-interface. - * - * Generated from protobuf field map measurements = 27; - */ - private $measurements; - /** - * Auto-detect measurements. - * If set to true, measurements will be automatically added based on the - * keys of the decoded payload. In cases where the decoded payload contains - * random keys in the data, you want to set this to false. - * - * Generated from protobuf field bool auto_detect_measurements = 28; - */ - protected $auto_detect_measurements = false; - /** - * Region configuration ID. - * If set, devices will only use the associated region. If let blank, then - * devices will use all regions matching the selected common-name. Note - * that multiple region configurations can exist for the same common-name, - * e.g. to provide an 8 channel and 16 channel configuration for the US915 - * band. - * - * Generated from protobuf field string region_config_id = 29; - */ - protected $region_config_id = ''; - /** - * Device is a Relay device. - * Enable this in case the device is a Relay. A Relay device implements TS011 - * and is able to relay data from relay capable devices. - * See for more information the TS011 specification. - * - * Generated from protobuf field bool is_relay = 30; - */ - protected $is_relay = false; - /** - * Device is a Relay end-device. - * Enable this in case the device is an end-device that can operate under a - * Relay. Please refer to the TS011 specification for more information. - * - * Generated from protobuf field bool is_relay_ed = 31; - */ - protected $is_relay_ed = false; - /** - * End-device only accept data through relay. - * Only accept data for this device through a relay. This setting is useful - * for testing as in case of a test-setup, the end-device is usually within - * range of the gateway. - * - * Generated from protobuf field bool relay_ed_relay_only = 32; - */ - protected $relay_ed_relay_only = false; - /** - * Relay must be enabled. - * - * Generated from protobuf field bool relay_enabled = 33; - */ - protected $relay_enabled = false; - /** - * Relay CAD periodicity. - * - * Generated from protobuf field .api.CadPeriodicity relay_cad_periodicity = 34; - */ - protected $relay_cad_periodicity = 0; - /** - * Relay default channel index. - * Valid values are 0 and 1, please refer to the RP002 specification for - * the meaning of these values. - * - * Generated from protobuf field uint32 relay_default_channel_index = 35; - */ - protected $relay_default_channel_index = 0; - /** - * Relay second channel frequency (Hz). - * - * Generated from protobuf field uint32 relay_second_channel_freq = 36; - */ - protected $relay_second_channel_freq = 0; - /** - * Relay second channel DR. - * - * Generated from protobuf field uint32 relay_second_channel_dr = 37; - */ - protected $relay_second_channel_dr = 0; - /** - * Relay second channel ACK offset. - * - * Generated from protobuf field .api.SecondChAckOffset relay_second_channel_ack_offset = 38; - */ - protected $relay_second_channel_ack_offset = 0; - /** - * Relay end-device activation mode. - * - * Generated from protobuf field .api.RelayModeActivation relay_ed_activation_mode = 39; - */ - protected $relay_ed_activation_mode = 0; - /** - * Relay end-device smart-enable level. - * - * Generated from protobuf field uint32 relay_ed_smart_enable_level = 40; - */ - protected $relay_ed_smart_enable_level = 0; - /** - * Relay end-device back-off (in case it does not receive WOR ACK frame). - * 0 = Always send a LoRaWAN uplink - * 1..63 = Send a LoRaWAN uplink after X WOR frames without a WOR ACK - * - * Generated from protobuf field uint32 relay_ed_back_off = 41; - */ - protected $relay_ed_back_off = 0; - /** - * Relay end-device uplink limit bucket size. - * This field indicates the multiplier to determine the bucket size - * according to the following formula: - * BucketSize TOKEN = _reload_rate x _bucket_size - * Valid values (0 - 3): - * 0 = 1 - * 1 = 2 - * 2 = 4 - * 3 = 12 - * - * Generated from protobuf field uint32 relay_ed_uplink_limit_bucket_size = 42; - */ - protected $relay_ed_uplink_limit_bucket_size = 0; - /** - * Relay end-device uplink limit reload rate. - * Valid values: - * * 0 - 62 = X tokens every hour - * * 63 = no limitation - * - * Generated from protobuf field uint32 relay_ed_uplink_limit_reload_rate = 43; - */ - protected $relay_ed_uplink_limit_reload_rate = 0; - /** - * Relay join-request limit reload rate. - * Valid values: - * * 0 - 126 = X tokens every hour - * * 127 = no limitation - * - * Generated from protobuf field uint32 relay_join_req_limit_reload_rate = 44; - */ - protected $relay_join_req_limit_reload_rate = 0; - /** - * Relay notify limit reload rate. - * Valid values: - * * 0 - 126 = X tokens every hour - * * 127 = no limitation - * - * Generated from protobuf field uint32 relay_notify_limit_reload_rate = 45; - */ - protected $relay_notify_limit_reload_rate = 0; - /** - * Relay global uplink limit reload rate. - * Valid values: - * * 0 - 126 = X tokens every hour - * * 127 = no limitation - * - * Generated from protobuf field uint32 relay_global_uplink_limit_reload_rate = 46; - */ - protected $relay_global_uplink_limit_reload_rate = 0; - /** - * Relay overall limit reload rate. - * Valid values: - * * 0 - 126 = X tokens every hour - * * 127 = no limitation - * - * Generated from protobuf field uint32 relay_overall_limit_reload_rate = 47; - */ - protected $relay_overall_limit_reload_rate = 0; - /** - * Relay join-request limit bucket size. - * This field indicates the multiplier to determine the bucket size - * according to the following formula: - * BucketSize TOKEN = _reload_rate x _bucket_size - * Valid values (0 - 3): - * 0 = 1 - * 1 = 2 - * 2 = 4 - * 3 = 12 - * - * Generated from protobuf field uint32 relay_join_req_limit_bucket_size = 48; - */ - protected $relay_join_req_limit_bucket_size = 0; - /** - * Relay notify limit bucket size. - * This field indicates the multiplier to determine the bucket size - * according to the following formula: - * BucketSize TOKEN = _reload_rate x _bucket_size - * Valid values (0 - 3): - * 0 = 1 - * 1 = 2 - * 2 = 4 - * 3 = 12 - * - * Generated from protobuf field uint32 relay_notify_limit_bucket_size = 49; - */ - protected $relay_notify_limit_bucket_size = 0; - /** - * Relay globak uplink limit bucket size. - * This field indicates the multiplier to determine the bucket size - * according to the following formula: - * BucketSize TOKEN = _reload_rate x _bucket_size - * Valid values (0 - 3): - * 0 = 1 - * 1 = 2 - * 2 = 4 - * 3 = 12 - * - * Generated from protobuf field uint32 relay_global_uplink_limit_bucket_size = 50; - */ - protected $relay_global_uplink_limit_bucket_size = 0; - /** - * Relay overall limit bucket size. - * This field indicates the multiplier to determine the bucket size - * according to the following formula: - * BucketSize TOKEN = _reload_rate x _bucket_size - * Valid values (0 - 3): - * 0 = 1 - * 1 = 2 - * 2 = 4 - * 3 = 12 - * - * Generated from protobuf field uint32 relay_overall_limit_bucket_size = 51; - */ - protected $relay_overall_limit_bucket_size = 0; - /** - * Allow roaming. - * If set to true, it means that the device is allowed to use roaming. - * - * Generated from protobuf field bool allow_roaming = 52; - */ - protected $allow_roaming = false; - /** - * RX1 Delay. - * This makes it possible to override the system RX1 Delay. Please note that - * this values only has effect in case it is higher than the system value. - * In other words, it can be used to increase the RX1 Delay but not to decrease - * it. - * Valid options are 1 - 15 (0 = always use system RX1 Delay). - * - * Generated from protobuf field uint32 rx1_delay = 53; - */ - protected $rx1_delay = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $id - * Device-profile ID (UUID). - * Note: on create this will be automatically generated. - * @type string $tenant_id - * Tenant ID (UUID). - * @type string $name - * Name. - * @type string $description - * Description. - * @type int $region - * Region. - * @type int $mac_version - * LoRaWAN mac-version. - * @type int $reg_params_revision - * Regional parameters revision. - * @type string $adr_algorithm_id - * ADR algorithm ID. - * @type int $payload_codec_runtime - * Payload codec runtime. - * @type string $payload_codec_script - * Payload codec script. - * @type bool $flush_queue_on_activate - * Flush queue on device activation. - * @type int $uplink_interval - * Uplink interval (seconds). - * This defines the expected uplink interval which the device uses for - * communication. If the uplink interval has expired and no uplink has - * been received, the device is considered inactive. - * @type int $device_status_req_interval - * Device-status request interval (times / day). - * This defines the times per day that ChirpStack will request the - * device-status from the device. - * @type bool $supports_otaa - * Supports OTAA. - * @type bool $supports_class_b - * Supports Class B. - * @type bool $supports_class_c - * Supports Class-C. - * @type int $class_b_timeout - * Class-B timeout (seconds). - * This is the maximum time ChirpStack will wait to receive an acknowledgement - * from the device (if requested). - * @type int $class_b_ping_slot_nb_k - * Class-B ping-slots per beacon period. - * Valid options are: 0 - 7. - * The actual number of ping-slots per beacon period equals to 2^k. - * @type int $class_b_ping_slot_dr - * Class-B ping-slot DR. - * @type int $class_b_ping_slot_freq - * Class-B ping-slot freq (Hz). - * @type int $class_c_timeout - * Class-C timeout (seconds). - * This is the maximum time ChirpStack will wait to receive an acknowledgement - * from the device (if requested). - * @type int $abp_rx1_delay - * RX1 delay (for ABP). - * @type int $abp_rx1_dr_offset - * RX1 DR offset (for ABP). - * @type int $abp_rx2_dr - * RX2 DR (for ABP). - * @type int $abp_rx2_freq - * RX2 frequency (for ABP, Hz). - * @type array|\Google\Protobuf\Internal\MapField $tags - * Tags (user defined). - * These tags can be used to add additional information the the - * device-profile. These tags are exposed in all the integration events of - * devices using this device-profile. - * @type array|\Google\Protobuf\Internal\MapField $measurements - * Measurements. - * If defined, ChirpStack will visualize these metrics in the web-interface. - * @type bool $auto_detect_measurements - * Auto-detect measurements. - * If set to true, measurements will be automatically added based on the - * keys of the decoded payload. In cases where the decoded payload contains - * random keys in the data, you want to set this to false. - * @type string $region_config_id - * Region configuration ID. - * If set, devices will only use the associated region. If let blank, then - * devices will use all regions matching the selected common-name. Note - * that multiple region configurations can exist for the same common-name, - * e.g. to provide an 8 channel and 16 channel configuration for the US915 - * band. - * @type bool $is_relay - * Device is a Relay device. - * Enable this in case the device is a Relay. A Relay device implements TS011 - * and is able to relay data from relay capable devices. - * See for more information the TS011 specification. - * @type bool $is_relay_ed - * Device is a Relay end-device. - * Enable this in case the device is an end-device that can operate under a - * Relay. Please refer to the TS011 specification for more information. - * @type bool $relay_ed_relay_only - * End-device only accept data through relay. - * Only accept data for this device through a relay. This setting is useful - * for testing as in case of a test-setup, the end-device is usually within - * range of the gateway. - * @type bool $relay_enabled - * Relay must be enabled. - * @type int $relay_cad_periodicity - * Relay CAD periodicity. - * @type int $relay_default_channel_index - * Relay default channel index. - * Valid values are 0 and 1, please refer to the RP002 specification for - * the meaning of these values. - * @type int $relay_second_channel_freq - * Relay second channel frequency (Hz). - * @type int $relay_second_channel_dr - * Relay second channel DR. - * @type int $relay_second_channel_ack_offset - * Relay second channel ACK offset. - * @type int $relay_ed_activation_mode - * Relay end-device activation mode. - * @type int $relay_ed_smart_enable_level - * Relay end-device smart-enable level. - * @type int $relay_ed_back_off - * Relay end-device back-off (in case it does not receive WOR ACK frame). - * 0 = Always send a LoRaWAN uplink - * 1..63 = Send a LoRaWAN uplink after X WOR frames without a WOR ACK - * @type int $relay_ed_uplink_limit_bucket_size - * Relay end-device uplink limit bucket size. - * This field indicates the multiplier to determine the bucket size - * according to the following formula: - * BucketSize TOKEN = _reload_rate x _bucket_size - * Valid values (0 - 3): - * 0 = 1 - * 1 = 2 - * 2 = 4 - * 3 = 12 - * @type int $relay_ed_uplink_limit_reload_rate - * Relay end-device uplink limit reload rate. - * Valid values: - * * 0 - 62 = X tokens every hour - * * 63 = no limitation - * @type int $relay_join_req_limit_reload_rate - * Relay join-request limit reload rate. - * Valid values: - * * 0 - 126 = X tokens every hour - * * 127 = no limitation - * @type int $relay_notify_limit_reload_rate - * Relay notify limit reload rate. - * Valid values: - * * 0 - 126 = X tokens every hour - * * 127 = no limitation - * @type int $relay_global_uplink_limit_reload_rate - * Relay global uplink limit reload rate. - * Valid values: - * * 0 - 126 = X tokens every hour - * * 127 = no limitation - * @type int $relay_overall_limit_reload_rate - * Relay overall limit reload rate. - * Valid values: - * * 0 - 126 = X tokens every hour - * * 127 = no limitation - * @type int $relay_join_req_limit_bucket_size - * Relay join-request limit bucket size. - * This field indicates the multiplier to determine the bucket size - * according to the following formula: - * BucketSize TOKEN = _reload_rate x _bucket_size - * Valid values (0 - 3): - * 0 = 1 - * 1 = 2 - * 2 = 4 - * 3 = 12 - * @type int $relay_notify_limit_bucket_size - * Relay notify limit bucket size. - * This field indicates the multiplier to determine the bucket size - * according to the following formula: - * BucketSize TOKEN = _reload_rate x _bucket_size - * Valid values (0 - 3): - * 0 = 1 - * 1 = 2 - * 2 = 4 - * 3 = 12 - * @type int $relay_global_uplink_limit_bucket_size - * Relay globak uplink limit bucket size. - * This field indicates the multiplier to determine the bucket size - * according to the following formula: - * BucketSize TOKEN = _reload_rate x _bucket_size - * Valid values (0 - 3): - * 0 = 1 - * 1 = 2 - * 2 = 4 - * 3 = 12 - * @type int $relay_overall_limit_bucket_size - * Relay overall limit bucket size. - * This field indicates the multiplier to determine the bucket size - * according to the following formula: - * BucketSize TOKEN = _reload_rate x _bucket_size - * Valid values (0 - 3): - * 0 = 1 - * 1 = 2 - * 2 = 4 - * 3 = 12 - * @type bool $allow_roaming - * Allow roaming. - * If set to true, it means that the device is allowed to use roaming. - * @type int $rx1_delay - * RX1 Delay. - * This makes it possible to override the system RX1 Delay. Please note that - * this values only has effect in case it is higher than the system value. - * In other words, it can be used to increase the RX1 Delay but not to decrease - * it. - * Valid options are 1 - 15 (0 = always use system RX1 Delay). - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Chirpstack\Api\DeviceProfile::initOnce(); - parent::__construct($data); - } - - /** - * Device-profile ID (UUID). - * Note: on create this will be automatically generated. - * - * Generated from protobuf field string id = 1; - * @return string - */ - public function getId() - { - return $this->id; - } - - /** - * Device-profile ID (UUID). - * Note: on create this will be automatically generated. - * - * Generated from protobuf field string id = 1; - * @param string $var - * @return $this - */ - public function setId($var) - { - GPBUtil::checkString($var, True); - $this->id = $var; - - return $this; - } - - /** - * Tenant ID (UUID). - * - * Generated from protobuf field string tenant_id = 2; - * @return string - */ - public function getTenantId() - { - return $this->tenant_id; - } - - /** - * Tenant ID (UUID). - * - * Generated from protobuf field string tenant_id = 2; - * @param string $var - * @return $this - */ - public function setTenantId($var) - { - GPBUtil::checkString($var, True); - $this->tenant_id = $var; - - return $this; - } - - /** - * Name. - * - * Generated from protobuf field string name = 3; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Name. - * - * Generated from protobuf field string name = 3; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Description. - * - * Generated from protobuf field string description = 26; - * @return string - */ - public function getDescription() - { - return $this->description; - } - - /** - * Description. - * - * Generated from protobuf field string description = 26; - * @param string $var - * @return $this - */ - public function setDescription($var) - { - GPBUtil::checkString($var, True); - $this->description = $var; - - return $this; - } - - /** - * Region. - * - * Generated from protobuf field .common.Region region = 4; - * @return int - */ - public function getRegion() - { - return $this->region; - } - - /** - * Region. - * - * Generated from protobuf field .common.Region region = 4; - * @param int $var - * @return $this - */ - public function setRegion($var) - { - GPBUtil::checkEnum($var, \Chirpstack\Common\Region::class); - $this->region = $var; - - return $this; - } - - /** - * LoRaWAN mac-version. - * - * Generated from protobuf field .common.MacVersion mac_version = 5; - * @return int - */ - public function getMacVersion() - { - return $this->mac_version; - } - - /** - * LoRaWAN mac-version. - * - * Generated from protobuf field .common.MacVersion mac_version = 5; - * @param int $var - * @return $this - */ - public function setMacVersion($var) - { - GPBUtil::checkEnum($var, \Chirpstack\Common\MacVersion::class); - $this->mac_version = $var; - - return $this; - } - - /** - * Regional parameters revision. - * - * Generated from protobuf field .common.RegParamsRevision reg_params_revision = 6; - * @return int - */ - public function getRegParamsRevision() - { - return $this->reg_params_revision; - } - - /** - * Regional parameters revision. - * - * Generated from protobuf field .common.RegParamsRevision reg_params_revision = 6; - * @param int $var - * @return $this - */ - public function setRegParamsRevision($var) - { - GPBUtil::checkEnum($var, \Chirpstack\Common\RegParamsRevision::class); - $this->reg_params_revision = $var; - - return $this; - } - - /** - * ADR algorithm ID. - * - * Generated from protobuf field string adr_algorithm_id = 7; - * @return string - */ - public function getAdrAlgorithmId() - { - return $this->adr_algorithm_id; - } - - /** - * ADR algorithm ID. - * - * Generated from protobuf field string adr_algorithm_id = 7; - * @param string $var - * @return $this - */ - public function setAdrAlgorithmId($var) - { - GPBUtil::checkString($var, True); - $this->adr_algorithm_id = $var; - - return $this; - } - - /** - * Payload codec runtime. - * - * Generated from protobuf field .api.CodecRuntime payload_codec_runtime = 8; - * @return int - */ - public function getPayloadCodecRuntime() - { - return $this->payload_codec_runtime; - } - - /** - * Payload codec runtime. - * - * Generated from protobuf field .api.CodecRuntime payload_codec_runtime = 8; - * @param int $var - * @return $this - */ - public function setPayloadCodecRuntime($var) - { - GPBUtil::checkEnum($var, \Chirpstack\Api\CodecRuntime::class); - $this->payload_codec_runtime = $var; - - return $this; - } - - /** - * Payload codec script. - * - * Generated from protobuf field string payload_codec_script = 9; - * @return string - */ - public function getPayloadCodecScript() - { - return $this->payload_codec_script; - } - - /** - * Payload codec script. - * - * Generated from protobuf field string payload_codec_script = 9; - * @param string $var - * @return $this - */ - public function setPayloadCodecScript($var) - { - GPBUtil::checkString($var, True); - $this->payload_codec_script = $var; - - return $this; - } - - /** - * Flush queue on device activation. - * - * Generated from protobuf field bool flush_queue_on_activate = 10; - * @return bool - */ - public function getFlushQueueOnActivate() - { - return $this->flush_queue_on_activate; - } - - /** - * Flush queue on device activation. - * - * Generated from protobuf field bool flush_queue_on_activate = 10; - * @param bool $var - * @return $this - */ - public function setFlushQueueOnActivate($var) - { - GPBUtil::checkBool($var); - $this->flush_queue_on_activate = $var; - - return $this; - } - - /** - * Uplink interval (seconds). - * This defines the expected uplink interval which the device uses for - * communication. If the uplink interval has expired and no uplink has - * been received, the device is considered inactive. - * - * Generated from protobuf field uint32 uplink_interval = 11; - * @return int - */ - public function getUplinkInterval() - { - return $this->uplink_interval; - } - - /** - * Uplink interval (seconds). - * This defines the expected uplink interval which the device uses for - * communication. If the uplink interval has expired and no uplink has - * been received, the device is considered inactive. - * - * Generated from protobuf field uint32 uplink_interval = 11; - * @param int $var - * @return $this - */ - public function setUplinkInterval($var) - { - GPBUtil::checkUint32($var); - $this->uplink_interval = $var; - - return $this; - } - - /** - * Device-status request interval (times / day). - * This defines the times per day that ChirpStack will request the - * device-status from the device. - * - * Generated from protobuf field uint32 device_status_req_interval = 12; - * @return int - */ - public function getDeviceStatusReqInterval() - { - return $this->device_status_req_interval; - } - - /** - * Device-status request interval (times / day). - * This defines the times per day that ChirpStack will request the - * device-status from the device. - * - * Generated from protobuf field uint32 device_status_req_interval = 12; - * @param int $var - * @return $this - */ - public function setDeviceStatusReqInterval($var) - { - GPBUtil::checkUint32($var); - $this->device_status_req_interval = $var; - - return $this; - } - - /** - * Supports OTAA. - * - * Generated from protobuf field bool supports_otaa = 13; - * @return bool - */ - public function getSupportsOtaa() - { - return $this->supports_otaa; - } - - /** - * Supports OTAA. - * - * Generated from protobuf field bool supports_otaa = 13; - * @param bool $var - * @return $this - */ - public function setSupportsOtaa($var) - { - GPBUtil::checkBool($var); - $this->supports_otaa = $var; - - return $this; - } - - /** - * Supports Class B. - * - * Generated from protobuf field bool supports_class_b = 14; - * @return bool - */ - public function getSupportsClassB() - { - return $this->supports_class_b; - } - - /** - * Supports Class B. - * - * Generated from protobuf field bool supports_class_b = 14; - * @param bool $var - * @return $this - */ - public function setSupportsClassB($var) - { - GPBUtil::checkBool($var); - $this->supports_class_b = $var; - - return $this; - } - - /** - * Supports Class-C. - * - * Generated from protobuf field bool supports_class_c = 15; - * @return bool - */ - public function getSupportsClassC() - { - return $this->supports_class_c; - } - - /** - * Supports Class-C. - * - * Generated from protobuf field bool supports_class_c = 15; - * @param bool $var - * @return $this - */ - public function setSupportsClassC($var) - { - GPBUtil::checkBool($var); - $this->supports_class_c = $var; - - return $this; - } - - /** - * Class-B timeout (seconds). - * This is the maximum time ChirpStack will wait to receive an acknowledgement - * from the device (if requested). - * - * Generated from protobuf field uint32 class_b_timeout = 16; - * @return int - */ - public function getClassBTimeout() - { - return $this->class_b_timeout; - } - - /** - * Class-B timeout (seconds). - * This is the maximum time ChirpStack will wait to receive an acknowledgement - * from the device (if requested). - * - * Generated from protobuf field uint32 class_b_timeout = 16; - * @param int $var - * @return $this - */ - public function setClassBTimeout($var) - { - GPBUtil::checkUint32($var); - $this->class_b_timeout = $var; - - return $this; - } - - /** - * Class-B ping-slots per beacon period. - * Valid options are: 0 - 7. - * The actual number of ping-slots per beacon period equals to 2^k. - * - * Generated from protobuf field uint32 class_b_ping_slot_nb_k = 17; - * @return int - */ - public function getClassBPingSlotNbK() - { - return $this->class_b_ping_slot_nb_k; - } - - /** - * Class-B ping-slots per beacon period. - * Valid options are: 0 - 7. - * The actual number of ping-slots per beacon period equals to 2^k. - * - * Generated from protobuf field uint32 class_b_ping_slot_nb_k = 17; - * @param int $var - * @return $this - */ - public function setClassBPingSlotNbK($var) - { - GPBUtil::checkUint32($var); - $this->class_b_ping_slot_nb_k = $var; - - return $this; - } - - /** - * Class-B ping-slot DR. - * - * Generated from protobuf field uint32 class_b_ping_slot_dr = 18; - * @return int - */ - public function getClassBPingSlotDr() - { - return $this->class_b_ping_slot_dr; - } - - /** - * Class-B ping-slot DR. - * - * Generated from protobuf field uint32 class_b_ping_slot_dr = 18; - * @param int $var - * @return $this - */ - public function setClassBPingSlotDr($var) - { - GPBUtil::checkUint32($var); - $this->class_b_ping_slot_dr = $var; - - return $this; - } - - /** - * Class-B ping-slot freq (Hz). - * - * Generated from protobuf field uint32 class_b_ping_slot_freq = 19; - * @return int - */ - public function getClassBPingSlotFreq() - { - return $this->class_b_ping_slot_freq; - } - - /** - * Class-B ping-slot freq (Hz). - * - * Generated from protobuf field uint32 class_b_ping_slot_freq = 19; - * @param int $var - * @return $this - */ - public function setClassBPingSlotFreq($var) - { - GPBUtil::checkUint32($var); - $this->class_b_ping_slot_freq = $var; - - return $this; - } - - /** - * Class-C timeout (seconds). - * This is the maximum time ChirpStack will wait to receive an acknowledgement - * from the device (if requested). - * - * Generated from protobuf field uint32 class_c_timeout = 20; - * @return int - */ - public function getClassCTimeout() - { - return $this->class_c_timeout; - } - - /** - * Class-C timeout (seconds). - * This is the maximum time ChirpStack will wait to receive an acknowledgement - * from the device (if requested). - * - * Generated from protobuf field uint32 class_c_timeout = 20; - * @param int $var - * @return $this - */ - public function setClassCTimeout($var) - { - GPBUtil::checkUint32($var); - $this->class_c_timeout = $var; - - return $this; - } - - /** - * RX1 delay (for ABP). - * - * Generated from protobuf field uint32 abp_rx1_delay = 21; - * @return int - */ - public function getAbpRx1Delay() - { - return $this->abp_rx1_delay; - } - - /** - * RX1 delay (for ABP). - * - * Generated from protobuf field uint32 abp_rx1_delay = 21; - * @param int $var - * @return $this - */ - public function setAbpRx1Delay($var) - { - GPBUtil::checkUint32($var); - $this->abp_rx1_delay = $var; - - return $this; - } - - /** - * RX1 DR offset (for ABP). - * - * Generated from protobuf field uint32 abp_rx1_dr_offset = 22; - * @return int - */ - public function getAbpRx1DrOffset() - { - return $this->abp_rx1_dr_offset; - } - - /** - * RX1 DR offset (for ABP). - * - * Generated from protobuf field uint32 abp_rx1_dr_offset = 22; - * @param int $var - * @return $this - */ - public function setAbpRx1DrOffset($var) - { - GPBUtil::checkUint32($var); - $this->abp_rx1_dr_offset = $var; - - return $this; - } - - /** - * RX2 DR (for ABP). - * - * Generated from protobuf field uint32 abp_rx2_dr = 23; - * @return int - */ - public function getAbpRx2Dr() - { - return $this->abp_rx2_dr; - } - - /** - * RX2 DR (for ABP). - * - * Generated from protobuf field uint32 abp_rx2_dr = 23; - * @param int $var - * @return $this - */ - public function setAbpRx2Dr($var) - { - GPBUtil::checkUint32($var); - $this->abp_rx2_dr = $var; - - return $this; - } - - /** - * RX2 frequency (for ABP, Hz). - * - * Generated from protobuf field uint32 abp_rx2_freq = 24; - * @return int - */ - public function getAbpRx2Freq() - { - return $this->abp_rx2_freq; - } - - /** - * RX2 frequency (for ABP, Hz). - * - * Generated from protobuf field uint32 abp_rx2_freq = 24; - * @param int $var - * @return $this - */ - public function setAbpRx2Freq($var) - { - GPBUtil::checkUint32($var); - $this->abp_rx2_freq = $var; - - return $this; - } - - /** - * Tags (user defined). - * These tags can be used to add additional information the the - * device-profile. These tags are exposed in all the integration events of - * devices using this device-profile. - * - * Generated from protobuf field map tags = 25; - * @return \Google\Protobuf\Internal\MapField - */ - public function getTags() - { - return $this->tags; - } - - /** - * Tags (user defined). - * These tags can be used to add additional information the the - * device-profile. These tags are exposed in all the integration events of - * devices using this device-profile. - * - * Generated from protobuf field map tags = 25; - * @param array|\Google\Protobuf\Internal\MapField $var - * @return $this - */ - public function setTags($var) - { - $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); - $this->tags = $arr; - - return $this; - } - - /** - * Measurements. - * If defined, ChirpStack will visualize these metrics in the web-interface. - * - * Generated from protobuf field map measurements = 27; - * @return \Google\Protobuf\Internal\MapField - */ - public function getMeasurements() - { - return $this->measurements; - } - - /** - * Measurements. - * If defined, ChirpStack will visualize these metrics in the web-interface. - * - * Generated from protobuf field map measurements = 27; - * @param array|\Google\Protobuf\Internal\MapField $var - * @return $this - */ - public function setMeasurements($var) - { - $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::MESSAGE, \Chirpstack\Api\Measurement::class); - $this->measurements = $arr; - - return $this; - } - - /** - * Auto-detect measurements. - * If set to true, measurements will be automatically added based on the - * keys of the decoded payload. In cases where the decoded payload contains - * random keys in the data, you want to set this to false. - * - * Generated from protobuf field bool auto_detect_measurements = 28; - * @return bool - */ - public function getAutoDetectMeasurements() - { - return $this->auto_detect_measurements; - } - - /** - * Auto-detect measurements. - * If set to true, measurements will be automatically added based on the - * keys of the decoded payload. In cases where the decoded payload contains - * random keys in the data, you want to set this to false. - * - * Generated from protobuf field bool auto_detect_measurements = 28; - * @param bool $var - * @return $this - */ - public function setAutoDetectMeasurements($var) - { - GPBUtil::checkBool($var); - $this->auto_detect_measurements = $var; - - return $this; - } - - /** - * Region configuration ID. - * If set, devices will only use the associated region. If let blank, then - * devices will use all regions matching the selected common-name. Note - * that multiple region configurations can exist for the same common-name, - * e.g. to provide an 8 channel and 16 channel configuration for the US915 - * band. - * - * Generated from protobuf field string region_config_id = 29; - * @return string - */ - public function getRegionConfigId() - { - return $this->region_config_id; - } - - /** - * Region configuration ID. - * If set, devices will only use the associated region. If let blank, then - * devices will use all regions matching the selected common-name. Note - * that multiple region configurations can exist for the same common-name, - * e.g. to provide an 8 channel and 16 channel configuration for the US915 - * band. - * - * Generated from protobuf field string region_config_id = 29; - * @param string $var - * @return $this - */ - public function setRegionConfigId($var) - { - GPBUtil::checkString($var, True); - $this->region_config_id = $var; - - return $this; - } - - /** - * Device is a Relay device. - * Enable this in case the device is a Relay. A Relay device implements TS011 - * and is able to relay data from relay capable devices. - * See for more information the TS011 specification. - * - * Generated from protobuf field bool is_relay = 30; - * @return bool - */ - public function getIsRelay() - { - return $this->is_relay; - } - - /** - * Device is a Relay device. - * Enable this in case the device is a Relay. A Relay device implements TS011 - * and is able to relay data from relay capable devices. - * See for more information the TS011 specification. - * - * Generated from protobuf field bool is_relay = 30; - * @param bool $var - * @return $this - */ - public function setIsRelay($var) - { - GPBUtil::checkBool($var); - $this->is_relay = $var; - - return $this; - } - - /** - * Device is a Relay end-device. - * Enable this in case the device is an end-device that can operate under a - * Relay. Please refer to the TS011 specification for more information. - * - * Generated from protobuf field bool is_relay_ed = 31; - * @return bool - */ - public function getIsRelayEd() - { - return $this->is_relay_ed; - } - - /** - * Device is a Relay end-device. - * Enable this in case the device is an end-device that can operate under a - * Relay. Please refer to the TS011 specification for more information. - * - * Generated from protobuf field bool is_relay_ed = 31; - * @param bool $var - * @return $this - */ - public function setIsRelayEd($var) - { - GPBUtil::checkBool($var); - $this->is_relay_ed = $var; - - return $this; - } - - /** - * End-device only accept data through relay. - * Only accept data for this device through a relay. This setting is useful - * for testing as in case of a test-setup, the end-device is usually within - * range of the gateway. - * - * Generated from protobuf field bool relay_ed_relay_only = 32; - * @return bool - */ - public function getRelayEdRelayOnly() - { - return $this->relay_ed_relay_only; - } - - /** - * End-device only accept data through relay. - * Only accept data for this device through a relay. This setting is useful - * for testing as in case of a test-setup, the end-device is usually within - * range of the gateway. - * - * Generated from protobuf field bool relay_ed_relay_only = 32; - * @param bool $var - * @return $this - */ - public function setRelayEdRelayOnly($var) - { - GPBUtil::checkBool($var); - $this->relay_ed_relay_only = $var; - - return $this; - } - - /** - * Relay must be enabled. - * - * Generated from protobuf field bool relay_enabled = 33; - * @return bool - */ - public function getRelayEnabled() - { - return $this->relay_enabled; - } - - /** - * Relay must be enabled. - * - * Generated from protobuf field bool relay_enabled = 33; - * @param bool $var - * @return $this - */ - public function setRelayEnabled($var) - { - GPBUtil::checkBool($var); - $this->relay_enabled = $var; - - return $this; - } - - /** - * Relay CAD periodicity. - * - * Generated from protobuf field .api.CadPeriodicity relay_cad_periodicity = 34; - * @return int - */ - public function getRelayCadPeriodicity() - { - return $this->relay_cad_periodicity; - } - - /** - * Relay CAD periodicity. - * - * Generated from protobuf field .api.CadPeriodicity relay_cad_periodicity = 34; - * @param int $var - * @return $this - */ - public function setRelayCadPeriodicity($var) - { - GPBUtil::checkEnum($var, \Chirpstack\Api\CadPeriodicity::class); - $this->relay_cad_periodicity = $var; - - return $this; - } - - /** - * Relay default channel index. - * Valid values are 0 and 1, please refer to the RP002 specification for - * the meaning of these values. - * - * Generated from protobuf field uint32 relay_default_channel_index = 35; - * @return int - */ - public function getRelayDefaultChannelIndex() - { - return $this->relay_default_channel_index; - } - - /** - * Relay default channel index. - * Valid values are 0 and 1, please refer to the RP002 specification for - * the meaning of these values. - * - * Generated from protobuf field uint32 relay_default_channel_index = 35; - * @param int $var - * @return $this - */ - public function setRelayDefaultChannelIndex($var) - { - GPBUtil::checkUint32($var); - $this->relay_default_channel_index = $var; - - return $this; - } - - /** - * Relay second channel frequency (Hz). - * - * Generated from protobuf field uint32 relay_second_channel_freq = 36; - * @return int - */ - public function getRelaySecondChannelFreq() - { - return $this->relay_second_channel_freq; - } - - /** - * Relay second channel frequency (Hz). - * - * Generated from protobuf field uint32 relay_second_channel_freq = 36; - * @param int $var - * @return $this - */ - public function setRelaySecondChannelFreq($var) - { - GPBUtil::checkUint32($var); - $this->relay_second_channel_freq = $var; - - return $this; - } - - /** - * Relay second channel DR. - * - * Generated from protobuf field uint32 relay_second_channel_dr = 37; - * @return int - */ - public function getRelaySecondChannelDr() - { - return $this->relay_second_channel_dr; - } - - /** - * Relay second channel DR. - * - * Generated from protobuf field uint32 relay_second_channel_dr = 37; - * @param int $var - * @return $this - */ - public function setRelaySecondChannelDr($var) - { - GPBUtil::checkUint32($var); - $this->relay_second_channel_dr = $var; - - return $this; - } - - /** - * Relay second channel ACK offset. - * - * Generated from protobuf field .api.SecondChAckOffset relay_second_channel_ack_offset = 38; - * @return int - */ - public function getRelaySecondChannelAckOffset() - { - return $this->relay_second_channel_ack_offset; - } - - /** - * Relay second channel ACK offset. - * - * Generated from protobuf field .api.SecondChAckOffset relay_second_channel_ack_offset = 38; - * @param int $var - * @return $this - */ - public function setRelaySecondChannelAckOffset($var) - { - GPBUtil::checkEnum($var, \Chirpstack\Api\SecondChAckOffset::class); - $this->relay_second_channel_ack_offset = $var; - - return $this; - } - - /** - * Relay end-device activation mode. - * - * Generated from protobuf field .api.RelayModeActivation relay_ed_activation_mode = 39; - * @return int - */ - public function getRelayEdActivationMode() - { - return $this->relay_ed_activation_mode; - } - - /** - * Relay end-device activation mode. - * - * Generated from protobuf field .api.RelayModeActivation relay_ed_activation_mode = 39; - * @param int $var - * @return $this - */ - public function setRelayEdActivationMode($var) - { - GPBUtil::checkEnum($var, \Chirpstack\Api\RelayModeActivation::class); - $this->relay_ed_activation_mode = $var; - - return $this; - } - - /** - * Relay end-device smart-enable level. - * - * Generated from protobuf field uint32 relay_ed_smart_enable_level = 40; - * @return int - */ - public function getRelayEdSmartEnableLevel() - { - return $this->relay_ed_smart_enable_level; - } - - /** - * Relay end-device smart-enable level. - * - * Generated from protobuf field uint32 relay_ed_smart_enable_level = 40; - * @param int $var - * @return $this - */ - public function setRelayEdSmartEnableLevel($var) - { - GPBUtil::checkUint32($var); - $this->relay_ed_smart_enable_level = $var; - - return $this; - } - - /** - * Relay end-device back-off (in case it does not receive WOR ACK frame). - * 0 = Always send a LoRaWAN uplink - * 1..63 = Send a LoRaWAN uplink after X WOR frames without a WOR ACK - * - * Generated from protobuf field uint32 relay_ed_back_off = 41; - * @return int - */ - public function getRelayEdBackOff() - { - return $this->relay_ed_back_off; - } - - /** - * Relay end-device back-off (in case it does not receive WOR ACK frame). - * 0 = Always send a LoRaWAN uplink - * 1..63 = Send a LoRaWAN uplink after X WOR frames without a WOR ACK - * - * Generated from protobuf field uint32 relay_ed_back_off = 41; - * @param int $var - * @return $this - */ - public function setRelayEdBackOff($var) - { - GPBUtil::checkUint32($var); - $this->relay_ed_back_off = $var; - - return $this; - } - - /** - * Relay end-device uplink limit bucket size. - * This field indicates the multiplier to determine the bucket size - * according to the following formula: - * BucketSize TOKEN = _reload_rate x _bucket_size - * Valid values (0 - 3): - * 0 = 1 - * 1 = 2 - * 2 = 4 - * 3 = 12 - * - * Generated from protobuf field uint32 relay_ed_uplink_limit_bucket_size = 42; - * @return int - */ - public function getRelayEdUplinkLimitBucketSize() - { - return $this->relay_ed_uplink_limit_bucket_size; - } - - /** - * Relay end-device uplink limit bucket size. - * This field indicates the multiplier to determine the bucket size - * according to the following formula: - * BucketSize TOKEN = _reload_rate x _bucket_size - * Valid values (0 - 3): - * 0 = 1 - * 1 = 2 - * 2 = 4 - * 3 = 12 - * - * Generated from protobuf field uint32 relay_ed_uplink_limit_bucket_size = 42; - * @param int $var - * @return $this - */ - public function setRelayEdUplinkLimitBucketSize($var) - { - GPBUtil::checkUint32($var); - $this->relay_ed_uplink_limit_bucket_size = $var; - - return $this; - } - - /** - * Relay end-device uplink limit reload rate. - * Valid values: - * * 0 - 62 = X tokens every hour - * * 63 = no limitation - * - * Generated from protobuf field uint32 relay_ed_uplink_limit_reload_rate = 43; - * @return int - */ - public function getRelayEdUplinkLimitReloadRate() - { - return $this->relay_ed_uplink_limit_reload_rate; - } - - /** - * Relay end-device uplink limit reload rate. - * Valid values: - * * 0 - 62 = X tokens every hour - * * 63 = no limitation - * - * Generated from protobuf field uint32 relay_ed_uplink_limit_reload_rate = 43; - * @param int $var - * @return $this - */ - public function setRelayEdUplinkLimitReloadRate($var) - { - GPBUtil::checkUint32($var); - $this->relay_ed_uplink_limit_reload_rate = $var; - - return $this; - } - - /** - * Relay join-request limit reload rate. - * Valid values: - * * 0 - 126 = X tokens every hour - * * 127 = no limitation - * - * Generated from protobuf field uint32 relay_join_req_limit_reload_rate = 44; - * @return int - */ - public function getRelayJoinReqLimitReloadRate() - { - return $this->relay_join_req_limit_reload_rate; - } - - /** - * Relay join-request limit reload rate. - * Valid values: - * * 0 - 126 = X tokens every hour - * * 127 = no limitation - * - * Generated from protobuf field uint32 relay_join_req_limit_reload_rate = 44; - * @param int $var - * @return $this - */ - public function setRelayJoinReqLimitReloadRate($var) - { - GPBUtil::checkUint32($var); - $this->relay_join_req_limit_reload_rate = $var; - - return $this; - } - - /** - * Relay notify limit reload rate. - * Valid values: - * * 0 - 126 = X tokens every hour - * * 127 = no limitation - * - * Generated from protobuf field uint32 relay_notify_limit_reload_rate = 45; - * @return int - */ - public function getRelayNotifyLimitReloadRate() - { - return $this->relay_notify_limit_reload_rate; - } - - /** - * Relay notify limit reload rate. - * Valid values: - * * 0 - 126 = X tokens every hour - * * 127 = no limitation - * - * Generated from protobuf field uint32 relay_notify_limit_reload_rate = 45; - * @param int $var - * @return $this - */ - public function setRelayNotifyLimitReloadRate($var) - { - GPBUtil::checkUint32($var); - $this->relay_notify_limit_reload_rate = $var; - - return $this; - } - - /** - * Relay global uplink limit reload rate. - * Valid values: - * * 0 - 126 = X tokens every hour - * * 127 = no limitation - * - * Generated from protobuf field uint32 relay_global_uplink_limit_reload_rate = 46; - * @return int - */ - public function getRelayGlobalUplinkLimitReloadRate() - { - return $this->relay_global_uplink_limit_reload_rate; - } - - /** - * Relay global uplink limit reload rate. - * Valid values: - * * 0 - 126 = X tokens every hour - * * 127 = no limitation - * - * Generated from protobuf field uint32 relay_global_uplink_limit_reload_rate = 46; - * @param int $var - * @return $this - */ - public function setRelayGlobalUplinkLimitReloadRate($var) - { - GPBUtil::checkUint32($var); - $this->relay_global_uplink_limit_reload_rate = $var; - - return $this; - } - - /** - * Relay overall limit reload rate. - * Valid values: - * * 0 - 126 = X tokens every hour - * * 127 = no limitation - * - * Generated from protobuf field uint32 relay_overall_limit_reload_rate = 47; - * @return int - */ - public function getRelayOverallLimitReloadRate() - { - return $this->relay_overall_limit_reload_rate; - } - - /** - * Relay overall limit reload rate. - * Valid values: - * * 0 - 126 = X tokens every hour - * * 127 = no limitation - * - * Generated from protobuf field uint32 relay_overall_limit_reload_rate = 47; - * @param int $var - * @return $this - */ - public function setRelayOverallLimitReloadRate($var) - { - GPBUtil::checkUint32($var); - $this->relay_overall_limit_reload_rate = $var; - - return $this; - } - - /** - * Relay join-request limit bucket size. - * This field indicates the multiplier to determine the bucket size - * according to the following formula: - * BucketSize TOKEN = _reload_rate x _bucket_size - * Valid values (0 - 3): - * 0 = 1 - * 1 = 2 - * 2 = 4 - * 3 = 12 - * - * Generated from protobuf field uint32 relay_join_req_limit_bucket_size = 48; - * @return int - */ - public function getRelayJoinReqLimitBucketSize() - { - return $this->relay_join_req_limit_bucket_size; - } - - /** - * Relay join-request limit bucket size. - * This field indicates the multiplier to determine the bucket size - * according to the following formula: - * BucketSize TOKEN = _reload_rate x _bucket_size - * Valid values (0 - 3): - * 0 = 1 - * 1 = 2 - * 2 = 4 - * 3 = 12 - * - * Generated from protobuf field uint32 relay_join_req_limit_bucket_size = 48; - * @param int $var - * @return $this - */ - public function setRelayJoinReqLimitBucketSize($var) - { - GPBUtil::checkUint32($var); - $this->relay_join_req_limit_bucket_size = $var; - - return $this; - } - - /** - * Relay notify limit bucket size. - * This field indicates the multiplier to determine the bucket size - * according to the following formula: - * BucketSize TOKEN = _reload_rate x _bucket_size - * Valid values (0 - 3): - * 0 = 1 - * 1 = 2 - * 2 = 4 - * 3 = 12 - * - * Generated from protobuf field uint32 relay_notify_limit_bucket_size = 49; - * @return int - */ - public function getRelayNotifyLimitBucketSize() - { - return $this->relay_notify_limit_bucket_size; - } - - /** - * Relay notify limit bucket size. - * This field indicates the multiplier to determine the bucket size - * according to the following formula: - * BucketSize TOKEN = _reload_rate x _bucket_size - * Valid values (0 - 3): - * 0 = 1 - * 1 = 2 - * 2 = 4 - * 3 = 12 - * - * Generated from protobuf field uint32 relay_notify_limit_bucket_size = 49; - * @param int $var - * @return $this - */ - public function setRelayNotifyLimitBucketSize($var) - { - GPBUtil::checkUint32($var); - $this->relay_notify_limit_bucket_size = $var; - - return $this; - } - - /** - * Relay globak uplink limit bucket size. - * This field indicates the multiplier to determine the bucket size - * according to the following formula: - * BucketSize TOKEN = _reload_rate x _bucket_size - * Valid values (0 - 3): - * 0 = 1 - * 1 = 2 - * 2 = 4 - * 3 = 12 - * - * Generated from protobuf field uint32 relay_global_uplink_limit_bucket_size = 50; - * @return int - */ - public function getRelayGlobalUplinkLimitBucketSize() - { - return $this->relay_global_uplink_limit_bucket_size; - } - - /** - * Relay globak uplink limit bucket size. - * This field indicates the multiplier to determine the bucket size - * according to the following formula: - * BucketSize TOKEN = _reload_rate x _bucket_size - * Valid values (0 - 3): - * 0 = 1 - * 1 = 2 - * 2 = 4 - * 3 = 12 - * - * Generated from protobuf field uint32 relay_global_uplink_limit_bucket_size = 50; - * @param int $var - * @return $this - */ - public function setRelayGlobalUplinkLimitBucketSize($var) - { - GPBUtil::checkUint32($var); - $this->relay_global_uplink_limit_bucket_size = $var; - - return $this; - } - - /** - * Relay overall limit bucket size. - * This field indicates the multiplier to determine the bucket size - * according to the following formula: - * BucketSize TOKEN = _reload_rate x _bucket_size - * Valid values (0 - 3): - * 0 = 1 - * 1 = 2 - * 2 = 4 - * 3 = 12 - * - * Generated from protobuf field uint32 relay_overall_limit_bucket_size = 51; - * @return int - */ - public function getRelayOverallLimitBucketSize() - { - return $this->relay_overall_limit_bucket_size; - } - - /** - * Relay overall limit bucket size. - * This field indicates the multiplier to determine the bucket size - * according to the following formula: - * BucketSize TOKEN = _reload_rate x _bucket_size - * Valid values (0 - 3): - * 0 = 1 - * 1 = 2 - * 2 = 4 - * 3 = 12 - * - * Generated from protobuf field uint32 relay_overall_limit_bucket_size = 51; - * @param int $var - * @return $this - */ - public function setRelayOverallLimitBucketSize($var) - { - GPBUtil::checkUint32($var); - $this->relay_overall_limit_bucket_size = $var; - - return $this; - } - - /** - * Allow roaming. - * If set to true, it means that the device is allowed to use roaming. - * - * Generated from protobuf field bool allow_roaming = 52; - * @return bool - */ - public function getAllowRoaming() - { - return $this->allow_roaming; - } - - /** - * Allow roaming. - * If set to true, it means that the device is allowed to use roaming. - * - * Generated from protobuf field bool allow_roaming = 52; - * @param bool $var - * @return $this - */ - public function setAllowRoaming($var) - { - GPBUtil::checkBool($var); - $this->allow_roaming = $var; - - return $this; - } - - /** - * RX1 Delay. - * This makes it possible to override the system RX1 Delay. Please note that - * this values only has effect in case it is higher than the system value. - * In other words, it can be used to increase the RX1 Delay but not to decrease - * it. - * Valid options are 1 - 15 (0 = always use system RX1 Delay). - * - * Generated from protobuf field uint32 rx1_delay = 53; - * @return int - */ - public function getRx1Delay() - { - return $this->rx1_delay; - } - - /** - * RX1 Delay. - * This makes it possible to override the system RX1 Delay. Please note that - * this values only has effect in case it is higher than the system value. - * In other words, it can be used to increase the RX1 Delay but not to decrease - * it. - * Valid options are 1 - 15 (0 = always use system RX1 Delay). - * - * Generated from protobuf field uint32 rx1_delay = 53; - * @param int $var - * @return $this - */ - public function setRx1Delay($var) - { - GPBUtil::checkUint32($var); - $this->rx1_delay = $var; - - return $this; - } - -} - diff --git a/api/php/generated/Chirpstack/Api/DeviceProfileListItem.php b/api/php/generated/Chirpstack/Api/DeviceProfileListItem.php deleted file mode 100644 index bfa0a8c0..00000000 --- a/api/php/generated/Chirpstack/Api/DeviceProfileListItem.php +++ /dev/null @@ -1,391 +0,0 @@ -api.DeviceProfileListItem - */ -class DeviceProfileListItem extends \Google\Protobuf\Internal\Message -{ - /** - * Device-profile ID (UUID). - * - * Generated from protobuf field string id = 1; - */ - protected $id = ''; - /** - * Created at timestamp. - * - * Generated from protobuf field .google.protobuf.Timestamp created_at = 2; - */ - protected $created_at = null; - /** - * Last update timestamp. - * - * Generated from protobuf field .google.protobuf.Timestamp updated_at = 3; - */ - protected $updated_at = null; - /** - * Name. - * - * Generated from protobuf field string name = 4; - */ - protected $name = ''; - /** - * Region. - * - * Generated from protobuf field .common.Region region = 5; - */ - protected $region = 0; - /** - * LoRaWAN mac-version. - * - * Generated from protobuf field .common.MacVersion mac_version = 6; - */ - protected $mac_version = 0; - /** - * Regional parameters revision. - * - * Generated from protobuf field .common.RegParamsRevision reg_params_revision = 7; - */ - protected $reg_params_revision = 0; - /** - * Supports OTAA. - * - * Generated from protobuf field bool supports_otaa = 8; - */ - protected $supports_otaa = false; - /** - * Supports Class-B. - * - * Generated from protobuf field bool supports_class_b = 9; - */ - protected $supports_class_b = false; - /** - * Supports Class-C. - * - * Generated from protobuf field bool supports_class_c = 10; - */ - protected $supports_class_c = false; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $id - * Device-profile ID (UUID). - * @type \Google\Protobuf\Timestamp $created_at - * Created at timestamp. - * @type \Google\Protobuf\Timestamp $updated_at - * Last update timestamp. - * @type string $name - * Name. - * @type int $region - * Region. - * @type int $mac_version - * LoRaWAN mac-version. - * @type int $reg_params_revision - * Regional parameters revision. - * @type bool $supports_otaa - * Supports OTAA. - * @type bool $supports_class_b - * Supports Class-B. - * @type bool $supports_class_c - * Supports Class-C. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Chirpstack\Api\DeviceProfile::initOnce(); - parent::__construct($data); - } - - /** - * Device-profile ID (UUID). - * - * Generated from protobuf field string id = 1; - * @return string - */ - public function getId() - { - return $this->id; - } - - /** - * Device-profile ID (UUID). - * - * Generated from protobuf field string id = 1; - * @param string $var - * @return $this - */ - public function setId($var) - { - GPBUtil::checkString($var, True); - $this->id = $var; - - return $this; - } - - /** - * Created at timestamp. - * - * Generated from protobuf field .google.protobuf.Timestamp created_at = 2; - * @return \Google\Protobuf\Timestamp|null - */ - public function getCreatedAt() - { - return $this->created_at; - } - - public function hasCreatedAt() - { - return isset($this->created_at); - } - - public function clearCreatedAt() - { - unset($this->created_at); - } - - /** - * Created at timestamp. - * - * Generated from protobuf field .google.protobuf.Timestamp created_at = 2; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setCreatedAt($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->created_at = $var; - - return $this; - } - - /** - * Last update timestamp. - * - * Generated from protobuf field .google.protobuf.Timestamp updated_at = 3; - * @return \Google\Protobuf\Timestamp|null - */ - public function getUpdatedAt() - { - return $this->updated_at; - } - - public function hasUpdatedAt() - { - return isset($this->updated_at); - } - - public function clearUpdatedAt() - { - unset($this->updated_at); - } - - /** - * Last update timestamp. - * - * Generated from protobuf field .google.protobuf.Timestamp updated_at = 3; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setUpdatedAt($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->updated_at = $var; - - return $this; - } - - /** - * Name. - * - * Generated from protobuf field string name = 4; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Name. - * - * Generated from protobuf field string name = 4; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Region. - * - * Generated from protobuf field .common.Region region = 5; - * @return int - */ - public function getRegion() - { - return $this->region; - } - - /** - * Region. - * - * Generated from protobuf field .common.Region region = 5; - * @param int $var - * @return $this - */ - public function setRegion($var) - { - GPBUtil::checkEnum($var, \Chirpstack\Common\Region::class); - $this->region = $var; - - return $this; - } - - /** - * LoRaWAN mac-version. - * - * Generated from protobuf field .common.MacVersion mac_version = 6; - * @return int - */ - public function getMacVersion() - { - return $this->mac_version; - } - - /** - * LoRaWAN mac-version. - * - * Generated from protobuf field .common.MacVersion mac_version = 6; - * @param int $var - * @return $this - */ - public function setMacVersion($var) - { - GPBUtil::checkEnum($var, \Chirpstack\Common\MacVersion::class); - $this->mac_version = $var; - - return $this; - } - - /** - * Regional parameters revision. - * - * Generated from protobuf field .common.RegParamsRevision reg_params_revision = 7; - * @return int - */ - public function getRegParamsRevision() - { - return $this->reg_params_revision; - } - - /** - * Regional parameters revision. - * - * Generated from protobuf field .common.RegParamsRevision reg_params_revision = 7; - * @param int $var - * @return $this - */ - public function setRegParamsRevision($var) - { - GPBUtil::checkEnum($var, \Chirpstack\Common\RegParamsRevision::class); - $this->reg_params_revision = $var; - - return $this; - } - - /** - * Supports OTAA. - * - * Generated from protobuf field bool supports_otaa = 8; - * @return bool - */ - public function getSupportsOtaa() - { - return $this->supports_otaa; - } - - /** - * Supports OTAA. - * - * Generated from protobuf field bool supports_otaa = 8; - * @param bool $var - * @return $this - */ - public function setSupportsOtaa($var) - { - GPBUtil::checkBool($var); - $this->supports_otaa = $var; - - return $this; - } - - /** - * Supports Class-B. - * - * Generated from protobuf field bool supports_class_b = 9; - * @return bool - */ - public function getSupportsClassB() - { - return $this->supports_class_b; - } - - /** - * Supports Class-B. - * - * Generated from protobuf field bool supports_class_b = 9; - * @param bool $var - * @return $this - */ - public function setSupportsClassB($var) - { - GPBUtil::checkBool($var); - $this->supports_class_b = $var; - - return $this; - } - - /** - * Supports Class-C. - * - * Generated from protobuf field bool supports_class_c = 10; - * @return bool - */ - public function getSupportsClassC() - { - return $this->supports_class_c; - } - - /** - * Supports Class-C. - * - * Generated from protobuf field bool supports_class_c = 10; - * @param bool $var - * @return $this - */ - public function setSupportsClassC($var) - { - GPBUtil::checkBool($var); - $this->supports_class_c = $var; - - return $this; - } - -} - diff --git a/api/php/generated/Chirpstack/Api/DeviceProfileServiceClient.php b/api/php/generated/Chirpstack/Api/DeviceProfileServiceClient.php deleted file mode 100644 index 02f37749..00000000 --- a/api/php/generated/Chirpstack/Api/DeviceProfileServiceClient.php +++ /dev/null @@ -1,111 +0,0 @@ -_simpleRequest('/api.DeviceProfileService/Create', - $argument, - ['\Chirpstack\Api\CreateDeviceProfileResponse', 'decode'], - $metadata, $options); - } - - /** - * Get the device-profile for the given ID. - * @param \Chirpstack\Api\GetDeviceProfileRequest $argument input argument - * @param array $metadata metadata - * @param array $options call options - * @return \Grpc\UnaryCall - */ - public function Get(\Chirpstack\Api\GetDeviceProfileRequest $argument, - $metadata = [], $options = []) { - return $this->_simpleRequest('/api.DeviceProfileService/Get', - $argument, - ['\Chirpstack\Api\GetDeviceProfileResponse', 'decode'], - $metadata, $options); - } - - /** - * Update the given device-profile. - * @param \Chirpstack\Api\UpdateDeviceProfileRequest $argument input argument - * @param array $metadata metadata - * @param array $options call options - * @return \Grpc\UnaryCall - */ - public function Update(\Chirpstack\Api\UpdateDeviceProfileRequest $argument, - $metadata = [], $options = []) { - return $this->_simpleRequest('/api.DeviceProfileService/Update', - $argument, - ['\Google\Protobuf\GPBEmpty', 'decode'], - $metadata, $options); - } - - /** - * Delete the device-profile with the given ID. - * @param \Chirpstack\Api\DeleteDeviceProfileRequest $argument input argument - * @param array $metadata metadata - * @param array $options call options - * @return \Grpc\UnaryCall - */ - public function Delete(\Chirpstack\Api\DeleteDeviceProfileRequest $argument, - $metadata = [], $options = []) { - return $this->_simpleRequest('/api.DeviceProfileService/Delete', - $argument, - ['\Google\Protobuf\GPBEmpty', 'decode'], - $metadata, $options); - } - - /** - * List the available device-profiles. - * @param \Chirpstack\Api\ListDeviceProfilesRequest $argument input argument - * @param array $metadata metadata - * @param array $options call options - * @return \Grpc\UnaryCall - */ - public function List(\Chirpstack\Api\ListDeviceProfilesRequest $argument, - $metadata = [], $options = []) { - return $this->_simpleRequest('/api.DeviceProfileService/List', - $argument, - ['\Chirpstack\Api\ListDeviceProfilesResponse', 'decode'], - $metadata, $options); - } - - /** - * List available ADR algorithms. - * @param \Google\Protobuf\GPBEmpty $argument input argument - * @param array $metadata metadata - * @param array $options call options - * @return \Grpc\UnaryCall - */ - public function ListAdrAlgorithms(\Google\Protobuf\GPBEmpty $argument, - $metadata = [], $options = []) { - return $this->_simpleRequest('/api.DeviceProfileService/ListAdrAlgorithms', - $argument, - ['\Chirpstack\Api\ListDeviceProfileAdrAlgorithmsResponse', 'decode'], - $metadata, $options); - } - -} diff --git a/api/php/generated/Chirpstack/Api/DeviceProfileTemplate.php b/api/php/generated/Chirpstack/Api/DeviceProfileTemplate.php deleted file mode 100644 index 077aac09..00000000 --- a/api/php/generated/Chirpstack/Api/DeviceProfileTemplate.php +++ /dev/null @@ -1,1069 +0,0 @@ -api.DeviceProfileTemplate - */ -class DeviceProfileTemplate extends \Google\Protobuf\Internal\Message -{ - /** - * Device-profile template ID. - * - * Generated from protobuf field string id = 1; - */ - protected $id = ''; - /** - * Name. - * - * Generated from protobuf field string name = 2; - */ - protected $name = ''; - /** - * Description. - * - * Generated from protobuf field string description = 3; - */ - protected $description = ''; - /** - * Vendor. - * - * Generated from protobuf field string vendor = 4; - */ - protected $vendor = ''; - /** - * Firmware. - * - * Generated from protobuf field string firmware = 5; - */ - protected $firmware = ''; - /** - * Region. - * - * Generated from protobuf field .common.Region region = 6; - */ - protected $region = 0; - /** - * LoRaWAN mac-version. - * - * Generated from protobuf field .common.MacVersion mac_version = 7; - */ - protected $mac_version = 0; - /** - * Regional parameters revision. - * - * Generated from protobuf field .common.RegParamsRevision reg_params_revision = 8; - */ - protected $reg_params_revision = 0; - /** - * ADR algorithm ID. - * - * Generated from protobuf field string adr_algorithm_id = 9; - */ - protected $adr_algorithm_id = ''; - /** - * Payload codec runtime. - * - * Generated from protobuf field .api.CodecRuntime payload_codec_runtime = 10; - */ - protected $payload_codec_runtime = 0; - /** - * Payload codec script. - * - * Generated from protobuf field string payload_codec_script = 11; - */ - protected $payload_codec_script = ''; - /** - * Flush queue on device activation. - * - * Generated from protobuf field bool flush_queue_on_activate = 12; - */ - protected $flush_queue_on_activate = false; - /** - * Uplink interval (seconds). - * This defines the expected uplink interval which the device uses for - * communication. When the uplink interval has expired and no uplink has - * been received, the device is considered inactive. - * - * Generated from protobuf field uint32 uplink_interval = 13; - */ - protected $uplink_interval = 0; - /** - * Device-status request interval (times / day). - * This defines the times per day that ChirpStack will request the device-status - * from the device. - * - * Generated from protobuf field uint32 device_status_req_interval = 14; - */ - protected $device_status_req_interval = 0; - /** - * Supports OTAA. - * - * Generated from protobuf field bool supports_otaa = 15; - */ - protected $supports_otaa = false; - /** - * Supports Class B. - * - * Generated from protobuf field bool supports_class_b = 16; - */ - protected $supports_class_b = false; - /** - * Supports Class-C. - * - * Generated from protobuf field bool supports_class_c = 17; - */ - protected $supports_class_c = false; - /** - * Class-B timeout (seconds). - * This is the maximum time ChirpStack will wait to receive an acknowledgement from the device (if requested). - * - * Generated from protobuf field uint32 class_b_timeout = 18; - */ - protected $class_b_timeout = 0; - /** - * Class-B ping-slots per beacon period. - * Valid options are: 0 - 7. - * The actual number of ping-slots per beacon period equals to 2^k. - * - * Generated from protobuf field uint32 class_b_ping_slot_nb_k = 19; - */ - protected $class_b_ping_slot_nb_k = 0; - /** - * Class-B ping-slot DR. - * - * Generated from protobuf field uint32 class_b_ping_slot_dr = 20; - */ - protected $class_b_ping_slot_dr = 0; - /** - * Class-B ping-slot freq (Hz). - * - * Generated from protobuf field uint32 class_b_ping_slot_freq = 21; - */ - protected $class_b_ping_slot_freq = 0; - /** - * Class-C timeout (seconds). - * This is the maximum time ChirpStack will wait to receive an acknowledgement from the device (if requested). - * - * Generated from protobuf field uint32 class_c_timeout = 22; - */ - protected $class_c_timeout = 0; - /** - * RX1 delay (for ABP). - * - * Generated from protobuf field uint32 abp_rx1_delay = 23; - */ - protected $abp_rx1_delay = 0; - /** - * RX1 DR offset (for ABP). - * - * Generated from protobuf field uint32 abp_rx1_dr_offset = 24; - */ - protected $abp_rx1_dr_offset = 0; - /** - * RX2 DR (for ABP). - * - * Generated from protobuf field uint32 abp_rx2_dr = 25; - */ - protected $abp_rx2_dr = 0; - /** - * RX2 frequency (for ABP, Hz). - * - * Generated from protobuf field uint32 abp_rx2_freq = 26; - */ - protected $abp_rx2_freq = 0; - /** - * User defined tags. - * - * Generated from protobuf field map tags = 27; - */ - private $tags; - /** - * Measurements. - * If defined, ChirpStack will visualize these metrics in the web-interface. - * - * Generated from protobuf field map measurements = 28; - */ - private $measurements; - /** - * Auto-detect measurements. - * If set to true, measurements will be automatically added based on the - * keys of the decoded payload. In cases where the decoded payload contains - * random keys in the data, you want to set this to false. - * - * Generated from protobuf field bool auto_detect_measurements = 29; - */ - protected $auto_detect_measurements = false; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $id - * Device-profile template ID. - * @type string $name - * Name. - * @type string $description - * Description. - * @type string $vendor - * Vendor. - * @type string $firmware - * Firmware. - * @type int $region - * Region. - * @type int $mac_version - * LoRaWAN mac-version. - * @type int $reg_params_revision - * Regional parameters revision. - * @type string $adr_algorithm_id - * ADR algorithm ID. - * @type int $payload_codec_runtime - * Payload codec runtime. - * @type string $payload_codec_script - * Payload codec script. - * @type bool $flush_queue_on_activate - * Flush queue on device activation. - * @type int $uplink_interval - * Uplink interval (seconds). - * This defines the expected uplink interval which the device uses for - * communication. When the uplink interval has expired and no uplink has - * been received, the device is considered inactive. - * @type int $device_status_req_interval - * Device-status request interval (times / day). - * This defines the times per day that ChirpStack will request the device-status - * from the device. - * @type bool $supports_otaa - * Supports OTAA. - * @type bool $supports_class_b - * Supports Class B. - * @type bool $supports_class_c - * Supports Class-C. - * @type int $class_b_timeout - * Class-B timeout (seconds). - * This is the maximum time ChirpStack will wait to receive an acknowledgement from the device (if requested). - * @type int $class_b_ping_slot_nb_k - * Class-B ping-slots per beacon period. - * Valid options are: 0 - 7. - * The actual number of ping-slots per beacon period equals to 2^k. - * @type int $class_b_ping_slot_dr - * Class-B ping-slot DR. - * @type int $class_b_ping_slot_freq - * Class-B ping-slot freq (Hz). - * @type int $class_c_timeout - * Class-C timeout (seconds). - * This is the maximum time ChirpStack will wait to receive an acknowledgement from the device (if requested). - * @type int $abp_rx1_delay - * RX1 delay (for ABP). - * @type int $abp_rx1_dr_offset - * RX1 DR offset (for ABP). - * @type int $abp_rx2_dr - * RX2 DR (for ABP). - * @type int $abp_rx2_freq - * RX2 frequency (for ABP, Hz). - * @type array|\Google\Protobuf\Internal\MapField $tags - * User defined tags. - * @type array|\Google\Protobuf\Internal\MapField $measurements - * Measurements. - * If defined, ChirpStack will visualize these metrics in the web-interface. - * @type bool $auto_detect_measurements - * Auto-detect measurements. - * If set to true, measurements will be automatically added based on the - * keys of the decoded payload. In cases where the decoded payload contains - * random keys in the data, you want to set this to false. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Chirpstack\Api\DeviceProfileTemplate::initOnce(); - parent::__construct($data); - } - - /** - * Device-profile template ID. - * - * Generated from protobuf field string id = 1; - * @return string - */ - public function getId() - { - return $this->id; - } - - /** - * Device-profile template ID. - * - * Generated from protobuf field string id = 1; - * @param string $var - * @return $this - */ - public function setId($var) - { - GPBUtil::checkString($var, True); - $this->id = $var; - - return $this; - } - - /** - * Name. - * - * Generated from protobuf field string name = 2; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Name. - * - * Generated from protobuf field string name = 2; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Description. - * - * Generated from protobuf field string description = 3; - * @return string - */ - public function getDescription() - { - return $this->description; - } - - /** - * Description. - * - * Generated from protobuf field string description = 3; - * @param string $var - * @return $this - */ - public function setDescription($var) - { - GPBUtil::checkString($var, True); - $this->description = $var; - - return $this; - } - - /** - * Vendor. - * - * Generated from protobuf field string vendor = 4; - * @return string - */ - public function getVendor() - { - return $this->vendor; - } - - /** - * Vendor. - * - * Generated from protobuf field string vendor = 4; - * @param string $var - * @return $this - */ - public function setVendor($var) - { - GPBUtil::checkString($var, True); - $this->vendor = $var; - - return $this; - } - - /** - * Firmware. - * - * Generated from protobuf field string firmware = 5; - * @return string - */ - public function getFirmware() - { - return $this->firmware; - } - - /** - * Firmware. - * - * Generated from protobuf field string firmware = 5; - * @param string $var - * @return $this - */ - public function setFirmware($var) - { - GPBUtil::checkString($var, True); - $this->firmware = $var; - - return $this; - } - - /** - * Region. - * - * Generated from protobuf field .common.Region region = 6; - * @return int - */ - public function getRegion() - { - return $this->region; - } - - /** - * Region. - * - * Generated from protobuf field .common.Region region = 6; - * @param int $var - * @return $this - */ - public function setRegion($var) - { - GPBUtil::checkEnum($var, \Chirpstack\Common\Region::class); - $this->region = $var; - - return $this; - } - - /** - * LoRaWAN mac-version. - * - * Generated from protobuf field .common.MacVersion mac_version = 7; - * @return int - */ - public function getMacVersion() - { - return $this->mac_version; - } - - /** - * LoRaWAN mac-version. - * - * Generated from protobuf field .common.MacVersion mac_version = 7; - * @param int $var - * @return $this - */ - public function setMacVersion($var) - { - GPBUtil::checkEnum($var, \Chirpstack\Common\MacVersion::class); - $this->mac_version = $var; - - return $this; - } - - /** - * Regional parameters revision. - * - * Generated from protobuf field .common.RegParamsRevision reg_params_revision = 8; - * @return int - */ - public function getRegParamsRevision() - { - return $this->reg_params_revision; - } - - /** - * Regional parameters revision. - * - * Generated from protobuf field .common.RegParamsRevision reg_params_revision = 8; - * @param int $var - * @return $this - */ - public function setRegParamsRevision($var) - { - GPBUtil::checkEnum($var, \Chirpstack\Common\RegParamsRevision::class); - $this->reg_params_revision = $var; - - return $this; - } - - /** - * ADR algorithm ID. - * - * Generated from protobuf field string adr_algorithm_id = 9; - * @return string - */ - public function getAdrAlgorithmId() - { - return $this->adr_algorithm_id; - } - - /** - * ADR algorithm ID. - * - * Generated from protobuf field string adr_algorithm_id = 9; - * @param string $var - * @return $this - */ - public function setAdrAlgorithmId($var) - { - GPBUtil::checkString($var, True); - $this->adr_algorithm_id = $var; - - return $this; - } - - /** - * Payload codec runtime. - * - * Generated from protobuf field .api.CodecRuntime payload_codec_runtime = 10; - * @return int - */ - public function getPayloadCodecRuntime() - { - return $this->payload_codec_runtime; - } - - /** - * Payload codec runtime. - * - * Generated from protobuf field .api.CodecRuntime payload_codec_runtime = 10; - * @param int $var - * @return $this - */ - public function setPayloadCodecRuntime($var) - { - GPBUtil::checkEnum($var, \Chirpstack\Api\CodecRuntime::class); - $this->payload_codec_runtime = $var; - - return $this; - } - - /** - * Payload codec script. - * - * Generated from protobuf field string payload_codec_script = 11; - * @return string - */ - public function getPayloadCodecScript() - { - return $this->payload_codec_script; - } - - /** - * Payload codec script. - * - * Generated from protobuf field string payload_codec_script = 11; - * @param string $var - * @return $this - */ - public function setPayloadCodecScript($var) - { - GPBUtil::checkString($var, True); - $this->payload_codec_script = $var; - - return $this; - } - - /** - * Flush queue on device activation. - * - * Generated from protobuf field bool flush_queue_on_activate = 12; - * @return bool - */ - public function getFlushQueueOnActivate() - { - return $this->flush_queue_on_activate; - } - - /** - * Flush queue on device activation. - * - * Generated from protobuf field bool flush_queue_on_activate = 12; - * @param bool $var - * @return $this - */ - public function setFlushQueueOnActivate($var) - { - GPBUtil::checkBool($var); - $this->flush_queue_on_activate = $var; - - return $this; - } - - /** - * Uplink interval (seconds). - * This defines the expected uplink interval which the device uses for - * communication. When the uplink interval has expired and no uplink has - * been received, the device is considered inactive. - * - * Generated from protobuf field uint32 uplink_interval = 13; - * @return int - */ - public function getUplinkInterval() - { - return $this->uplink_interval; - } - - /** - * Uplink interval (seconds). - * This defines the expected uplink interval which the device uses for - * communication. When the uplink interval has expired and no uplink has - * been received, the device is considered inactive. - * - * Generated from protobuf field uint32 uplink_interval = 13; - * @param int $var - * @return $this - */ - public function setUplinkInterval($var) - { - GPBUtil::checkUint32($var); - $this->uplink_interval = $var; - - return $this; - } - - /** - * Device-status request interval (times / day). - * This defines the times per day that ChirpStack will request the device-status - * from the device. - * - * Generated from protobuf field uint32 device_status_req_interval = 14; - * @return int - */ - public function getDeviceStatusReqInterval() - { - return $this->device_status_req_interval; - } - - /** - * Device-status request interval (times / day). - * This defines the times per day that ChirpStack will request the device-status - * from the device. - * - * Generated from protobuf field uint32 device_status_req_interval = 14; - * @param int $var - * @return $this - */ - public function setDeviceStatusReqInterval($var) - { - GPBUtil::checkUint32($var); - $this->device_status_req_interval = $var; - - return $this; - } - - /** - * Supports OTAA. - * - * Generated from protobuf field bool supports_otaa = 15; - * @return bool - */ - public function getSupportsOtaa() - { - return $this->supports_otaa; - } - - /** - * Supports OTAA. - * - * Generated from protobuf field bool supports_otaa = 15; - * @param bool $var - * @return $this - */ - public function setSupportsOtaa($var) - { - GPBUtil::checkBool($var); - $this->supports_otaa = $var; - - return $this; - } - - /** - * Supports Class B. - * - * Generated from protobuf field bool supports_class_b = 16; - * @return bool - */ - public function getSupportsClassB() - { - return $this->supports_class_b; - } - - /** - * Supports Class B. - * - * Generated from protobuf field bool supports_class_b = 16; - * @param bool $var - * @return $this - */ - public function setSupportsClassB($var) - { - GPBUtil::checkBool($var); - $this->supports_class_b = $var; - - return $this; - } - - /** - * Supports Class-C. - * - * Generated from protobuf field bool supports_class_c = 17; - * @return bool - */ - public function getSupportsClassC() - { - return $this->supports_class_c; - } - - /** - * Supports Class-C. - * - * Generated from protobuf field bool supports_class_c = 17; - * @param bool $var - * @return $this - */ - public function setSupportsClassC($var) - { - GPBUtil::checkBool($var); - $this->supports_class_c = $var; - - return $this; - } - - /** - * Class-B timeout (seconds). - * This is the maximum time ChirpStack will wait to receive an acknowledgement from the device (if requested). - * - * Generated from protobuf field uint32 class_b_timeout = 18; - * @return int - */ - public function getClassBTimeout() - { - return $this->class_b_timeout; - } - - /** - * Class-B timeout (seconds). - * This is the maximum time ChirpStack will wait to receive an acknowledgement from the device (if requested). - * - * Generated from protobuf field uint32 class_b_timeout = 18; - * @param int $var - * @return $this - */ - public function setClassBTimeout($var) - { - GPBUtil::checkUint32($var); - $this->class_b_timeout = $var; - - return $this; - } - - /** - * Class-B ping-slots per beacon period. - * Valid options are: 0 - 7. - * The actual number of ping-slots per beacon period equals to 2^k. - * - * Generated from protobuf field uint32 class_b_ping_slot_nb_k = 19; - * @return int - */ - public function getClassBPingSlotNbK() - { - return $this->class_b_ping_slot_nb_k; - } - - /** - * Class-B ping-slots per beacon period. - * Valid options are: 0 - 7. - * The actual number of ping-slots per beacon period equals to 2^k. - * - * Generated from protobuf field uint32 class_b_ping_slot_nb_k = 19; - * @param int $var - * @return $this - */ - public function setClassBPingSlotNbK($var) - { - GPBUtil::checkUint32($var); - $this->class_b_ping_slot_nb_k = $var; - - return $this; - } - - /** - * Class-B ping-slot DR. - * - * Generated from protobuf field uint32 class_b_ping_slot_dr = 20; - * @return int - */ - public function getClassBPingSlotDr() - { - return $this->class_b_ping_slot_dr; - } - - /** - * Class-B ping-slot DR. - * - * Generated from protobuf field uint32 class_b_ping_slot_dr = 20; - * @param int $var - * @return $this - */ - public function setClassBPingSlotDr($var) - { - GPBUtil::checkUint32($var); - $this->class_b_ping_slot_dr = $var; - - return $this; - } - - /** - * Class-B ping-slot freq (Hz). - * - * Generated from protobuf field uint32 class_b_ping_slot_freq = 21; - * @return int - */ - public function getClassBPingSlotFreq() - { - return $this->class_b_ping_slot_freq; - } - - /** - * Class-B ping-slot freq (Hz). - * - * Generated from protobuf field uint32 class_b_ping_slot_freq = 21; - * @param int $var - * @return $this - */ - public function setClassBPingSlotFreq($var) - { - GPBUtil::checkUint32($var); - $this->class_b_ping_slot_freq = $var; - - return $this; - } - - /** - * Class-C timeout (seconds). - * This is the maximum time ChirpStack will wait to receive an acknowledgement from the device (if requested). - * - * Generated from protobuf field uint32 class_c_timeout = 22; - * @return int - */ - public function getClassCTimeout() - { - return $this->class_c_timeout; - } - - /** - * Class-C timeout (seconds). - * This is the maximum time ChirpStack will wait to receive an acknowledgement from the device (if requested). - * - * Generated from protobuf field uint32 class_c_timeout = 22; - * @param int $var - * @return $this - */ - public function setClassCTimeout($var) - { - GPBUtil::checkUint32($var); - $this->class_c_timeout = $var; - - return $this; - } - - /** - * RX1 delay (for ABP). - * - * Generated from protobuf field uint32 abp_rx1_delay = 23; - * @return int - */ - public function getAbpRx1Delay() - { - return $this->abp_rx1_delay; - } - - /** - * RX1 delay (for ABP). - * - * Generated from protobuf field uint32 abp_rx1_delay = 23; - * @param int $var - * @return $this - */ - public function setAbpRx1Delay($var) - { - GPBUtil::checkUint32($var); - $this->abp_rx1_delay = $var; - - return $this; - } - - /** - * RX1 DR offset (for ABP). - * - * Generated from protobuf field uint32 abp_rx1_dr_offset = 24; - * @return int - */ - public function getAbpRx1DrOffset() - { - return $this->abp_rx1_dr_offset; - } - - /** - * RX1 DR offset (for ABP). - * - * Generated from protobuf field uint32 abp_rx1_dr_offset = 24; - * @param int $var - * @return $this - */ - public function setAbpRx1DrOffset($var) - { - GPBUtil::checkUint32($var); - $this->abp_rx1_dr_offset = $var; - - return $this; - } - - /** - * RX2 DR (for ABP). - * - * Generated from protobuf field uint32 abp_rx2_dr = 25; - * @return int - */ - public function getAbpRx2Dr() - { - return $this->abp_rx2_dr; - } - - /** - * RX2 DR (for ABP). - * - * Generated from protobuf field uint32 abp_rx2_dr = 25; - * @param int $var - * @return $this - */ - public function setAbpRx2Dr($var) - { - GPBUtil::checkUint32($var); - $this->abp_rx2_dr = $var; - - return $this; - } - - /** - * RX2 frequency (for ABP, Hz). - * - * Generated from protobuf field uint32 abp_rx2_freq = 26; - * @return int - */ - public function getAbpRx2Freq() - { - return $this->abp_rx2_freq; - } - - /** - * RX2 frequency (for ABP, Hz). - * - * Generated from protobuf field uint32 abp_rx2_freq = 26; - * @param int $var - * @return $this - */ - public function setAbpRx2Freq($var) - { - GPBUtil::checkUint32($var); - $this->abp_rx2_freq = $var; - - return $this; - } - - /** - * User defined tags. - * - * Generated from protobuf field map tags = 27; - * @return \Google\Protobuf\Internal\MapField - */ - public function getTags() - { - return $this->tags; - } - - /** - * User defined tags. - * - * Generated from protobuf field map tags = 27; - * @param array|\Google\Protobuf\Internal\MapField $var - * @return $this - */ - public function setTags($var) - { - $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); - $this->tags = $arr; - - return $this; - } - - /** - * Measurements. - * If defined, ChirpStack will visualize these metrics in the web-interface. - * - * Generated from protobuf field map measurements = 28; - * @return \Google\Protobuf\Internal\MapField - */ - public function getMeasurements() - { - return $this->measurements; - } - - /** - * Measurements. - * If defined, ChirpStack will visualize these metrics in the web-interface. - * - * Generated from protobuf field map measurements = 28; - * @param array|\Google\Protobuf\Internal\MapField $var - * @return $this - */ - public function setMeasurements($var) - { - $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::MESSAGE, \Chirpstack\Api\Measurement::class); - $this->measurements = $arr; - - return $this; - } - - /** - * Auto-detect measurements. - * If set to true, measurements will be automatically added based on the - * keys of the decoded payload. In cases where the decoded payload contains - * random keys in the data, you want to set this to false. - * - * Generated from protobuf field bool auto_detect_measurements = 29; - * @return bool - */ - public function getAutoDetectMeasurements() - { - return $this->auto_detect_measurements; - } - - /** - * Auto-detect measurements. - * If set to true, measurements will be automatically added based on the - * keys of the decoded payload. In cases where the decoded payload contains - * random keys in the data, you want to set this to false. - * - * Generated from protobuf field bool auto_detect_measurements = 29; - * @param bool $var - * @return $this - */ - public function setAutoDetectMeasurements($var) - { - GPBUtil::checkBool($var); - $this->auto_detect_measurements = $var; - - return $this; - } - -} - diff --git a/api/php/generated/Chirpstack/Api/DeviceProfileTemplateListItem.php b/api/php/generated/Chirpstack/Api/DeviceProfileTemplateListItem.php deleted file mode 100644 index ccf0514e..00000000 --- a/api/php/generated/Chirpstack/Api/DeviceProfileTemplateListItem.php +++ /dev/null @@ -1,459 +0,0 @@ -api.DeviceProfileTemplateListItem - */ -class DeviceProfileTemplateListItem extends \Google\Protobuf\Internal\Message -{ - /** - * Device-profile template ID. - * - * Generated from protobuf field string id = 1; - */ - protected $id = ''; - /** - * Created at timestamp. - * - * Generated from protobuf field .google.protobuf.Timestamp created_at = 2; - */ - protected $created_at = null; - /** - * Last update timestamp. - * - * Generated from protobuf field .google.protobuf.Timestamp updated_at = 3; - */ - protected $updated_at = null; - /** - * Name. - * - * Generated from protobuf field string name = 4; - */ - protected $name = ''; - /** - * Vendor. - * - * Generated from protobuf field string vendor = 5; - */ - protected $vendor = ''; - /** - * Firmware. - * - * Generated from protobuf field string firmware = 6; - */ - protected $firmware = ''; - /** - * Region. - * - * Generated from protobuf field .common.Region region = 7; - */ - protected $region = 0; - /** - * LoRaWAN mac-version. - * - * Generated from protobuf field .common.MacVersion mac_version = 8; - */ - protected $mac_version = 0; - /** - * Regional parameters revision. - * - * Generated from protobuf field .common.RegParamsRevision reg_params_revision = 9; - */ - protected $reg_params_revision = 0; - /** - * Supports OTAA. - * - * Generated from protobuf field bool supports_otaa = 10; - */ - protected $supports_otaa = false; - /** - * Supports Class-B. - * - * Generated from protobuf field bool supports_class_b = 11; - */ - protected $supports_class_b = false; - /** - * Supports Class-C. - * - * Generated from protobuf field bool supports_class_c = 12; - */ - protected $supports_class_c = false; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $id - * Device-profile template ID. - * @type \Google\Protobuf\Timestamp $created_at - * Created at timestamp. - * @type \Google\Protobuf\Timestamp $updated_at - * Last update timestamp. - * @type string $name - * Name. - * @type string $vendor - * Vendor. - * @type string $firmware - * Firmware. - * @type int $region - * Region. - * @type int $mac_version - * LoRaWAN mac-version. - * @type int $reg_params_revision - * Regional parameters revision. - * @type bool $supports_otaa - * Supports OTAA. - * @type bool $supports_class_b - * Supports Class-B. - * @type bool $supports_class_c - * Supports Class-C. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Chirpstack\Api\DeviceProfileTemplate::initOnce(); - parent::__construct($data); - } - - /** - * Device-profile template ID. - * - * Generated from protobuf field string id = 1; - * @return string - */ - public function getId() - { - return $this->id; - } - - /** - * Device-profile template ID. - * - * Generated from protobuf field string id = 1; - * @param string $var - * @return $this - */ - public function setId($var) - { - GPBUtil::checkString($var, True); - $this->id = $var; - - return $this; - } - - /** - * Created at timestamp. - * - * Generated from protobuf field .google.protobuf.Timestamp created_at = 2; - * @return \Google\Protobuf\Timestamp|null - */ - public function getCreatedAt() - { - return $this->created_at; - } - - public function hasCreatedAt() - { - return isset($this->created_at); - } - - public function clearCreatedAt() - { - unset($this->created_at); - } - - /** - * Created at timestamp. - * - * Generated from protobuf field .google.protobuf.Timestamp created_at = 2; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setCreatedAt($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->created_at = $var; - - return $this; - } - - /** - * Last update timestamp. - * - * Generated from protobuf field .google.protobuf.Timestamp updated_at = 3; - * @return \Google\Protobuf\Timestamp|null - */ - public function getUpdatedAt() - { - return $this->updated_at; - } - - public function hasUpdatedAt() - { - return isset($this->updated_at); - } - - public function clearUpdatedAt() - { - unset($this->updated_at); - } - - /** - * Last update timestamp. - * - * Generated from protobuf field .google.protobuf.Timestamp updated_at = 3; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setUpdatedAt($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->updated_at = $var; - - return $this; - } - - /** - * Name. - * - * Generated from protobuf field string name = 4; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Name. - * - * Generated from protobuf field string name = 4; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Vendor. - * - * Generated from protobuf field string vendor = 5; - * @return string - */ - public function getVendor() - { - return $this->vendor; - } - - /** - * Vendor. - * - * Generated from protobuf field string vendor = 5; - * @param string $var - * @return $this - */ - public function setVendor($var) - { - GPBUtil::checkString($var, True); - $this->vendor = $var; - - return $this; - } - - /** - * Firmware. - * - * Generated from protobuf field string firmware = 6; - * @return string - */ - public function getFirmware() - { - return $this->firmware; - } - - /** - * Firmware. - * - * Generated from protobuf field string firmware = 6; - * @param string $var - * @return $this - */ - public function setFirmware($var) - { - GPBUtil::checkString($var, True); - $this->firmware = $var; - - return $this; - } - - /** - * Region. - * - * Generated from protobuf field .common.Region region = 7; - * @return int - */ - public function getRegion() - { - return $this->region; - } - - /** - * Region. - * - * Generated from protobuf field .common.Region region = 7; - * @param int $var - * @return $this - */ - public function setRegion($var) - { - GPBUtil::checkEnum($var, \Chirpstack\Common\Region::class); - $this->region = $var; - - return $this; - } - - /** - * LoRaWAN mac-version. - * - * Generated from protobuf field .common.MacVersion mac_version = 8; - * @return int - */ - public function getMacVersion() - { - return $this->mac_version; - } - - /** - * LoRaWAN mac-version. - * - * Generated from protobuf field .common.MacVersion mac_version = 8; - * @param int $var - * @return $this - */ - public function setMacVersion($var) - { - GPBUtil::checkEnum($var, \Chirpstack\Common\MacVersion::class); - $this->mac_version = $var; - - return $this; - } - - /** - * Regional parameters revision. - * - * Generated from protobuf field .common.RegParamsRevision reg_params_revision = 9; - * @return int - */ - public function getRegParamsRevision() - { - return $this->reg_params_revision; - } - - /** - * Regional parameters revision. - * - * Generated from protobuf field .common.RegParamsRevision reg_params_revision = 9; - * @param int $var - * @return $this - */ - public function setRegParamsRevision($var) - { - GPBUtil::checkEnum($var, \Chirpstack\Common\RegParamsRevision::class); - $this->reg_params_revision = $var; - - return $this; - } - - /** - * Supports OTAA. - * - * Generated from protobuf field bool supports_otaa = 10; - * @return bool - */ - public function getSupportsOtaa() - { - return $this->supports_otaa; - } - - /** - * Supports OTAA. - * - * Generated from protobuf field bool supports_otaa = 10; - * @param bool $var - * @return $this - */ - public function setSupportsOtaa($var) - { - GPBUtil::checkBool($var); - $this->supports_otaa = $var; - - return $this; - } - - /** - * Supports Class-B. - * - * Generated from protobuf field bool supports_class_b = 11; - * @return bool - */ - public function getSupportsClassB() - { - return $this->supports_class_b; - } - - /** - * Supports Class-B. - * - * Generated from protobuf field bool supports_class_b = 11; - * @param bool $var - * @return $this - */ - public function setSupportsClassB($var) - { - GPBUtil::checkBool($var); - $this->supports_class_b = $var; - - return $this; - } - - /** - * Supports Class-C. - * - * Generated from protobuf field bool supports_class_c = 12; - * @return bool - */ - public function getSupportsClassC() - { - return $this->supports_class_c; - } - - /** - * Supports Class-C. - * - * Generated from protobuf field bool supports_class_c = 12; - * @param bool $var - * @return $this - */ - public function setSupportsClassC($var) - { - GPBUtil::checkBool($var); - $this->supports_class_c = $var; - - return $this; - } - -} - diff --git a/api/php/generated/Chirpstack/Api/DeviceProfileTemplateServiceClient.php b/api/php/generated/Chirpstack/Api/DeviceProfileTemplateServiceClient.php deleted file mode 100644 index 4999e423..00000000 --- a/api/php/generated/Chirpstack/Api/DeviceProfileTemplateServiceClient.php +++ /dev/null @@ -1,95 +0,0 @@ -_simpleRequest('/api.DeviceProfileTemplateService/Create', - $argument, - ['\Google\Protobuf\GPBEmpty', 'decode'], - $metadata, $options); - } - - /** - * Get the device-profile template for the given ID. - * @param \Chirpstack\Api\GetDeviceProfileTemplateRequest $argument input argument - * @param array $metadata metadata - * @param array $options call options - * @return \Grpc\UnaryCall - */ - public function Get(\Chirpstack\Api\GetDeviceProfileTemplateRequest $argument, - $metadata = [], $options = []) { - return $this->_simpleRequest('/api.DeviceProfileTemplateService/Get', - $argument, - ['\Chirpstack\Api\GetDeviceProfileTemplateResponse', 'decode'], - $metadata, $options); - } - - /** - * Update the given device-profile template. - * @param \Chirpstack\Api\UpdateDeviceProfileTemplateRequest $argument input argument - * @param array $metadata metadata - * @param array $options call options - * @return \Grpc\UnaryCall - */ - public function Update(\Chirpstack\Api\UpdateDeviceProfileTemplateRequest $argument, - $metadata = [], $options = []) { - return $this->_simpleRequest('/api.DeviceProfileTemplateService/Update', - $argument, - ['\Google\Protobuf\GPBEmpty', 'decode'], - $metadata, $options); - } - - /** - * Delete the device-profile template with the given ID. - * @param \Chirpstack\Api\DeleteDeviceProfileTemplateRequest $argument input argument - * @param array $metadata metadata - * @param array $options call options - * @return \Grpc\UnaryCall - */ - public function Delete(\Chirpstack\Api\DeleteDeviceProfileTemplateRequest $argument, - $metadata = [], $options = []) { - return $this->_simpleRequest('/api.DeviceProfileTemplateService/Delete', - $argument, - ['\Google\Protobuf\GPBEmpty', 'decode'], - $metadata, $options); - } - - /** - * List the available device-profile templates. - * @param \Chirpstack\Api\ListDeviceProfileTemplatesRequest $argument input argument - * @param array $metadata metadata - * @param array $options call options - * @return \Grpc\UnaryCall - */ - public function List(\Chirpstack\Api\ListDeviceProfileTemplatesRequest $argument, - $metadata = [], $options = []) { - return $this->_simpleRequest('/api.DeviceProfileTemplateService/List', - $argument, - ['\Chirpstack\Api\ListDeviceProfileTemplatesResponse', 'decode'], - $metadata, $options); - } - -} diff --git a/api/php/generated/Chirpstack/Api/DeviceQueueItem.php b/api/php/generated/Chirpstack/Api/DeviceQueueItem.php deleted file mode 100644 index 0a3e7350..00000000 --- a/api/php/generated/Chirpstack/Api/DeviceQueueItem.php +++ /dev/null @@ -1,387 +0,0 @@ -api.DeviceQueueItem - */ -class DeviceQueueItem extends \Google\Protobuf\Internal\Message -{ - /** - * ID (UUID). - * This is automatically generated on enqueue. - * - * Generated from protobuf field string id = 1; - */ - protected $id = ''; - /** - * Device EUI (EUI64). - * - * Generated from protobuf field string dev_eui = 2; - */ - protected $dev_eui = ''; - /** - * Confirmed. - * - * Generated from protobuf field bool confirmed = 3; - */ - protected $confirmed = false; - /** - * FPort (must be > 0). - * - * Generated from protobuf field uint32 f_port = 4; - */ - protected $f_port = 0; - /** - * Data. - * Or use the json_object field when a codec has been configured. - * - * Generated from protobuf field bytes data = 5; - */ - protected $data = ''; - /** - * Only use this when a codec has been configured that can encode this - * object to bytes. - * - * Generated from protobuf field .google.protobuf.Struct object = 6; - */ - protected $object = null; - /** - * Is pending. - * This is set by ChirpStack to true when the downlink is pending (e.g. it - * has been sent, but a confirmation is still pending). - * - * Generated from protobuf field bool is_pending = 7; - */ - protected $is_pending = false; - /** - * Downlink frame-counter. - * Do not set this for plain-text data payloads. It will be automatically set - * by ChirpStack when the payload has been sent as downlink. - * - * Generated from protobuf field uint32 f_cnt_down = 8; - */ - protected $f_cnt_down = 0; - /** - * Is encrypted. - * This must be set to true if the end-application has already encrypted - * the data payload. In this case, the f_cnt_down field must be set to - * the corresponding frame-counter which has been used during the encryption. - * - * Generated from protobuf field bool is_encrypted = 9; - */ - protected $is_encrypted = false; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $id - * ID (UUID). - * This is automatically generated on enqueue. - * @type string $dev_eui - * Device EUI (EUI64). - * @type bool $confirmed - * Confirmed. - * @type int $f_port - * FPort (must be > 0). - * @type string $data - * Data. - * Or use the json_object field when a codec has been configured. - * @type \Google\Protobuf\Struct $object - * Only use this when a codec has been configured that can encode this - * object to bytes. - * @type bool $is_pending - * Is pending. - * This is set by ChirpStack to true when the downlink is pending (e.g. it - * has been sent, but a confirmation is still pending). - * @type int $f_cnt_down - * Downlink frame-counter. - * Do not set this for plain-text data payloads. It will be automatically set - * by ChirpStack when the payload has been sent as downlink. - * @type bool $is_encrypted - * Is encrypted. - * This must be set to true if the end-application has already encrypted - * the data payload. In this case, the f_cnt_down field must be set to - * the corresponding frame-counter which has been used during the encryption. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Chirpstack\Api\Device::initOnce(); - parent::__construct($data); - } - - /** - * ID (UUID). - * This is automatically generated on enqueue. - * - * Generated from protobuf field string id = 1; - * @return string - */ - public function getId() - { - return $this->id; - } - - /** - * ID (UUID). - * This is automatically generated on enqueue. - * - * Generated from protobuf field string id = 1; - * @param string $var - * @return $this - */ - public function setId($var) - { - GPBUtil::checkString($var, True); - $this->id = $var; - - return $this; - } - - /** - * Device EUI (EUI64). - * - * Generated from protobuf field string dev_eui = 2; - * @return string - */ - public function getDevEui() - { - return $this->dev_eui; - } - - /** - * Device EUI (EUI64). - * - * Generated from protobuf field string dev_eui = 2; - * @param string $var - * @return $this - */ - public function setDevEui($var) - { - GPBUtil::checkString($var, True); - $this->dev_eui = $var; - - return $this; - } - - /** - * Confirmed. - * - * Generated from protobuf field bool confirmed = 3; - * @return bool - */ - public function getConfirmed() - { - return $this->confirmed; - } - - /** - * Confirmed. - * - * Generated from protobuf field bool confirmed = 3; - * @param bool $var - * @return $this - */ - public function setConfirmed($var) - { - GPBUtil::checkBool($var); - $this->confirmed = $var; - - return $this; - } - - /** - * FPort (must be > 0). - * - * Generated from protobuf field uint32 f_port = 4; - * @return int - */ - public function getFPort() - { - return $this->f_port; - } - - /** - * FPort (must be > 0). - * - * Generated from protobuf field uint32 f_port = 4; - * @param int $var - * @return $this - */ - public function setFPort($var) - { - GPBUtil::checkUint32($var); - $this->f_port = $var; - - return $this; - } - - /** - * Data. - * Or use the json_object field when a codec has been configured. - * - * Generated from protobuf field bytes data = 5; - * @return string - */ - public function getData() - { - return $this->data; - } - - /** - * Data. - * Or use the json_object field when a codec has been configured. - * - * Generated from protobuf field bytes data = 5; - * @param string $var - * @return $this - */ - public function setData($var) - { - GPBUtil::checkString($var, False); - $this->data = $var; - - return $this; - } - - /** - * Only use this when a codec has been configured that can encode this - * object to bytes. - * - * Generated from protobuf field .google.protobuf.Struct object = 6; - * @return \Google\Protobuf\Struct|null - */ - public function getObject() - { - return $this->object; - } - - public function hasObject() - { - return isset($this->object); - } - - public function clearObject() - { - unset($this->object); - } - - /** - * Only use this when a codec has been configured that can encode this - * object to bytes. - * - * Generated from protobuf field .google.protobuf.Struct object = 6; - * @param \Google\Protobuf\Struct $var - * @return $this - */ - public function setObject($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Struct::class); - $this->object = $var; - - return $this; - } - - /** - * Is pending. - * This is set by ChirpStack to true when the downlink is pending (e.g. it - * has been sent, but a confirmation is still pending). - * - * Generated from protobuf field bool is_pending = 7; - * @return bool - */ - public function getIsPending() - { - return $this->is_pending; - } - - /** - * Is pending. - * This is set by ChirpStack to true when the downlink is pending (e.g. it - * has been sent, but a confirmation is still pending). - * - * Generated from protobuf field bool is_pending = 7; - * @param bool $var - * @return $this - */ - public function setIsPending($var) - { - GPBUtil::checkBool($var); - $this->is_pending = $var; - - return $this; - } - - /** - * Downlink frame-counter. - * Do not set this for plain-text data payloads. It will be automatically set - * by ChirpStack when the payload has been sent as downlink. - * - * Generated from protobuf field uint32 f_cnt_down = 8; - * @return int - */ - public function getFCntDown() - { - return $this->f_cnt_down; - } - - /** - * Downlink frame-counter. - * Do not set this for plain-text data payloads. It will be automatically set - * by ChirpStack when the payload has been sent as downlink. - * - * Generated from protobuf field uint32 f_cnt_down = 8; - * @param int $var - * @return $this - */ - public function setFCntDown($var) - { - GPBUtil::checkUint32($var); - $this->f_cnt_down = $var; - - return $this; - } - - /** - * Is encrypted. - * This must be set to true if the end-application has already encrypted - * the data payload. In this case, the f_cnt_down field must be set to - * the corresponding frame-counter which has been used during the encryption. - * - * Generated from protobuf field bool is_encrypted = 9; - * @return bool - */ - public function getIsEncrypted() - { - return $this->is_encrypted; - } - - /** - * Is encrypted. - * This must be set to true if the end-application has already encrypted - * the data payload. In this case, the f_cnt_down field must be set to - * the corresponding frame-counter which has been used during the encryption. - * - * Generated from protobuf field bool is_encrypted = 9; - * @param bool $var - * @return $this - */ - public function setIsEncrypted($var) - { - GPBUtil::checkBool($var); - $this->is_encrypted = $var; - - return $this; - } - -} - diff --git a/api/php/generated/Chirpstack/Api/DeviceServiceClient.php b/api/php/generated/Chirpstack/Api/DeviceServiceClient.php deleted file mode 100644 index f3e7be8f..00000000 --- a/api/php/generated/Chirpstack/Api/DeviceServiceClient.php +++ /dev/null @@ -1,328 +0,0 @@ -_simpleRequest('/api.DeviceService/Create', - $argument, - ['\Google\Protobuf\GPBEmpty', 'decode'], - $metadata, $options); - } - - /** - * Get returns the device for the given DevEUI. - * @param \Chirpstack\Api\GetDeviceRequest $argument input argument - * @param array $metadata metadata - * @param array $options call options - * @return \Grpc\UnaryCall - */ - public function Get(\Chirpstack\Api\GetDeviceRequest $argument, - $metadata = [], $options = []) { - return $this->_simpleRequest('/api.DeviceService/Get', - $argument, - ['\Chirpstack\Api\GetDeviceResponse', 'decode'], - $metadata, $options); - } - - /** - * Update the given device. - * @param \Chirpstack\Api\UpdateDeviceRequest $argument input argument - * @param array $metadata metadata - * @param array $options call options - * @return \Grpc\UnaryCall - */ - public function Update(\Chirpstack\Api\UpdateDeviceRequest $argument, - $metadata = [], $options = []) { - return $this->_simpleRequest('/api.DeviceService/Update', - $argument, - ['\Google\Protobuf\GPBEmpty', 'decode'], - $metadata, $options); - } - - /** - * Delete the device with the given DevEUI. - * @param \Chirpstack\Api\DeleteDeviceRequest $argument input argument - * @param array $metadata metadata - * @param array $options call options - * @return \Grpc\UnaryCall - */ - public function Delete(\Chirpstack\Api\DeleteDeviceRequest $argument, - $metadata = [], $options = []) { - return $this->_simpleRequest('/api.DeviceService/Delete', - $argument, - ['\Google\Protobuf\GPBEmpty', 'decode'], - $metadata, $options); - } - - /** - * Get the list of devices. - * @param \Chirpstack\Api\ListDevicesRequest $argument input argument - * @param array $metadata metadata - * @param array $options call options - * @return \Grpc\UnaryCall - */ - public function List(\Chirpstack\Api\ListDevicesRequest $argument, - $metadata = [], $options = []) { - return $this->_simpleRequest('/api.DeviceService/List', - $argument, - ['\Chirpstack\Api\ListDevicesResponse', 'decode'], - $metadata, $options); - } - - /** - * Create the given device-keys. - * @param \Chirpstack\Api\CreateDeviceKeysRequest $argument input argument - * @param array $metadata metadata - * @param array $options call options - * @return \Grpc\UnaryCall - */ - public function CreateKeys(\Chirpstack\Api\CreateDeviceKeysRequest $argument, - $metadata = [], $options = []) { - return $this->_simpleRequest('/api.DeviceService/CreateKeys', - $argument, - ['\Google\Protobuf\GPBEmpty', 'decode'], - $metadata, $options); - } - - /** - * Get the device-keys for the given DevEUI. - * @param \Chirpstack\Api\GetDeviceKeysRequest $argument input argument - * @param array $metadata metadata - * @param array $options call options - * @return \Grpc\UnaryCall - */ - public function GetKeys(\Chirpstack\Api\GetDeviceKeysRequest $argument, - $metadata = [], $options = []) { - return $this->_simpleRequest('/api.DeviceService/GetKeys', - $argument, - ['\Chirpstack\Api\GetDeviceKeysResponse', 'decode'], - $metadata, $options); - } - - /** - * Update the given device-keys. - * @param \Chirpstack\Api\UpdateDeviceKeysRequest $argument input argument - * @param array $metadata metadata - * @param array $options call options - * @return \Grpc\UnaryCall - */ - public function UpdateKeys(\Chirpstack\Api\UpdateDeviceKeysRequest $argument, - $metadata = [], $options = []) { - return $this->_simpleRequest('/api.DeviceService/UpdateKeys', - $argument, - ['\Google\Protobuf\GPBEmpty', 'decode'], - $metadata, $options); - } - - /** - * Delete the device-keys for the given DevEUI. - * @param \Chirpstack\Api\DeleteDeviceKeysRequest $argument input argument - * @param array $metadata metadata - * @param array $options call options - * @return \Grpc\UnaryCall - */ - public function DeleteKeys(\Chirpstack\Api\DeleteDeviceKeysRequest $argument, - $metadata = [], $options = []) { - return $this->_simpleRequest('/api.DeviceService/DeleteKeys', - $argument, - ['\Google\Protobuf\GPBEmpty', 'decode'], - $metadata, $options); - } - - /** - * FlushDevNonces flushes the OTAA device nonces. - * @param \Chirpstack\Api\FlushDevNoncesRequest $argument input argument - * @param array $metadata metadata - * @param array $options call options - * @return \Grpc\UnaryCall - */ - public function FlushDevNonces(\Chirpstack\Api\FlushDevNoncesRequest $argument, - $metadata = [], $options = []) { - return $this->_simpleRequest('/api.DeviceService/FlushDevNonces', - $argument, - ['\Google\Protobuf\GPBEmpty', 'decode'], - $metadata, $options); - } - - /** - * Activate (re)activates the device with the given parameters (for ABP or for - * importing OTAA activations). - * @param \Chirpstack\Api\ActivateDeviceRequest $argument input argument - * @param array $metadata metadata - * @param array $options call options - * @return \Grpc\UnaryCall - */ - public function Activate(\Chirpstack\Api\ActivateDeviceRequest $argument, - $metadata = [], $options = []) { - return $this->_simpleRequest('/api.DeviceService/Activate', - $argument, - ['\Google\Protobuf\GPBEmpty', 'decode'], - $metadata, $options); - } - - /** - * Deactivate de-activates the device. - * @param \Chirpstack\Api\DeactivateDeviceRequest $argument input argument - * @param array $metadata metadata - * @param array $options call options - * @return \Grpc\UnaryCall - */ - public function Deactivate(\Chirpstack\Api\DeactivateDeviceRequest $argument, - $metadata = [], $options = []) { - return $this->_simpleRequest('/api.DeviceService/Deactivate', - $argument, - ['\Google\Protobuf\GPBEmpty', 'decode'], - $metadata, $options); - } - - /** - * GetActivation returns the current activation details of the device (OTAA or - * ABP). - * @param \Chirpstack\Api\GetDeviceActivationRequest $argument input argument - * @param array $metadata metadata - * @param array $options call options - * @return \Grpc\UnaryCall - */ - public function GetActivation(\Chirpstack\Api\GetDeviceActivationRequest $argument, - $metadata = [], $options = []) { - return $this->_simpleRequest('/api.DeviceService/GetActivation', - $argument, - ['\Chirpstack\Api\GetDeviceActivationResponse', 'decode'], - $metadata, $options); - } - - /** - * GetRandomDevAddr returns a random DevAddr taking the NwkID prefix into - * account. - * @param \Chirpstack\Api\GetRandomDevAddrRequest $argument input argument - * @param array $metadata metadata - * @param array $options call options - * @return \Grpc\UnaryCall - */ - public function GetRandomDevAddr(\Chirpstack\Api\GetRandomDevAddrRequest $argument, - $metadata = [], $options = []) { - return $this->_simpleRequest('/api.DeviceService/GetRandomDevAddr', - $argument, - ['\Chirpstack\Api\GetRandomDevAddrResponse', 'decode'], - $metadata, $options); - } - - /** - * GetMetrics returns the device metrics. - * Note that this requires a device-profile with codec and measurements - * configured. - * @param \Chirpstack\Api\GetDeviceMetricsRequest $argument input argument - * @param array $metadata metadata - * @param array $options call options - * @return \Grpc\UnaryCall - */ - public function GetMetrics(\Chirpstack\Api\GetDeviceMetricsRequest $argument, - $metadata = [], $options = []) { - return $this->_simpleRequest('/api.DeviceService/GetMetrics', - $argument, - ['\Chirpstack\Api\GetDeviceMetricsResponse', 'decode'], - $metadata, $options); - } - - /** - * GetLinkMetrics returns the device link metrics. - * This includes uplinks, downlinks, RSSI, SNR, etc... - * @param \Chirpstack\Api\GetDeviceLinkMetricsRequest $argument input argument - * @param array $metadata metadata - * @param array $options call options - * @return \Grpc\UnaryCall - */ - public function GetLinkMetrics(\Chirpstack\Api\GetDeviceLinkMetricsRequest $argument, - $metadata = [], $options = []) { - return $this->_simpleRequest('/api.DeviceService/GetLinkMetrics', - $argument, - ['\Chirpstack\Api\GetDeviceLinkMetricsResponse', 'decode'], - $metadata, $options); - } - - /** - * Enqueue adds the given item to the downlink queue. - * @param \Chirpstack\Api\EnqueueDeviceQueueItemRequest $argument input argument - * @param array $metadata metadata - * @param array $options call options - * @return \Grpc\UnaryCall - */ - public function Enqueue(\Chirpstack\Api\EnqueueDeviceQueueItemRequest $argument, - $metadata = [], $options = []) { - return $this->_simpleRequest('/api.DeviceService/Enqueue', - $argument, - ['\Chirpstack\Api\EnqueueDeviceQueueItemResponse', 'decode'], - $metadata, $options); - } - - /** - * FlushQueue flushes the downlink device-queue. - * @param \Chirpstack\Api\FlushDeviceQueueRequest $argument input argument - * @param array $metadata metadata - * @param array $options call options - * @return \Grpc\UnaryCall - */ - public function FlushQueue(\Chirpstack\Api\FlushDeviceQueueRequest $argument, - $metadata = [], $options = []) { - return $this->_simpleRequest('/api.DeviceService/FlushQueue', - $argument, - ['\Google\Protobuf\GPBEmpty', 'decode'], - $metadata, $options); - } - - /** - * GetQueue returns the downlink device-queue. - * @param \Chirpstack\Api\GetDeviceQueueItemsRequest $argument input argument - * @param array $metadata metadata - * @param array $options call options - * @return \Grpc\UnaryCall - */ - public function GetQueue(\Chirpstack\Api\GetDeviceQueueItemsRequest $argument, - $metadata = [], $options = []) { - return $this->_simpleRequest('/api.DeviceService/GetQueue', - $argument, - ['\Chirpstack\Api\GetDeviceQueueItemsResponse', 'decode'], - $metadata, $options); - } - - /** - * GetNextFCntDown returns the next FCntDown to use for enqueing encrypted - * downlinks. The difference with the DeviceActivation f_cont_down is that - * this method takes potential existing queue-items into account. - * @param \Chirpstack\Api\GetDeviceNextFCntDownRequest $argument input argument - * @param array $metadata metadata - * @param array $options call options - * @return \Grpc\UnaryCall - */ - public function GetNextFCntDown(\Chirpstack\Api\GetDeviceNextFCntDownRequest $argument, - $metadata = [], $options = []) { - return $this->_simpleRequest('/api.DeviceService/GetNextFCntDown', - $argument, - ['\Chirpstack\Api\GetDeviceNextFCntDownResponse', 'decode'], - $metadata, $options); - } - -} diff --git a/api/php/generated/Chirpstack/Api/DeviceState.php b/api/php/generated/Chirpstack/Api/DeviceState.php deleted file mode 100644 index 3c752072..00000000 --- a/api/php/generated/Chirpstack/Api/DeviceState.php +++ /dev/null @@ -1,99 +0,0 @@ -api.DeviceState - */ -class DeviceState extends \Google\Protobuf\Internal\Message -{ - /** - * Name. - * - * Generated from protobuf field string name = 2; - */ - protected $name = ''; - /** - * Value. - * - * Generated from protobuf field string value = 3; - */ - protected $value = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Name. - * @type string $value - * Value. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Chirpstack\Api\Device::initOnce(); - parent::__construct($data); - } - - /** - * Name. - * - * Generated from protobuf field string name = 2; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Name. - * - * Generated from protobuf field string name = 2; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Value. - * - * Generated from protobuf field string value = 3; - * @return string - */ - public function getValue() - { - return $this->value; - } - - /** - * Value. - * - * Generated from protobuf field string value = 3; - * @param string $var - * @return $this - */ - public function setValue($var) - { - GPBUtil::checkString($var, True); - $this->value = $var; - - return $this; - } - -} - diff --git a/api/php/generated/Chirpstack/Api/DeviceStatus.php b/api/php/generated/Chirpstack/Api/DeviceStatus.php deleted file mode 100644 index d2d1f57d..00000000 --- a/api/php/generated/Chirpstack/Api/DeviceStatus.php +++ /dev/null @@ -1,141 +0,0 @@ -api.DeviceStatus - */ -class DeviceStatus extends \Google\Protobuf\Internal\Message -{ - /** - * The device margin status - * -32..32: The demodulation SNR ration in dB - * - * Generated from protobuf field int32 margin = 1; - */ - protected $margin = 0; - /** - * Device is connected to an external power source. - * - * Generated from protobuf field bool external_power_source = 2; - */ - protected $external_power_source = false; - /** - * Device battery level as a percentage. - * -1 when the battery level is not available. - * - * Generated from protobuf field float battery_level = 3; - */ - protected $battery_level = 0.0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $margin - * The device margin status - * -32..32: The demodulation SNR ration in dB - * @type bool $external_power_source - * Device is connected to an external power source. - * @type float $battery_level - * Device battery level as a percentage. - * -1 when the battery level is not available. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Chirpstack\Api\Device::initOnce(); - parent::__construct($data); - } - - /** - * The device margin status - * -32..32: The demodulation SNR ration in dB - * - * Generated from protobuf field int32 margin = 1; - * @return int - */ - public function getMargin() - { - return $this->margin; - } - - /** - * The device margin status - * -32..32: The demodulation SNR ration in dB - * - * Generated from protobuf field int32 margin = 1; - * @param int $var - * @return $this - */ - public function setMargin($var) - { - GPBUtil::checkInt32($var); - $this->margin = $var; - - return $this; - } - - /** - * Device is connected to an external power source. - * - * Generated from protobuf field bool external_power_source = 2; - * @return bool - */ - public function getExternalPowerSource() - { - return $this->external_power_source; - } - - /** - * Device is connected to an external power source. - * - * Generated from protobuf field bool external_power_source = 2; - * @param bool $var - * @return $this - */ - public function setExternalPowerSource($var) - { - GPBUtil::checkBool($var); - $this->external_power_source = $var; - - return $this; - } - - /** - * Device battery level as a percentage. - * -1 when the battery level is not available. - * - * Generated from protobuf field float battery_level = 3; - * @return float - */ - public function getBatteryLevel() - { - return $this->battery_level; - } - - /** - * Device battery level as a percentage. - * -1 when the battery level is not available. - * - * Generated from protobuf field float battery_level = 3; - * @param float $var - * @return $this - */ - public function setBatteryLevel($var) - { - GPBUtil::checkFloat($var); - $this->battery_level = $var; - - return $this; - } - -} - diff --git a/api/php/generated/Chirpstack/Api/Encoding.php b/api/php/generated/Chirpstack/Api/Encoding.php deleted file mode 100644 index 85c12b9d..00000000 --- a/api/php/generated/Chirpstack/Api/Encoding.php +++ /dev/null @@ -1,48 +0,0 @@ -api.Encoding - */ -class Encoding -{ - /** - * Generated from protobuf enum JSON = 0; - */ - const JSON = 0; - /** - * Generated from protobuf enum PROTOBUF = 1; - */ - const PROTOBUF = 1; - - private static $valueToName = [ - self::JSON => 'JSON', - self::PROTOBUF => 'PROTOBUF', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - diff --git a/api/php/generated/Chirpstack/Api/EnqueueDeviceQueueItemRequest.php b/api/php/generated/Chirpstack/Api/EnqueueDeviceQueueItemRequest.php deleted file mode 100644 index 4a174506..00000000 --- a/api/php/generated/Chirpstack/Api/EnqueueDeviceQueueItemRequest.php +++ /dev/null @@ -1,68 +0,0 @@ -api.EnqueueDeviceQueueItemRequest - */ -class EnqueueDeviceQueueItemRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Generated from protobuf field .api.DeviceQueueItem queue_item = 1; - */ - protected $queue_item = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Chirpstack\Api\DeviceQueueItem $queue_item - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Chirpstack\Api\Device::initOnce(); - parent::__construct($data); - } - - /** - * Generated from protobuf field .api.DeviceQueueItem queue_item = 1; - * @return \Chirpstack\Api\DeviceQueueItem|null - */ - public function getQueueItem() - { - return $this->queue_item; - } - - public function hasQueueItem() - { - return isset($this->queue_item); - } - - public function clearQueueItem() - { - unset($this->queue_item); - } - - /** - * Generated from protobuf field .api.DeviceQueueItem queue_item = 1; - * @param \Chirpstack\Api\DeviceQueueItem $var - * @return $this - */ - public function setQueueItem($var) - { - GPBUtil::checkMessage($var, \Chirpstack\Api\DeviceQueueItem::class); - $this->queue_item = $var; - - return $this; - } - -} - diff --git a/api/php/generated/Chirpstack/Api/EnqueueDeviceQueueItemResponse.php b/api/php/generated/Chirpstack/Api/EnqueueDeviceQueueItemResponse.php deleted file mode 100644 index 3d1e0411..00000000 --- a/api/php/generated/Chirpstack/Api/EnqueueDeviceQueueItemResponse.php +++ /dev/null @@ -1,65 +0,0 @@ -api.EnqueueDeviceQueueItemResponse - */ -class EnqueueDeviceQueueItemResponse extends \Google\Protobuf\Internal\Message -{ - /** - * ID (UUID). - * - * Generated from protobuf field string id = 1; - */ - protected $id = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $id - * ID (UUID). - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Chirpstack\Api\Device::initOnce(); - parent::__construct($data); - } - - /** - * ID (UUID). - * - * Generated from protobuf field string id = 1; - * @return string - */ - public function getId() - { - return $this->id; - } - - /** - * ID (UUID). - * - * Generated from protobuf field string id = 1; - * @param string $var - * @return $this - */ - public function setId($var) - { - GPBUtil::checkString($var, True); - $this->id = $var; - - return $this; - } - -} - diff --git a/api/php/generated/Chirpstack/Api/EnqueueMulticastGroupQueueItemRequest.php b/api/php/generated/Chirpstack/Api/EnqueueMulticastGroupQueueItemRequest.php deleted file mode 100644 index 247d600c..00000000 --- a/api/php/generated/Chirpstack/Api/EnqueueMulticastGroupQueueItemRequest.php +++ /dev/null @@ -1,75 +0,0 @@ -api.EnqueueMulticastGroupQueueItemRequest - */ -class EnqueueMulticastGroupQueueItemRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Multicast queue-item to enqueue. - * - * Generated from protobuf field .api.MulticastGroupQueueItem queue_item = 1; - */ - protected $queue_item = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Chirpstack\Api\MulticastGroupQueueItem $queue_item - * Multicast queue-item to enqueue. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Chirpstack\Api\MulticastGroup::initOnce(); - parent::__construct($data); - } - - /** - * Multicast queue-item to enqueue. - * - * Generated from protobuf field .api.MulticastGroupQueueItem queue_item = 1; - * @return \Chirpstack\Api\MulticastGroupQueueItem|null - */ - public function getQueueItem() - { - return $this->queue_item; - } - - public function hasQueueItem() - { - return isset($this->queue_item); - } - - public function clearQueueItem() - { - unset($this->queue_item); - } - - /** - * Multicast queue-item to enqueue. - * - * Generated from protobuf field .api.MulticastGroupQueueItem queue_item = 1; - * @param \Chirpstack\Api\MulticastGroupQueueItem $var - * @return $this - */ - public function setQueueItem($var) - { - GPBUtil::checkMessage($var, \Chirpstack\Api\MulticastGroupQueueItem::class); - $this->queue_item = $var; - - return $this; - } - -} - diff --git a/api/php/generated/Chirpstack/Api/EnqueueMulticastGroupQueueItemResponse.php b/api/php/generated/Chirpstack/Api/EnqueueMulticastGroupQueueItemResponse.php deleted file mode 100644 index dcfeeed6..00000000 --- a/api/php/generated/Chirpstack/Api/EnqueueMulticastGroupQueueItemResponse.php +++ /dev/null @@ -1,65 +0,0 @@ -api.EnqueueMulticastGroupQueueItemResponse - */ -class EnqueueMulticastGroupQueueItemResponse extends \Google\Protobuf\Internal\Message -{ - /** - * Frame-counter of the enqueued payload. - * - * Generated from protobuf field uint32 f_cnt = 1; - */ - protected $f_cnt = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $f_cnt - * Frame-counter of the enqueued payload. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Chirpstack\Api\MulticastGroup::initOnce(); - parent::__construct($data); - } - - /** - * Frame-counter of the enqueued payload. - * - * Generated from protobuf field uint32 f_cnt = 1; - * @return int - */ - public function getFCnt() - { - return $this->f_cnt; - } - - /** - * Frame-counter of the enqueued payload. - * - * Generated from protobuf field uint32 f_cnt = 1; - * @param int $var - * @return $this - */ - public function setFCnt($var) - { - GPBUtil::checkUint32($var); - $this->f_cnt = $var; - - return $this; - } - -} - diff --git a/api/php/generated/Chirpstack/Api/FlushDevNoncesRequest.php b/api/php/generated/Chirpstack/Api/FlushDevNoncesRequest.php deleted file mode 100644 index 15466efb..00000000 --- a/api/php/generated/Chirpstack/Api/FlushDevNoncesRequest.php +++ /dev/null @@ -1,65 +0,0 @@ -api.FlushDevNoncesRequest - */ -class FlushDevNoncesRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Device EUI (EUI64). - * - * Generated from protobuf field string dev_eui = 1; - */ - protected $dev_eui = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $dev_eui - * Device EUI (EUI64). - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Chirpstack\Api\Device::initOnce(); - parent::__construct($data); - } - - /** - * Device EUI (EUI64). - * - * Generated from protobuf field string dev_eui = 1; - * @return string - */ - public function getDevEui() - { - return $this->dev_eui; - } - - /** - * Device EUI (EUI64). - * - * Generated from protobuf field string dev_eui = 1; - * @param string $var - * @return $this - */ - public function setDevEui($var) - { - GPBUtil::checkString($var, True); - $this->dev_eui = $var; - - return $this; - } - -} - diff --git a/api/php/generated/Chirpstack/Api/FlushDeviceQueueRequest.php b/api/php/generated/Chirpstack/Api/FlushDeviceQueueRequest.php deleted file mode 100644 index 98c75435..00000000 --- a/api/php/generated/Chirpstack/Api/FlushDeviceQueueRequest.php +++ /dev/null @@ -1,65 +0,0 @@ -api.FlushDeviceQueueRequest - */ -class FlushDeviceQueueRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Device EUI (EUI64). - * - * Generated from protobuf field string dev_eui = 1; - */ - protected $dev_eui = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $dev_eui - * Device EUI (EUI64). - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Chirpstack\Api\Device::initOnce(); - parent::__construct($data); - } - - /** - * Device EUI (EUI64). - * - * Generated from protobuf field string dev_eui = 1; - * @return string - */ - public function getDevEui() - { - return $this->dev_eui; - } - - /** - * Device EUI (EUI64). - * - * Generated from protobuf field string dev_eui = 1; - * @param string $var - * @return $this - */ - public function setDevEui($var) - { - GPBUtil::checkString($var, True); - $this->dev_eui = $var; - - return $this; - } - -} - diff --git a/api/php/generated/Chirpstack/Api/FlushMulticastGroupQueueRequest.php b/api/php/generated/Chirpstack/Api/FlushMulticastGroupQueueRequest.php deleted file mode 100644 index 97e91415..00000000 --- a/api/php/generated/Chirpstack/Api/FlushMulticastGroupQueueRequest.php +++ /dev/null @@ -1,65 +0,0 @@ -api.FlushMulticastGroupQueueRequest - */ -class FlushMulticastGroupQueueRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Multicast group ID. - * - * Generated from protobuf field string multicast_group_id = 1; - */ - protected $multicast_group_id = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $multicast_group_id - * Multicast group ID. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Chirpstack\Api\MulticastGroup::initOnce(); - parent::__construct($data); - } - - /** - * Multicast group ID. - * - * Generated from protobuf field string multicast_group_id = 1; - * @return string - */ - public function getMulticastGroupId() - { - return $this->multicast_group_id; - } - - /** - * Multicast group ID. - * - * Generated from protobuf field string multicast_group_id = 1; - * @param string $var - * @return $this - */ - public function setMulticastGroupId($var) - { - GPBUtil::checkString($var, True); - $this->multicast_group_id = $var; - - return $this; - } - -} - diff --git a/api/php/generated/Chirpstack/Api/Gateway.php b/api/php/generated/Chirpstack/Api/Gateway.php deleted file mode 100644 index 7a2e20d9..00000000 --- a/api/php/generated/Chirpstack/Api/Gateway.php +++ /dev/null @@ -1,321 +0,0 @@ -api.Gateway - */ -class Gateway extends \Google\Protobuf\Internal\Message -{ - /** - * Gateway ID (EUI64). - * - * Generated from protobuf field string gateway_id = 1; - */ - protected $gateway_id = ''; - /** - * Name. - * - * Generated from protobuf field string name = 2; - */ - protected $name = ''; - /** - * Description. - * - * Generated from protobuf field string description = 3; - */ - protected $description = ''; - /** - * Gateway location. - * - * Generated from protobuf field .common.Location location = 4; - */ - protected $location = null; - /** - * Tenant ID (UUID). - * - * Generated from protobuf field string tenant_id = 5; - */ - protected $tenant_id = ''; - /** - * Tags. - * - * Generated from protobuf field map tags = 6; - */ - private $tags; - /** - * Metadata (provided by the gateway). - * - * Generated from protobuf field map metadata = 7; - */ - private $metadata; - /** - * Stats interval (seconds). - * This defines the expected interval in which the gateway sends its - * statistics. - * - * Generated from protobuf field uint32 stats_interval = 8; - */ - protected $stats_interval = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $gateway_id - * Gateway ID (EUI64). - * @type string $name - * Name. - * @type string $description - * Description. - * @type \Chirpstack\Common\Location $location - * Gateway location. - * @type string $tenant_id - * Tenant ID (UUID). - * @type array|\Google\Protobuf\Internal\MapField $tags - * Tags. - * @type array|\Google\Protobuf\Internal\MapField $metadata - * Metadata (provided by the gateway). - * @type int $stats_interval - * Stats interval (seconds). - * This defines the expected interval in which the gateway sends its - * statistics. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Chirpstack\Api\Gateway::initOnce(); - parent::__construct($data); - } - - /** - * Gateway ID (EUI64). - * - * Generated from protobuf field string gateway_id = 1; - * @return string - */ - public function getGatewayId() - { - return $this->gateway_id; - } - - /** - * Gateway ID (EUI64). - * - * Generated from protobuf field string gateway_id = 1; - * @param string $var - * @return $this - */ - public function setGatewayId($var) - { - GPBUtil::checkString($var, True); - $this->gateway_id = $var; - - return $this; - } - - /** - * Name. - * - * Generated from protobuf field string name = 2; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Name. - * - * Generated from protobuf field string name = 2; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Description. - * - * Generated from protobuf field string description = 3; - * @return string - */ - public function getDescription() - { - return $this->description; - } - - /** - * Description. - * - * Generated from protobuf field string description = 3; - * @param string $var - * @return $this - */ - public function setDescription($var) - { - GPBUtil::checkString($var, True); - $this->description = $var; - - return $this; - } - - /** - * Gateway location. - * - * Generated from protobuf field .common.Location location = 4; - * @return \Chirpstack\Common\Location|null - */ - public function getLocation() - { - return $this->location; - } - - public function hasLocation() - { - return isset($this->location); - } - - public function clearLocation() - { - unset($this->location); - } - - /** - * Gateway location. - * - * Generated from protobuf field .common.Location location = 4; - * @param \Chirpstack\Common\Location $var - * @return $this - */ - public function setLocation($var) - { - GPBUtil::checkMessage($var, \Chirpstack\Common\Location::class); - $this->location = $var; - - return $this; - } - - /** - * Tenant ID (UUID). - * - * Generated from protobuf field string tenant_id = 5; - * @return string - */ - public function getTenantId() - { - return $this->tenant_id; - } - - /** - * Tenant ID (UUID). - * - * Generated from protobuf field string tenant_id = 5; - * @param string $var - * @return $this - */ - public function setTenantId($var) - { - GPBUtil::checkString($var, True); - $this->tenant_id = $var; - - return $this; - } - - /** - * Tags. - * - * Generated from protobuf field map tags = 6; - * @return \Google\Protobuf\Internal\MapField - */ - public function getTags() - { - return $this->tags; - } - - /** - * Tags. - * - * Generated from protobuf field map tags = 6; - * @param array|\Google\Protobuf\Internal\MapField $var - * @return $this - */ - public function setTags($var) - { - $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); - $this->tags = $arr; - - return $this; - } - - /** - * Metadata (provided by the gateway). - * - * Generated from protobuf field map metadata = 7; - * @return \Google\Protobuf\Internal\MapField - */ - public function getMetadata() - { - return $this->metadata; - } - - /** - * Metadata (provided by the gateway). - * - * Generated from protobuf field map metadata = 7; - * @param array|\Google\Protobuf\Internal\MapField $var - * @return $this - */ - public function setMetadata($var) - { - $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); - $this->metadata = $arr; - - return $this; - } - - /** - * Stats interval (seconds). - * This defines the expected interval in which the gateway sends its - * statistics. - * - * Generated from protobuf field uint32 stats_interval = 8; - * @return int - */ - public function getStatsInterval() - { - return $this->stats_interval; - } - - /** - * Stats interval (seconds). - * This defines the expected interval in which the gateway sends its - * statistics. - * - * Generated from protobuf field uint32 stats_interval = 8; - * @param int $var - * @return $this - */ - public function setStatsInterval($var) - { - GPBUtil::checkUint32($var); - $this->stats_interval = $var; - - return $this; - } - -} - diff --git a/api/php/generated/Chirpstack/Api/GatewayListItem.php b/api/php/generated/Chirpstack/Api/GatewayListItem.php deleted file mode 100644 index 1b48bcf9..00000000 --- a/api/php/generated/Chirpstack/Api/GatewayListItem.php +++ /dev/null @@ -1,419 +0,0 @@ -api.GatewayListItem - */ -class GatewayListItem extends \Google\Protobuf\Internal\Message -{ - /** - * Tenant ID. - * - * Generated from protobuf field string tenant_id = 1; - */ - protected $tenant_id = ''; - /** - * Gateway ID (EUI64). - * - * Generated from protobuf field string gateway_id = 2; - */ - protected $gateway_id = ''; - /** - * Name. - * - * Generated from protobuf field string name = 3; - */ - protected $name = ''; - /** - * Description. - * - * Generated from protobuf field string description = 4; - */ - protected $description = ''; - /** - * Location. - * - * Generated from protobuf field .common.Location location = 5; - */ - protected $location = null; - /** - * Gateway properties. - * - * Generated from protobuf field map properties = 6; - */ - private $properties; - /** - * Created at timestamp. - * - * Generated from protobuf field .google.protobuf.Timestamp created_at = 7; - */ - protected $created_at = null; - /** - * Last update timestamp. - * - * Generated from protobuf field .google.protobuf.Timestamp updated_at = 8; - */ - protected $updated_at = null; - /** - * Last seen at timestamp. - * - * Generated from protobuf field .google.protobuf.Timestamp last_seen_at = 9; - */ - protected $last_seen_at = null; - /** - * Gateway state. - * Please note that the state of the gateway is driven by the stats - * packages that are sent by the gateway. - * - * Generated from protobuf field .api.GatewayState state = 10; - */ - protected $state = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $tenant_id - * Tenant ID. - * @type string $gateway_id - * Gateway ID (EUI64). - * @type string $name - * Name. - * @type string $description - * Description. - * @type \Chirpstack\Common\Location $location - * Location. - * @type array|\Google\Protobuf\Internal\MapField $properties - * Gateway properties. - * @type \Google\Protobuf\Timestamp $created_at - * Created at timestamp. - * @type \Google\Protobuf\Timestamp $updated_at - * Last update timestamp. - * @type \Google\Protobuf\Timestamp $last_seen_at - * Last seen at timestamp. - * @type int $state - * Gateway state. - * Please note that the state of the gateway is driven by the stats - * packages that are sent by the gateway. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Chirpstack\Api\Gateway::initOnce(); - parent::__construct($data); - } - - /** - * Tenant ID. - * - * Generated from protobuf field string tenant_id = 1; - * @return string - */ - public function getTenantId() - { - return $this->tenant_id; - } - - /** - * Tenant ID. - * - * Generated from protobuf field string tenant_id = 1; - * @param string $var - * @return $this - */ - public function setTenantId($var) - { - GPBUtil::checkString($var, True); - $this->tenant_id = $var; - - return $this; - } - - /** - * Gateway ID (EUI64). - * - * Generated from protobuf field string gateway_id = 2; - * @return string - */ - public function getGatewayId() - { - return $this->gateway_id; - } - - /** - * Gateway ID (EUI64). - * - * Generated from protobuf field string gateway_id = 2; - * @param string $var - * @return $this - */ - public function setGatewayId($var) - { - GPBUtil::checkString($var, True); - $this->gateway_id = $var; - - return $this; - } - - /** - * Name. - * - * Generated from protobuf field string name = 3; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Name. - * - * Generated from protobuf field string name = 3; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Description. - * - * Generated from protobuf field string description = 4; - * @return string - */ - public function getDescription() - { - return $this->description; - } - - /** - * Description. - * - * Generated from protobuf field string description = 4; - * @param string $var - * @return $this - */ - public function setDescription($var) - { - GPBUtil::checkString($var, True); - $this->description = $var; - - return $this; - } - - /** - * Location. - * - * Generated from protobuf field .common.Location location = 5; - * @return \Chirpstack\Common\Location|null - */ - public function getLocation() - { - return $this->location; - } - - public function hasLocation() - { - return isset($this->location); - } - - public function clearLocation() - { - unset($this->location); - } - - /** - * Location. - * - * Generated from protobuf field .common.Location location = 5; - * @param \Chirpstack\Common\Location $var - * @return $this - */ - public function setLocation($var) - { - GPBUtil::checkMessage($var, \Chirpstack\Common\Location::class); - $this->location = $var; - - return $this; - } - - /** - * Gateway properties. - * - * Generated from protobuf field map properties = 6; - * @return \Google\Protobuf\Internal\MapField - */ - public function getProperties() - { - return $this->properties; - } - - /** - * Gateway properties. - * - * Generated from protobuf field map properties = 6; - * @param array|\Google\Protobuf\Internal\MapField $var - * @return $this - */ - public function setProperties($var) - { - $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); - $this->properties = $arr; - - return $this; - } - - /** - * Created at timestamp. - * - * Generated from protobuf field .google.protobuf.Timestamp created_at = 7; - * @return \Google\Protobuf\Timestamp|null - */ - public function getCreatedAt() - { - return $this->created_at; - } - - public function hasCreatedAt() - { - return isset($this->created_at); - } - - public function clearCreatedAt() - { - unset($this->created_at); - } - - /** - * Created at timestamp. - * - * Generated from protobuf field .google.protobuf.Timestamp created_at = 7; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setCreatedAt($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->created_at = $var; - - return $this; - } - - /** - * Last update timestamp. - * - * Generated from protobuf field .google.protobuf.Timestamp updated_at = 8; - * @return \Google\Protobuf\Timestamp|null - */ - public function getUpdatedAt() - { - return $this->updated_at; - } - - public function hasUpdatedAt() - { - return isset($this->updated_at); - } - - public function clearUpdatedAt() - { - unset($this->updated_at); - } - - /** - * Last update timestamp. - * - * Generated from protobuf field .google.protobuf.Timestamp updated_at = 8; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setUpdatedAt($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->updated_at = $var; - - return $this; - } - - /** - * Last seen at timestamp. - * - * Generated from protobuf field .google.protobuf.Timestamp last_seen_at = 9; - * @return \Google\Protobuf\Timestamp|null - */ - public function getLastSeenAt() - { - return $this->last_seen_at; - } - - public function hasLastSeenAt() - { - return isset($this->last_seen_at); - } - - public function clearLastSeenAt() - { - unset($this->last_seen_at); - } - - /** - * Last seen at timestamp. - * - * Generated from protobuf field .google.protobuf.Timestamp last_seen_at = 9; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setLastSeenAt($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->last_seen_at = $var; - - return $this; - } - - /** - * Gateway state. - * Please note that the state of the gateway is driven by the stats - * packages that are sent by the gateway. - * - * Generated from protobuf field .api.GatewayState state = 10; - * @return int - */ - public function getState() - { - return $this->state; - } - - /** - * Gateway state. - * Please note that the state of the gateway is driven by the stats - * packages that are sent by the gateway. - * - * Generated from protobuf field .api.GatewayState state = 10; - * @param int $var - * @return $this - */ - public function setState($var) - { - GPBUtil::checkEnum($var, \Chirpstack\Api\GatewayState::class); - $this->state = $var; - - return $this; - } - -} - diff --git a/api/php/generated/Chirpstack/Api/GatewayServiceClient.php b/api/php/generated/Chirpstack/Api/GatewayServiceClient.php deleted file mode 100644 index 47e395cb..00000000 --- a/api/php/generated/Chirpstack/Api/GatewayServiceClient.php +++ /dev/null @@ -1,201 +0,0 @@ -_simpleRequest('/api.GatewayService/Create', - $argument, - ['\Google\Protobuf\GPBEmpty', 'decode'], - $metadata, $options); - } - - /** - * Get returns the gateway for the given Gateway ID. - * @param \Chirpstack\Api\GetGatewayRequest $argument input argument - * @param array $metadata metadata - * @param array $options call options - * @return \Grpc\UnaryCall - */ - public function Get(\Chirpstack\Api\GetGatewayRequest $argument, - $metadata = [], $options = []) { - return $this->_simpleRequest('/api.GatewayService/Get', - $argument, - ['\Chirpstack\Api\GetGatewayResponse', 'decode'], - $metadata, $options); - } - - /** - * Update updates the given gateway. - * @param \Chirpstack\Api\UpdateGatewayRequest $argument input argument - * @param array $metadata metadata - * @param array $options call options - * @return \Grpc\UnaryCall - */ - public function Update(\Chirpstack\Api\UpdateGatewayRequest $argument, - $metadata = [], $options = []) { - return $this->_simpleRequest('/api.GatewayService/Update', - $argument, - ['\Google\Protobuf\GPBEmpty', 'decode'], - $metadata, $options); - } - - /** - * Delete deletes the gateway matching the given Gateway ID. - * @param \Chirpstack\Api\DeleteGatewayRequest $argument input argument - * @param array $metadata metadata - * @param array $options call options - * @return \Grpc\UnaryCall - */ - public function Delete(\Chirpstack\Api\DeleteGatewayRequest $argument, - $metadata = [], $options = []) { - return $this->_simpleRequest('/api.GatewayService/Delete', - $argument, - ['\Google\Protobuf\GPBEmpty', 'decode'], - $metadata, $options); - } - - /** - * Get the list of gateways. - * @param \Chirpstack\Api\ListGatewaysRequest $argument input argument - * @param array $metadata metadata - * @param array $options call options - * @return \Grpc\UnaryCall - */ - public function List(\Chirpstack\Api\ListGatewaysRequest $argument, - $metadata = [], $options = []) { - return $this->_simpleRequest('/api.GatewayService/List', - $argument, - ['\Chirpstack\Api\ListGatewaysResponse', 'decode'], - $metadata, $options); - } - - /** - * Generate client-certificate for the gateway. - * @param \Chirpstack\Api\GenerateGatewayClientCertificateRequest $argument input argument - * @param array $metadata metadata - * @param array $options call options - * @return \Grpc\UnaryCall - */ - public function GenerateClientCertificate(\Chirpstack\Api\GenerateGatewayClientCertificateRequest $argument, - $metadata = [], $options = []) { - return $this->_simpleRequest('/api.GatewayService/GenerateClientCertificate', - $argument, - ['\Chirpstack\Api\GenerateGatewayClientCertificateResponse', 'decode'], - $metadata, $options); - } - - /** - * GetMetrics returns the gateway metrics. - * @param \Chirpstack\Api\GetGatewayMetricsRequest $argument input argument - * @param array $metadata metadata - * @param array $options call options - * @return \Grpc\UnaryCall - */ - public function GetMetrics(\Chirpstack\Api\GetGatewayMetricsRequest $argument, - $metadata = [], $options = []) { - return $this->_simpleRequest('/api.GatewayService/GetMetrics', - $argument, - ['\Chirpstack\Api\GetGatewayMetricsResponse', 'decode'], - $metadata, $options); - } - - /** - * GetDutyCycleMetrics returns the duty-cycle metrics. - * Note that only the last 2 hours of data are stored. Currently only per minute aggregation is available. - * @param \Chirpstack\Api\GetGatewayDutyCycleMetricsRequest $argument input argument - * @param array $metadata metadata - * @param array $options call options - * @return \Grpc\UnaryCall - */ - public function GetDutyCycleMetrics(\Chirpstack\Api\GetGatewayDutyCycleMetricsRequest $argument, - $metadata = [], $options = []) { - return $this->_simpleRequest('/api.GatewayService/GetDutyCycleMetrics', - $argument, - ['\Chirpstack\Api\GetGatewayDutyCycleMetricsResponse', 'decode'], - $metadata, $options); - } - - /** - * Get the given Relay Gateway. - * @param \Chirpstack\Api\GetRelayGatewayRequest $argument input argument - * @param array $metadata metadata - * @param array $options call options - * @return \Grpc\UnaryCall - */ - public function GetRelayGateway(\Chirpstack\Api\GetRelayGatewayRequest $argument, - $metadata = [], $options = []) { - return $this->_simpleRequest('/api.GatewayService/GetRelayGateway', - $argument, - ['\Chirpstack\Api\GetRelayGatewayResponse', 'decode'], - $metadata, $options); - } - - /** - * List the detected Relay Gateways. - * @param \Chirpstack\Api\ListRelayGatewaysRequest $argument input argument - * @param array $metadata metadata - * @param array $options call options - * @return \Grpc\UnaryCall - */ - public function ListRelayGateways(\Chirpstack\Api\ListRelayGatewaysRequest $argument, - $metadata = [], $options = []) { - return $this->_simpleRequest('/api.GatewayService/ListRelayGateways', - $argument, - ['\Chirpstack\Api\ListRelayGatewaysResponse', 'decode'], - $metadata, $options); - } - - /** - * Update the given Relay Gateway. - * @param \Chirpstack\Api\UpdateRelayGatewayRequest $argument input argument - * @param array $metadata metadata - * @param array $options call options - * @return \Grpc\UnaryCall - */ - public function UpdateRelayGateway(\Chirpstack\Api\UpdateRelayGatewayRequest $argument, - $metadata = [], $options = []) { - return $this->_simpleRequest('/api.GatewayService/UpdateRelayGateway', - $argument, - ['\Google\Protobuf\GPBEmpty', 'decode'], - $metadata, $options); - } - - /** - * Delete the given Relay Gateway. - * @param \Chirpstack\Api\DeleteRelayGatewayRequest $argument input argument - * @param array $metadata metadata - * @param array $options call options - * @return \Grpc\UnaryCall - */ - public function DeleteRelayGateway(\Chirpstack\Api\DeleteRelayGatewayRequest $argument, - $metadata = [], $options = []) { - return $this->_simpleRequest('/api.GatewayService/DeleteRelayGateway', - $argument, - ['\Google\Protobuf\GPBEmpty', 'decode'], - $metadata, $options); - } - -} diff --git a/api/php/generated/Chirpstack/Api/GatewayState.php b/api/php/generated/Chirpstack/Api/GatewayState.php deleted file mode 100644 index 9504741a..00000000 --- a/api/php/generated/Chirpstack/Api/GatewayState.php +++ /dev/null @@ -1,59 +0,0 @@ -api.GatewayState - */ -class GatewayState -{ - /** - * The gateway has never sent any stats. - * - * Generated from protobuf enum NEVER_SEEN = 0; - */ - const NEVER_SEEN = 0; - /** - * Online. - * - * Generated from protobuf enum ONLINE = 1; - */ - const ONLINE = 1; - /** - * Offline. - * - * Generated from protobuf enum OFFLINE = 2; - */ - const OFFLINE = 2; - - private static $valueToName = [ - self::NEVER_SEEN => 'NEVER_SEEN', - self::ONLINE => 'ONLINE', - self::OFFLINE => 'OFFLINE', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - diff --git a/api/php/generated/Chirpstack/Api/GcpPubSubIntegration.php b/api/php/generated/Chirpstack/Api/GcpPubSubIntegration.php deleted file mode 100644 index d2abd6a4..00000000 --- a/api/php/generated/Chirpstack/Api/GcpPubSubIntegration.php +++ /dev/null @@ -1,217 +0,0 @@ -api.GcpPubSubIntegration - */ -class GcpPubSubIntegration extends \Google\Protobuf\Internal\Message -{ - /** - * Application ID (UUID). - * - * Generated from protobuf field string application_id = 1; - */ - protected $application_id = ''; - /** - * Encoding. - * - * Generated from protobuf field .api.Encoding encoding = 2; - */ - protected $encoding = 0; - /** - * Credentials file. - * This IAM service-account credentials file (JSON) must have the following - * Pub/Sub roles: - * * Pub/Sub Publisher - * - * Generated from protobuf field string credentials_file = 3; - */ - protected $credentials_file = ''; - /** - * Project ID. - * - * Generated from protobuf field string project_id = 4; - */ - protected $project_id = ''; - /** - * Topic name. - * This is the name of the Pub/Sub topic. - * - * Generated from protobuf field string topic_name = 5; - */ - protected $topic_name = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $application_id - * Application ID (UUID). - * @type int $encoding - * Encoding. - * @type string $credentials_file - * Credentials file. - * This IAM service-account credentials file (JSON) must have the following - * Pub/Sub roles: - * * Pub/Sub Publisher - * @type string $project_id - * Project ID. - * @type string $topic_name - * Topic name. - * This is the name of the Pub/Sub topic. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Chirpstack\Api\Application::initOnce(); - parent::__construct($data); - } - - /** - * Application ID (UUID). - * - * Generated from protobuf field string application_id = 1; - * @return string - */ - public function getApplicationId() - { - return $this->application_id; - } - - /** - * Application ID (UUID). - * - * Generated from protobuf field string application_id = 1; - * @param string $var - * @return $this - */ - public function setApplicationId($var) - { - GPBUtil::checkString($var, True); - $this->application_id = $var; - - return $this; - } - - /** - * Encoding. - * - * Generated from protobuf field .api.Encoding encoding = 2; - * @return int - */ - public function getEncoding() - { - return $this->encoding; - } - - /** - * Encoding. - * - * Generated from protobuf field .api.Encoding encoding = 2; - * @param int $var - * @return $this - */ - public function setEncoding($var) - { - GPBUtil::checkEnum($var, \Chirpstack\Api\Encoding::class); - $this->encoding = $var; - - return $this; - } - - /** - * Credentials file. - * This IAM service-account credentials file (JSON) must have the following - * Pub/Sub roles: - * * Pub/Sub Publisher - * - * Generated from protobuf field string credentials_file = 3; - * @return string - */ - public function getCredentialsFile() - { - return $this->credentials_file; - } - - /** - * Credentials file. - * This IAM service-account credentials file (JSON) must have the following - * Pub/Sub roles: - * * Pub/Sub Publisher - * - * Generated from protobuf field string credentials_file = 3; - * @param string $var - * @return $this - */ - public function setCredentialsFile($var) - { - GPBUtil::checkString($var, True); - $this->credentials_file = $var; - - return $this; - } - - /** - * Project ID. - * - * Generated from protobuf field string project_id = 4; - * @return string - */ - public function getProjectId() - { - return $this->project_id; - } - - /** - * Project ID. - * - * Generated from protobuf field string project_id = 4; - * @param string $var - * @return $this - */ - public function setProjectId($var) - { - GPBUtil::checkString($var, True); - $this->project_id = $var; - - return $this; - } - - /** - * Topic name. - * This is the name of the Pub/Sub topic. - * - * Generated from protobuf field string topic_name = 5; - * @return string - */ - public function getTopicName() - { - return $this->topic_name; - } - - /** - * Topic name. - * This is the name of the Pub/Sub topic. - * - * Generated from protobuf field string topic_name = 5; - * @param string $var - * @return $this - */ - public function setTopicName($var) - { - GPBUtil::checkString($var, True); - $this->topic_name = $var; - - return $this; - } - -} - diff --git a/api/php/generated/Chirpstack/Api/GenerateGatewayClientCertificateRequest.php b/api/php/generated/Chirpstack/Api/GenerateGatewayClientCertificateRequest.php deleted file mode 100644 index f357584f..00000000 --- a/api/php/generated/Chirpstack/Api/GenerateGatewayClientCertificateRequest.php +++ /dev/null @@ -1,65 +0,0 @@ -api.GenerateGatewayClientCertificateRequest - */ -class GenerateGatewayClientCertificateRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Gateway ID (EUI64). - * - * Generated from protobuf field string gateway_id = 1; - */ - protected $gateway_id = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $gateway_id - * Gateway ID (EUI64). - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Chirpstack\Api\Gateway::initOnce(); - parent::__construct($data); - } - - /** - * Gateway ID (EUI64). - * - * Generated from protobuf field string gateway_id = 1; - * @return string - */ - public function getGatewayId() - { - return $this->gateway_id; - } - - /** - * Gateway ID (EUI64). - * - * Generated from protobuf field string gateway_id = 1; - * @param string $var - * @return $this - */ - public function setGatewayId($var) - { - GPBUtil::checkString($var, True); - $this->gateway_id = $var; - - return $this; - } - -} - diff --git a/api/php/generated/Chirpstack/Api/GenerateGatewayClientCertificateResponse.php b/api/php/generated/Chirpstack/Api/GenerateGatewayClientCertificateResponse.php deleted file mode 100644 index 1b650040..00000000 --- a/api/php/generated/Chirpstack/Api/GenerateGatewayClientCertificateResponse.php +++ /dev/null @@ -1,177 +0,0 @@ -api.GenerateGatewayClientCertificateResponse - */ -class GenerateGatewayClientCertificateResponse extends \Google\Protobuf\Internal\Message -{ - /** - * TLS certificate. - * - * Generated from protobuf field string tls_cert = 1; - */ - protected $tls_cert = ''; - /** - * TLS key. - * - * Generated from protobuf field string tls_key = 2; - */ - protected $tls_key = ''; - /** - * CA certificate. - * - * Generated from protobuf field string ca_cert = 3; - */ - protected $ca_cert = ''; - /** - * Expires at defines the expiration date of the certificate. - * - * Generated from protobuf field .google.protobuf.Timestamp expires_at = 4; - */ - protected $expires_at = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $tls_cert - * TLS certificate. - * @type string $tls_key - * TLS key. - * @type string $ca_cert - * CA certificate. - * @type \Google\Protobuf\Timestamp $expires_at - * Expires at defines the expiration date of the certificate. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Chirpstack\Api\Gateway::initOnce(); - parent::__construct($data); - } - - /** - * TLS certificate. - * - * Generated from protobuf field string tls_cert = 1; - * @return string - */ - public function getTlsCert() - { - return $this->tls_cert; - } - - /** - * TLS certificate. - * - * Generated from protobuf field string tls_cert = 1; - * @param string $var - * @return $this - */ - public function setTlsCert($var) - { - GPBUtil::checkString($var, True); - $this->tls_cert = $var; - - return $this; - } - - /** - * TLS key. - * - * Generated from protobuf field string tls_key = 2; - * @return string - */ - public function getTlsKey() - { - return $this->tls_key; - } - - /** - * TLS key. - * - * Generated from protobuf field string tls_key = 2; - * @param string $var - * @return $this - */ - public function setTlsKey($var) - { - GPBUtil::checkString($var, True); - $this->tls_key = $var; - - return $this; - } - - /** - * CA certificate. - * - * Generated from protobuf field string ca_cert = 3; - * @return string - */ - public function getCaCert() - { - return $this->ca_cert; - } - - /** - * CA certificate. - * - * Generated from protobuf field string ca_cert = 3; - * @param string $var - * @return $this - */ - public function setCaCert($var) - { - GPBUtil::checkString($var, True); - $this->ca_cert = $var; - - return $this; - } - - /** - * Expires at defines the expiration date of the certificate. - * - * Generated from protobuf field .google.protobuf.Timestamp expires_at = 4; - * @return \Google\Protobuf\Timestamp|null - */ - public function getExpiresAt() - { - return $this->expires_at; - } - - public function hasExpiresAt() - { - return isset($this->expires_at); - } - - public function clearExpiresAt() - { - unset($this->expires_at); - } - - /** - * Expires at defines the expiration date of the certificate. - * - * Generated from protobuf field .google.protobuf.Timestamp expires_at = 4; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setExpiresAt($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->expires_at = $var; - - return $this; - } - -} - diff --git a/api/php/generated/Chirpstack/Api/GenerateMqttIntegrationClientCertificateRequest.php b/api/php/generated/Chirpstack/Api/GenerateMqttIntegrationClientCertificateRequest.php deleted file mode 100644 index b60f1054..00000000 --- a/api/php/generated/Chirpstack/Api/GenerateMqttIntegrationClientCertificateRequest.php +++ /dev/null @@ -1,65 +0,0 @@ -api.GenerateMqttIntegrationClientCertificateRequest - */ -class GenerateMqttIntegrationClientCertificateRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Application ID (UUID). - * - * Generated from protobuf field string application_id = 1; - */ - protected $application_id = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $application_id - * Application ID (UUID). - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Chirpstack\Api\Application::initOnce(); - parent::__construct($data); - } - - /** - * Application ID (UUID). - * - * Generated from protobuf field string application_id = 1; - * @return string - */ - public function getApplicationId() - { - return $this->application_id; - } - - /** - * Application ID (UUID). - * - * Generated from protobuf field string application_id = 1; - * @param string $var - * @return $this - */ - public function setApplicationId($var) - { - GPBUtil::checkString($var, True); - $this->application_id = $var; - - return $this; - } - -} - diff --git a/api/php/generated/Chirpstack/Api/GenerateMqttIntegrationClientCertificateResponse.php b/api/php/generated/Chirpstack/Api/GenerateMqttIntegrationClientCertificateResponse.php deleted file mode 100644 index 8b1ddfde..00000000 --- a/api/php/generated/Chirpstack/Api/GenerateMqttIntegrationClientCertificateResponse.php +++ /dev/null @@ -1,177 +0,0 @@ -api.GenerateMqttIntegrationClientCertificateResponse - */ -class GenerateMqttIntegrationClientCertificateResponse extends \Google\Protobuf\Internal\Message -{ - /** - * TLS certificate. - * - * Generated from protobuf field string tls_cert = 1; - */ - protected $tls_cert = ''; - /** - * TLS key. - * - * Generated from protobuf field string tls_key = 2; - */ - protected $tls_key = ''; - /** - * CA certificate. - * - * Generated from protobuf field string ca_cert = 3; - */ - protected $ca_cert = ''; - /** - * Expires at defines the expiration date of the certificate. - * - * Generated from protobuf field .google.protobuf.Timestamp expires_at = 4; - */ - protected $expires_at = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $tls_cert - * TLS certificate. - * @type string $tls_key - * TLS key. - * @type string $ca_cert - * CA certificate. - * @type \Google\Protobuf\Timestamp $expires_at - * Expires at defines the expiration date of the certificate. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Chirpstack\Api\Application::initOnce(); - parent::__construct($data); - } - - /** - * TLS certificate. - * - * Generated from protobuf field string tls_cert = 1; - * @return string - */ - public function getTlsCert() - { - return $this->tls_cert; - } - - /** - * TLS certificate. - * - * Generated from protobuf field string tls_cert = 1; - * @param string $var - * @return $this - */ - public function setTlsCert($var) - { - GPBUtil::checkString($var, True); - $this->tls_cert = $var; - - return $this; - } - - /** - * TLS key. - * - * Generated from protobuf field string tls_key = 2; - * @return string - */ - public function getTlsKey() - { - return $this->tls_key; - } - - /** - * TLS key. - * - * Generated from protobuf field string tls_key = 2; - * @param string $var - * @return $this - */ - public function setTlsKey($var) - { - GPBUtil::checkString($var, True); - $this->tls_key = $var; - - return $this; - } - - /** - * CA certificate. - * - * Generated from protobuf field string ca_cert = 3; - * @return string - */ - public function getCaCert() - { - return $this->ca_cert; - } - - /** - * CA certificate. - * - * Generated from protobuf field string ca_cert = 3; - * @param string $var - * @return $this - */ - public function setCaCert($var) - { - GPBUtil::checkString($var, True); - $this->ca_cert = $var; - - return $this; - } - - /** - * Expires at defines the expiration date of the certificate. - * - * Generated from protobuf field .google.protobuf.Timestamp expires_at = 4; - * @return \Google\Protobuf\Timestamp|null - */ - public function getExpiresAt() - { - return $this->expires_at; - } - - public function hasExpiresAt() - { - return isset($this->expires_at); - } - - public function clearExpiresAt() - { - unset($this->expires_at); - } - - /** - * Expires at defines the expiration date of the certificate. - * - * Generated from protobuf field .google.protobuf.Timestamp expires_at = 4; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setExpiresAt($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->expires_at = $var; - - return $this; - } - -} - diff --git a/api/php/generated/Chirpstack/Api/GetApplicationRequest.php b/api/php/generated/Chirpstack/Api/GetApplicationRequest.php deleted file mode 100644 index 1b4762a1..00000000 --- a/api/php/generated/Chirpstack/Api/GetApplicationRequest.php +++ /dev/null @@ -1,65 +0,0 @@ -api.GetApplicationRequest - */ -class GetApplicationRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Application ID (UUID). - * - * Generated from protobuf field string id = 1; - */ - protected $id = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $id - * Application ID (UUID). - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Chirpstack\Api\Application::initOnce(); - parent::__construct($data); - } - - /** - * Application ID (UUID). - * - * Generated from protobuf field string id = 1; - * @return string - */ - public function getId() - { - return $this->id; - } - - /** - * Application ID (UUID). - * - * Generated from protobuf field string id = 1; - * @param string $var - * @return $this - */ - public function setId($var) - { - GPBUtil::checkString($var, True); - $this->id = $var; - - return $this; - } - -} - diff --git a/api/php/generated/Chirpstack/Api/GetApplicationResponse.php b/api/php/generated/Chirpstack/Api/GetApplicationResponse.php deleted file mode 100644 index bc49935f..00000000 --- a/api/php/generated/Chirpstack/Api/GetApplicationResponse.php +++ /dev/null @@ -1,205 +0,0 @@ -api.GetApplicationResponse - */ -class GetApplicationResponse extends \Google\Protobuf\Internal\Message -{ - /** - * Application object. - * - * Generated from protobuf field .api.Application application = 1; - */ - protected $application = null; - /** - * Created at timestamp. - * - * Generated from protobuf field .google.protobuf.Timestamp created_at = 2; - */ - protected $created_at = null; - /** - * Last update timestamp. - * - * Generated from protobuf field .google.protobuf.Timestamp updated_at = 3; - */ - protected $updated_at = null; - /** - * Measurement keys. - * This contains the measurement keys from all the device-profiles that - * are used by the devices under this application. - * - * Generated from protobuf field repeated string measurement_keys = 4; - */ - private $measurement_keys; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Chirpstack\Api\Application $application - * Application object. - * @type \Google\Protobuf\Timestamp $created_at - * Created at timestamp. - * @type \Google\Protobuf\Timestamp $updated_at - * Last update timestamp. - * @type array|\Google\Protobuf\Internal\RepeatedField $measurement_keys - * Measurement keys. - * This contains the measurement keys from all the device-profiles that - * are used by the devices under this application. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Chirpstack\Api\Application::initOnce(); - parent::__construct($data); - } - - /** - * Application object. - * - * Generated from protobuf field .api.Application application = 1; - * @return \Chirpstack\Api\Application|null - */ - public function getApplication() - { - return $this->application; - } - - public function hasApplication() - { - return isset($this->application); - } - - public function clearApplication() - { - unset($this->application); - } - - /** - * Application object. - * - * Generated from protobuf field .api.Application application = 1; - * @param \Chirpstack\Api\Application $var - * @return $this - */ - public function setApplication($var) - { - GPBUtil::checkMessage($var, \Chirpstack\Api\Application::class); - $this->application = $var; - - return $this; - } - - /** - * Created at timestamp. - * - * Generated from protobuf field .google.protobuf.Timestamp created_at = 2; - * @return \Google\Protobuf\Timestamp|null - */ - public function getCreatedAt() - { - return $this->created_at; - } - - public function hasCreatedAt() - { - return isset($this->created_at); - } - - public function clearCreatedAt() - { - unset($this->created_at); - } - - /** - * Created at timestamp. - * - * Generated from protobuf field .google.protobuf.Timestamp created_at = 2; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setCreatedAt($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->created_at = $var; - - return $this; - } - - /** - * Last update timestamp. - * - * Generated from protobuf field .google.protobuf.Timestamp updated_at = 3; - * @return \Google\Protobuf\Timestamp|null - */ - public function getUpdatedAt() - { - return $this->updated_at; - } - - public function hasUpdatedAt() - { - return isset($this->updated_at); - } - - public function clearUpdatedAt() - { - unset($this->updated_at); - } - - /** - * Last update timestamp. - * - * Generated from protobuf field .google.protobuf.Timestamp updated_at = 3; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setUpdatedAt($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->updated_at = $var; - - return $this; - } - - /** - * Measurement keys. - * This contains the measurement keys from all the device-profiles that - * are used by the devices under this application. - * - * Generated from protobuf field repeated string measurement_keys = 4; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getMeasurementKeys() - { - return $this->measurement_keys; - } - - /** - * Measurement keys. - * This contains the measurement keys from all the device-profiles that - * are used by the devices under this application. - * - * Generated from protobuf field repeated string measurement_keys = 4; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setMeasurementKeys($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->measurement_keys = $arr; - - return $this; - } - -} - diff --git a/api/php/generated/Chirpstack/Api/GetAwsSnsIntegrationRequest.php b/api/php/generated/Chirpstack/Api/GetAwsSnsIntegrationRequest.php deleted file mode 100644 index 8455bddb..00000000 --- a/api/php/generated/Chirpstack/Api/GetAwsSnsIntegrationRequest.php +++ /dev/null @@ -1,65 +0,0 @@ -api.GetAwsSnsIntegrationRequest - */ -class GetAwsSnsIntegrationRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Application ID (UUID). - * - * Generated from protobuf field string application_id = 1; - */ - protected $application_id = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $application_id - * Application ID (UUID). - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Chirpstack\Api\Application::initOnce(); - parent::__construct($data); - } - - /** - * Application ID (UUID). - * - * Generated from protobuf field string application_id = 1; - * @return string - */ - public function getApplicationId() - { - return $this->application_id; - } - - /** - * Application ID (UUID). - * - * Generated from protobuf field string application_id = 1; - * @param string $var - * @return $this - */ - public function setApplicationId($var) - { - GPBUtil::checkString($var, True); - $this->application_id = $var; - - return $this; - } - -} - diff --git a/api/php/generated/Chirpstack/Api/GetAwsSnsIntegrationResponse.php b/api/php/generated/Chirpstack/Api/GetAwsSnsIntegrationResponse.php deleted file mode 100644 index eec7bbfe..00000000 --- a/api/php/generated/Chirpstack/Api/GetAwsSnsIntegrationResponse.php +++ /dev/null @@ -1,75 +0,0 @@ -api.GetAwsSnsIntegrationResponse - */ -class GetAwsSnsIntegrationResponse extends \Google\Protobuf\Internal\Message -{ - /** - * Integration object. - * - * Generated from protobuf field .api.AwsSnsIntegration integration = 1; - */ - protected $integration = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Chirpstack\Api\AwsSnsIntegration $integration - * Integration object. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Chirpstack\Api\Application::initOnce(); - parent::__construct($data); - } - - /** - * Integration object. - * - * Generated from protobuf field .api.AwsSnsIntegration integration = 1; - * @return \Chirpstack\Api\AwsSnsIntegration|null - */ - public function getIntegration() - { - return $this->integration; - } - - public function hasIntegration() - { - return isset($this->integration); - } - - public function clearIntegration() - { - unset($this->integration); - } - - /** - * Integration object. - * - * Generated from protobuf field .api.AwsSnsIntegration integration = 1; - * @param \Chirpstack\Api\AwsSnsIntegration $var - * @return $this - */ - public function setIntegration($var) - { - GPBUtil::checkMessage($var, \Chirpstack\Api\AwsSnsIntegration::class); - $this->integration = $var; - - return $this; - } - -} - diff --git a/api/php/generated/Chirpstack/Api/GetAzureServiceBusIntegrationRequest.php b/api/php/generated/Chirpstack/Api/GetAzureServiceBusIntegrationRequest.php deleted file mode 100644 index 1ba6e187..00000000 --- a/api/php/generated/Chirpstack/Api/GetAzureServiceBusIntegrationRequest.php +++ /dev/null @@ -1,65 +0,0 @@ -api.GetAzureServiceBusIntegrationRequest - */ -class GetAzureServiceBusIntegrationRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Application ID (UUID). - * - * Generated from protobuf field string application_id = 1; - */ - protected $application_id = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $application_id - * Application ID (UUID). - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Chirpstack\Api\Application::initOnce(); - parent::__construct($data); - } - - /** - * Application ID (UUID). - * - * Generated from protobuf field string application_id = 1; - * @return string - */ - public function getApplicationId() - { - return $this->application_id; - } - - /** - * Application ID (UUID). - * - * Generated from protobuf field string application_id = 1; - * @param string $var - * @return $this - */ - public function setApplicationId($var) - { - GPBUtil::checkString($var, True); - $this->application_id = $var; - - return $this; - } - -} - diff --git a/api/php/generated/Chirpstack/Api/GetAzureServiceBusIntegrationResponse.php b/api/php/generated/Chirpstack/Api/GetAzureServiceBusIntegrationResponse.php deleted file mode 100644 index 69aa4b7d..00000000 --- a/api/php/generated/Chirpstack/Api/GetAzureServiceBusIntegrationResponse.php +++ /dev/null @@ -1,75 +0,0 @@ -api.GetAzureServiceBusIntegrationResponse - */ -class GetAzureServiceBusIntegrationResponse extends \Google\Protobuf\Internal\Message -{ - /** - * Integration object. - * - * Generated from protobuf field .api.AzureServiceBusIntegration integration = 1; - */ - protected $integration = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Chirpstack\Api\AzureServiceBusIntegration $integration - * Integration object. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Chirpstack\Api\Application::initOnce(); - parent::__construct($data); - } - - /** - * Integration object. - * - * Generated from protobuf field .api.AzureServiceBusIntegration integration = 1; - * @return \Chirpstack\Api\AzureServiceBusIntegration|null - */ - public function getIntegration() - { - return $this->integration; - } - - public function hasIntegration() - { - return isset($this->integration); - } - - public function clearIntegration() - { - unset($this->integration); - } - - /** - * Integration object. - * - * Generated from protobuf field .api.AzureServiceBusIntegration integration = 1; - * @param \Chirpstack\Api\AzureServiceBusIntegration $var - * @return $this - */ - public function setIntegration($var) - { - GPBUtil::checkMessage($var, \Chirpstack\Api\AzureServiceBusIntegration::class); - $this->integration = $var; - - return $this; - } - -} - diff --git a/api/php/generated/Chirpstack/Api/GetDeviceActivationRequest.php b/api/php/generated/Chirpstack/Api/GetDeviceActivationRequest.php deleted file mode 100644 index c42b87ff..00000000 --- a/api/php/generated/Chirpstack/Api/GetDeviceActivationRequest.php +++ /dev/null @@ -1,65 +0,0 @@ -api.GetDeviceActivationRequest - */ -class GetDeviceActivationRequest extends \Google\Protobuf\Internal\Message -{ - /** - * DevEUI (EUI64). - * - * Generated from protobuf field string dev_eui = 1; - */ - protected $dev_eui = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $dev_eui - * DevEUI (EUI64). - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Chirpstack\Api\Device::initOnce(); - parent::__construct($data); - } - - /** - * DevEUI (EUI64). - * - * Generated from protobuf field string dev_eui = 1; - * @return string - */ - public function getDevEui() - { - return $this->dev_eui; - } - - /** - * DevEUI (EUI64). - * - * Generated from protobuf field string dev_eui = 1; - * @param string $var - * @return $this - */ - public function setDevEui($var) - { - GPBUtil::checkString($var, True); - $this->dev_eui = $var; - - return $this; - } - -} - diff --git a/api/php/generated/Chirpstack/Api/GetDeviceActivationResponse.php b/api/php/generated/Chirpstack/Api/GetDeviceActivationResponse.php deleted file mode 100644 index 03c57d0c..00000000 --- a/api/php/generated/Chirpstack/Api/GetDeviceActivationResponse.php +++ /dev/null @@ -1,131 +0,0 @@ -api.GetDeviceActivationResponse - */ -class GetDeviceActivationResponse extends \Google\Protobuf\Internal\Message -{ - /** - * Device activation object. - * - * Generated from protobuf field .api.DeviceActivation device_activation = 1; - */ - protected $device_activation = null; - /** - * Join-Server context. - * A non-empty value indicatest that ChirpStack does not have access to - * the AppSKey and that the encryption / decryption of the payloads is - * the responsibility of the end-application. - * - * Generated from protobuf field .common.JoinServerContext join_server_context = 2; - */ - protected $join_server_context = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Chirpstack\Api\DeviceActivation $device_activation - * Device activation object. - * @type \Chirpstack\Common\JoinServerContext $join_server_context - * Join-Server context. - * A non-empty value indicatest that ChirpStack does not have access to - * the AppSKey and that the encryption / decryption of the payloads is - * the responsibility of the end-application. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Chirpstack\Api\Device::initOnce(); - parent::__construct($data); - } - - /** - * Device activation object. - * - * Generated from protobuf field .api.DeviceActivation device_activation = 1; - * @return \Chirpstack\Api\DeviceActivation|null - */ - public function getDeviceActivation() - { - return $this->device_activation; - } - - public function hasDeviceActivation() - { - return isset($this->device_activation); - } - - public function clearDeviceActivation() - { - unset($this->device_activation); - } - - /** - * Device activation object. - * - * Generated from protobuf field .api.DeviceActivation device_activation = 1; - * @param \Chirpstack\Api\DeviceActivation $var - * @return $this - */ - public function setDeviceActivation($var) - { - GPBUtil::checkMessage($var, \Chirpstack\Api\DeviceActivation::class); - $this->device_activation = $var; - - return $this; - } - - /** - * Join-Server context. - * A non-empty value indicatest that ChirpStack does not have access to - * the AppSKey and that the encryption / decryption of the payloads is - * the responsibility of the end-application. - * - * Generated from protobuf field .common.JoinServerContext join_server_context = 2; - * @return \Chirpstack\Common\JoinServerContext|null - */ - public function getJoinServerContext() - { - return $this->join_server_context; - } - - public function hasJoinServerContext() - { - return isset($this->join_server_context); - } - - public function clearJoinServerContext() - { - unset($this->join_server_context); - } - - /** - * Join-Server context. - * A non-empty value indicatest that ChirpStack does not have access to - * the AppSKey and that the encryption / decryption of the payloads is - * the responsibility of the end-application. - * - * Generated from protobuf field .common.JoinServerContext join_server_context = 2; - * @param \Chirpstack\Common\JoinServerContext $var - * @return $this - */ - public function setJoinServerContext($var) - { - GPBUtil::checkMessage($var, \Chirpstack\Common\JoinServerContext::class); - $this->join_server_context = $var; - - return $this; - } - -} - diff --git a/api/php/generated/Chirpstack/Api/GetDeviceKeysRequest.php b/api/php/generated/Chirpstack/Api/GetDeviceKeysRequest.php deleted file mode 100644 index 063e054f..00000000 --- a/api/php/generated/Chirpstack/Api/GetDeviceKeysRequest.php +++ /dev/null @@ -1,65 +0,0 @@ -api.GetDeviceKeysRequest - */ -class GetDeviceKeysRequest extends \Google\Protobuf\Internal\Message -{ - /** - * DevEUI (EUI64). - * - * Generated from protobuf field string dev_eui = 1; - */ - protected $dev_eui = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $dev_eui - * DevEUI (EUI64). - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Chirpstack\Api\Device::initOnce(); - parent::__construct($data); - } - - /** - * DevEUI (EUI64). - * - * Generated from protobuf field string dev_eui = 1; - * @return string - */ - public function getDevEui() - { - return $this->dev_eui; - } - - /** - * DevEUI (EUI64). - * - * Generated from protobuf field string dev_eui = 1; - * @param string $var - * @return $this - */ - public function setDevEui($var) - { - GPBUtil::checkString($var, True); - $this->dev_eui = $var; - - return $this; - } - -} - diff --git a/api/php/generated/Chirpstack/Api/GetDeviceKeysResponse.php b/api/php/generated/Chirpstack/Api/GetDeviceKeysResponse.php deleted file mode 100644 index 31928566..00000000 --- a/api/php/generated/Chirpstack/Api/GetDeviceKeysResponse.php +++ /dev/null @@ -1,163 +0,0 @@ -api.GetDeviceKeysResponse - */ -class GetDeviceKeysResponse extends \Google\Protobuf\Internal\Message -{ - /** - * Device-keys object. - * - * Generated from protobuf field .api.DeviceKeys device_keys = 1; - */ - protected $device_keys = null; - /** - * Created at timestamp. - * - * Generated from protobuf field .google.protobuf.Timestamp created_at = 2; - */ - protected $created_at = null; - /** - * Last update timestamp. - * - * Generated from protobuf field .google.protobuf.Timestamp updated_at = 3; - */ - protected $updated_at = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Chirpstack\Api\DeviceKeys $device_keys - * Device-keys object. - * @type \Google\Protobuf\Timestamp $created_at - * Created at timestamp. - * @type \Google\Protobuf\Timestamp $updated_at - * Last update timestamp. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Chirpstack\Api\Device::initOnce(); - parent::__construct($data); - } - - /** - * Device-keys object. - * - * Generated from protobuf field .api.DeviceKeys device_keys = 1; - * @return \Chirpstack\Api\DeviceKeys|null - */ - public function getDeviceKeys() - { - return $this->device_keys; - } - - public function hasDeviceKeys() - { - return isset($this->device_keys); - } - - public function clearDeviceKeys() - { - unset($this->device_keys); - } - - /** - * Device-keys object. - * - * Generated from protobuf field .api.DeviceKeys device_keys = 1; - * @param \Chirpstack\Api\DeviceKeys $var - * @return $this - */ - public function setDeviceKeys($var) - { - GPBUtil::checkMessage($var, \Chirpstack\Api\DeviceKeys::class); - $this->device_keys = $var; - - return $this; - } - - /** - * Created at timestamp. - * - * Generated from protobuf field .google.protobuf.Timestamp created_at = 2; - * @return \Google\Protobuf\Timestamp|null - */ - public function getCreatedAt() - { - return $this->created_at; - } - - public function hasCreatedAt() - { - return isset($this->created_at); - } - - public function clearCreatedAt() - { - unset($this->created_at); - } - - /** - * Created at timestamp. - * - * Generated from protobuf field .google.protobuf.Timestamp created_at = 2; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setCreatedAt($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->created_at = $var; - - return $this; - } - - /** - * Last update timestamp. - * - * Generated from protobuf field .google.protobuf.Timestamp updated_at = 3; - * @return \Google\Protobuf\Timestamp|null - */ - public function getUpdatedAt() - { - return $this->updated_at; - } - - public function hasUpdatedAt() - { - return isset($this->updated_at); - } - - public function clearUpdatedAt() - { - unset($this->updated_at); - } - - /** - * Last update timestamp. - * - * Generated from protobuf field .google.protobuf.Timestamp updated_at = 3; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setUpdatedAt($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->updated_at = $var; - - return $this; - } - -} - diff --git a/api/php/generated/Chirpstack/Api/GetDeviceLinkMetricsRequest.php b/api/php/generated/Chirpstack/Api/GetDeviceLinkMetricsRequest.php deleted file mode 100644 index dfa7ca5a..00000000 --- a/api/php/generated/Chirpstack/Api/GetDeviceLinkMetricsRequest.php +++ /dev/null @@ -1,187 +0,0 @@ -api.GetDeviceLinkMetricsRequest - */ -class GetDeviceLinkMetricsRequest extends \Google\Protobuf\Internal\Message -{ - /** - * DevEUI (EUI64). - * - * Generated from protobuf field string dev_eui = 1; - */ - protected $dev_eui = ''; - /** - * Interval start timestamp. - * - * Generated from protobuf field .google.protobuf.Timestamp start = 2; - */ - protected $start = null; - /** - * Interval end timestamp. - * - * Generated from protobuf field .google.protobuf.Timestamp end = 3; - */ - protected $end = null; - /** - * Aggregation. - * - * Generated from protobuf field .common.Aggregation aggregation = 4; - */ - protected $aggregation = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $dev_eui - * DevEUI (EUI64). - * @type \Google\Protobuf\Timestamp $start - * Interval start timestamp. - * @type \Google\Protobuf\Timestamp $end - * Interval end timestamp. - * @type int $aggregation - * Aggregation. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Chirpstack\Api\Device::initOnce(); - parent::__construct($data); - } - - /** - * DevEUI (EUI64). - * - * Generated from protobuf field string dev_eui = 1; - * @return string - */ - public function getDevEui() - { - return $this->dev_eui; - } - - /** - * DevEUI (EUI64). - * - * Generated from protobuf field string dev_eui = 1; - * @param string $var - * @return $this - */ - public function setDevEui($var) - { - GPBUtil::checkString($var, True); - $this->dev_eui = $var; - - return $this; - } - - /** - * Interval start timestamp. - * - * Generated from protobuf field .google.protobuf.Timestamp start = 2; - * @return \Google\Protobuf\Timestamp|null - */ - public function getStart() - { - return $this->start; - } - - public function hasStart() - { - return isset($this->start); - } - - public function clearStart() - { - unset($this->start); - } - - /** - * Interval start timestamp. - * - * Generated from protobuf field .google.protobuf.Timestamp start = 2; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setStart($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->start = $var; - - return $this; - } - - /** - * Interval end timestamp. - * - * Generated from protobuf field .google.protobuf.Timestamp end = 3; - * @return \Google\Protobuf\Timestamp|null - */ - public function getEnd() - { - return $this->end; - } - - public function hasEnd() - { - return isset($this->end); - } - - public function clearEnd() - { - unset($this->end); - } - - /** - * Interval end timestamp. - * - * Generated from protobuf field .google.protobuf.Timestamp end = 3; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setEnd($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->end = $var; - - return $this; - } - - /** - * Aggregation. - * - * Generated from protobuf field .common.Aggregation aggregation = 4; - * @return int - */ - public function getAggregation() - { - return $this->aggregation; - } - - /** - * Aggregation. - * - * Generated from protobuf field .common.Aggregation aggregation = 4; - * @param int $var - * @return $this - */ - public function setAggregation($var) - { - GPBUtil::checkEnum($var, \Chirpstack\Common\Aggregation::class); - $this->aggregation = $var; - - return $this; - } - -} - diff --git a/api/php/generated/Chirpstack/Api/GetDeviceLinkMetricsResponse.php b/api/php/generated/Chirpstack/Api/GetDeviceLinkMetricsResponse.php deleted file mode 100644 index c0e78e34..00000000 --- a/api/php/generated/Chirpstack/Api/GetDeviceLinkMetricsResponse.php +++ /dev/null @@ -1,295 +0,0 @@ -api.GetDeviceLinkMetricsResponse - */ -class GetDeviceLinkMetricsResponse extends \Google\Protobuf\Internal\Message -{ - /** - * Packets received from the device. - * - * Generated from protobuf field .common.Metric rx_packets = 1; - */ - protected $rx_packets = null; - /** - * RSSI (as reported by the gateway(s)). - * - * Generated from protobuf field .common.Metric gw_rssi = 2; - */ - protected $gw_rssi = null; - /** - * SNR (as reported by the gateway(s)). - * - * Generated from protobuf field .common.Metric gw_snr = 3; - */ - protected $gw_snr = null; - /** - * Packets received by frequency. - * - * Generated from protobuf field .common.Metric rx_packets_per_freq = 4; - */ - protected $rx_packets_per_freq = null; - /** - * Packets received by DR. - * - * Generated from protobuf field .common.Metric rx_packets_per_dr = 5; - */ - protected $rx_packets_per_dr = null; - /** - * Errors. - * - * Generated from protobuf field .common.Metric errors = 6; - */ - protected $errors = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Chirpstack\Common\Metric $rx_packets - * Packets received from the device. - * @type \Chirpstack\Common\Metric $gw_rssi - * RSSI (as reported by the gateway(s)). - * @type \Chirpstack\Common\Metric $gw_snr - * SNR (as reported by the gateway(s)). - * @type \Chirpstack\Common\Metric $rx_packets_per_freq - * Packets received by frequency. - * @type \Chirpstack\Common\Metric $rx_packets_per_dr - * Packets received by DR. - * @type \Chirpstack\Common\Metric $errors - * Errors. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Chirpstack\Api\Device::initOnce(); - parent::__construct($data); - } - - /** - * Packets received from the device. - * - * Generated from protobuf field .common.Metric rx_packets = 1; - * @return \Chirpstack\Common\Metric|null - */ - public function getRxPackets() - { - return $this->rx_packets; - } - - public function hasRxPackets() - { - return isset($this->rx_packets); - } - - public function clearRxPackets() - { - unset($this->rx_packets); - } - - /** - * Packets received from the device. - * - * Generated from protobuf field .common.Metric rx_packets = 1; - * @param \Chirpstack\Common\Metric $var - * @return $this - */ - public function setRxPackets($var) - { - GPBUtil::checkMessage($var, \Chirpstack\Common\Metric::class); - $this->rx_packets = $var; - - return $this; - } - - /** - * RSSI (as reported by the gateway(s)). - * - * Generated from protobuf field .common.Metric gw_rssi = 2; - * @return \Chirpstack\Common\Metric|null - */ - public function getGwRssi() - { - return $this->gw_rssi; - } - - public function hasGwRssi() - { - return isset($this->gw_rssi); - } - - public function clearGwRssi() - { - unset($this->gw_rssi); - } - - /** - * RSSI (as reported by the gateway(s)). - * - * Generated from protobuf field .common.Metric gw_rssi = 2; - * @param \Chirpstack\Common\Metric $var - * @return $this - */ - public function setGwRssi($var) - { - GPBUtil::checkMessage($var, \Chirpstack\Common\Metric::class); - $this->gw_rssi = $var; - - return $this; - } - - /** - * SNR (as reported by the gateway(s)). - * - * Generated from protobuf field .common.Metric gw_snr = 3; - * @return \Chirpstack\Common\Metric|null - */ - public function getGwSnr() - { - return $this->gw_snr; - } - - public function hasGwSnr() - { - return isset($this->gw_snr); - } - - public function clearGwSnr() - { - unset($this->gw_snr); - } - - /** - * SNR (as reported by the gateway(s)). - * - * Generated from protobuf field .common.Metric gw_snr = 3; - * @param \Chirpstack\Common\Metric $var - * @return $this - */ - public function setGwSnr($var) - { - GPBUtil::checkMessage($var, \Chirpstack\Common\Metric::class); - $this->gw_snr = $var; - - return $this; - } - - /** - * Packets received by frequency. - * - * Generated from protobuf field .common.Metric rx_packets_per_freq = 4; - * @return \Chirpstack\Common\Metric|null - */ - public function getRxPacketsPerFreq() - { - return $this->rx_packets_per_freq; - } - - public function hasRxPacketsPerFreq() - { - return isset($this->rx_packets_per_freq); - } - - public function clearRxPacketsPerFreq() - { - unset($this->rx_packets_per_freq); - } - - /** - * Packets received by frequency. - * - * Generated from protobuf field .common.Metric rx_packets_per_freq = 4; - * @param \Chirpstack\Common\Metric $var - * @return $this - */ - public function setRxPacketsPerFreq($var) - { - GPBUtil::checkMessage($var, \Chirpstack\Common\Metric::class); - $this->rx_packets_per_freq = $var; - - return $this; - } - - /** - * Packets received by DR. - * - * Generated from protobuf field .common.Metric rx_packets_per_dr = 5; - * @return \Chirpstack\Common\Metric|null - */ - public function getRxPacketsPerDr() - { - return $this->rx_packets_per_dr; - } - - public function hasRxPacketsPerDr() - { - return isset($this->rx_packets_per_dr); - } - - public function clearRxPacketsPerDr() - { - unset($this->rx_packets_per_dr); - } - - /** - * Packets received by DR. - * - * Generated from protobuf field .common.Metric rx_packets_per_dr = 5; - * @param \Chirpstack\Common\Metric $var - * @return $this - */ - public function setRxPacketsPerDr($var) - { - GPBUtil::checkMessage($var, \Chirpstack\Common\Metric::class); - $this->rx_packets_per_dr = $var; - - return $this; - } - - /** - * Errors. - * - * Generated from protobuf field .common.Metric errors = 6; - * @return \Chirpstack\Common\Metric|null - */ - public function getErrors() - { - return $this->errors; - } - - public function hasErrors() - { - return isset($this->errors); - } - - public function clearErrors() - { - unset($this->errors); - } - - /** - * Errors. - * - * Generated from protobuf field .common.Metric errors = 6; - * @param \Chirpstack\Common\Metric $var - * @return $this - */ - public function setErrors($var) - { - GPBUtil::checkMessage($var, \Chirpstack\Common\Metric::class); - $this->errors = $var; - - return $this; - } - -} - diff --git a/api/php/generated/Chirpstack/Api/GetDeviceMetricsRequest.php b/api/php/generated/Chirpstack/Api/GetDeviceMetricsRequest.php deleted file mode 100644 index e23bca33..00000000 --- a/api/php/generated/Chirpstack/Api/GetDeviceMetricsRequest.php +++ /dev/null @@ -1,187 +0,0 @@ -api.GetDeviceMetricsRequest - */ -class GetDeviceMetricsRequest extends \Google\Protobuf\Internal\Message -{ - /** - * DevEUI (EUI64). - * - * Generated from protobuf field string dev_eui = 1; - */ - protected $dev_eui = ''; - /** - * Interval start timestamp. - * - * Generated from protobuf field .google.protobuf.Timestamp start = 2; - */ - protected $start = null; - /** - * Interval end timestamp. - * - * Generated from protobuf field .google.protobuf.Timestamp end = 3; - */ - protected $end = null; - /** - * Aggregation. - * - * Generated from protobuf field .common.Aggregation aggregation = 4; - */ - protected $aggregation = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $dev_eui - * DevEUI (EUI64). - * @type \Google\Protobuf\Timestamp $start - * Interval start timestamp. - * @type \Google\Protobuf\Timestamp $end - * Interval end timestamp. - * @type int $aggregation - * Aggregation. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Chirpstack\Api\Device::initOnce(); - parent::__construct($data); - } - - /** - * DevEUI (EUI64). - * - * Generated from protobuf field string dev_eui = 1; - * @return string - */ - public function getDevEui() - { - return $this->dev_eui; - } - - /** - * DevEUI (EUI64). - * - * Generated from protobuf field string dev_eui = 1; - * @param string $var - * @return $this - */ - public function setDevEui($var) - { - GPBUtil::checkString($var, True); - $this->dev_eui = $var; - - return $this; - } - - /** - * Interval start timestamp. - * - * Generated from protobuf field .google.protobuf.Timestamp start = 2; - * @return \Google\Protobuf\Timestamp|null - */ - public function getStart() - { - return $this->start; - } - - public function hasStart() - { - return isset($this->start); - } - - public function clearStart() - { - unset($this->start); - } - - /** - * Interval start timestamp. - * - * Generated from protobuf field .google.protobuf.Timestamp start = 2; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setStart($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->start = $var; - - return $this; - } - - /** - * Interval end timestamp. - * - * Generated from protobuf field .google.protobuf.Timestamp end = 3; - * @return \Google\Protobuf\Timestamp|null - */ - public function getEnd() - { - return $this->end; - } - - public function hasEnd() - { - return isset($this->end); - } - - public function clearEnd() - { - unset($this->end); - } - - /** - * Interval end timestamp. - * - * Generated from protobuf field .google.protobuf.Timestamp end = 3; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setEnd($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->end = $var; - - return $this; - } - - /** - * Aggregation. - * - * Generated from protobuf field .common.Aggregation aggregation = 4; - * @return int - */ - public function getAggregation() - { - return $this->aggregation; - } - - /** - * Aggregation. - * - * Generated from protobuf field .common.Aggregation aggregation = 4; - * @param int $var - * @return $this - */ - public function setAggregation($var) - { - GPBUtil::checkEnum($var, \Chirpstack\Common\Aggregation::class); - $this->aggregation = $var; - - return $this; - } - -} - diff --git a/api/php/generated/Chirpstack/Api/GetDeviceMetricsResponse.php b/api/php/generated/Chirpstack/Api/GetDeviceMetricsResponse.php deleted file mode 100644 index c5b3ee17..00000000 --- a/api/php/generated/Chirpstack/Api/GetDeviceMetricsResponse.php +++ /dev/null @@ -1,85 +0,0 @@ -api.GetDeviceMetricsResponse - */ -class GetDeviceMetricsResponse extends \Google\Protobuf\Internal\Message -{ - /** - * Generated from protobuf field map metrics = 1; - */ - private $metrics; - /** - * Generated from protobuf field map states = 2; - */ - private $states; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array|\Google\Protobuf\Internal\MapField $metrics - * @type array|\Google\Protobuf\Internal\MapField $states - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Chirpstack\Api\Device::initOnce(); - parent::__construct($data); - } - - /** - * Generated from protobuf field map metrics = 1; - * @return \Google\Protobuf\Internal\MapField - */ - public function getMetrics() - { - return $this->metrics; - } - - /** - * Generated from protobuf field map metrics = 1; - * @param array|\Google\Protobuf\Internal\MapField $var - * @return $this - */ - public function setMetrics($var) - { - $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::MESSAGE, \Chirpstack\Common\Metric::class); - $this->metrics = $arr; - - return $this; - } - - /** - * Generated from protobuf field map states = 2; - * @return \Google\Protobuf\Internal\MapField - */ - public function getStates() - { - return $this->states; - } - - /** - * Generated from protobuf field map states = 2; - * @param array|\Google\Protobuf\Internal\MapField $var - * @return $this - */ - public function setStates($var) - { - $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::MESSAGE, \Chirpstack\Api\DeviceState::class); - $this->states = $arr; - - return $this; - } - -} - diff --git a/api/php/generated/Chirpstack/Api/GetDeviceNextFCntDownRequest.php b/api/php/generated/Chirpstack/Api/GetDeviceNextFCntDownRequest.php deleted file mode 100644 index 817dab5d..00000000 --- a/api/php/generated/Chirpstack/Api/GetDeviceNextFCntDownRequest.php +++ /dev/null @@ -1,65 +0,0 @@ -api.GetDeviceNextFCntDownRequest - */ -class GetDeviceNextFCntDownRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Device EUI (EUI64). - * - * Generated from protobuf field string dev_eui = 1; - */ - protected $dev_eui = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $dev_eui - * Device EUI (EUI64). - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Chirpstack\Api\Device::initOnce(); - parent::__construct($data); - } - - /** - * Device EUI (EUI64). - * - * Generated from protobuf field string dev_eui = 1; - * @return string - */ - public function getDevEui() - { - return $this->dev_eui; - } - - /** - * Device EUI (EUI64). - * - * Generated from protobuf field string dev_eui = 1; - * @param string $var - * @return $this - */ - public function setDevEui($var) - { - GPBUtil::checkString($var, True); - $this->dev_eui = $var; - - return $this; - } - -} - diff --git a/api/php/generated/Chirpstack/Api/GetDeviceNextFCntDownResponse.php b/api/php/generated/Chirpstack/Api/GetDeviceNextFCntDownResponse.php deleted file mode 100644 index 47065fb0..00000000 --- a/api/php/generated/Chirpstack/Api/GetDeviceNextFCntDownResponse.php +++ /dev/null @@ -1,65 +0,0 @@ -api.GetDeviceNextFCntDownResponse - */ -class GetDeviceNextFCntDownResponse extends \Google\Protobuf\Internal\Message -{ - /** - * FCntDown. - * - * Generated from protobuf field uint32 f_cnt_down = 1; - */ - protected $f_cnt_down = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $f_cnt_down - * FCntDown. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Chirpstack\Api\Device::initOnce(); - parent::__construct($data); - } - - /** - * FCntDown. - * - * Generated from protobuf field uint32 f_cnt_down = 1; - * @return int - */ - public function getFCntDown() - { - return $this->f_cnt_down; - } - - /** - * FCntDown. - * - * Generated from protobuf field uint32 f_cnt_down = 1; - * @param int $var - * @return $this - */ - public function setFCntDown($var) - { - GPBUtil::checkUint32($var); - $this->f_cnt_down = $var; - - return $this; - } - -} - diff --git a/api/php/generated/Chirpstack/Api/GetDeviceProfileRequest.php b/api/php/generated/Chirpstack/Api/GetDeviceProfileRequest.php deleted file mode 100644 index 36f083d6..00000000 --- a/api/php/generated/Chirpstack/Api/GetDeviceProfileRequest.php +++ /dev/null @@ -1,65 +0,0 @@ -api.GetDeviceProfileRequest - */ -class GetDeviceProfileRequest extends \Google\Protobuf\Internal\Message -{ - /** - * ID (UUID). - * - * Generated from protobuf field string id = 1; - */ - protected $id = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $id - * ID (UUID). - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Chirpstack\Api\DeviceProfile::initOnce(); - parent::__construct($data); - } - - /** - * ID (UUID). - * - * Generated from protobuf field string id = 1; - * @return string - */ - public function getId() - { - return $this->id; - } - - /** - * ID (UUID). - * - * Generated from protobuf field string id = 1; - * @param string $var - * @return $this - */ - public function setId($var) - { - GPBUtil::checkString($var, True); - $this->id = $var; - - return $this; - } - -} - diff --git a/api/php/generated/Chirpstack/Api/GetDeviceProfileResponse.php b/api/php/generated/Chirpstack/Api/GetDeviceProfileResponse.php deleted file mode 100644 index 67496f0f..00000000 --- a/api/php/generated/Chirpstack/Api/GetDeviceProfileResponse.php +++ /dev/null @@ -1,163 +0,0 @@ -api.GetDeviceProfileResponse - */ -class GetDeviceProfileResponse extends \Google\Protobuf\Internal\Message -{ - /** - * Device-profile object. - * - * Generated from protobuf field .api.DeviceProfile device_profile = 1; - */ - protected $device_profile = null; - /** - * Created at timestamp. - * - * Generated from protobuf field .google.protobuf.Timestamp created_at = 2; - */ - protected $created_at = null; - /** - * Last update timestamp. - * - * Generated from protobuf field .google.protobuf.Timestamp updated_at = 3; - */ - protected $updated_at = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Chirpstack\Api\DeviceProfile $device_profile - * Device-profile object. - * @type \Google\Protobuf\Timestamp $created_at - * Created at timestamp. - * @type \Google\Protobuf\Timestamp $updated_at - * Last update timestamp. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Chirpstack\Api\DeviceProfile::initOnce(); - parent::__construct($data); - } - - /** - * Device-profile object. - * - * Generated from protobuf field .api.DeviceProfile device_profile = 1; - * @return \Chirpstack\Api\DeviceProfile|null - */ - public function getDeviceProfile() - { - return $this->device_profile; - } - - public function hasDeviceProfile() - { - return isset($this->device_profile); - } - - public function clearDeviceProfile() - { - unset($this->device_profile); - } - - /** - * Device-profile object. - * - * Generated from protobuf field .api.DeviceProfile device_profile = 1; - * @param \Chirpstack\Api\DeviceProfile $var - * @return $this - */ - public function setDeviceProfile($var) - { - GPBUtil::checkMessage($var, \Chirpstack\Api\DeviceProfile::class); - $this->device_profile = $var; - - return $this; - } - - /** - * Created at timestamp. - * - * Generated from protobuf field .google.protobuf.Timestamp created_at = 2; - * @return \Google\Protobuf\Timestamp|null - */ - public function getCreatedAt() - { - return $this->created_at; - } - - public function hasCreatedAt() - { - return isset($this->created_at); - } - - public function clearCreatedAt() - { - unset($this->created_at); - } - - /** - * Created at timestamp. - * - * Generated from protobuf field .google.protobuf.Timestamp created_at = 2; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setCreatedAt($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->created_at = $var; - - return $this; - } - - /** - * Last update timestamp. - * - * Generated from protobuf field .google.protobuf.Timestamp updated_at = 3; - * @return \Google\Protobuf\Timestamp|null - */ - public function getUpdatedAt() - { - return $this->updated_at; - } - - public function hasUpdatedAt() - { - return isset($this->updated_at); - } - - public function clearUpdatedAt() - { - unset($this->updated_at); - } - - /** - * Last update timestamp. - * - * Generated from protobuf field .google.protobuf.Timestamp updated_at = 3; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setUpdatedAt($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->updated_at = $var; - - return $this; - } - -} - diff --git a/api/php/generated/Chirpstack/Api/GetDeviceProfileTemplateRequest.php b/api/php/generated/Chirpstack/Api/GetDeviceProfileTemplateRequest.php deleted file mode 100644 index fad79915..00000000 --- a/api/php/generated/Chirpstack/Api/GetDeviceProfileTemplateRequest.php +++ /dev/null @@ -1,65 +0,0 @@ -api.GetDeviceProfileTemplateRequest - */ -class GetDeviceProfileTemplateRequest extends \Google\Protobuf\Internal\Message -{ - /** - * ID. - * - * Generated from protobuf field string id = 1; - */ - protected $id = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $id - * ID. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Chirpstack\Api\DeviceProfileTemplate::initOnce(); - parent::__construct($data); - } - - /** - * ID. - * - * Generated from protobuf field string id = 1; - * @return string - */ - public function getId() - { - return $this->id; - } - - /** - * ID. - * - * Generated from protobuf field string id = 1; - * @param string $var - * @return $this - */ - public function setId($var) - { - GPBUtil::checkString($var, True); - $this->id = $var; - - return $this; - } - -} - diff --git a/api/php/generated/Chirpstack/Api/GetDeviceProfileTemplateResponse.php b/api/php/generated/Chirpstack/Api/GetDeviceProfileTemplateResponse.php deleted file mode 100644 index a7e7a7ae..00000000 --- a/api/php/generated/Chirpstack/Api/GetDeviceProfileTemplateResponse.php +++ /dev/null @@ -1,163 +0,0 @@ -api.GetDeviceProfileTemplateResponse - */ -class GetDeviceProfileTemplateResponse extends \Google\Protobuf\Internal\Message -{ - /** - * Device-profile template object. - * - * Generated from protobuf field .api.DeviceProfileTemplate device_profile_template = 1; - */ - protected $device_profile_template = null; - /** - * Created at timestamp. - * - * Generated from protobuf field .google.protobuf.Timestamp created_at = 2; - */ - protected $created_at = null; - /** - * Last update timestamp. - * - * Generated from protobuf field .google.protobuf.Timestamp updated_at = 3; - */ - protected $updated_at = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Chirpstack\Api\DeviceProfileTemplate $device_profile_template - * Device-profile template object. - * @type \Google\Protobuf\Timestamp $created_at - * Created at timestamp. - * @type \Google\Protobuf\Timestamp $updated_at - * Last update timestamp. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Chirpstack\Api\DeviceProfileTemplate::initOnce(); - parent::__construct($data); - } - - /** - * Device-profile template object. - * - * Generated from protobuf field .api.DeviceProfileTemplate device_profile_template = 1; - * @return \Chirpstack\Api\DeviceProfileTemplate|null - */ - public function getDeviceProfileTemplate() - { - return $this->device_profile_template; - } - - public function hasDeviceProfileTemplate() - { - return isset($this->device_profile_template); - } - - public function clearDeviceProfileTemplate() - { - unset($this->device_profile_template); - } - - /** - * Device-profile template object. - * - * Generated from protobuf field .api.DeviceProfileTemplate device_profile_template = 1; - * @param \Chirpstack\Api\DeviceProfileTemplate $var - * @return $this - */ - public function setDeviceProfileTemplate($var) - { - GPBUtil::checkMessage($var, \Chirpstack\Api\DeviceProfileTemplate::class); - $this->device_profile_template = $var; - - return $this; - } - - /** - * Created at timestamp. - * - * Generated from protobuf field .google.protobuf.Timestamp created_at = 2; - * @return \Google\Protobuf\Timestamp|null - */ - public function getCreatedAt() - { - return $this->created_at; - } - - public function hasCreatedAt() - { - return isset($this->created_at); - } - - public function clearCreatedAt() - { - unset($this->created_at); - } - - /** - * Created at timestamp. - * - * Generated from protobuf field .google.protobuf.Timestamp created_at = 2; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setCreatedAt($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->created_at = $var; - - return $this; - } - - /** - * Last update timestamp. - * - * Generated from protobuf field .google.protobuf.Timestamp updated_at = 3; - * @return \Google\Protobuf\Timestamp|null - */ - public function getUpdatedAt() - { - return $this->updated_at; - } - - public function hasUpdatedAt() - { - return isset($this->updated_at); - } - - public function clearUpdatedAt() - { - unset($this->updated_at); - } - - /** - * Last update timestamp. - * - * Generated from protobuf field .google.protobuf.Timestamp updated_at = 3; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setUpdatedAt($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->updated_at = $var; - - return $this; - } - -} - diff --git a/api/php/generated/Chirpstack/Api/GetDeviceQueueItemsRequest.php b/api/php/generated/Chirpstack/Api/GetDeviceQueueItemsRequest.php deleted file mode 100644 index ddd4c02d..00000000 --- a/api/php/generated/Chirpstack/Api/GetDeviceQueueItemsRequest.php +++ /dev/null @@ -1,99 +0,0 @@ -api.GetDeviceQueueItemsRequest - */ -class GetDeviceQueueItemsRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Device EUI (EUI64). - * - * Generated from protobuf field string dev_eui = 1; - */ - protected $dev_eui = ''; - /** - * Return only the count, not the result-set. - * - * Generated from protobuf field bool count_only = 2; - */ - protected $count_only = false; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $dev_eui - * Device EUI (EUI64). - * @type bool $count_only - * Return only the count, not the result-set. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Chirpstack\Api\Device::initOnce(); - parent::__construct($data); - } - - /** - * Device EUI (EUI64). - * - * Generated from protobuf field string dev_eui = 1; - * @return string - */ - public function getDevEui() - { - return $this->dev_eui; - } - - /** - * Device EUI (EUI64). - * - * Generated from protobuf field string dev_eui = 1; - * @param string $var - * @return $this - */ - public function setDevEui($var) - { - GPBUtil::checkString($var, True); - $this->dev_eui = $var; - - return $this; - } - - /** - * Return only the count, not the result-set. - * - * Generated from protobuf field bool count_only = 2; - * @return bool - */ - public function getCountOnly() - { - return $this->count_only; - } - - /** - * Return only the count, not the result-set. - * - * Generated from protobuf field bool count_only = 2; - * @param bool $var - * @return $this - */ - public function setCountOnly($var) - { - GPBUtil::checkBool($var); - $this->count_only = $var; - - return $this; - } - -} - diff --git a/api/php/generated/Chirpstack/Api/GetDeviceQueueItemsResponse.php b/api/php/generated/Chirpstack/Api/GetDeviceQueueItemsResponse.php deleted file mode 100644 index 7e7b9e5b..00000000 --- a/api/php/generated/Chirpstack/Api/GetDeviceQueueItemsResponse.php +++ /dev/null @@ -1,99 +0,0 @@ -api.GetDeviceQueueItemsResponse - */ -class GetDeviceQueueItemsResponse extends \Google\Protobuf\Internal\Message -{ - /** - * Total number of queue items. - * - * Generated from protobuf field uint32 total_count = 1; - */ - protected $total_count = 0; - /** - * Result-set. - * - * Generated from protobuf field repeated .api.DeviceQueueItem result = 2; - */ - private $result; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $total_count - * Total number of queue items. - * @type array<\Chirpstack\Api\DeviceQueueItem>|\Google\Protobuf\Internal\RepeatedField $result - * Result-set. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Chirpstack\Api\Device::initOnce(); - parent::__construct($data); - } - - /** - * Total number of queue items. - * - * Generated from protobuf field uint32 total_count = 1; - * @return int - */ - public function getTotalCount() - { - return $this->total_count; - } - - /** - * Total number of queue items. - * - * Generated from protobuf field uint32 total_count = 1; - * @param int $var - * @return $this - */ - public function setTotalCount($var) - { - GPBUtil::checkUint32($var); - $this->total_count = $var; - - return $this; - } - - /** - * Result-set. - * - * Generated from protobuf field repeated .api.DeviceQueueItem result = 2; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getResult() - { - return $this->result; - } - - /** - * Result-set. - * - * Generated from protobuf field repeated .api.DeviceQueueItem result = 2; - * @param array<\Chirpstack\Api\DeviceQueueItem>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setResult($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Chirpstack\Api\DeviceQueueItem::class); - $this->result = $arr; - - return $this; - } - -} - diff --git a/api/php/generated/Chirpstack/Api/GetDeviceRequest.php b/api/php/generated/Chirpstack/Api/GetDeviceRequest.php deleted file mode 100644 index fe89c4d1..00000000 --- a/api/php/generated/Chirpstack/Api/GetDeviceRequest.php +++ /dev/null @@ -1,65 +0,0 @@ -api.GetDeviceRequest - */ -class GetDeviceRequest extends \Google\Protobuf\Internal\Message -{ - /** - * DevEUI (EUI64). - * - * Generated from protobuf field string dev_eui = 1; - */ - protected $dev_eui = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $dev_eui - * DevEUI (EUI64). - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Chirpstack\Api\Device::initOnce(); - parent::__construct($data); - } - - /** - * DevEUI (EUI64). - * - * Generated from protobuf field string dev_eui = 1; - * @return string - */ - public function getDevEui() - { - return $this->dev_eui; - } - - /** - * DevEUI (EUI64). - * - * Generated from protobuf field string dev_eui = 1; - * @param string $var - * @return $this - */ - public function setDevEui($var) - { - GPBUtil::checkString($var, True); - $this->dev_eui = $var; - - return $this; - } - -} - diff --git a/api/php/generated/Chirpstack/Api/GetDeviceResponse.php b/api/php/generated/Chirpstack/Api/GetDeviceResponse.php deleted file mode 100644 index c49494b0..00000000 --- a/api/php/generated/Chirpstack/Api/GetDeviceResponse.php +++ /dev/null @@ -1,285 +0,0 @@ -api.GetDeviceResponse - */ -class GetDeviceResponse extends \Google\Protobuf\Internal\Message -{ - /** - * Device object. - * - * Generated from protobuf field .api.Device device = 1; - */ - protected $device = null; - /** - * Created at timestamp. - * - * Generated from protobuf field .google.protobuf.Timestamp created_at = 2; - */ - protected $created_at = null; - /** - * Last update timestamp. - * - * Generated from protobuf field .google.protobuf.Timestamp updated_at = 3; - */ - protected $updated_at = null; - /** - * Last seen at timestamp. - * - * Generated from protobuf field .google.protobuf.Timestamp last_seen_at = 4; - */ - protected $last_seen_at = null; - /** - * Device status. - * - * Generated from protobuf field .api.DeviceStatus device_status = 5; - */ - protected $device_status = null; - /** - * Enabled device class. - * - * Generated from protobuf field .common.DeviceClass class_enabled = 6; - */ - protected $class_enabled = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Chirpstack\Api\Device $device - * Device object. - * @type \Google\Protobuf\Timestamp $created_at - * Created at timestamp. - * @type \Google\Protobuf\Timestamp $updated_at - * Last update timestamp. - * @type \Google\Protobuf\Timestamp $last_seen_at - * Last seen at timestamp. - * @type \Chirpstack\Api\DeviceStatus $device_status - * Device status. - * @type int $class_enabled - * Enabled device class. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Chirpstack\Api\Device::initOnce(); - parent::__construct($data); - } - - /** - * Device object. - * - * Generated from protobuf field .api.Device device = 1; - * @return \Chirpstack\Api\Device|null - */ - public function getDevice() - { - return $this->device; - } - - public function hasDevice() - { - return isset($this->device); - } - - public function clearDevice() - { - unset($this->device); - } - - /** - * Device object. - * - * Generated from protobuf field .api.Device device = 1; - * @param \Chirpstack\Api\Device $var - * @return $this - */ - public function setDevice($var) - { - GPBUtil::checkMessage($var, \Chirpstack\Api\Device::class); - $this->device = $var; - - return $this; - } - - /** - * Created at timestamp. - * - * Generated from protobuf field .google.protobuf.Timestamp created_at = 2; - * @return \Google\Protobuf\Timestamp|null - */ - public function getCreatedAt() - { - return $this->created_at; - } - - public function hasCreatedAt() - { - return isset($this->created_at); - } - - public function clearCreatedAt() - { - unset($this->created_at); - } - - /** - * Created at timestamp. - * - * Generated from protobuf field .google.protobuf.Timestamp created_at = 2; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setCreatedAt($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->created_at = $var; - - return $this; - } - - /** - * Last update timestamp. - * - * Generated from protobuf field .google.protobuf.Timestamp updated_at = 3; - * @return \Google\Protobuf\Timestamp|null - */ - public function getUpdatedAt() - { - return $this->updated_at; - } - - public function hasUpdatedAt() - { - return isset($this->updated_at); - } - - public function clearUpdatedAt() - { - unset($this->updated_at); - } - - /** - * Last update timestamp. - * - * Generated from protobuf field .google.protobuf.Timestamp updated_at = 3; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setUpdatedAt($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->updated_at = $var; - - return $this; - } - - /** - * Last seen at timestamp. - * - * Generated from protobuf field .google.protobuf.Timestamp last_seen_at = 4; - * @return \Google\Protobuf\Timestamp|null - */ - public function getLastSeenAt() - { - return $this->last_seen_at; - } - - public function hasLastSeenAt() - { - return isset($this->last_seen_at); - } - - public function clearLastSeenAt() - { - unset($this->last_seen_at); - } - - /** - * Last seen at timestamp. - * - * Generated from protobuf field .google.protobuf.Timestamp last_seen_at = 4; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setLastSeenAt($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->last_seen_at = $var; - - return $this; - } - - /** - * Device status. - * - * Generated from protobuf field .api.DeviceStatus device_status = 5; - * @return \Chirpstack\Api\DeviceStatus|null - */ - public function getDeviceStatus() - { - return $this->device_status; - } - - public function hasDeviceStatus() - { - return isset($this->device_status); - } - - public function clearDeviceStatus() - { - unset($this->device_status); - } - - /** - * Device status. - * - * Generated from protobuf field .api.DeviceStatus device_status = 5; - * @param \Chirpstack\Api\DeviceStatus $var - * @return $this - */ - public function setDeviceStatus($var) - { - GPBUtil::checkMessage($var, \Chirpstack\Api\DeviceStatus::class); - $this->device_status = $var; - - return $this; - } - - /** - * Enabled device class. - * - * Generated from protobuf field .common.DeviceClass class_enabled = 6; - * @return int - */ - public function getClassEnabled() - { - return $this->class_enabled; - } - - /** - * Enabled device class. - * - * Generated from protobuf field .common.DeviceClass class_enabled = 6; - * @param int $var - * @return $this - */ - public function setClassEnabled($var) - { - GPBUtil::checkEnum($var, \Chirpstack\Common\DeviceClass::class); - $this->class_enabled = $var; - - return $this; - } - -} - diff --git a/api/php/generated/Chirpstack/Api/GetDevicesSummaryRequest.php b/api/php/generated/Chirpstack/Api/GetDevicesSummaryRequest.php deleted file mode 100644 index 64b822a2..00000000 --- a/api/php/generated/Chirpstack/Api/GetDevicesSummaryRequest.php +++ /dev/null @@ -1,65 +0,0 @@ -api.GetDevicesSummaryRequest - */ -class GetDevicesSummaryRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Tenant ID (UUID). - * - * Generated from protobuf field string tenant_id = 1; - */ - protected $tenant_id = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $tenant_id - * Tenant ID (UUID). - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Chirpstack\Api\Internal::initOnce(); - parent::__construct($data); - } - - /** - * Tenant ID (UUID). - * - * Generated from protobuf field string tenant_id = 1; - * @return string - */ - public function getTenantId() - { - return $this->tenant_id; - } - - /** - * Tenant ID (UUID). - * - * Generated from protobuf field string tenant_id = 1; - * @param string $var - * @return $this - */ - public function setTenantId($var) - { - GPBUtil::checkString($var, True); - $this->tenant_id = $var; - - return $this; - } - -} - diff --git a/api/php/generated/Chirpstack/Api/GetDevicesSummaryResponse.php b/api/php/generated/Chirpstack/Api/GetDevicesSummaryResponse.php deleted file mode 100644 index 28b9b690..00000000 --- a/api/php/generated/Chirpstack/Api/GetDevicesSummaryResponse.php +++ /dev/null @@ -1,171 +0,0 @@ -api.GetDevicesSummaryResponse - */ -class GetDevicesSummaryResponse extends \Google\Protobuf\Internal\Message -{ - /** - * Active count. - * - * Generated from protobuf field uint32 active_count = 1; - */ - protected $active_count = 0; - /** - * Inactive count. - * - * Generated from protobuf field uint32 inactive_count = 2; - */ - protected $inactive_count = 0; - /** - * per data-rate count. - * Devices that have never been seen are excluded. - * - * Generated from protobuf field map dr_count = 3; - */ - private $dr_count; - /** - * Never seen count. - * - * Generated from protobuf field uint32 never_seen_count = 4; - */ - protected $never_seen_count = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $active_count - * Active count. - * @type int $inactive_count - * Inactive count. - * @type array|\Google\Protobuf\Internal\MapField $dr_count - * per data-rate count. - * Devices that have never been seen are excluded. - * @type int $never_seen_count - * Never seen count. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Chirpstack\Api\Internal::initOnce(); - parent::__construct($data); - } - - /** - * Active count. - * - * Generated from protobuf field uint32 active_count = 1; - * @return int - */ - public function getActiveCount() - { - return $this->active_count; - } - - /** - * Active count. - * - * Generated from protobuf field uint32 active_count = 1; - * @param int $var - * @return $this - */ - public function setActiveCount($var) - { - GPBUtil::checkUint32($var); - $this->active_count = $var; - - return $this; - } - - /** - * Inactive count. - * - * Generated from protobuf field uint32 inactive_count = 2; - * @return int - */ - public function getInactiveCount() - { - return $this->inactive_count; - } - - /** - * Inactive count. - * - * Generated from protobuf field uint32 inactive_count = 2; - * @param int $var - * @return $this - */ - public function setInactiveCount($var) - { - GPBUtil::checkUint32($var); - $this->inactive_count = $var; - - return $this; - } - - /** - * per data-rate count. - * Devices that have never been seen are excluded. - * - * Generated from protobuf field map dr_count = 3; - * @return \Google\Protobuf\Internal\MapField - */ - public function getDrCount() - { - return $this->dr_count; - } - - /** - * per data-rate count. - * Devices that have never been seen are excluded. - * - * Generated from protobuf field map dr_count = 3; - * @param array|\Google\Protobuf\Internal\MapField $var - * @return $this - */ - public function setDrCount($var) - { - $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::UINT32, \Google\Protobuf\Internal\GPBType::UINT32); - $this->dr_count = $arr; - - return $this; - } - - /** - * Never seen count. - * - * Generated from protobuf field uint32 never_seen_count = 4; - * @return int - */ - public function getNeverSeenCount() - { - return $this->never_seen_count; - } - - /** - * Never seen count. - * - * Generated from protobuf field uint32 never_seen_count = 4; - * @param int $var - * @return $this - */ - public function setNeverSeenCount($var) - { - GPBUtil::checkUint32($var); - $this->never_seen_count = $var; - - return $this; - } - -} - diff --git a/api/php/generated/Chirpstack/Api/GetGatewayDutyCycleMetricsRequest.php b/api/php/generated/Chirpstack/Api/GetGatewayDutyCycleMetricsRequest.php deleted file mode 100644 index 349174eb..00000000 --- a/api/php/generated/Chirpstack/Api/GetGatewayDutyCycleMetricsRequest.php +++ /dev/null @@ -1,153 +0,0 @@ -api.GetGatewayDutyCycleMetricsRequest - */ -class GetGatewayDutyCycleMetricsRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Gateway ID (EUI64). - * - * Generated from protobuf field string gateway_id = 1; - */ - protected $gateway_id = ''; - /** - * Interval start timestamp. - * - * Generated from protobuf field .google.protobuf.Timestamp start = 2; - */ - protected $start = null; - /** - * Interval end timestamp. - * - * Generated from protobuf field .google.protobuf.Timestamp end = 3; - */ - protected $end = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $gateway_id - * Gateway ID (EUI64). - * @type \Google\Protobuf\Timestamp $start - * Interval start timestamp. - * @type \Google\Protobuf\Timestamp $end - * Interval end timestamp. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Chirpstack\Api\Gateway::initOnce(); - parent::__construct($data); - } - - /** - * Gateway ID (EUI64). - * - * Generated from protobuf field string gateway_id = 1; - * @return string - */ - public function getGatewayId() - { - return $this->gateway_id; - } - - /** - * Gateway ID (EUI64). - * - * Generated from protobuf field string gateway_id = 1; - * @param string $var - * @return $this - */ - public function setGatewayId($var) - { - GPBUtil::checkString($var, True); - $this->gateway_id = $var; - - return $this; - } - - /** - * Interval start timestamp. - * - * Generated from protobuf field .google.protobuf.Timestamp start = 2; - * @return \Google\Protobuf\Timestamp|null - */ - public function getStart() - { - return $this->start; - } - - public function hasStart() - { - return isset($this->start); - } - - public function clearStart() - { - unset($this->start); - } - - /** - * Interval start timestamp. - * - * Generated from protobuf field .google.protobuf.Timestamp start = 2; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setStart($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->start = $var; - - return $this; - } - - /** - * Interval end timestamp. - * - * Generated from protobuf field .google.protobuf.Timestamp end = 3; - * @return \Google\Protobuf\Timestamp|null - */ - public function getEnd() - { - return $this->end; - } - - public function hasEnd() - { - return isset($this->end); - } - - public function clearEnd() - { - unset($this->end); - } - - /** - * Interval end timestamp. - * - * Generated from protobuf field .google.protobuf.Timestamp end = 3; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setEnd($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->end = $var; - - return $this; - } - -} - diff --git a/api/php/generated/Chirpstack/Api/GetGatewayDutyCycleMetricsResponse.php b/api/php/generated/Chirpstack/Api/GetGatewayDutyCycleMetricsResponse.php deleted file mode 100644 index 57099ba6..00000000 --- a/api/php/generated/Chirpstack/Api/GetGatewayDutyCycleMetricsResponse.php +++ /dev/null @@ -1,119 +0,0 @@ -api.GetGatewayDutyCycleMetricsResponse - */ -class GetGatewayDutyCycleMetricsResponse extends \Google\Protobuf\Internal\Message -{ - /** - * Percentage relative to max load. - * - * Generated from protobuf field .common.Metric max_load_percentage = 1; - */ - protected $max_load_percentage = null; - /** - * Percentage relative to tracking window. - * - * Generated from protobuf field .common.Metric window_percentage = 2; - */ - protected $window_percentage = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Chirpstack\Common\Metric $max_load_percentage - * Percentage relative to max load. - * @type \Chirpstack\Common\Metric $window_percentage - * Percentage relative to tracking window. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Chirpstack\Api\Gateway::initOnce(); - parent::__construct($data); - } - - /** - * Percentage relative to max load. - * - * Generated from protobuf field .common.Metric max_load_percentage = 1; - * @return \Chirpstack\Common\Metric|null - */ - public function getMaxLoadPercentage() - { - return $this->max_load_percentage; - } - - public function hasMaxLoadPercentage() - { - return isset($this->max_load_percentage); - } - - public function clearMaxLoadPercentage() - { - unset($this->max_load_percentage); - } - - /** - * Percentage relative to max load. - * - * Generated from protobuf field .common.Metric max_load_percentage = 1; - * @param \Chirpstack\Common\Metric $var - * @return $this - */ - public function setMaxLoadPercentage($var) - { - GPBUtil::checkMessage($var, \Chirpstack\Common\Metric::class); - $this->max_load_percentage = $var; - - return $this; - } - - /** - * Percentage relative to tracking window. - * - * Generated from protobuf field .common.Metric window_percentage = 2; - * @return \Chirpstack\Common\Metric|null - */ - public function getWindowPercentage() - { - return $this->window_percentage; - } - - public function hasWindowPercentage() - { - return isset($this->window_percentage); - } - - public function clearWindowPercentage() - { - unset($this->window_percentage); - } - - /** - * Percentage relative to tracking window. - * - * Generated from protobuf field .common.Metric window_percentage = 2; - * @param \Chirpstack\Common\Metric $var - * @return $this - */ - public function setWindowPercentage($var) - { - GPBUtil::checkMessage($var, \Chirpstack\Common\Metric::class); - $this->window_percentage = $var; - - return $this; - } - -} - diff --git a/api/php/generated/Chirpstack/Api/GetGatewayMetricsRequest.php b/api/php/generated/Chirpstack/Api/GetGatewayMetricsRequest.php deleted file mode 100644 index 3f1a62bb..00000000 --- a/api/php/generated/Chirpstack/Api/GetGatewayMetricsRequest.php +++ /dev/null @@ -1,187 +0,0 @@ -api.GetGatewayMetricsRequest - */ -class GetGatewayMetricsRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Gateway ID (EUI64). - * - * Generated from protobuf field string gateway_id = 1; - */ - protected $gateway_id = ''; - /** - * Interval start timestamp. - * - * Generated from protobuf field .google.protobuf.Timestamp start = 2; - */ - protected $start = null; - /** - * Interval end timestamp. - * - * Generated from protobuf field .google.protobuf.Timestamp end = 3; - */ - protected $end = null; - /** - * Aggregation. - * - * Generated from protobuf field .common.Aggregation aggregation = 4; - */ - protected $aggregation = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $gateway_id - * Gateway ID (EUI64). - * @type \Google\Protobuf\Timestamp $start - * Interval start timestamp. - * @type \Google\Protobuf\Timestamp $end - * Interval end timestamp. - * @type int $aggregation - * Aggregation. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Chirpstack\Api\Gateway::initOnce(); - parent::__construct($data); - } - - /** - * Gateway ID (EUI64). - * - * Generated from protobuf field string gateway_id = 1; - * @return string - */ - public function getGatewayId() - { - return $this->gateway_id; - } - - /** - * Gateway ID (EUI64). - * - * Generated from protobuf field string gateway_id = 1; - * @param string $var - * @return $this - */ - public function setGatewayId($var) - { - GPBUtil::checkString($var, True); - $this->gateway_id = $var; - - return $this; - } - - /** - * Interval start timestamp. - * - * Generated from protobuf field .google.protobuf.Timestamp start = 2; - * @return \Google\Protobuf\Timestamp|null - */ - public function getStart() - { - return $this->start; - } - - public function hasStart() - { - return isset($this->start); - } - - public function clearStart() - { - unset($this->start); - } - - /** - * Interval start timestamp. - * - * Generated from protobuf field .google.protobuf.Timestamp start = 2; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setStart($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->start = $var; - - return $this; - } - - /** - * Interval end timestamp. - * - * Generated from protobuf field .google.protobuf.Timestamp end = 3; - * @return \Google\Protobuf\Timestamp|null - */ - public function getEnd() - { - return $this->end; - } - - public function hasEnd() - { - return isset($this->end); - } - - public function clearEnd() - { - unset($this->end); - } - - /** - * Interval end timestamp. - * - * Generated from protobuf field .google.protobuf.Timestamp end = 3; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setEnd($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->end = $var; - - return $this; - } - - /** - * Aggregation. - * - * Generated from protobuf field .common.Aggregation aggregation = 4; - * @return int - */ - public function getAggregation() - { - return $this->aggregation; - } - - /** - * Aggregation. - * - * Generated from protobuf field .common.Aggregation aggregation = 4; - * @param int $var - * @return $this - */ - public function setAggregation($var) - { - GPBUtil::checkEnum($var, \Chirpstack\Common\Aggregation::class); - $this->aggregation = $var; - - return $this; - } - -} - diff --git a/api/php/generated/Chirpstack/Api/GetGatewayMetricsResponse.php b/api/php/generated/Chirpstack/Api/GetGatewayMetricsResponse.php deleted file mode 100644 index 17249dc0..00000000 --- a/api/php/generated/Chirpstack/Api/GetGatewayMetricsResponse.php +++ /dev/null @@ -1,339 +0,0 @@ -api.GetGatewayMetricsResponse - */ -class GetGatewayMetricsResponse extends \Google\Protobuf\Internal\Message -{ - /** - * RX packets. - * - * Generated from protobuf field .common.Metric rx_packets = 1; - */ - protected $rx_packets = null; - /** - * TX packets. - * - * Generated from protobuf field .common.Metric tx_packets = 2; - */ - protected $tx_packets = null; - /** - * TX packets / frequency. - * - * Generated from protobuf field .common.Metric tx_packets_per_freq = 3; - */ - protected $tx_packets_per_freq = null; - /** - * RX packets / frequency. - * - * Generated from protobuf field .common.Metric rx_packets_per_freq = 4; - */ - protected $rx_packets_per_freq = null; - /** - * TX packets / DR. - * - * Generated from protobuf field .common.Metric tx_packets_per_dr = 5; - */ - protected $tx_packets_per_dr = null; - /** - * RX packets / DR. - * - * Generated from protobuf field .common.Metric rx_packets_per_dr = 6; - */ - protected $rx_packets_per_dr = null; - /** - * TX packets per status. - * - * Generated from protobuf field .common.Metric tx_packets_per_status = 7; - */ - protected $tx_packets_per_status = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Chirpstack\Common\Metric $rx_packets - * RX packets. - * @type \Chirpstack\Common\Metric $tx_packets - * TX packets. - * @type \Chirpstack\Common\Metric $tx_packets_per_freq - * TX packets / frequency. - * @type \Chirpstack\Common\Metric $rx_packets_per_freq - * RX packets / frequency. - * @type \Chirpstack\Common\Metric $tx_packets_per_dr - * TX packets / DR. - * @type \Chirpstack\Common\Metric $rx_packets_per_dr - * RX packets / DR. - * @type \Chirpstack\Common\Metric $tx_packets_per_status - * TX packets per status. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Chirpstack\Api\Gateway::initOnce(); - parent::__construct($data); - } - - /** - * RX packets. - * - * Generated from protobuf field .common.Metric rx_packets = 1; - * @return \Chirpstack\Common\Metric|null - */ - public function getRxPackets() - { - return $this->rx_packets; - } - - public function hasRxPackets() - { - return isset($this->rx_packets); - } - - public function clearRxPackets() - { - unset($this->rx_packets); - } - - /** - * RX packets. - * - * Generated from protobuf field .common.Metric rx_packets = 1; - * @param \Chirpstack\Common\Metric $var - * @return $this - */ - public function setRxPackets($var) - { - GPBUtil::checkMessage($var, \Chirpstack\Common\Metric::class); - $this->rx_packets = $var; - - return $this; - } - - /** - * TX packets. - * - * Generated from protobuf field .common.Metric tx_packets = 2; - * @return \Chirpstack\Common\Metric|null - */ - public function getTxPackets() - { - return $this->tx_packets; - } - - public function hasTxPackets() - { - return isset($this->tx_packets); - } - - public function clearTxPackets() - { - unset($this->tx_packets); - } - - /** - * TX packets. - * - * Generated from protobuf field .common.Metric tx_packets = 2; - * @param \Chirpstack\Common\Metric $var - * @return $this - */ - public function setTxPackets($var) - { - GPBUtil::checkMessage($var, \Chirpstack\Common\Metric::class); - $this->tx_packets = $var; - - return $this; - } - - /** - * TX packets / frequency. - * - * Generated from protobuf field .common.Metric tx_packets_per_freq = 3; - * @return \Chirpstack\Common\Metric|null - */ - public function getTxPacketsPerFreq() - { - return $this->tx_packets_per_freq; - } - - public function hasTxPacketsPerFreq() - { - return isset($this->tx_packets_per_freq); - } - - public function clearTxPacketsPerFreq() - { - unset($this->tx_packets_per_freq); - } - - /** - * TX packets / frequency. - * - * Generated from protobuf field .common.Metric tx_packets_per_freq = 3; - * @param \Chirpstack\Common\Metric $var - * @return $this - */ - public function setTxPacketsPerFreq($var) - { - GPBUtil::checkMessage($var, \Chirpstack\Common\Metric::class); - $this->tx_packets_per_freq = $var; - - return $this; - } - - /** - * RX packets / frequency. - * - * Generated from protobuf field .common.Metric rx_packets_per_freq = 4; - * @return \Chirpstack\Common\Metric|null - */ - public function getRxPacketsPerFreq() - { - return $this->rx_packets_per_freq; - } - - public function hasRxPacketsPerFreq() - { - return isset($this->rx_packets_per_freq); - } - - public function clearRxPacketsPerFreq() - { - unset($this->rx_packets_per_freq); - } - - /** - * RX packets / frequency. - * - * Generated from protobuf field .common.Metric rx_packets_per_freq = 4; - * @param \Chirpstack\Common\Metric $var - * @return $this - */ - public function setRxPacketsPerFreq($var) - { - GPBUtil::checkMessage($var, \Chirpstack\Common\Metric::class); - $this->rx_packets_per_freq = $var; - - return $this; - } - - /** - * TX packets / DR. - * - * Generated from protobuf field .common.Metric tx_packets_per_dr = 5; - * @return \Chirpstack\Common\Metric|null - */ - public function getTxPacketsPerDr() - { - return $this->tx_packets_per_dr; - } - - public function hasTxPacketsPerDr() - { - return isset($this->tx_packets_per_dr); - } - - public function clearTxPacketsPerDr() - { - unset($this->tx_packets_per_dr); - } - - /** - * TX packets / DR. - * - * Generated from protobuf field .common.Metric tx_packets_per_dr = 5; - * @param \Chirpstack\Common\Metric $var - * @return $this - */ - public function setTxPacketsPerDr($var) - { - GPBUtil::checkMessage($var, \Chirpstack\Common\Metric::class); - $this->tx_packets_per_dr = $var; - - return $this; - } - - /** - * RX packets / DR. - * - * Generated from protobuf field .common.Metric rx_packets_per_dr = 6; - * @return \Chirpstack\Common\Metric|null - */ - public function getRxPacketsPerDr() - { - return $this->rx_packets_per_dr; - } - - public function hasRxPacketsPerDr() - { - return isset($this->rx_packets_per_dr); - } - - public function clearRxPacketsPerDr() - { - unset($this->rx_packets_per_dr); - } - - /** - * RX packets / DR. - * - * Generated from protobuf field .common.Metric rx_packets_per_dr = 6; - * @param \Chirpstack\Common\Metric $var - * @return $this - */ - public function setRxPacketsPerDr($var) - { - GPBUtil::checkMessage($var, \Chirpstack\Common\Metric::class); - $this->rx_packets_per_dr = $var; - - return $this; - } - - /** - * TX packets per status. - * - * Generated from protobuf field .common.Metric tx_packets_per_status = 7; - * @return \Chirpstack\Common\Metric|null - */ - public function getTxPacketsPerStatus() - { - return $this->tx_packets_per_status; - } - - public function hasTxPacketsPerStatus() - { - return isset($this->tx_packets_per_status); - } - - public function clearTxPacketsPerStatus() - { - unset($this->tx_packets_per_status); - } - - /** - * TX packets per status. - * - * Generated from protobuf field .common.Metric tx_packets_per_status = 7; - * @param \Chirpstack\Common\Metric $var - * @return $this - */ - public function setTxPacketsPerStatus($var) - { - GPBUtil::checkMessage($var, \Chirpstack\Common\Metric::class); - $this->tx_packets_per_status = $var; - - return $this; - } - -} - diff --git a/api/php/generated/Chirpstack/Api/GetGatewayRequest.php b/api/php/generated/Chirpstack/Api/GetGatewayRequest.php deleted file mode 100644 index 96ce2b73..00000000 --- a/api/php/generated/Chirpstack/Api/GetGatewayRequest.php +++ /dev/null @@ -1,65 +0,0 @@ -api.GetGatewayRequest - */ -class GetGatewayRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Gateway ID (EUI64). - * - * Generated from protobuf field string gateway_id = 1; - */ - protected $gateway_id = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $gateway_id - * Gateway ID (EUI64). - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Chirpstack\Api\Gateway::initOnce(); - parent::__construct($data); - } - - /** - * Gateway ID (EUI64). - * - * Generated from protobuf field string gateway_id = 1; - * @return string - */ - public function getGatewayId() - { - return $this->gateway_id; - } - - /** - * Gateway ID (EUI64). - * - * Generated from protobuf field string gateway_id = 1; - * @param string $var - * @return $this - */ - public function setGatewayId($var) - { - GPBUtil::checkString($var, True); - $this->gateway_id = $var; - - return $this; - } - -} - diff --git a/api/php/generated/Chirpstack/Api/GetGatewayResponse.php b/api/php/generated/Chirpstack/Api/GetGatewayResponse.php deleted file mode 100644 index a69f91cd..00000000 --- a/api/php/generated/Chirpstack/Api/GetGatewayResponse.php +++ /dev/null @@ -1,207 +0,0 @@ -api.GetGatewayResponse - */ -class GetGatewayResponse extends \Google\Protobuf\Internal\Message -{ - /** - * Gateway object. - * - * Generated from protobuf field .api.Gateway gateway = 1; - */ - protected $gateway = null; - /** - * Created at timestamp. - * - * Generated from protobuf field .google.protobuf.Timestamp created_at = 2; - */ - protected $created_at = null; - /** - * Last update timestamp. - * - * Generated from protobuf field .google.protobuf.Timestamp updated_at = 3; - */ - protected $updated_at = null; - /** - * Last seen at timestamp. - * - * Generated from protobuf field .google.protobuf.Timestamp last_seen_at = 4; - */ - protected $last_seen_at = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Chirpstack\Api\Gateway $gateway - * Gateway object. - * @type \Google\Protobuf\Timestamp $created_at - * Created at timestamp. - * @type \Google\Protobuf\Timestamp $updated_at - * Last update timestamp. - * @type \Google\Protobuf\Timestamp $last_seen_at - * Last seen at timestamp. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Chirpstack\Api\Gateway::initOnce(); - parent::__construct($data); - } - - /** - * Gateway object. - * - * Generated from protobuf field .api.Gateway gateway = 1; - * @return \Chirpstack\Api\Gateway|null - */ - public function getGateway() - { - return $this->gateway; - } - - public function hasGateway() - { - return isset($this->gateway); - } - - public function clearGateway() - { - unset($this->gateway); - } - - /** - * Gateway object. - * - * Generated from protobuf field .api.Gateway gateway = 1; - * @param \Chirpstack\Api\Gateway $var - * @return $this - */ - public function setGateway($var) - { - GPBUtil::checkMessage($var, \Chirpstack\Api\Gateway::class); - $this->gateway = $var; - - return $this; - } - - /** - * Created at timestamp. - * - * Generated from protobuf field .google.protobuf.Timestamp created_at = 2; - * @return \Google\Protobuf\Timestamp|null - */ - public function getCreatedAt() - { - return $this->created_at; - } - - public function hasCreatedAt() - { - return isset($this->created_at); - } - - public function clearCreatedAt() - { - unset($this->created_at); - } - - /** - * Created at timestamp. - * - * Generated from protobuf field .google.protobuf.Timestamp created_at = 2; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setCreatedAt($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->created_at = $var; - - return $this; - } - - /** - * Last update timestamp. - * - * Generated from protobuf field .google.protobuf.Timestamp updated_at = 3; - * @return \Google\Protobuf\Timestamp|null - */ - public function getUpdatedAt() - { - return $this->updated_at; - } - - public function hasUpdatedAt() - { - return isset($this->updated_at); - } - - public function clearUpdatedAt() - { - unset($this->updated_at); - } - - /** - * Last update timestamp. - * - * Generated from protobuf field .google.protobuf.Timestamp updated_at = 3; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setUpdatedAt($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->updated_at = $var; - - return $this; - } - - /** - * Last seen at timestamp. - * - * Generated from protobuf field .google.protobuf.Timestamp last_seen_at = 4; - * @return \Google\Protobuf\Timestamp|null - */ - public function getLastSeenAt() - { - return $this->last_seen_at; - } - - public function hasLastSeenAt() - { - return isset($this->last_seen_at); - } - - public function clearLastSeenAt() - { - unset($this->last_seen_at); - } - - /** - * Last seen at timestamp. - * - * Generated from protobuf field .google.protobuf.Timestamp last_seen_at = 4; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setLastSeenAt($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->last_seen_at = $var; - - return $this; - } - -} - diff --git a/api/php/generated/Chirpstack/Api/GetGatewaysSummaryRequest.php b/api/php/generated/Chirpstack/Api/GetGatewaysSummaryRequest.php deleted file mode 100644 index ecfeaca6..00000000 --- a/api/php/generated/Chirpstack/Api/GetGatewaysSummaryRequest.php +++ /dev/null @@ -1,65 +0,0 @@ -api.GetGatewaysSummaryRequest - */ -class GetGatewaysSummaryRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Tenant ID (UUID). - * - * Generated from protobuf field string tenant_id = 1; - */ - protected $tenant_id = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $tenant_id - * Tenant ID (UUID). - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Chirpstack\Api\Internal::initOnce(); - parent::__construct($data); - } - - /** - * Tenant ID (UUID). - * - * Generated from protobuf field string tenant_id = 1; - * @return string - */ - public function getTenantId() - { - return $this->tenant_id; - } - - /** - * Tenant ID (UUID). - * - * Generated from protobuf field string tenant_id = 1; - * @param string $var - * @return $this - */ - public function setTenantId($var) - { - GPBUtil::checkString($var, True); - $this->tenant_id = $var; - - return $this; - } - -} - diff --git a/api/php/generated/Chirpstack/Api/GetGatewaysSummaryResponse.php b/api/php/generated/Chirpstack/Api/GetGatewaysSummaryResponse.php deleted file mode 100644 index dec4ad98..00000000 --- a/api/php/generated/Chirpstack/Api/GetGatewaysSummaryResponse.php +++ /dev/null @@ -1,133 +0,0 @@ -api.GetGatewaysSummaryResponse - */ -class GetGatewaysSummaryResponse extends \Google\Protobuf\Internal\Message -{ - /** - * Online count. - * - * Generated from protobuf field uint32 online_count = 1; - */ - protected $online_count = 0; - /** - * Offline count. - * - * Generated from protobuf field uint32 offline_count = 2; - */ - protected $offline_count = 0; - /** - * Never seen count. - * - * Generated from protobuf field uint32 never_seen_count = 3; - */ - protected $never_seen_count = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $online_count - * Online count. - * @type int $offline_count - * Offline count. - * @type int $never_seen_count - * Never seen count. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Chirpstack\Api\Internal::initOnce(); - parent::__construct($data); - } - - /** - * Online count. - * - * Generated from protobuf field uint32 online_count = 1; - * @return int - */ - public function getOnlineCount() - { - return $this->online_count; - } - - /** - * Online count. - * - * Generated from protobuf field uint32 online_count = 1; - * @param int $var - * @return $this - */ - public function setOnlineCount($var) - { - GPBUtil::checkUint32($var); - $this->online_count = $var; - - return $this; - } - - /** - * Offline count. - * - * Generated from protobuf field uint32 offline_count = 2; - * @return int - */ - public function getOfflineCount() - { - return $this->offline_count; - } - - /** - * Offline count. - * - * Generated from protobuf field uint32 offline_count = 2; - * @param int $var - * @return $this - */ - public function setOfflineCount($var) - { - GPBUtil::checkUint32($var); - $this->offline_count = $var; - - return $this; - } - - /** - * Never seen count. - * - * Generated from protobuf field uint32 never_seen_count = 3; - * @return int - */ - public function getNeverSeenCount() - { - return $this->never_seen_count; - } - - /** - * Never seen count. - * - * Generated from protobuf field uint32 never_seen_count = 3; - * @param int $var - * @return $this - */ - public function setNeverSeenCount($var) - { - GPBUtil::checkUint32($var); - $this->never_seen_count = $var; - - return $this; - } - -} - diff --git a/api/php/generated/Chirpstack/Api/GetGcpPubSubIntegrationRequest.php b/api/php/generated/Chirpstack/Api/GetGcpPubSubIntegrationRequest.php deleted file mode 100644 index 221e8419..00000000 --- a/api/php/generated/Chirpstack/Api/GetGcpPubSubIntegrationRequest.php +++ /dev/null @@ -1,65 +0,0 @@ -api.GetGcpPubSubIntegrationRequest - */ -class GetGcpPubSubIntegrationRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Application ID (UUID). - * - * Generated from protobuf field string application_id = 1; - */ - protected $application_id = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $application_id - * Application ID (UUID). - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Chirpstack\Api\Application::initOnce(); - parent::__construct($data); - } - - /** - * Application ID (UUID). - * - * Generated from protobuf field string application_id = 1; - * @return string - */ - public function getApplicationId() - { - return $this->application_id; - } - - /** - * Application ID (UUID). - * - * Generated from protobuf field string application_id = 1; - * @param string $var - * @return $this - */ - public function setApplicationId($var) - { - GPBUtil::checkString($var, True); - $this->application_id = $var; - - return $this; - } - -} - diff --git a/api/php/generated/Chirpstack/Api/GetGcpPubSubIntegrationResponse.php b/api/php/generated/Chirpstack/Api/GetGcpPubSubIntegrationResponse.php deleted file mode 100644 index 0df411f5..00000000 --- a/api/php/generated/Chirpstack/Api/GetGcpPubSubIntegrationResponse.php +++ /dev/null @@ -1,75 +0,0 @@ -api.GetGcpPubSubIntegrationResponse - */ -class GetGcpPubSubIntegrationResponse extends \Google\Protobuf\Internal\Message -{ - /** - * Integration object. - * - * Generated from protobuf field .api.GcpPubSubIntegration integration = 1; - */ - protected $integration = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Chirpstack\Api\GcpPubSubIntegration $integration - * Integration object. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Chirpstack\Api\Application::initOnce(); - parent::__construct($data); - } - - /** - * Integration object. - * - * Generated from protobuf field .api.GcpPubSubIntegration integration = 1; - * @return \Chirpstack\Api\GcpPubSubIntegration|null - */ - public function getIntegration() - { - return $this->integration; - } - - public function hasIntegration() - { - return isset($this->integration); - } - - public function clearIntegration() - { - unset($this->integration); - } - - /** - * Integration object. - * - * Generated from protobuf field .api.GcpPubSubIntegration integration = 1; - * @param \Chirpstack\Api\GcpPubSubIntegration $var - * @return $this - */ - public function setIntegration($var) - { - GPBUtil::checkMessage($var, \Chirpstack\Api\GcpPubSubIntegration::class); - $this->integration = $var; - - return $this; - } - -} - diff --git a/api/php/generated/Chirpstack/Api/GetHttpIntegrationRequest.php b/api/php/generated/Chirpstack/Api/GetHttpIntegrationRequest.php deleted file mode 100644 index 3cc69387..00000000 --- a/api/php/generated/Chirpstack/Api/GetHttpIntegrationRequest.php +++ /dev/null @@ -1,65 +0,0 @@ -api.GetHttpIntegrationRequest - */ -class GetHttpIntegrationRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Application ID (UUID). - * - * Generated from protobuf field string application_id = 1; - */ - protected $application_id = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $application_id - * Application ID (UUID). - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Chirpstack\Api\Application::initOnce(); - parent::__construct($data); - } - - /** - * Application ID (UUID). - * - * Generated from protobuf field string application_id = 1; - * @return string - */ - public function getApplicationId() - { - return $this->application_id; - } - - /** - * Application ID (UUID). - * - * Generated from protobuf field string application_id = 1; - * @param string $var - * @return $this - */ - public function setApplicationId($var) - { - GPBUtil::checkString($var, True); - $this->application_id = $var; - - return $this; - } - -} - diff --git a/api/php/generated/Chirpstack/Api/GetHttpIntegrationResponse.php b/api/php/generated/Chirpstack/Api/GetHttpIntegrationResponse.php deleted file mode 100644 index ad897865..00000000 --- a/api/php/generated/Chirpstack/Api/GetHttpIntegrationResponse.php +++ /dev/null @@ -1,75 +0,0 @@ -api.GetHttpIntegrationResponse - */ -class GetHttpIntegrationResponse extends \Google\Protobuf\Internal\Message -{ - /** - * Integration object. - * - * Generated from protobuf field .api.HttpIntegration integration = 1; - */ - protected $integration = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Chirpstack\Api\HttpIntegration $integration - * Integration object. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Chirpstack\Api\Application::initOnce(); - parent::__construct($data); - } - - /** - * Integration object. - * - * Generated from protobuf field .api.HttpIntegration integration = 1; - * @return \Chirpstack\Api\HttpIntegration|null - */ - public function getIntegration() - { - return $this->integration; - } - - public function hasIntegration() - { - return isset($this->integration); - } - - public function clearIntegration() - { - unset($this->integration); - } - - /** - * Integration object. - * - * Generated from protobuf field .api.HttpIntegration integration = 1; - * @param \Chirpstack\Api\HttpIntegration $var - * @return $this - */ - public function setIntegration($var) - { - GPBUtil::checkMessage($var, \Chirpstack\Api\HttpIntegration::class); - $this->integration = $var; - - return $this; - } - -} - diff --git a/api/php/generated/Chirpstack/Api/GetIftttIntegrationRequest.php b/api/php/generated/Chirpstack/Api/GetIftttIntegrationRequest.php deleted file mode 100644 index 63121518..00000000 --- a/api/php/generated/Chirpstack/Api/GetIftttIntegrationRequest.php +++ /dev/null @@ -1,65 +0,0 @@ -api.GetIftttIntegrationRequest - */ -class GetIftttIntegrationRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Application ID (UUID). - * - * Generated from protobuf field string application_id = 1; - */ - protected $application_id = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $application_id - * Application ID (UUID). - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Chirpstack\Api\Application::initOnce(); - parent::__construct($data); - } - - /** - * Application ID (UUID). - * - * Generated from protobuf field string application_id = 1; - * @return string - */ - public function getApplicationId() - { - return $this->application_id; - } - - /** - * Application ID (UUID). - * - * Generated from protobuf field string application_id = 1; - * @param string $var - * @return $this - */ - public function setApplicationId($var) - { - GPBUtil::checkString($var, True); - $this->application_id = $var; - - return $this; - } - -} - diff --git a/api/php/generated/Chirpstack/Api/GetIftttIntegrationResponse.php b/api/php/generated/Chirpstack/Api/GetIftttIntegrationResponse.php deleted file mode 100644 index 99f42823..00000000 --- a/api/php/generated/Chirpstack/Api/GetIftttIntegrationResponse.php +++ /dev/null @@ -1,75 +0,0 @@ -api.GetIftttIntegrationResponse - */ -class GetIftttIntegrationResponse extends \Google\Protobuf\Internal\Message -{ - /** - * Integration object. - * - * Generated from protobuf field .api.IftttIntegration integration = 1; - */ - protected $integration = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Chirpstack\Api\IftttIntegration $integration - * Integration object. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Chirpstack\Api\Application::initOnce(); - parent::__construct($data); - } - - /** - * Integration object. - * - * Generated from protobuf field .api.IftttIntegration integration = 1; - * @return \Chirpstack\Api\IftttIntegration|null - */ - public function getIntegration() - { - return $this->integration; - } - - public function hasIntegration() - { - return isset($this->integration); - } - - public function clearIntegration() - { - unset($this->integration); - } - - /** - * Integration object. - * - * Generated from protobuf field .api.IftttIntegration integration = 1; - * @param \Chirpstack\Api\IftttIntegration $var - * @return $this - */ - public function setIntegration($var) - { - GPBUtil::checkMessage($var, \Chirpstack\Api\IftttIntegration::class); - $this->integration = $var; - - return $this; - } - -} - diff --git a/api/php/generated/Chirpstack/Api/GetInfluxDbIntegrationRequest.php b/api/php/generated/Chirpstack/Api/GetInfluxDbIntegrationRequest.php deleted file mode 100644 index 8870bb47..00000000 --- a/api/php/generated/Chirpstack/Api/GetInfluxDbIntegrationRequest.php +++ /dev/null @@ -1,65 +0,0 @@ -api.GetInfluxDbIntegrationRequest - */ -class GetInfluxDbIntegrationRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Application ID (UUID). - * - * Generated from protobuf field string application_id = 1; - */ - protected $application_id = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $application_id - * Application ID (UUID). - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Chirpstack\Api\Application::initOnce(); - parent::__construct($data); - } - - /** - * Application ID (UUID). - * - * Generated from protobuf field string application_id = 1; - * @return string - */ - public function getApplicationId() - { - return $this->application_id; - } - - /** - * Application ID (UUID). - * - * Generated from protobuf field string application_id = 1; - * @param string $var - * @return $this - */ - public function setApplicationId($var) - { - GPBUtil::checkString($var, True); - $this->application_id = $var; - - return $this; - } - -} - diff --git a/api/php/generated/Chirpstack/Api/GetInfluxDbIntegrationResponse.php b/api/php/generated/Chirpstack/Api/GetInfluxDbIntegrationResponse.php deleted file mode 100644 index 13e2b220..00000000 --- a/api/php/generated/Chirpstack/Api/GetInfluxDbIntegrationResponse.php +++ /dev/null @@ -1,75 +0,0 @@ -api.GetInfluxDbIntegrationResponse - */ -class GetInfluxDbIntegrationResponse extends \Google\Protobuf\Internal\Message -{ - /** - * Integration object. - * - * Generated from protobuf field .api.InfluxDbIntegration integration = 1; - */ - protected $integration = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Chirpstack\Api\InfluxDbIntegration $integration - * Integration object. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Chirpstack\Api\Application::initOnce(); - parent::__construct($data); - } - - /** - * Integration object. - * - * Generated from protobuf field .api.InfluxDbIntegration integration = 1; - * @return \Chirpstack\Api\InfluxDbIntegration|null - */ - public function getIntegration() - { - return $this->integration; - } - - public function hasIntegration() - { - return isset($this->integration); - } - - public function clearIntegration() - { - unset($this->integration); - } - - /** - * Integration object. - * - * Generated from protobuf field .api.InfluxDbIntegration integration = 1; - * @param \Chirpstack\Api\InfluxDbIntegration $var - * @return $this - */ - public function setIntegration($var) - { - GPBUtil::checkMessage($var, \Chirpstack\Api\InfluxDbIntegration::class); - $this->integration = $var; - - return $this; - } - -} - diff --git a/api/php/generated/Chirpstack/Api/GetLoraCloudIntegrationRequest.php b/api/php/generated/Chirpstack/Api/GetLoraCloudIntegrationRequest.php deleted file mode 100644 index 5872e2bf..00000000 --- a/api/php/generated/Chirpstack/Api/GetLoraCloudIntegrationRequest.php +++ /dev/null @@ -1,65 +0,0 @@ -api.GetLoraCloudIntegrationRequest - */ -class GetLoraCloudIntegrationRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Application ID (UUID). - * - * Generated from protobuf field string application_id = 1; - */ - protected $application_id = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $application_id - * Application ID (UUID). - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Chirpstack\Api\Application::initOnce(); - parent::__construct($data); - } - - /** - * Application ID (UUID). - * - * Generated from protobuf field string application_id = 1; - * @return string - */ - public function getApplicationId() - { - return $this->application_id; - } - - /** - * Application ID (UUID). - * - * Generated from protobuf field string application_id = 1; - * @param string $var - * @return $this - */ - public function setApplicationId($var) - { - GPBUtil::checkString($var, True); - $this->application_id = $var; - - return $this; - } - -} - diff --git a/api/php/generated/Chirpstack/Api/GetLoraCloudIntegrationResponse.php b/api/php/generated/Chirpstack/Api/GetLoraCloudIntegrationResponse.php deleted file mode 100644 index 9618659a..00000000 --- a/api/php/generated/Chirpstack/Api/GetLoraCloudIntegrationResponse.php +++ /dev/null @@ -1,75 +0,0 @@ -api.GetLoraCloudIntegrationResponse - */ -class GetLoraCloudIntegrationResponse extends \Google\Protobuf\Internal\Message -{ - /** - * Integration object. - * - * Generated from protobuf field .api.LoraCloudIntegration integration = 1; - */ - protected $integration = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Chirpstack\Api\LoraCloudIntegration $integration - * Integration object. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Chirpstack\Api\Application::initOnce(); - parent::__construct($data); - } - - /** - * Integration object. - * - * Generated from protobuf field .api.LoraCloudIntegration integration = 1; - * @return \Chirpstack\Api\LoraCloudIntegration|null - */ - public function getIntegration() - { - return $this->integration; - } - - public function hasIntegration() - { - return isset($this->integration); - } - - public function clearIntegration() - { - unset($this->integration); - } - - /** - * Integration object. - * - * Generated from protobuf field .api.LoraCloudIntegration integration = 1; - * @param \Chirpstack\Api\LoraCloudIntegration $var - * @return $this - */ - public function setIntegration($var) - { - GPBUtil::checkMessage($var, \Chirpstack\Api\LoraCloudIntegration::class); - $this->integration = $var; - - return $this; - } - -} - diff --git a/api/php/generated/Chirpstack/Api/GetMulticastGroupRequest.php b/api/php/generated/Chirpstack/Api/GetMulticastGroupRequest.php deleted file mode 100644 index 63a5c80e..00000000 --- a/api/php/generated/Chirpstack/Api/GetMulticastGroupRequest.php +++ /dev/null @@ -1,65 +0,0 @@ -api.GetMulticastGroupRequest - */ -class GetMulticastGroupRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Multicast group ID. - * - * Generated from protobuf field string id = 1; - */ - protected $id = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $id - * Multicast group ID. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Chirpstack\Api\MulticastGroup::initOnce(); - parent::__construct($data); - } - - /** - * Multicast group ID. - * - * Generated from protobuf field string id = 1; - * @return string - */ - public function getId() - { - return $this->id; - } - - /** - * Multicast group ID. - * - * Generated from protobuf field string id = 1; - * @param string $var - * @return $this - */ - public function setId($var) - { - GPBUtil::checkString($var, True); - $this->id = $var; - - return $this; - } - -} - diff --git a/api/php/generated/Chirpstack/Api/GetMulticastGroupResponse.php b/api/php/generated/Chirpstack/Api/GetMulticastGroupResponse.php deleted file mode 100644 index 44a65b25..00000000 --- a/api/php/generated/Chirpstack/Api/GetMulticastGroupResponse.php +++ /dev/null @@ -1,163 +0,0 @@ -api.GetMulticastGroupResponse - */ -class GetMulticastGroupResponse extends \Google\Protobuf\Internal\Message -{ - /** - * Multicast group object. - * - * Generated from protobuf field .api.MulticastGroup multicast_group = 1; - */ - protected $multicast_group = null; - /** - * Created at timestamp. - * - * Generated from protobuf field .google.protobuf.Timestamp created_at = 2; - */ - protected $created_at = null; - /** - * Last update timestamp. - * - * Generated from protobuf field .google.protobuf.Timestamp updated_at = 3; - */ - protected $updated_at = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Chirpstack\Api\MulticastGroup $multicast_group - * Multicast group object. - * @type \Google\Protobuf\Timestamp $created_at - * Created at timestamp. - * @type \Google\Protobuf\Timestamp $updated_at - * Last update timestamp. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Chirpstack\Api\MulticastGroup::initOnce(); - parent::__construct($data); - } - - /** - * Multicast group object. - * - * Generated from protobuf field .api.MulticastGroup multicast_group = 1; - * @return \Chirpstack\Api\MulticastGroup|null - */ - public function getMulticastGroup() - { - return $this->multicast_group; - } - - public function hasMulticastGroup() - { - return isset($this->multicast_group); - } - - public function clearMulticastGroup() - { - unset($this->multicast_group); - } - - /** - * Multicast group object. - * - * Generated from protobuf field .api.MulticastGroup multicast_group = 1; - * @param \Chirpstack\Api\MulticastGroup $var - * @return $this - */ - public function setMulticastGroup($var) - { - GPBUtil::checkMessage($var, \Chirpstack\Api\MulticastGroup::class); - $this->multicast_group = $var; - - return $this; - } - - /** - * Created at timestamp. - * - * Generated from protobuf field .google.protobuf.Timestamp created_at = 2; - * @return \Google\Protobuf\Timestamp|null - */ - public function getCreatedAt() - { - return $this->created_at; - } - - public function hasCreatedAt() - { - return isset($this->created_at); - } - - public function clearCreatedAt() - { - unset($this->created_at); - } - - /** - * Created at timestamp. - * - * Generated from protobuf field .google.protobuf.Timestamp created_at = 2; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setCreatedAt($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->created_at = $var; - - return $this; - } - - /** - * Last update timestamp. - * - * Generated from protobuf field .google.protobuf.Timestamp updated_at = 3; - * @return \Google\Protobuf\Timestamp|null - */ - public function getUpdatedAt() - { - return $this->updated_at; - } - - public function hasUpdatedAt() - { - return isset($this->updated_at); - } - - public function clearUpdatedAt() - { - unset($this->updated_at); - } - - /** - * Last update timestamp. - * - * Generated from protobuf field .google.protobuf.Timestamp updated_at = 3; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setUpdatedAt($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->updated_at = $var; - - return $this; - } - -} - diff --git a/api/php/generated/Chirpstack/Api/GetMyDevicesIntegrationRequest.php b/api/php/generated/Chirpstack/Api/GetMyDevicesIntegrationRequest.php deleted file mode 100644 index 5018b036..00000000 --- a/api/php/generated/Chirpstack/Api/GetMyDevicesIntegrationRequest.php +++ /dev/null @@ -1,65 +0,0 @@ -api.GetMyDevicesIntegrationRequest - */ -class GetMyDevicesIntegrationRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Application ID (UUID). - * - * Generated from protobuf field string application_id = 1; - */ - protected $application_id = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $application_id - * Application ID (UUID). - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Chirpstack\Api\Application::initOnce(); - parent::__construct($data); - } - - /** - * Application ID (UUID). - * - * Generated from protobuf field string application_id = 1; - * @return string - */ - public function getApplicationId() - { - return $this->application_id; - } - - /** - * Application ID (UUID). - * - * Generated from protobuf field string application_id = 1; - * @param string $var - * @return $this - */ - public function setApplicationId($var) - { - GPBUtil::checkString($var, True); - $this->application_id = $var; - - return $this; - } - -} - diff --git a/api/php/generated/Chirpstack/Api/GetMyDevicesIntegrationResponse.php b/api/php/generated/Chirpstack/Api/GetMyDevicesIntegrationResponse.php deleted file mode 100644 index d9f50b04..00000000 --- a/api/php/generated/Chirpstack/Api/GetMyDevicesIntegrationResponse.php +++ /dev/null @@ -1,75 +0,0 @@ -api.GetMyDevicesIntegrationResponse - */ -class GetMyDevicesIntegrationResponse extends \Google\Protobuf\Internal\Message -{ - /** - * Integration object. - * - * Generated from protobuf field .api.MyDevicesIntegration integration = 1; - */ - protected $integration = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Chirpstack\Api\MyDevicesIntegration $integration - * Integration object. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Chirpstack\Api\Application::initOnce(); - parent::__construct($data); - } - - /** - * Integration object. - * - * Generated from protobuf field .api.MyDevicesIntegration integration = 1; - * @return \Chirpstack\Api\MyDevicesIntegration|null - */ - public function getIntegration() - { - return $this->integration; - } - - public function hasIntegration() - { - return isset($this->integration); - } - - public function clearIntegration() - { - unset($this->integration); - } - - /** - * Integration object. - * - * Generated from protobuf field .api.MyDevicesIntegration integration = 1; - * @param \Chirpstack\Api\MyDevicesIntegration $var - * @return $this - */ - public function setIntegration($var) - { - GPBUtil::checkMessage($var, \Chirpstack\Api\MyDevicesIntegration::class); - $this->integration = $var; - - return $this; - } - -} - diff --git a/api/php/generated/Chirpstack/Api/GetPilotThingsIntegrationRequest.php b/api/php/generated/Chirpstack/Api/GetPilotThingsIntegrationRequest.php deleted file mode 100644 index 61182a6f..00000000 --- a/api/php/generated/Chirpstack/Api/GetPilotThingsIntegrationRequest.php +++ /dev/null @@ -1,65 +0,0 @@ -api.GetPilotThingsIntegrationRequest - */ -class GetPilotThingsIntegrationRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Application ID (UUID). - * - * Generated from protobuf field string application_id = 1; - */ - protected $application_id = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $application_id - * Application ID (UUID). - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Chirpstack\Api\Application::initOnce(); - parent::__construct($data); - } - - /** - * Application ID (UUID). - * - * Generated from protobuf field string application_id = 1; - * @return string - */ - public function getApplicationId() - { - return $this->application_id; - } - - /** - * Application ID (UUID). - * - * Generated from protobuf field string application_id = 1; - * @param string $var - * @return $this - */ - public function setApplicationId($var) - { - GPBUtil::checkString($var, True); - $this->application_id = $var; - - return $this; - } - -} - diff --git a/api/php/generated/Chirpstack/Api/GetPilotThingsIntegrationResponse.php b/api/php/generated/Chirpstack/Api/GetPilotThingsIntegrationResponse.php deleted file mode 100644 index 4d7c5f46..00000000 --- a/api/php/generated/Chirpstack/Api/GetPilotThingsIntegrationResponse.php +++ /dev/null @@ -1,75 +0,0 @@ -api.GetPilotThingsIntegrationResponse - */ -class GetPilotThingsIntegrationResponse extends \Google\Protobuf\Internal\Message -{ - /** - * Integration object. - * - * Generated from protobuf field .api.PilotThingsIntegration integration = 1; - */ - protected $integration = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Chirpstack\Api\PilotThingsIntegration $integration - * Integration object. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Chirpstack\Api\Application::initOnce(); - parent::__construct($data); - } - - /** - * Integration object. - * - * Generated from protobuf field .api.PilotThingsIntegration integration = 1; - * @return \Chirpstack\Api\PilotThingsIntegration|null - */ - public function getIntegration() - { - return $this->integration; - } - - public function hasIntegration() - { - return isset($this->integration); - } - - public function clearIntegration() - { - unset($this->integration); - } - - /** - * Integration object. - * - * Generated from protobuf field .api.PilotThingsIntegration integration = 1; - * @param \Chirpstack\Api\PilotThingsIntegration $var - * @return $this - */ - public function setIntegration($var) - { - GPBUtil::checkMessage($var, \Chirpstack\Api\PilotThingsIntegration::class); - $this->integration = $var; - - return $this; - } - -} - diff --git a/api/php/generated/Chirpstack/Api/GetRandomDevAddrRequest.php b/api/php/generated/Chirpstack/Api/GetRandomDevAddrRequest.php deleted file mode 100644 index 9e3e0f53..00000000 --- a/api/php/generated/Chirpstack/Api/GetRandomDevAddrRequest.php +++ /dev/null @@ -1,65 +0,0 @@ -api.GetRandomDevAddrRequest - */ -class GetRandomDevAddrRequest extends \Google\Protobuf\Internal\Message -{ - /** - * DevEUI (EUI64). - * - * Generated from protobuf field string dev_eui = 1; - */ - protected $dev_eui = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $dev_eui - * DevEUI (EUI64). - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Chirpstack\Api\Device::initOnce(); - parent::__construct($data); - } - - /** - * DevEUI (EUI64). - * - * Generated from protobuf field string dev_eui = 1; - * @return string - */ - public function getDevEui() - { - return $this->dev_eui; - } - - /** - * DevEUI (EUI64). - * - * Generated from protobuf field string dev_eui = 1; - * @param string $var - * @return $this - */ - public function setDevEui($var) - { - GPBUtil::checkString($var, True); - $this->dev_eui = $var; - - return $this; - } - -} - diff --git a/api/php/generated/Chirpstack/Api/GetRandomDevAddrResponse.php b/api/php/generated/Chirpstack/Api/GetRandomDevAddrResponse.php deleted file mode 100644 index 2eccf951..00000000 --- a/api/php/generated/Chirpstack/Api/GetRandomDevAddrResponse.php +++ /dev/null @@ -1,65 +0,0 @@ -api.GetRandomDevAddrResponse - */ -class GetRandomDevAddrResponse extends \Google\Protobuf\Internal\Message -{ - /** - * DevAddr. - * - * Generated from protobuf field string dev_addr = 1; - */ - protected $dev_addr = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $dev_addr - * DevAddr. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Chirpstack\Api\Device::initOnce(); - parent::__construct($data); - } - - /** - * DevAddr. - * - * Generated from protobuf field string dev_addr = 1; - * @return string - */ - public function getDevAddr() - { - return $this->dev_addr; - } - - /** - * DevAddr. - * - * Generated from protobuf field string dev_addr = 1; - * @param string $var - * @return $this - */ - public function setDevAddr($var) - { - GPBUtil::checkString($var, True); - $this->dev_addr = $var; - - return $this; - } - -} - diff --git a/api/php/generated/Chirpstack/Api/GetRegionRequest.php b/api/php/generated/Chirpstack/Api/GetRegionRequest.php deleted file mode 100644 index e609bfcc..00000000 --- a/api/php/generated/Chirpstack/Api/GetRegionRequest.php +++ /dev/null @@ -1,65 +0,0 @@ -api.GetRegionRequest - */ -class GetRegionRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Region ID. - * - * Generated from protobuf field string id = 1; - */ - protected $id = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $id - * Region ID. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Chirpstack\Api\Internal::initOnce(); - parent::__construct($data); - } - - /** - * Region ID. - * - * Generated from protobuf field string id = 1; - * @return string - */ - public function getId() - { - return $this->id; - } - - /** - * Region ID. - * - * Generated from protobuf field string id = 1; - * @param string $var - * @return $this - */ - public function setId($var) - { - GPBUtil::checkString($var, True); - $this->id = $var; - - return $this; - } - -} - diff --git a/api/php/generated/Chirpstack/Api/GetRegionResponse.php b/api/php/generated/Chirpstack/Api/GetRegionResponse.php deleted file mode 100644 index 9b6cf28f..00000000 --- a/api/php/generated/Chirpstack/Api/GetRegionResponse.php +++ /dev/null @@ -1,405 +0,0 @@ -api.GetRegionResponse - */ -class GetRegionResponse extends \Google\Protobuf\Internal\Message -{ - /** - * ID. - * - * Generated from protobuf field string id = 1; - */ - protected $id = ''; - /** - * Region. - * - * Generated from protobuf field .common.Region region = 2; - */ - protected $region = 0; - /** - * User information. - * - * Generated from protobuf field string user_info = 3; - */ - protected $user_info = ''; - /** - * Uplink channels. - * - * Generated from protobuf field repeated .api.RegionChannel uplink_channels = 4; - */ - private $uplink_channels; - /** - * RX1 delay. - * - * Generated from protobuf field uint32 rx1_delay = 5; - */ - protected $rx1_delay = 0; - /** - * RX1 data-rate offset. - * - * Generated from protobuf field uint32 rx1_dr_offset = 6; - */ - protected $rx1_dr_offset = 0; - /** - * RX2 DR. - * - * Generated from protobuf field uint32 rx2_dr = 7; - */ - protected $rx2_dr = 0; - /** - * RX2 frequency. - * - * Generated from protobuf field uint32 rx2_frequency = 8; - */ - protected $rx2_frequency = 0; - /** - * Class-B ping-slot DR. - * - * Generated from protobuf field uint32 class_b_ping_slot_dr = 9; - */ - protected $class_b_ping_slot_dr = 0; - /** - * Class-B ping-slot frequency. - * - * Generated from protobuf field uint32 class_b_ping_slot_frequency = 10; - */ - protected $class_b_ping_slot_frequency = 0; - /** - * Region description. - * - * Generated from protobuf field string description = 11; - */ - protected $description = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $id - * ID. - * @type int $region - * Region. - * @type string $user_info - * User information. - * @type array<\Chirpstack\Api\RegionChannel>|\Google\Protobuf\Internal\RepeatedField $uplink_channels - * Uplink channels. - * @type int $rx1_delay - * RX1 delay. - * @type int $rx1_dr_offset - * RX1 data-rate offset. - * @type int $rx2_dr - * RX2 DR. - * @type int $rx2_frequency - * RX2 frequency. - * @type int $class_b_ping_slot_dr - * Class-B ping-slot DR. - * @type int $class_b_ping_slot_frequency - * Class-B ping-slot frequency. - * @type string $description - * Region description. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Chirpstack\Api\Internal::initOnce(); - parent::__construct($data); - } - - /** - * ID. - * - * Generated from protobuf field string id = 1; - * @return string - */ - public function getId() - { - return $this->id; - } - - /** - * ID. - * - * Generated from protobuf field string id = 1; - * @param string $var - * @return $this - */ - public function setId($var) - { - GPBUtil::checkString($var, True); - $this->id = $var; - - return $this; - } - - /** - * Region. - * - * Generated from protobuf field .common.Region region = 2; - * @return int - */ - public function getRegion() - { - return $this->region; - } - - /** - * Region. - * - * Generated from protobuf field .common.Region region = 2; - * @param int $var - * @return $this - */ - public function setRegion($var) - { - GPBUtil::checkEnum($var, \Chirpstack\Common\Region::class); - $this->region = $var; - - return $this; - } - - /** - * User information. - * - * Generated from protobuf field string user_info = 3; - * @return string - */ - public function getUserInfo() - { - return $this->user_info; - } - - /** - * User information. - * - * Generated from protobuf field string user_info = 3; - * @param string $var - * @return $this - */ - public function setUserInfo($var) - { - GPBUtil::checkString($var, True); - $this->user_info = $var; - - return $this; - } - - /** - * Uplink channels. - * - * Generated from protobuf field repeated .api.RegionChannel uplink_channels = 4; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getUplinkChannels() - { - return $this->uplink_channels; - } - - /** - * Uplink channels. - * - * Generated from protobuf field repeated .api.RegionChannel uplink_channels = 4; - * @param array<\Chirpstack\Api\RegionChannel>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setUplinkChannels($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Chirpstack\Api\RegionChannel::class); - $this->uplink_channels = $arr; - - return $this; - } - - /** - * RX1 delay. - * - * Generated from protobuf field uint32 rx1_delay = 5; - * @return int - */ - public function getRx1Delay() - { - return $this->rx1_delay; - } - - /** - * RX1 delay. - * - * Generated from protobuf field uint32 rx1_delay = 5; - * @param int $var - * @return $this - */ - public function setRx1Delay($var) - { - GPBUtil::checkUint32($var); - $this->rx1_delay = $var; - - return $this; - } - - /** - * RX1 data-rate offset. - * - * Generated from protobuf field uint32 rx1_dr_offset = 6; - * @return int - */ - public function getRx1DrOffset() - { - return $this->rx1_dr_offset; - } - - /** - * RX1 data-rate offset. - * - * Generated from protobuf field uint32 rx1_dr_offset = 6; - * @param int $var - * @return $this - */ - public function setRx1DrOffset($var) - { - GPBUtil::checkUint32($var); - $this->rx1_dr_offset = $var; - - return $this; - } - - /** - * RX2 DR. - * - * Generated from protobuf field uint32 rx2_dr = 7; - * @return int - */ - public function getRx2Dr() - { - return $this->rx2_dr; - } - - /** - * RX2 DR. - * - * Generated from protobuf field uint32 rx2_dr = 7; - * @param int $var - * @return $this - */ - public function setRx2Dr($var) - { - GPBUtil::checkUint32($var); - $this->rx2_dr = $var; - - return $this; - } - - /** - * RX2 frequency. - * - * Generated from protobuf field uint32 rx2_frequency = 8; - * @return int - */ - public function getRx2Frequency() - { - return $this->rx2_frequency; - } - - /** - * RX2 frequency. - * - * Generated from protobuf field uint32 rx2_frequency = 8; - * @param int $var - * @return $this - */ - public function setRx2Frequency($var) - { - GPBUtil::checkUint32($var); - $this->rx2_frequency = $var; - - return $this; - } - - /** - * Class-B ping-slot DR. - * - * Generated from protobuf field uint32 class_b_ping_slot_dr = 9; - * @return int - */ - public function getClassBPingSlotDr() - { - return $this->class_b_ping_slot_dr; - } - - /** - * Class-B ping-slot DR. - * - * Generated from protobuf field uint32 class_b_ping_slot_dr = 9; - * @param int $var - * @return $this - */ - public function setClassBPingSlotDr($var) - { - GPBUtil::checkUint32($var); - $this->class_b_ping_slot_dr = $var; - - return $this; - } - - /** - * Class-B ping-slot frequency. - * - * Generated from protobuf field uint32 class_b_ping_slot_frequency = 10; - * @return int - */ - public function getClassBPingSlotFrequency() - { - return $this->class_b_ping_slot_frequency; - } - - /** - * Class-B ping-slot frequency. - * - * Generated from protobuf field uint32 class_b_ping_slot_frequency = 10; - * @param int $var - * @return $this - */ - public function setClassBPingSlotFrequency($var) - { - GPBUtil::checkUint32($var); - $this->class_b_ping_slot_frequency = $var; - - return $this; - } - - /** - * Region description. - * - * Generated from protobuf field string description = 11; - * @return string - */ - public function getDescription() - { - return $this->description; - } - - /** - * Region description. - * - * Generated from protobuf field string description = 11; - * @param string $var - * @return $this - */ - public function setDescription($var) - { - GPBUtil::checkString($var, True); - $this->description = $var; - - return $this; - } - -} - diff --git a/api/php/generated/Chirpstack/Api/GetRelayGatewayRequest.php b/api/php/generated/Chirpstack/Api/GetRelayGatewayRequest.php deleted file mode 100644 index a1efa017..00000000 --- a/api/php/generated/Chirpstack/Api/GetRelayGatewayRequest.php +++ /dev/null @@ -1,99 +0,0 @@ -api.GetRelayGatewayRequest - */ -class GetRelayGatewayRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Tenant ID (UUID). - * - * Generated from protobuf field string tenant_id = 1; - */ - protected $tenant_id = ''; - /** - * Relay ID (4 byte HEX). - * - * Generated from protobuf field string relay_id = 2; - */ - protected $relay_id = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $tenant_id - * Tenant ID (UUID). - * @type string $relay_id - * Relay ID (4 byte HEX). - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Chirpstack\Api\Gateway::initOnce(); - parent::__construct($data); - } - - /** - * Tenant ID (UUID). - * - * Generated from protobuf field string tenant_id = 1; - * @return string - */ - public function getTenantId() - { - return $this->tenant_id; - } - - /** - * Tenant ID (UUID). - * - * Generated from protobuf field string tenant_id = 1; - * @param string $var - * @return $this - */ - public function setTenantId($var) - { - GPBUtil::checkString($var, True); - $this->tenant_id = $var; - - return $this; - } - - /** - * Relay ID (4 byte HEX). - * - * Generated from protobuf field string relay_id = 2; - * @return string - */ - public function getRelayId() - { - return $this->relay_id; - } - - /** - * Relay ID (4 byte HEX). - * - * Generated from protobuf field string relay_id = 2; - * @param string $var - * @return $this - */ - public function setRelayId($var) - { - GPBUtil::checkString($var, True); - $this->relay_id = $var; - - return $this; - } - -} - diff --git a/api/php/generated/Chirpstack/Api/GetRelayGatewayResponse.php b/api/php/generated/Chirpstack/Api/GetRelayGatewayResponse.php deleted file mode 100644 index 27734c23..00000000 --- a/api/php/generated/Chirpstack/Api/GetRelayGatewayResponse.php +++ /dev/null @@ -1,207 +0,0 @@ -api.GetRelayGatewayResponse - */ -class GetRelayGatewayResponse extends \Google\Protobuf\Internal\Message -{ - /** - * Relay Gateway object. - * - * Generated from protobuf field .api.RelayGateway relay_gateway = 1; - */ - protected $relay_gateway = null; - /** - * Created at timestamp. - * - * Generated from protobuf field .google.protobuf.Timestamp created_at = 2; - */ - protected $created_at = null; - /** - * Last update timestamp. - * - * Generated from protobuf field .google.protobuf.Timestamp updated_at = 3; - */ - protected $updated_at = null; - /** - * Last seen at timestamp. - * - * Generated from protobuf field .google.protobuf.Timestamp last_seen_at = 4; - */ - protected $last_seen_at = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Chirpstack\Api\RelayGateway $relay_gateway - * Relay Gateway object. - * @type \Google\Protobuf\Timestamp $created_at - * Created at timestamp. - * @type \Google\Protobuf\Timestamp $updated_at - * Last update timestamp. - * @type \Google\Protobuf\Timestamp $last_seen_at - * Last seen at timestamp. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Chirpstack\Api\Gateway::initOnce(); - parent::__construct($data); - } - - /** - * Relay Gateway object. - * - * Generated from protobuf field .api.RelayGateway relay_gateway = 1; - * @return \Chirpstack\Api\RelayGateway|null - */ - public function getRelayGateway() - { - return $this->relay_gateway; - } - - public function hasRelayGateway() - { - return isset($this->relay_gateway); - } - - public function clearRelayGateway() - { - unset($this->relay_gateway); - } - - /** - * Relay Gateway object. - * - * Generated from protobuf field .api.RelayGateway relay_gateway = 1; - * @param \Chirpstack\Api\RelayGateway $var - * @return $this - */ - public function setRelayGateway($var) - { - GPBUtil::checkMessage($var, \Chirpstack\Api\RelayGateway::class); - $this->relay_gateway = $var; - - return $this; - } - - /** - * Created at timestamp. - * - * Generated from protobuf field .google.protobuf.Timestamp created_at = 2; - * @return \Google\Protobuf\Timestamp|null - */ - public function getCreatedAt() - { - return $this->created_at; - } - - public function hasCreatedAt() - { - return isset($this->created_at); - } - - public function clearCreatedAt() - { - unset($this->created_at); - } - - /** - * Created at timestamp. - * - * Generated from protobuf field .google.protobuf.Timestamp created_at = 2; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setCreatedAt($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->created_at = $var; - - return $this; - } - - /** - * Last update timestamp. - * - * Generated from protobuf field .google.protobuf.Timestamp updated_at = 3; - * @return \Google\Protobuf\Timestamp|null - */ - public function getUpdatedAt() - { - return $this->updated_at; - } - - public function hasUpdatedAt() - { - return isset($this->updated_at); - } - - public function clearUpdatedAt() - { - unset($this->updated_at); - } - - /** - * Last update timestamp. - * - * Generated from protobuf field .google.protobuf.Timestamp updated_at = 3; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setUpdatedAt($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->updated_at = $var; - - return $this; - } - - /** - * Last seen at timestamp. - * - * Generated from protobuf field .google.protobuf.Timestamp last_seen_at = 4; - * @return \Google\Protobuf\Timestamp|null - */ - public function getLastSeenAt() - { - return $this->last_seen_at; - } - - public function hasLastSeenAt() - { - return isset($this->last_seen_at); - } - - public function clearLastSeenAt() - { - unset($this->last_seen_at); - } - - /** - * Last seen at timestamp. - * - * Generated from protobuf field .google.protobuf.Timestamp last_seen_at = 4; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setLastSeenAt($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->last_seen_at = $var; - - return $this; - } - -} - diff --git a/api/php/generated/Chirpstack/Api/GetTenantRequest.php b/api/php/generated/Chirpstack/Api/GetTenantRequest.php deleted file mode 100644 index e2f60426..00000000 --- a/api/php/generated/Chirpstack/Api/GetTenantRequest.php +++ /dev/null @@ -1,65 +0,0 @@ -api.GetTenantRequest - */ -class GetTenantRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Tenant ID. - * - * Generated from protobuf field string id = 1; - */ - protected $id = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $id - * Tenant ID. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Chirpstack\Api\Tenant::initOnce(); - parent::__construct($data); - } - - /** - * Tenant ID. - * - * Generated from protobuf field string id = 1; - * @return string - */ - public function getId() - { - return $this->id; - } - - /** - * Tenant ID. - * - * Generated from protobuf field string id = 1; - * @param string $var - * @return $this - */ - public function setId($var) - { - GPBUtil::checkString($var, True); - $this->id = $var; - - return $this; - } - -} - diff --git a/api/php/generated/Chirpstack/Api/GetTenantResponse.php b/api/php/generated/Chirpstack/Api/GetTenantResponse.php deleted file mode 100644 index c95a650e..00000000 --- a/api/php/generated/Chirpstack/Api/GetTenantResponse.php +++ /dev/null @@ -1,163 +0,0 @@ -api.GetTenantResponse - */ -class GetTenantResponse extends \Google\Protobuf\Internal\Message -{ - /** - * Tenant object. - * - * Generated from protobuf field .api.Tenant tenant = 1; - */ - protected $tenant = null; - /** - * Created at timestamp. - * - * Generated from protobuf field .google.protobuf.Timestamp created_at = 2; - */ - protected $created_at = null; - /** - * Last update timestamp. - * - * Generated from protobuf field .google.protobuf.Timestamp updated_at = 3; - */ - protected $updated_at = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Chirpstack\Api\Tenant $tenant - * Tenant object. - * @type \Google\Protobuf\Timestamp $created_at - * Created at timestamp. - * @type \Google\Protobuf\Timestamp $updated_at - * Last update timestamp. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Chirpstack\Api\Tenant::initOnce(); - parent::__construct($data); - } - - /** - * Tenant object. - * - * Generated from protobuf field .api.Tenant tenant = 1; - * @return \Chirpstack\Api\Tenant|null - */ - public function getTenant() - { - return $this->tenant; - } - - public function hasTenant() - { - return isset($this->tenant); - } - - public function clearTenant() - { - unset($this->tenant); - } - - /** - * Tenant object. - * - * Generated from protobuf field .api.Tenant tenant = 1; - * @param \Chirpstack\Api\Tenant $var - * @return $this - */ - public function setTenant($var) - { - GPBUtil::checkMessage($var, \Chirpstack\Api\Tenant::class); - $this->tenant = $var; - - return $this; - } - - /** - * Created at timestamp. - * - * Generated from protobuf field .google.protobuf.Timestamp created_at = 2; - * @return \Google\Protobuf\Timestamp|null - */ - public function getCreatedAt() - { - return $this->created_at; - } - - public function hasCreatedAt() - { - return isset($this->created_at); - } - - public function clearCreatedAt() - { - unset($this->created_at); - } - - /** - * Created at timestamp. - * - * Generated from protobuf field .google.protobuf.Timestamp created_at = 2; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setCreatedAt($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->created_at = $var; - - return $this; - } - - /** - * Last update timestamp. - * - * Generated from protobuf field .google.protobuf.Timestamp updated_at = 3; - * @return \Google\Protobuf\Timestamp|null - */ - public function getUpdatedAt() - { - return $this->updated_at; - } - - public function hasUpdatedAt() - { - return isset($this->updated_at); - } - - public function clearUpdatedAt() - { - unset($this->updated_at); - } - - /** - * Last update timestamp. - * - * Generated from protobuf field .google.protobuf.Timestamp updated_at = 3; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setUpdatedAt($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->updated_at = $var; - - return $this; - } - -} - diff --git a/api/php/generated/Chirpstack/Api/GetTenantUserRequest.php b/api/php/generated/Chirpstack/Api/GetTenantUserRequest.php deleted file mode 100644 index ae1b9f69..00000000 --- a/api/php/generated/Chirpstack/Api/GetTenantUserRequest.php +++ /dev/null @@ -1,99 +0,0 @@ -api.GetTenantUserRequest - */ -class GetTenantUserRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Tenant ID (UUID). - * - * Generated from protobuf field string tenant_id = 1; - */ - protected $tenant_id = ''; - /** - * User ID (UUID). - * - * Generated from protobuf field string user_id = 2; - */ - protected $user_id = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $tenant_id - * Tenant ID (UUID). - * @type string $user_id - * User ID (UUID). - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Chirpstack\Api\Tenant::initOnce(); - parent::__construct($data); - } - - /** - * Tenant ID (UUID). - * - * Generated from protobuf field string tenant_id = 1; - * @return string - */ - public function getTenantId() - { - return $this->tenant_id; - } - - /** - * Tenant ID (UUID). - * - * Generated from protobuf field string tenant_id = 1; - * @param string $var - * @return $this - */ - public function setTenantId($var) - { - GPBUtil::checkString($var, True); - $this->tenant_id = $var; - - return $this; - } - - /** - * User ID (UUID). - * - * Generated from protobuf field string user_id = 2; - * @return string - */ - public function getUserId() - { - return $this->user_id; - } - - /** - * User ID (UUID). - * - * Generated from protobuf field string user_id = 2; - * @param string $var - * @return $this - */ - public function setUserId($var) - { - GPBUtil::checkString($var, True); - $this->user_id = $var; - - return $this; - } - -} - diff --git a/api/php/generated/Chirpstack/Api/GetTenantUserResponse.php b/api/php/generated/Chirpstack/Api/GetTenantUserResponse.php deleted file mode 100644 index 2f273589..00000000 --- a/api/php/generated/Chirpstack/Api/GetTenantUserResponse.php +++ /dev/null @@ -1,163 +0,0 @@ -api.GetTenantUserResponse - */ -class GetTenantUserResponse extends \Google\Protobuf\Internal\Message -{ - /** - * Tenant user object. - * - * Generated from protobuf field .api.TenantUser tenant_user = 1; - */ - protected $tenant_user = null; - /** - * Created at timestamp. - * - * Generated from protobuf field .google.protobuf.Timestamp created_at = 2; - */ - protected $created_at = null; - /** - * Last update timestamp. - * - * Generated from protobuf field .google.protobuf.Timestamp updated_at = 3; - */ - protected $updated_at = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Chirpstack\Api\TenantUser $tenant_user - * Tenant user object. - * @type \Google\Protobuf\Timestamp $created_at - * Created at timestamp. - * @type \Google\Protobuf\Timestamp $updated_at - * Last update timestamp. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Chirpstack\Api\Tenant::initOnce(); - parent::__construct($data); - } - - /** - * Tenant user object. - * - * Generated from protobuf field .api.TenantUser tenant_user = 1; - * @return \Chirpstack\Api\TenantUser|null - */ - public function getTenantUser() - { - return $this->tenant_user; - } - - public function hasTenantUser() - { - return isset($this->tenant_user); - } - - public function clearTenantUser() - { - unset($this->tenant_user); - } - - /** - * Tenant user object. - * - * Generated from protobuf field .api.TenantUser tenant_user = 1; - * @param \Chirpstack\Api\TenantUser $var - * @return $this - */ - public function setTenantUser($var) - { - GPBUtil::checkMessage($var, \Chirpstack\Api\TenantUser::class); - $this->tenant_user = $var; - - return $this; - } - - /** - * Created at timestamp. - * - * Generated from protobuf field .google.protobuf.Timestamp created_at = 2; - * @return \Google\Protobuf\Timestamp|null - */ - public function getCreatedAt() - { - return $this->created_at; - } - - public function hasCreatedAt() - { - return isset($this->created_at); - } - - public function clearCreatedAt() - { - unset($this->created_at); - } - - /** - * Created at timestamp. - * - * Generated from protobuf field .google.protobuf.Timestamp created_at = 2; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setCreatedAt($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->created_at = $var; - - return $this; - } - - /** - * Last update timestamp. - * - * Generated from protobuf field .google.protobuf.Timestamp updated_at = 3; - * @return \Google\Protobuf\Timestamp|null - */ - public function getUpdatedAt() - { - return $this->updated_at; - } - - public function hasUpdatedAt() - { - return isset($this->updated_at); - } - - public function clearUpdatedAt() - { - unset($this->updated_at); - } - - /** - * Last update timestamp. - * - * Generated from protobuf field .google.protobuf.Timestamp updated_at = 3; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setUpdatedAt($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->updated_at = $var; - - return $this; - } - -} - diff --git a/api/php/generated/Chirpstack/Api/GetThingsBoardIntegrationRequest.php b/api/php/generated/Chirpstack/Api/GetThingsBoardIntegrationRequest.php deleted file mode 100644 index ae90a5ac..00000000 --- a/api/php/generated/Chirpstack/Api/GetThingsBoardIntegrationRequest.php +++ /dev/null @@ -1,65 +0,0 @@ -api.GetThingsBoardIntegrationRequest - */ -class GetThingsBoardIntegrationRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Application ID (UUID). - * - * Generated from protobuf field string application_id = 1; - */ - protected $application_id = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $application_id - * Application ID (UUID). - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Chirpstack\Api\Application::initOnce(); - parent::__construct($data); - } - - /** - * Application ID (UUID). - * - * Generated from protobuf field string application_id = 1; - * @return string - */ - public function getApplicationId() - { - return $this->application_id; - } - - /** - * Application ID (UUID). - * - * Generated from protobuf field string application_id = 1; - * @param string $var - * @return $this - */ - public function setApplicationId($var) - { - GPBUtil::checkString($var, True); - $this->application_id = $var; - - return $this; - } - -} - diff --git a/api/php/generated/Chirpstack/Api/GetThingsBoardIntegrationResponse.php b/api/php/generated/Chirpstack/Api/GetThingsBoardIntegrationResponse.php deleted file mode 100644 index 5ffb6008..00000000 --- a/api/php/generated/Chirpstack/Api/GetThingsBoardIntegrationResponse.php +++ /dev/null @@ -1,75 +0,0 @@ -api.GetThingsBoardIntegrationResponse - */ -class GetThingsBoardIntegrationResponse extends \Google\Protobuf\Internal\Message -{ - /** - * Integration object. - * - * Generated from protobuf field .api.ThingsBoardIntegration integration = 1; - */ - protected $integration = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Chirpstack\Api\ThingsBoardIntegration $integration - * Integration object. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Chirpstack\Api\Application::initOnce(); - parent::__construct($data); - } - - /** - * Integration object. - * - * Generated from protobuf field .api.ThingsBoardIntegration integration = 1; - * @return \Chirpstack\Api\ThingsBoardIntegration|null - */ - public function getIntegration() - { - return $this->integration; - } - - public function hasIntegration() - { - return isset($this->integration); - } - - public function clearIntegration() - { - unset($this->integration); - } - - /** - * Integration object. - * - * Generated from protobuf field .api.ThingsBoardIntegration integration = 1; - * @param \Chirpstack\Api\ThingsBoardIntegration $var - * @return $this - */ - public function setIntegration($var) - { - GPBUtil::checkMessage($var, \Chirpstack\Api\ThingsBoardIntegration::class); - $this->integration = $var; - - return $this; - } - -} - diff --git a/api/php/generated/Chirpstack/Api/GetUserRequest.php b/api/php/generated/Chirpstack/Api/GetUserRequest.php deleted file mode 100644 index aeea0031..00000000 --- a/api/php/generated/Chirpstack/Api/GetUserRequest.php +++ /dev/null @@ -1,65 +0,0 @@ -api.GetUserRequest - */ -class GetUserRequest extends \Google\Protobuf\Internal\Message -{ - /** - * User ID. - * - * Generated from protobuf field string id = 1; - */ - protected $id = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $id - * User ID. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Chirpstack\Api\User::initOnce(); - parent::__construct($data); - } - - /** - * User ID. - * - * Generated from protobuf field string id = 1; - * @return string - */ - public function getId() - { - return $this->id; - } - - /** - * User ID. - * - * Generated from protobuf field string id = 1; - * @param string $var - * @return $this - */ - public function setId($var) - { - GPBUtil::checkString($var, True); - $this->id = $var; - - return $this; - } - -} - diff --git a/api/php/generated/Chirpstack/Api/GetUserResponse.php b/api/php/generated/Chirpstack/Api/GetUserResponse.php deleted file mode 100644 index ea2c2283..00000000 --- a/api/php/generated/Chirpstack/Api/GetUserResponse.php +++ /dev/null @@ -1,163 +0,0 @@ -api.GetUserResponse - */ -class GetUserResponse extends \Google\Protobuf\Internal\Message -{ - /** - * User object. - * - * Generated from protobuf field .api.User user = 1; - */ - protected $user = null; - /** - * Created at timestamp. - * - * Generated from protobuf field .google.protobuf.Timestamp created_at = 2; - */ - protected $created_at = null; - /** - * Last update timestamp. - * - * Generated from protobuf field .google.protobuf.Timestamp updated_at = 3; - */ - protected $updated_at = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Chirpstack\Api\User $user - * User object. - * @type \Google\Protobuf\Timestamp $created_at - * Created at timestamp. - * @type \Google\Protobuf\Timestamp $updated_at - * Last update timestamp. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Chirpstack\Api\User::initOnce(); - parent::__construct($data); - } - - /** - * User object. - * - * Generated from protobuf field .api.User user = 1; - * @return \Chirpstack\Api\User|null - */ - public function getUser() - { - return $this->user; - } - - public function hasUser() - { - return isset($this->user); - } - - public function clearUser() - { - unset($this->user); - } - - /** - * User object. - * - * Generated from protobuf field .api.User user = 1; - * @param \Chirpstack\Api\User $var - * @return $this - */ - public function setUser($var) - { - GPBUtil::checkMessage($var, \Chirpstack\Api\User::class); - $this->user = $var; - - return $this; - } - - /** - * Created at timestamp. - * - * Generated from protobuf field .google.protobuf.Timestamp created_at = 2; - * @return \Google\Protobuf\Timestamp|null - */ - public function getCreatedAt() - { - return $this->created_at; - } - - public function hasCreatedAt() - { - return isset($this->created_at); - } - - public function clearCreatedAt() - { - unset($this->created_at); - } - - /** - * Created at timestamp. - * - * Generated from protobuf field .google.protobuf.Timestamp created_at = 2; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setCreatedAt($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->created_at = $var; - - return $this; - } - - /** - * Last update timestamp. - * - * Generated from protobuf field .google.protobuf.Timestamp updated_at = 3; - * @return \Google\Protobuf\Timestamp|null - */ - public function getUpdatedAt() - { - return $this->updated_at; - } - - public function hasUpdatedAt() - { - return isset($this->updated_at); - } - - public function clearUpdatedAt() - { - unset($this->updated_at); - } - - /** - * Last update timestamp. - * - * Generated from protobuf field .google.protobuf.Timestamp updated_at = 3; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setUpdatedAt($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->updated_at = $var; - - return $this; - } - -} - diff --git a/api/php/generated/Chirpstack/Api/GetVersionResponse.php b/api/php/generated/Chirpstack/Api/GetVersionResponse.php deleted file mode 100644 index f2757968..00000000 --- a/api/php/generated/Chirpstack/Api/GetVersionResponse.php +++ /dev/null @@ -1,65 +0,0 @@ -api.GetVersionResponse - */ -class GetVersionResponse extends \Google\Protobuf\Internal\Message -{ - /** - * version - * - * Generated from protobuf field string version = 1; - */ - protected $version = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $version - * version - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Chirpstack\Api\Internal::initOnce(); - parent::__construct($data); - } - - /** - * version - * - * Generated from protobuf field string version = 1; - * @return string - */ - public function getVersion() - { - return $this->version; - } - - /** - * version - * - * Generated from protobuf field string version = 1; - * @param string $var - * @return $this - */ - public function setVersion($var) - { - GPBUtil::checkString($var, True); - $this->version = $var; - - return $this; - } - -} - diff --git a/api/php/generated/Chirpstack/Api/GlobalSearchRequest.php b/api/php/generated/Chirpstack/Api/GlobalSearchRequest.php deleted file mode 100644 index ce22bf41..00000000 --- a/api/php/generated/Chirpstack/Api/GlobalSearchRequest.php +++ /dev/null @@ -1,133 +0,0 @@ -api.GlobalSearchRequest - */ -class GlobalSearchRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Search query. - * - * Generated from protobuf field string search = 1; - */ - protected $search = ''; - /** - * Max number of results to return. - * - * Generated from protobuf field int64 limit = 2; - */ - protected $limit = 0; - /** - * Offset offset of the result-set (for pagination). - * - * Generated from protobuf field int64 offset = 3; - */ - protected $offset = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $search - * Search query. - * @type int|string $limit - * Max number of results to return. - * @type int|string $offset - * Offset offset of the result-set (for pagination). - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Chirpstack\Api\Internal::initOnce(); - parent::__construct($data); - } - - /** - * Search query. - * - * Generated from protobuf field string search = 1; - * @return string - */ - public function getSearch() - { - return $this->search; - } - - /** - * Search query. - * - * Generated from protobuf field string search = 1; - * @param string $var - * @return $this - */ - public function setSearch($var) - { - GPBUtil::checkString($var, True); - $this->search = $var; - - return $this; - } - - /** - * Max number of results to return. - * - * Generated from protobuf field int64 limit = 2; - * @return int|string - */ - public function getLimit() - { - return $this->limit; - } - - /** - * Max number of results to return. - * - * Generated from protobuf field int64 limit = 2; - * @param int|string $var - * @return $this - */ - public function setLimit($var) - { - GPBUtil::checkInt64($var); - $this->limit = $var; - - return $this; - } - - /** - * Offset offset of the result-set (for pagination). - * - * Generated from protobuf field int64 offset = 3; - * @return int|string - */ - public function getOffset() - { - return $this->offset; - } - - /** - * Offset offset of the result-set (for pagination). - * - * Generated from protobuf field int64 offset = 3; - * @param int|string $var - * @return $this - */ - public function setOffset($var) - { - GPBUtil::checkInt64($var); - $this->offset = $var; - - return $this; - } - -} - diff --git a/api/php/generated/Chirpstack/Api/GlobalSearchResponse.php b/api/php/generated/Chirpstack/Api/GlobalSearchResponse.php deleted file mode 100644 index b537ebbe..00000000 --- a/api/php/generated/Chirpstack/Api/GlobalSearchResponse.php +++ /dev/null @@ -1,58 +0,0 @@ -api.GlobalSearchResponse - */ -class GlobalSearchResponse extends \Google\Protobuf\Internal\Message -{ - /** - * Generated from protobuf field repeated .api.GlobalSearchResult result = 1; - */ - private $result; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Chirpstack\Api\GlobalSearchResult>|\Google\Protobuf\Internal\RepeatedField $result - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Chirpstack\Api\Internal::initOnce(); - parent::__construct($data); - } - - /** - * Generated from protobuf field repeated .api.GlobalSearchResult result = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getResult() - { - return $this->result; - } - - /** - * Generated from protobuf field repeated .api.GlobalSearchResult result = 1; - * @param array<\Chirpstack\Api\GlobalSearchResult>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setResult($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Chirpstack\Api\GlobalSearchResult::class); - $this->result = $arr; - - return $this; - } - -} - diff --git a/api/php/generated/Chirpstack/Api/GlobalSearchResult.php b/api/php/generated/Chirpstack/Api/GlobalSearchResult.php deleted file mode 100644 index 5d39576f..00000000 --- a/api/php/generated/Chirpstack/Api/GlobalSearchResult.php +++ /dev/null @@ -1,371 +0,0 @@ -api.GlobalSearchResult - */ -class GlobalSearchResult extends \Google\Protobuf\Internal\Message -{ - /** - * Record kind. - * - * Generated from protobuf field string kind = 1; - */ - protected $kind = ''; - /** - * Search score. - * - * Generated from protobuf field float score = 2; - */ - protected $score = 0.0; - /** - * Organization id. - * - * Generated from protobuf field string tenant_id = 3; - */ - protected $tenant_id = ''; - /** - * Organization name. - * - * Generated from protobuf field string tenant_name = 4; - */ - protected $tenant_name = ''; - /** - * Application id. - * - * Generated from protobuf field string application_id = 5; - */ - protected $application_id = ''; - /** - * Application name. - * - * Generated from protobuf field string application_name = 6; - */ - protected $application_name = ''; - /** - * Device DevEUI (hex encoded). - * - * Generated from protobuf field string device_dev_eui = 7; - */ - protected $device_dev_eui = ''; - /** - * Device name. - * - * Generated from protobuf field string device_name = 8; - */ - protected $device_name = ''; - /** - * Gateway MAC (hex encoded). - * - * Generated from protobuf field string gateway_id = 9; - */ - protected $gateway_id = ''; - /** - * Gateway name. - * - * Generated from protobuf field string gateway_name = 10; - */ - protected $gateway_name = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $kind - * Record kind. - * @type float $score - * Search score. - * @type string $tenant_id - * Organization id. - * @type string $tenant_name - * Organization name. - * @type string $application_id - * Application id. - * @type string $application_name - * Application name. - * @type string $device_dev_eui - * Device DevEUI (hex encoded). - * @type string $device_name - * Device name. - * @type string $gateway_id - * Gateway MAC (hex encoded). - * @type string $gateway_name - * Gateway name. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Chirpstack\Api\Internal::initOnce(); - parent::__construct($data); - } - - /** - * Record kind. - * - * Generated from protobuf field string kind = 1; - * @return string - */ - public function getKind() - { - return $this->kind; - } - - /** - * Record kind. - * - * Generated from protobuf field string kind = 1; - * @param string $var - * @return $this - */ - public function setKind($var) - { - GPBUtil::checkString($var, True); - $this->kind = $var; - - return $this; - } - - /** - * Search score. - * - * Generated from protobuf field float score = 2; - * @return float - */ - public function getScore() - { - return $this->score; - } - - /** - * Search score. - * - * Generated from protobuf field float score = 2; - * @param float $var - * @return $this - */ - public function setScore($var) - { - GPBUtil::checkFloat($var); - $this->score = $var; - - return $this; - } - - /** - * Organization id. - * - * Generated from protobuf field string tenant_id = 3; - * @return string - */ - public function getTenantId() - { - return $this->tenant_id; - } - - /** - * Organization id. - * - * Generated from protobuf field string tenant_id = 3; - * @param string $var - * @return $this - */ - public function setTenantId($var) - { - GPBUtil::checkString($var, True); - $this->tenant_id = $var; - - return $this; - } - - /** - * Organization name. - * - * Generated from protobuf field string tenant_name = 4; - * @return string - */ - public function getTenantName() - { - return $this->tenant_name; - } - - /** - * Organization name. - * - * Generated from protobuf field string tenant_name = 4; - * @param string $var - * @return $this - */ - public function setTenantName($var) - { - GPBUtil::checkString($var, True); - $this->tenant_name = $var; - - return $this; - } - - /** - * Application id. - * - * Generated from protobuf field string application_id = 5; - * @return string - */ - public function getApplicationId() - { - return $this->application_id; - } - - /** - * Application id. - * - * Generated from protobuf field string application_id = 5; - * @param string $var - * @return $this - */ - public function setApplicationId($var) - { - GPBUtil::checkString($var, True); - $this->application_id = $var; - - return $this; - } - - /** - * Application name. - * - * Generated from protobuf field string application_name = 6; - * @return string - */ - public function getApplicationName() - { - return $this->application_name; - } - - /** - * Application name. - * - * Generated from protobuf field string application_name = 6; - * @param string $var - * @return $this - */ - public function setApplicationName($var) - { - GPBUtil::checkString($var, True); - $this->application_name = $var; - - return $this; - } - - /** - * Device DevEUI (hex encoded). - * - * Generated from protobuf field string device_dev_eui = 7; - * @return string - */ - public function getDeviceDevEui() - { - return $this->device_dev_eui; - } - - /** - * Device DevEUI (hex encoded). - * - * Generated from protobuf field string device_dev_eui = 7; - * @param string $var - * @return $this - */ - public function setDeviceDevEui($var) - { - GPBUtil::checkString($var, True); - $this->device_dev_eui = $var; - - return $this; - } - - /** - * Device name. - * - * Generated from protobuf field string device_name = 8; - * @return string - */ - public function getDeviceName() - { - return $this->device_name; - } - - /** - * Device name. - * - * Generated from protobuf field string device_name = 8; - * @param string $var - * @return $this - */ - public function setDeviceName($var) - { - GPBUtil::checkString($var, True); - $this->device_name = $var; - - return $this; - } - - /** - * Gateway MAC (hex encoded). - * - * Generated from protobuf field string gateway_id = 9; - * @return string - */ - public function getGatewayId() - { - return $this->gateway_id; - } - - /** - * Gateway MAC (hex encoded). - * - * Generated from protobuf field string gateway_id = 9; - * @param string $var - * @return $this - */ - public function setGatewayId($var) - { - GPBUtil::checkString($var, True); - $this->gateway_id = $var; - - return $this; - } - - /** - * Gateway name. - * - * Generated from protobuf field string gateway_name = 10; - * @return string - */ - public function getGatewayName() - { - return $this->gateway_name; - } - - /** - * Gateway name. - * - * Generated from protobuf field string gateway_name = 10; - * @param string $var - * @return $this - */ - public function setGatewayName($var) - { - GPBUtil::checkString($var, True); - $this->gateway_name = $var; - - return $this; - } - -} - diff --git a/api/php/generated/Chirpstack/Api/HttpIntegration.php b/api/php/generated/Chirpstack/Api/HttpIntegration.php deleted file mode 100644 index e664ab32..00000000 --- a/api/php/generated/Chirpstack/Api/HttpIntegration.php +++ /dev/null @@ -1,179 +0,0 @@ -api.HttpIntegration - */ -class HttpIntegration extends \Google\Protobuf\Internal\Message -{ - /** - * Application ID (UUID). - * - * Generated from protobuf field string application_id = 1; - */ - protected $application_id = ''; - /** - * HTTP headers to set when making requests. - * - * Generated from protobuf field map headers = 2; - */ - private $headers; - /** - * Payload encoding. - * - * Generated from protobuf field .api.Encoding encoding = 3; - */ - protected $encoding = 0; - /** - * Event endpoint URL. - * The HTTP integration will POST all events to this enpoint. The request - * will contain a query parameters "event" containing the type of the - * event. - * - * Generated from protobuf field string event_endpoint_url = 4; - */ - protected $event_endpoint_url = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $application_id - * Application ID (UUID). - * @type array|\Google\Protobuf\Internal\MapField $headers - * HTTP headers to set when making requests. - * @type int $encoding - * Payload encoding. - * @type string $event_endpoint_url - * Event endpoint URL. - * The HTTP integration will POST all events to this enpoint. The request - * will contain a query parameters "event" containing the type of the - * event. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Chirpstack\Api\Application::initOnce(); - parent::__construct($data); - } - - /** - * Application ID (UUID). - * - * Generated from protobuf field string application_id = 1; - * @return string - */ - public function getApplicationId() - { - return $this->application_id; - } - - /** - * Application ID (UUID). - * - * Generated from protobuf field string application_id = 1; - * @param string $var - * @return $this - */ - public function setApplicationId($var) - { - GPBUtil::checkString($var, True); - $this->application_id = $var; - - return $this; - } - - /** - * HTTP headers to set when making requests. - * - * Generated from protobuf field map headers = 2; - * @return \Google\Protobuf\Internal\MapField - */ - public function getHeaders() - { - return $this->headers; - } - - /** - * HTTP headers to set when making requests. - * - * Generated from protobuf field map headers = 2; - * @param array|\Google\Protobuf\Internal\MapField $var - * @return $this - */ - public function setHeaders($var) - { - $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); - $this->headers = $arr; - - return $this; - } - - /** - * Payload encoding. - * - * Generated from protobuf field .api.Encoding encoding = 3; - * @return int - */ - public function getEncoding() - { - return $this->encoding; - } - - /** - * Payload encoding. - * - * Generated from protobuf field .api.Encoding encoding = 3; - * @param int $var - * @return $this - */ - public function setEncoding($var) - { - GPBUtil::checkEnum($var, \Chirpstack\Api\Encoding::class); - $this->encoding = $var; - - return $this; - } - - /** - * Event endpoint URL. - * The HTTP integration will POST all events to this enpoint. The request - * will contain a query parameters "event" containing the type of the - * event. - * - * Generated from protobuf field string event_endpoint_url = 4; - * @return string - */ - public function getEventEndpointUrl() - { - return $this->event_endpoint_url; - } - - /** - * Event endpoint URL. - * The HTTP integration will POST all events to this enpoint. The request - * will contain a query parameters "event" containing the type of the - * event. - * - * Generated from protobuf field string event_endpoint_url = 4; - * @param string $var - * @return $this - */ - public function setEventEndpointUrl($var) - { - GPBUtil::checkString($var, True); - $this->event_endpoint_url = $var; - - return $this; - } - -} - diff --git a/api/php/generated/Chirpstack/Api/IftttIntegration.php b/api/php/generated/Chirpstack/Api/IftttIntegration.php deleted file mode 100644 index 3dac16a3..00000000 --- a/api/php/generated/Chirpstack/Api/IftttIntegration.php +++ /dev/null @@ -1,269 +0,0 @@ -api.IftttIntegration - */ -class IftttIntegration extends \Google\Protobuf\Internal\Message -{ - /** - * Application ID (UUID). - * - * Generated from protobuf field string application_id = 1; - */ - protected $application_id = ''; - /** - * Key. - * This key can be obtained from the IFTTT Webhooks documentation page. - * - * Generated from protobuf field string key = 2; - */ - protected $key = ''; - /** - * Values. - * Up to 2 values can be forwarded to IFTTT. These values must map to the - * decoded payload keys. For example: - * { - * "batteryLevel": 75.3, - * "buttons": [{"pressed": false}, {"pressed": true}] - * } - * You would specify the following fields: - * uplink_values = ["batteryLevel", "buttons_0_pressed"] - * Notes: The first value is always used for the DevEUI. - * Ignored if arbitrary_json is set to true. - * - * Generated from protobuf field repeated string uplink_values = 3; - */ - private $uplink_values; - /** - * Arbitrary JSON. - * If set to true, ChirpStack events will be sent as-is as arbitrary JSON - * payload. If set to false (default), the 3 JSON values format will be used. - * - * Generated from protobuf field bool arbitrary_json = 4; - */ - protected $arbitrary_json = false; - /** - * Event prefix. - * If set, the event name will be PREFIX_EVENT. For example if event_prefix - * is set to weatherstation, and uplink event will be sent as - * weatherstation_up to the IFTTT webhook. - * Note: Only characters in the A-Z, a-z and 0-9 range are allowed. - * - * Generated from protobuf field string event_prefix = 5; - */ - protected $event_prefix = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $application_id - * Application ID (UUID). - * @type string $key - * Key. - * This key can be obtained from the IFTTT Webhooks documentation page. - * @type array|\Google\Protobuf\Internal\RepeatedField $uplink_values - * Values. - * Up to 2 values can be forwarded to IFTTT. These values must map to the - * decoded payload keys. For example: - * { - * "batteryLevel": 75.3, - * "buttons": [{"pressed": false}, {"pressed": true}] - * } - * You would specify the following fields: - * uplink_values = ["batteryLevel", "buttons_0_pressed"] - * Notes: The first value is always used for the DevEUI. - * Ignored if arbitrary_json is set to true. - * @type bool $arbitrary_json - * Arbitrary JSON. - * If set to true, ChirpStack events will be sent as-is as arbitrary JSON - * payload. If set to false (default), the 3 JSON values format will be used. - * @type string $event_prefix - * Event prefix. - * If set, the event name will be PREFIX_EVENT. For example if event_prefix - * is set to weatherstation, and uplink event will be sent as - * weatherstation_up to the IFTTT webhook. - * Note: Only characters in the A-Z, a-z and 0-9 range are allowed. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Chirpstack\Api\Application::initOnce(); - parent::__construct($data); - } - - /** - * Application ID (UUID). - * - * Generated from protobuf field string application_id = 1; - * @return string - */ - public function getApplicationId() - { - return $this->application_id; - } - - /** - * Application ID (UUID). - * - * Generated from protobuf field string application_id = 1; - * @param string $var - * @return $this - */ - public function setApplicationId($var) - { - GPBUtil::checkString($var, True); - $this->application_id = $var; - - return $this; - } - - /** - * Key. - * This key can be obtained from the IFTTT Webhooks documentation page. - * - * Generated from protobuf field string key = 2; - * @return string - */ - public function getKey() - { - return $this->key; - } - - /** - * Key. - * This key can be obtained from the IFTTT Webhooks documentation page. - * - * Generated from protobuf field string key = 2; - * @param string $var - * @return $this - */ - public function setKey($var) - { - GPBUtil::checkString($var, True); - $this->key = $var; - - return $this; - } - - /** - * Values. - * Up to 2 values can be forwarded to IFTTT. These values must map to the - * decoded payload keys. For example: - * { - * "batteryLevel": 75.3, - * "buttons": [{"pressed": false}, {"pressed": true}] - * } - * You would specify the following fields: - * uplink_values = ["batteryLevel", "buttons_0_pressed"] - * Notes: The first value is always used for the DevEUI. - * Ignored if arbitrary_json is set to true. - * - * Generated from protobuf field repeated string uplink_values = 3; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getUplinkValues() - { - return $this->uplink_values; - } - - /** - * Values. - * Up to 2 values can be forwarded to IFTTT. These values must map to the - * decoded payload keys. For example: - * { - * "batteryLevel": 75.3, - * "buttons": [{"pressed": false}, {"pressed": true}] - * } - * You would specify the following fields: - * uplink_values = ["batteryLevel", "buttons_0_pressed"] - * Notes: The first value is always used for the DevEUI. - * Ignored if arbitrary_json is set to true. - * - * Generated from protobuf field repeated string uplink_values = 3; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setUplinkValues($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->uplink_values = $arr; - - return $this; - } - - /** - * Arbitrary JSON. - * If set to true, ChirpStack events will be sent as-is as arbitrary JSON - * payload. If set to false (default), the 3 JSON values format will be used. - * - * Generated from protobuf field bool arbitrary_json = 4; - * @return bool - */ - public function getArbitraryJson() - { - return $this->arbitrary_json; - } - - /** - * Arbitrary JSON. - * If set to true, ChirpStack events will be sent as-is as arbitrary JSON - * payload. If set to false (default), the 3 JSON values format will be used. - * - * Generated from protobuf field bool arbitrary_json = 4; - * @param bool $var - * @return $this - */ - public function setArbitraryJson($var) - { - GPBUtil::checkBool($var); - $this->arbitrary_json = $var; - - return $this; - } - - /** - * Event prefix. - * If set, the event name will be PREFIX_EVENT. For example if event_prefix - * is set to weatherstation, and uplink event will be sent as - * weatherstation_up to the IFTTT webhook. - * Note: Only characters in the A-Z, a-z and 0-9 range are allowed. - * - * Generated from protobuf field string event_prefix = 5; - * @return string - */ - public function getEventPrefix() - { - return $this->event_prefix; - } - - /** - * Event prefix. - * If set, the event name will be PREFIX_EVENT. For example if event_prefix - * is set to weatherstation, and uplink event will be sent as - * weatherstation_up to the IFTTT webhook. - * Note: Only characters in the A-Z, a-z and 0-9 range are allowed. - * - * Generated from protobuf field string event_prefix = 5; - * @param string $var - * @return $this - */ - public function setEventPrefix($var) - { - GPBUtil::checkString($var, True); - $this->event_prefix = $var; - - return $this; - } - -} - diff --git a/api/php/generated/Chirpstack/Api/InfluxDbIntegration.php b/api/php/generated/Chirpstack/Api/InfluxDbIntegration.php deleted file mode 100644 index fcae1217..00000000 --- a/api/php/generated/Chirpstack/Api/InfluxDbIntegration.php +++ /dev/null @@ -1,405 +0,0 @@ -api.InfluxDbIntegration - */ -class InfluxDbIntegration extends \Google\Protobuf\Internal\Message -{ - /** - * Application ID (UUID). - * - * Generated from protobuf field string application_id = 1; - */ - protected $application_id = ''; - /** - * InfluxDb API write endpoint (e.g. http://localhost:8086/write). - * - * Generated from protobuf field string endpoint = 2; - */ - protected $endpoint = ''; - /** - * InfluxDb database name. (InfluxDb v1) - * - * Generated from protobuf field string db = 3; - */ - protected $db = ''; - /** - * InfluxDb username. (InfluxDb v1) - * - * Generated from protobuf field string username = 4; - */ - protected $username = ''; - /** - * InfluxDb password. (InfluxDb v1) - * - * Generated from protobuf field string password = 5; - */ - protected $password = ''; - /** - * InfluxDb retention policy name. (InfluxDb v1) - * - * Generated from protobuf field string retention_policy_name = 6; - */ - protected $retention_policy_name = ''; - /** - * InfluxDb timestamp precision (InfluxDb v1). - * - * Generated from protobuf field .api.InfluxDbPrecision precision = 7; - */ - protected $precision = 0; - /** - * InfluxDb version. - * - * Generated from protobuf field .api.InfluxDbVersion version = 8; - */ - protected $version = 0; - /** - * Token. (InfluxDb v2) - * - * Generated from protobuf field string token = 9; - */ - protected $token = ''; - /** - * Organization. (InfluxDb v2) - * - * Generated from protobuf field string organization = 10; - */ - protected $organization = ''; - /** - * Bucket. (InfluxDb v2) - * - * Generated from protobuf field string bucket = 11; - */ - protected $bucket = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $application_id - * Application ID (UUID). - * @type string $endpoint - * InfluxDb API write endpoint (e.g. http://localhost:8086/write). - * @type string $db - * InfluxDb database name. (InfluxDb v1) - * @type string $username - * InfluxDb username. (InfluxDb v1) - * @type string $password - * InfluxDb password. (InfluxDb v1) - * @type string $retention_policy_name - * InfluxDb retention policy name. (InfluxDb v1) - * @type int $precision - * InfluxDb timestamp precision (InfluxDb v1). - * @type int $version - * InfluxDb version. - * @type string $token - * Token. (InfluxDb v2) - * @type string $organization - * Organization. (InfluxDb v2) - * @type string $bucket - * Bucket. (InfluxDb v2) - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Chirpstack\Api\Application::initOnce(); - parent::__construct($data); - } - - /** - * Application ID (UUID). - * - * Generated from protobuf field string application_id = 1; - * @return string - */ - public function getApplicationId() - { - return $this->application_id; - } - - /** - * Application ID (UUID). - * - * Generated from protobuf field string application_id = 1; - * @param string $var - * @return $this - */ - public function setApplicationId($var) - { - GPBUtil::checkString($var, True); - $this->application_id = $var; - - return $this; - } - - /** - * InfluxDb API write endpoint (e.g. http://localhost:8086/write). - * - * Generated from protobuf field string endpoint = 2; - * @return string - */ - public function getEndpoint() - { - return $this->endpoint; - } - - /** - * InfluxDb API write endpoint (e.g. http://localhost:8086/write). - * - * Generated from protobuf field string endpoint = 2; - * @param string $var - * @return $this - */ - public function setEndpoint($var) - { - GPBUtil::checkString($var, True); - $this->endpoint = $var; - - return $this; - } - - /** - * InfluxDb database name. (InfluxDb v1) - * - * Generated from protobuf field string db = 3; - * @return string - */ - public function getDb() - { - return $this->db; - } - - /** - * InfluxDb database name. (InfluxDb v1) - * - * Generated from protobuf field string db = 3; - * @param string $var - * @return $this - */ - public function setDb($var) - { - GPBUtil::checkString($var, True); - $this->db = $var; - - return $this; - } - - /** - * InfluxDb username. (InfluxDb v1) - * - * Generated from protobuf field string username = 4; - * @return string - */ - public function getUsername() - { - return $this->username; - } - - /** - * InfluxDb username. (InfluxDb v1) - * - * Generated from protobuf field string username = 4; - * @param string $var - * @return $this - */ - public function setUsername($var) - { - GPBUtil::checkString($var, True); - $this->username = $var; - - return $this; - } - - /** - * InfluxDb password. (InfluxDb v1) - * - * Generated from protobuf field string password = 5; - * @return string - */ - public function getPassword() - { - return $this->password; - } - - /** - * InfluxDb password. (InfluxDb v1) - * - * Generated from protobuf field string password = 5; - * @param string $var - * @return $this - */ - public function setPassword($var) - { - GPBUtil::checkString($var, True); - $this->password = $var; - - return $this; - } - - /** - * InfluxDb retention policy name. (InfluxDb v1) - * - * Generated from protobuf field string retention_policy_name = 6; - * @return string - */ - public function getRetentionPolicyName() - { - return $this->retention_policy_name; - } - - /** - * InfluxDb retention policy name. (InfluxDb v1) - * - * Generated from protobuf field string retention_policy_name = 6; - * @param string $var - * @return $this - */ - public function setRetentionPolicyName($var) - { - GPBUtil::checkString($var, True); - $this->retention_policy_name = $var; - - return $this; - } - - /** - * InfluxDb timestamp precision (InfluxDb v1). - * - * Generated from protobuf field .api.InfluxDbPrecision precision = 7; - * @return int - */ - public function getPrecision() - { - return $this->precision; - } - - /** - * InfluxDb timestamp precision (InfluxDb v1). - * - * Generated from protobuf field .api.InfluxDbPrecision precision = 7; - * @param int $var - * @return $this - */ - public function setPrecision($var) - { - GPBUtil::checkEnum($var, \Chirpstack\Api\InfluxDbPrecision::class); - $this->precision = $var; - - return $this; - } - - /** - * InfluxDb version. - * - * Generated from protobuf field .api.InfluxDbVersion version = 8; - * @return int - */ - public function getVersion() - { - return $this->version; - } - - /** - * InfluxDb version. - * - * Generated from protobuf field .api.InfluxDbVersion version = 8; - * @param int $var - * @return $this - */ - public function setVersion($var) - { - GPBUtil::checkEnum($var, \Chirpstack\Api\InfluxDbVersion::class); - $this->version = $var; - - return $this; - } - - /** - * Token. (InfluxDb v2) - * - * Generated from protobuf field string token = 9; - * @return string - */ - public function getToken() - { - return $this->token; - } - - /** - * Token. (InfluxDb v2) - * - * Generated from protobuf field string token = 9; - * @param string $var - * @return $this - */ - public function setToken($var) - { - GPBUtil::checkString($var, True); - $this->token = $var; - - return $this; - } - - /** - * Organization. (InfluxDb v2) - * - * Generated from protobuf field string organization = 10; - * @return string - */ - public function getOrganization() - { - return $this->organization; - } - - /** - * Organization. (InfluxDb v2) - * - * Generated from protobuf field string organization = 10; - * @param string $var - * @return $this - */ - public function setOrganization($var) - { - GPBUtil::checkString($var, True); - $this->organization = $var; - - return $this; - } - - /** - * Bucket. (InfluxDb v2) - * - * Generated from protobuf field string bucket = 11; - * @return string - */ - public function getBucket() - { - return $this->bucket; - } - - /** - * Bucket. (InfluxDb v2) - * - * Generated from protobuf field string bucket = 11; - * @param string $var - * @return $this - */ - public function setBucket($var) - { - GPBUtil::checkString($var, True); - $this->bucket = $var; - - return $this; - } - -} - diff --git a/api/php/generated/Chirpstack/Api/InfluxDbPrecision.php b/api/php/generated/Chirpstack/Api/InfluxDbPrecision.php deleted file mode 100644 index 5df11815..00000000 --- a/api/php/generated/Chirpstack/Api/InfluxDbPrecision.php +++ /dev/null @@ -1,68 +0,0 @@ -api.InfluxDbPrecision - */ -class InfluxDbPrecision -{ - /** - * Generated from protobuf enum NS = 0; - */ - const NS = 0; - /** - * Generated from protobuf enum U = 1; - */ - const U = 1; - /** - * Generated from protobuf enum MS = 2; - */ - const MS = 2; - /** - * Generated from protobuf enum S = 3; - */ - const S = 3; - /** - * Generated from protobuf enum M = 4; - */ - const M = 4; - /** - * Generated from protobuf enum H = 5; - */ - const H = 5; - - private static $valueToName = [ - self::NS => 'NS', - self::U => 'U', - self::MS => 'MS', - self::S => 'S', - self::M => 'M', - self::H => 'H', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - diff --git a/api/php/generated/Chirpstack/Api/InfluxDbVersion.php b/api/php/generated/Chirpstack/Api/InfluxDbVersion.php deleted file mode 100644 index 1ddc5a40..00000000 --- a/api/php/generated/Chirpstack/Api/InfluxDbVersion.php +++ /dev/null @@ -1,48 +0,0 @@ -api.InfluxDbVersion - */ -class InfluxDbVersion -{ - /** - * Generated from protobuf enum INFLUXDB_1 = 0; - */ - const INFLUXDB_1 = 0; - /** - * Generated from protobuf enum INFLUXDB_2 = 1; - */ - const INFLUXDB_2 = 1; - - private static $valueToName = [ - self::INFLUXDB_1 => 'INFLUXDB_1', - self::INFLUXDB_2 => 'INFLUXDB_2', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - diff --git a/api/php/generated/Chirpstack/Api/IntegrationKind.php b/api/php/generated/Chirpstack/Api/IntegrationKind.php deleted file mode 100644 index 60ec1d8c..00000000 --- a/api/php/generated/Chirpstack/Api/IntegrationKind.php +++ /dev/null @@ -1,93 +0,0 @@ -api.IntegrationKind - */ -class IntegrationKind -{ - /** - * Generated from protobuf enum HTTP = 0; - */ - const HTTP = 0; - /** - * Generated from protobuf enum INFLUX_DB = 1; - */ - const INFLUX_DB = 1; - /** - * Generated from protobuf enum THINGS_BOARD = 2; - */ - const THINGS_BOARD = 2; - /** - * Generated from protobuf enum MY_DEVICES = 3; - */ - const MY_DEVICES = 3; - /** - * Generated from protobuf enum LORA_CLOUD = 4; - */ - const LORA_CLOUD = 4; - /** - * Generated from protobuf enum GCP_PUB_SUB = 5; - */ - const GCP_PUB_SUB = 5; - /** - * Generated from protobuf enum AWS_SNS = 6; - */ - const AWS_SNS = 6; - /** - * Generated from protobuf enum AZURE_SERVICE_BUS = 7; - */ - const AZURE_SERVICE_BUS = 7; - /** - * Generated from protobuf enum PILOT_THINGS = 8; - */ - const PILOT_THINGS = 8; - /** - * Generated from protobuf enum MQTT_GLOBAL = 9; - */ - const MQTT_GLOBAL = 9; - /** - * Generated from protobuf enum IFTTT = 10; - */ - const IFTTT = 10; - - private static $valueToName = [ - self::HTTP => 'HTTP', - self::INFLUX_DB => 'INFLUX_DB', - self::THINGS_BOARD => 'THINGS_BOARD', - self::MY_DEVICES => 'MY_DEVICES', - self::LORA_CLOUD => 'LORA_CLOUD', - self::GCP_PUB_SUB => 'GCP_PUB_SUB', - self::AWS_SNS => 'AWS_SNS', - self::AZURE_SERVICE_BUS => 'AZURE_SERVICE_BUS', - self::PILOT_THINGS => 'PILOT_THINGS', - self::MQTT_GLOBAL => 'MQTT_GLOBAL', - self::IFTTT => 'IFTTT', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - diff --git a/api/php/generated/Chirpstack/Api/IntegrationListItem.php b/api/php/generated/Chirpstack/Api/IntegrationListItem.php deleted file mode 100644 index 3c69e4a0..00000000 --- a/api/php/generated/Chirpstack/Api/IntegrationListItem.php +++ /dev/null @@ -1,65 +0,0 @@ -api.IntegrationListItem - */ -class IntegrationListItem extends \Google\Protobuf\Internal\Message -{ - /** - * Integration kind. - * - * Generated from protobuf field .api.IntegrationKind kind = 1; - */ - protected $kind = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $kind - * Integration kind. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Chirpstack\Api\Application::initOnce(); - parent::__construct($data); - } - - /** - * Integration kind. - * - * Generated from protobuf field .api.IntegrationKind kind = 1; - * @return int - */ - public function getKind() - { - return $this->kind; - } - - /** - * Integration kind. - * - * Generated from protobuf field .api.IntegrationKind kind = 1; - * @param int $var - * @return $this - */ - public function setKind($var) - { - GPBUtil::checkEnum($var, \Chirpstack\Api\IntegrationKind::class); - $this->kind = $var; - - return $this; - } - -} - diff --git a/api/php/generated/Chirpstack/Api/InternalServiceClient.php b/api/php/generated/Chirpstack/Api/InternalServiceClient.php deleted file mode 100644 index c9013ba1..00000000 --- a/api/php/generated/Chirpstack/Api/InternalServiceClient.php +++ /dev/null @@ -1,275 +0,0 @@ -_simpleRequest('/api.InternalService/Login', - $argument, - ['\Chirpstack\Api\LoginResponse', 'decode'], - $metadata, $options); - } - - /** - * Get the current user's profile - * @param \Google\Protobuf\GPBEmpty $argument input argument - * @param array $metadata metadata - * @param array $options call options - * @return \Grpc\UnaryCall - */ - public function Profile(\Google\Protobuf\GPBEmpty $argument, - $metadata = [], $options = []) { - return $this->_simpleRequest('/api.InternalService/Profile', - $argument, - ['\Chirpstack\Api\ProfileResponse', 'decode'], - $metadata, $options); - } - - /** - * Perform a global search. - * @param \Chirpstack\Api\GlobalSearchRequest $argument input argument - * @param array $metadata metadata - * @param array $options call options - * @return \Grpc\UnaryCall - */ - public function GlobalSearch(\Chirpstack\Api\GlobalSearchRequest $argument, - $metadata = [], $options = []) { - return $this->_simpleRequest('/api.InternalService/GlobalSearch', - $argument, - ['\Chirpstack\Api\GlobalSearchResponse', 'decode'], - $metadata, $options); - } - - /** - * CreateApiKey creates the given API key. - * @param \Chirpstack\Api\CreateApiKeyRequest $argument input argument - * @param array $metadata metadata - * @param array $options call options - * @return \Grpc\UnaryCall - */ - public function CreateApiKey(\Chirpstack\Api\CreateApiKeyRequest $argument, - $metadata = [], $options = []) { - return $this->_simpleRequest('/api.InternalService/CreateApiKey', - $argument, - ['\Chirpstack\Api\CreateApiKeyResponse', 'decode'], - $metadata, $options); - } - - /** - * DeleteApiKey deletes the API key. - * @param \Chirpstack\Api\DeleteApiKeyRequest $argument input argument - * @param array $metadata metadata - * @param array $options call options - * @return \Grpc\UnaryCall - */ - public function DeleteApiKey(\Chirpstack\Api\DeleteApiKeyRequest $argument, - $metadata = [], $options = []) { - return $this->_simpleRequest('/api.InternalService/DeleteApiKey', - $argument, - ['\Google\Protobuf\GPBEmpty', 'decode'], - $metadata, $options); - } - - /** - * ListApiKeys lists the available API keys. - * @param \Chirpstack\Api\ListApiKeysRequest $argument input argument - * @param array $metadata metadata - * @param array $options call options - * @return \Grpc\UnaryCall - */ - public function ListApiKeys(\Chirpstack\Api\ListApiKeysRequest $argument, - $metadata = [], $options = []) { - return $this->_simpleRequest('/api.InternalService/ListApiKeys', - $argument, - ['\Chirpstack\Api\ListApiKeysResponse', 'decode'], - $metadata, $options); - } - - /** - * Get the global settings. - * @param \Google\Protobuf\GPBEmpty $argument input argument - * @param array $metadata metadata - * @param array $options call options - * @return \Grpc\UnaryCall - */ - public function Settings(\Google\Protobuf\GPBEmpty $argument, - $metadata = [], $options = []) { - return $this->_simpleRequest('/api.InternalService/Settings', - $argument, - ['\Chirpstack\Api\SettingsResponse', 'decode'], - $metadata, $options); - } - - /** - * OpenId Connect login. - * @param \Chirpstack\Api\OpenIdConnectLoginRequest $argument input argument - * @param array $metadata metadata - * @param array $options call options - * @return \Grpc\UnaryCall - */ - public function OpenIdConnectLogin(\Chirpstack\Api\OpenIdConnectLoginRequest $argument, - $metadata = [], $options = []) { - return $this->_simpleRequest('/api.InternalService/OpenIdConnectLogin', - $argument, - ['\Chirpstack\Api\OpenIdConnectLoginResponse', 'decode'], - $metadata, $options); - } - - /** - * OAuth2 login. - * @param \Chirpstack\Api\OAuth2LoginRequest $argument input argument - * @param array $metadata metadata - * @param array $options call options - * @return \Grpc\UnaryCall - */ - public function OAuth2Login(\Chirpstack\Api\OAuth2LoginRequest $argument, - $metadata = [], $options = []) { - return $this->_simpleRequest('/api.InternalService/OAuth2Login', - $argument, - ['\Chirpstack\Api\OAuth2LoginResponse', 'decode'], - $metadata, $options); - } - - /** - * GetDevicesSummary returns an aggregated summary of the devices. - * @param \Chirpstack\Api\GetDevicesSummaryRequest $argument input argument - * @param array $metadata metadata - * @param array $options call options - * @return \Grpc\UnaryCall - */ - public function GetDevicesSummary(\Chirpstack\Api\GetDevicesSummaryRequest $argument, - $metadata = [], $options = []) { - return $this->_simpleRequest('/api.InternalService/GetDevicesSummary', - $argument, - ['\Chirpstack\Api\GetDevicesSummaryResponse', 'decode'], - $metadata, $options); - } - - /** - * GetGatewaysSummary returns an aggregated summary of the gateways. - * @param \Chirpstack\Api\GetGatewaysSummaryRequest $argument input argument - * @param array $metadata metadata - * @param array $options call options - * @return \Grpc\UnaryCall - */ - public function GetGatewaysSummary(\Chirpstack\Api\GetGatewaysSummaryRequest $argument, - $metadata = [], $options = []) { - return $this->_simpleRequest('/api.InternalService/GetGatewaysSummary', - $argument, - ['\Chirpstack\Api\GetGatewaysSummaryResponse', 'decode'], - $metadata, $options); - } - - /** - * Stream frame for the given Gateway ID. - * @param \Chirpstack\Api\StreamGatewayFramesRequest $argument input argument - * @param array $metadata metadata - * @param array $options call options - * @return \Grpc\ServerStreamingCall - */ - public function StreamGatewayFrames(\Chirpstack\Api\StreamGatewayFramesRequest $argument, - $metadata = [], $options = []) { - return $this->_serverStreamRequest('/api.InternalService/StreamGatewayFrames', - $argument, - ['\Chirpstack\Api\LogItem', 'decode'], - $metadata, $options); - } - - /** - * Stream frames for the given Device EUI. - * @param \Chirpstack\Api\StreamDeviceFramesRequest $argument input argument - * @param array $metadata metadata - * @param array $options call options - * @return \Grpc\ServerStreamingCall - */ - public function StreamDeviceFrames(\Chirpstack\Api\StreamDeviceFramesRequest $argument, - $metadata = [], $options = []) { - return $this->_serverStreamRequest('/api.InternalService/StreamDeviceFrames', - $argument, - ['\Chirpstack\Api\LogItem', 'decode'], - $metadata, $options); - } - - /** - * Stream events for the given Device EUI. - * @param \Chirpstack\Api\StreamDeviceEventsRequest $argument input argument - * @param array $metadata metadata - * @param array $options call options - * @return \Grpc\ServerStreamingCall - */ - public function StreamDeviceEvents(\Chirpstack\Api\StreamDeviceEventsRequest $argument, - $metadata = [], $options = []) { - return $this->_serverStreamRequest('/api.InternalService/StreamDeviceEvents', - $argument, - ['\Chirpstack\Api\LogItem', 'decode'], - $metadata, $options); - } - - /** - * ListRegions lists the available (configured) regions. - * @param \Google\Protobuf\GPBEmpty $argument input argument - * @param array $metadata metadata - * @param array $options call options - * @return \Grpc\UnaryCall - */ - public function ListRegions(\Google\Protobuf\GPBEmpty $argument, - $metadata = [], $options = []) { - return $this->_simpleRequest('/api.InternalService/ListRegions', - $argument, - ['\Chirpstack\Api\ListRegionsResponse', 'decode'], - $metadata, $options); - } - - /** - * GetRegion returns the region details for the given region. - * @param \Chirpstack\Api\GetRegionRequest $argument input argument - * @param array $metadata metadata - * @param array $options call options - * @return \Grpc\UnaryCall - */ - public function GetRegion(\Chirpstack\Api\GetRegionRequest $argument, - $metadata = [], $options = []) { - return $this->_simpleRequest('/api.InternalService/GetRegion', - $argument, - ['\Chirpstack\Api\GetRegionResponse', 'decode'], - $metadata, $options); - } - - /** - * GetVersion returns the ChirpStack version. - * @param \Google\Protobuf\GPBEmpty $argument input argument - * @param array $metadata metadata - * @param array $options call options - * @return \Grpc\UnaryCall - */ - public function GetVersion(\Google\Protobuf\GPBEmpty $argument, - $metadata = [], $options = []) { - return $this->_simpleRequest('/api.InternalService/GetVersion', - $argument, - ['\Chirpstack\Api\GetVersionResponse', 'decode'], - $metadata, $options); - } - -} diff --git a/api/php/generated/Chirpstack/Api/ListApiKeysRequest.php b/api/php/generated/Chirpstack/Api/ListApiKeysRequest.php deleted file mode 100644 index 1c9755fd..00000000 --- a/api/php/generated/Chirpstack/Api/ListApiKeysRequest.php +++ /dev/null @@ -1,167 +0,0 @@ -api.ListApiKeysRequest - */ -class ListApiKeysRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Max number of items to return. - * - * Generated from protobuf field uint32 limit = 1; - */ - protected $limit = 0; - /** - * Offset in the result-set (for pagination). - * - * Generated from protobuf field uint32 offset = 2; - */ - protected $offset = 0; - /** - * Return only admin keys. - * - * Generated from protobuf field bool is_admin = 3; - */ - protected $is_admin = false; - /** - * Filter on tenant ID. - * - * Generated from protobuf field string tenant_id = 4; - */ - protected $tenant_id = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $limit - * Max number of items to return. - * @type int $offset - * Offset in the result-set (for pagination). - * @type bool $is_admin - * Return only admin keys. - * @type string $tenant_id - * Filter on tenant ID. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Chirpstack\Api\Internal::initOnce(); - parent::__construct($data); - } - - /** - * Max number of items to return. - * - * Generated from protobuf field uint32 limit = 1; - * @return int - */ - public function getLimit() - { - return $this->limit; - } - - /** - * Max number of items to return. - * - * Generated from protobuf field uint32 limit = 1; - * @param int $var - * @return $this - */ - public function setLimit($var) - { - GPBUtil::checkUint32($var); - $this->limit = $var; - - return $this; - } - - /** - * Offset in the result-set (for pagination). - * - * Generated from protobuf field uint32 offset = 2; - * @return int - */ - public function getOffset() - { - return $this->offset; - } - - /** - * Offset in the result-set (for pagination). - * - * Generated from protobuf field uint32 offset = 2; - * @param int $var - * @return $this - */ - public function setOffset($var) - { - GPBUtil::checkUint32($var); - $this->offset = $var; - - return $this; - } - - /** - * Return only admin keys. - * - * Generated from protobuf field bool is_admin = 3; - * @return bool - */ - public function getIsAdmin() - { - return $this->is_admin; - } - - /** - * Return only admin keys. - * - * Generated from protobuf field bool is_admin = 3; - * @param bool $var - * @return $this - */ - public function setIsAdmin($var) - { - GPBUtil::checkBool($var); - $this->is_admin = $var; - - return $this; - } - - /** - * Filter on tenant ID. - * - * Generated from protobuf field string tenant_id = 4; - * @return string - */ - public function getTenantId() - { - return $this->tenant_id; - } - - /** - * Filter on tenant ID. - * - * Generated from protobuf field string tenant_id = 4; - * @param string $var - * @return $this - */ - public function setTenantId($var) - { - GPBUtil::checkString($var, True); - $this->tenant_id = $var; - - return $this; - } - -} - diff --git a/api/php/generated/Chirpstack/Api/ListApiKeysResponse.php b/api/php/generated/Chirpstack/Api/ListApiKeysResponse.php deleted file mode 100644 index 88a35a8e..00000000 --- a/api/php/generated/Chirpstack/Api/ListApiKeysResponse.php +++ /dev/null @@ -1,92 +0,0 @@ -api.ListApiKeysResponse - */ -class ListApiKeysResponse extends \Google\Protobuf\Internal\Message -{ - /** - * Total number of API keys. - * - * Generated from protobuf field uint32 total_count = 1; - */ - protected $total_count = 0; - /** - * Generated from protobuf field repeated .api.ApiKey result = 2; - */ - private $result; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $total_count - * Total number of API keys. - * @type array<\Chirpstack\Api\ApiKey>|\Google\Protobuf\Internal\RepeatedField $result - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Chirpstack\Api\Internal::initOnce(); - parent::__construct($data); - } - - /** - * Total number of API keys. - * - * Generated from protobuf field uint32 total_count = 1; - * @return int - */ - public function getTotalCount() - { - return $this->total_count; - } - - /** - * Total number of API keys. - * - * Generated from protobuf field uint32 total_count = 1; - * @param int $var - * @return $this - */ - public function setTotalCount($var) - { - GPBUtil::checkUint32($var); - $this->total_count = $var; - - return $this; - } - - /** - * Generated from protobuf field repeated .api.ApiKey result = 2; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getResult() - { - return $this->result; - } - - /** - * Generated from protobuf field repeated .api.ApiKey result = 2; - * @param array<\Chirpstack\Api\ApiKey>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setResult($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Chirpstack\Api\ApiKey::class); - $this->result = $arr; - - return $this; - } - -} - diff --git a/api/php/generated/Chirpstack/Api/ListApplicationsRequest.php b/api/php/generated/Chirpstack/Api/ListApplicationsRequest.php deleted file mode 100644 index f1cde390..00000000 --- a/api/php/generated/Chirpstack/Api/ListApplicationsRequest.php +++ /dev/null @@ -1,167 +0,0 @@ -api.ListApplicationsRequest - */ -class ListApplicationsRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Max number of applications to return in the result-set. - * - * Generated from protobuf field uint32 limit = 1; - */ - protected $limit = 0; - /** - * Offset in the result-set (for pagination). - * - * Generated from protobuf field uint32 offset = 2; - */ - protected $offset = 0; - /** - * If set, the given string will be used to search on name (optional). - * - * Generated from protobuf field string search = 3; - */ - protected $search = ''; - /** - * Tenant ID to list the applications for. - * - * Generated from protobuf field string tenant_id = 4; - */ - protected $tenant_id = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $limit - * Max number of applications to return in the result-set. - * @type int $offset - * Offset in the result-set (for pagination). - * @type string $search - * If set, the given string will be used to search on name (optional). - * @type string $tenant_id - * Tenant ID to list the applications for. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Chirpstack\Api\Application::initOnce(); - parent::__construct($data); - } - - /** - * Max number of applications to return in the result-set. - * - * Generated from protobuf field uint32 limit = 1; - * @return int - */ - public function getLimit() - { - return $this->limit; - } - - /** - * Max number of applications to return in the result-set. - * - * Generated from protobuf field uint32 limit = 1; - * @param int $var - * @return $this - */ - public function setLimit($var) - { - GPBUtil::checkUint32($var); - $this->limit = $var; - - return $this; - } - - /** - * Offset in the result-set (for pagination). - * - * Generated from protobuf field uint32 offset = 2; - * @return int - */ - public function getOffset() - { - return $this->offset; - } - - /** - * Offset in the result-set (for pagination). - * - * Generated from protobuf field uint32 offset = 2; - * @param int $var - * @return $this - */ - public function setOffset($var) - { - GPBUtil::checkUint32($var); - $this->offset = $var; - - return $this; - } - - /** - * If set, the given string will be used to search on name (optional). - * - * Generated from protobuf field string search = 3; - * @return string - */ - public function getSearch() - { - return $this->search; - } - - /** - * If set, the given string will be used to search on name (optional). - * - * Generated from protobuf field string search = 3; - * @param string $var - * @return $this - */ - public function setSearch($var) - { - GPBUtil::checkString($var, True); - $this->search = $var; - - return $this; - } - - /** - * Tenant ID to list the applications for. - * - * Generated from protobuf field string tenant_id = 4; - * @return string - */ - public function getTenantId() - { - return $this->tenant_id; - } - - /** - * Tenant ID to list the applications for. - * - * Generated from protobuf field string tenant_id = 4; - * @param string $var - * @return $this - */ - public function setTenantId($var) - { - GPBUtil::checkString($var, True); - $this->tenant_id = $var; - - return $this; - } - -} - diff --git a/api/php/generated/Chirpstack/Api/ListApplicationsResponse.php b/api/php/generated/Chirpstack/Api/ListApplicationsResponse.php deleted file mode 100644 index 357fae2a..00000000 --- a/api/php/generated/Chirpstack/Api/ListApplicationsResponse.php +++ /dev/null @@ -1,99 +0,0 @@ -api.ListApplicationsResponse - */ -class ListApplicationsResponse extends \Google\Protobuf\Internal\Message -{ - /** - * Total number of applications. - * - * Generated from protobuf field uint32 total_count = 1; - */ - protected $total_count = 0; - /** - * Result-set. - * - * Generated from protobuf field repeated .api.ApplicationListItem result = 2; - */ - private $result; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $total_count - * Total number of applications. - * @type array<\Chirpstack\Api\ApplicationListItem>|\Google\Protobuf\Internal\RepeatedField $result - * Result-set. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Chirpstack\Api\Application::initOnce(); - parent::__construct($data); - } - - /** - * Total number of applications. - * - * Generated from protobuf field uint32 total_count = 1; - * @return int - */ - public function getTotalCount() - { - return $this->total_count; - } - - /** - * Total number of applications. - * - * Generated from protobuf field uint32 total_count = 1; - * @param int $var - * @return $this - */ - public function setTotalCount($var) - { - GPBUtil::checkUint32($var); - $this->total_count = $var; - - return $this; - } - - /** - * Result-set. - * - * Generated from protobuf field repeated .api.ApplicationListItem result = 2; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getResult() - { - return $this->result; - } - - /** - * Result-set. - * - * Generated from protobuf field repeated .api.ApplicationListItem result = 2; - * @param array<\Chirpstack\Api\ApplicationListItem>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setResult($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Chirpstack\Api\ApplicationListItem::class); - $this->result = $arr; - - return $this; - } - -} - diff --git a/api/php/generated/Chirpstack/Api/ListDeviceProfileAdrAlgorithmsResponse.php b/api/php/generated/Chirpstack/Api/ListDeviceProfileAdrAlgorithmsResponse.php deleted file mode 100644 index bc2dc356..00000000 --- a/api/php/generated/Chirpstack/Api/ListDeviceProfileAdrAlgorithmsResponse.php +++ /dev/null @@ -1,99 +0,0 @@ -api.ListDeviceProfileAdrAlgorithmsResponse - */ -class ListDeviceProfileAdrAlgorithmsResponse extends \Google\Protobuf\Internal\Message -{ - /** - * Total number of algorithms. - * - * Generated from protobuf field uint32 total_count = 1; - */ - protected $total_count = 0; - /** - * Result-set. - * - * Generated from protobuf field repeated .api.AdrAlgorithmListItem result = 2; - */ - private $result; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $total_count - * Total number of algorithms. - * @type array<\Chirpstack\Api\AdrAlgorithmListItem>|\Google\Protobuf\Internal\RepeatedField $result - * Result-set. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Chirpstack\Api\DeviceProfile::initOnce(); - parent::__construct($data); - } - - /** - * Total number of algorithms. - * - * Generated from protobuf field uint32 total_count = 1; - * @return int - */ - public function getTotalCount() - { - return $this->total_count; - } - - /** - * Total number of algorithms. - * - * Generated from protobuf field uint32 total_count = 1; - * @param int $var - * @return $this - */ - public function setTotalCount($var) - { - GPBUtil::checkUint32($var); - $this->total_count = $var; - - return $this; - } - - /** - * Result-set. - * - * Generated from protobuf field repeated .api.AdrAlgorithmListItem result = 2; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getResult() - { - return $this->result; - } - - /** - * Result-set. - * - * Generated from protobuf field repeated .api.AdrAlgorithmListItem result = 2; - * @param array<\Chirpstack\Api\AdrAlgorithmListItem>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setResult($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Chirpstack\Api\AdrAlgorithmListItem::class); - $this->result = $arr; - - return $this; - } - -} - diff --git a/api/php/generated/Chirpstack/Api/ListDeviceProfileTemplatesRequest.php b/api/php/generated/Chirpstack/Api/ListDeviceProfileTemplatesRequest.php deleted file mode 100644 index e431e529..00000000 --- a/api/php/generated/Chirpstack/Api/ListDeviceProfileTemplatesRequest.php +++ /dev/null @@ -1,99 +0,0 @@ -api.ListDeviceProfileTemplatesRequest - */ -class ListDeviceProfileTemplatesRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Max number of device-profile templates to return in the result-set. - * - * Generated from protobuf field uint32 limit = 1; - */ - protected $limit = 0; - /** - * Offset in the result-set (for pagination). - * - * Generated from protobuf field uint32 offset = 2; - */ - protected $offset = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $limit - * Max number of device-profile templates to return in the result-set. - * @type int $offset - * Offset in the result-set (for pagination). - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Chirpstack\Api\DeviceProfileTemplate::initOnce(); - parent::__construct($data); - } - - /** - * Max number of device-profile templates to return in the result-set. - * - * Generated from protobuf field uint32 limit = 1; - * @return int - */ - public function getLimit() - { - return $this->limit; - } - - /** - * Max number of device-profile templates to return in the result-set. - * - * Generated from protobuf field uint32 limit = 1; - * @param int $var - * @return $this - */ - public function setLimit($var) - { - GPBUtil::checkUint32($var); - $this->limit = $var; - - return $this; - } - - /** - * Offset in the result-set (for pagination). - * - * Generated from protobuf field uint32 offset = 2; - * @return int - */ - public function getOffset() - { - return $this->offset; - } - - /** - * Offset in the result-set (for pagination). - * - * Generated from protobuf field uint32 offset = 2; - * @param int $var - * @return $this - */ - public function setOffset($var) - { - GPBUtil::checkUint32($var); - $this->offset = $var; - - return $this; - } - -} - diff --git a/api/php/generated/Chirpstack/Api/ListDeviceProfileTemplatesResponse.php b/api/php/generated/Chirpstack/Api/ListDeviceProfileTemplatesResponse.php deleted file mode 100644 index 00a48711..00000000 --- a/api/php/generated/Chirpstack/Api/ListDeviceProfileTemplatesResponse.php +++ /dev/null @@ -1,99 +0,0 @@ -api.ListDeviceProfileTemplatesResponse - */ -class ListDeviceProfileTemplatesResponse extends \Google\Protobuf\Internal\Message -{ - /** - * Total number of device-profile templates. - * - * Generated from protobuf field uint32 total_count = 1; - */ - protected $total_count = 0; - /** - * Result-set. - * - * Generated from protobuf field repeated .api.DeviceProfileTemplateListItem result = 2; - */ - private $result; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $total_count - * Total number of device-profile templates. - * @type array<\Chirpstack\Api\DeviceProfileTemplateListItem>|\Google\Protobuf\Internal\RepeatedField $result - * Result-set. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Chirpstack\Api\DeviceProfileTemplate::initOnce(); - parent::__construct($data); - } - - /** - * Total number of device-profile templates. - * - * Generated from protobuf field uint32 total_count = 1; - * @return int - */ - public function getTotalCount() - { - return $this->total_count; - } - - /** - * Total number of device-profile templates. - * - * Generated from protobuf field uint32 total_count = 1; - * @param int $var - * @return $this - */ - public function setTotalCount($var) - { - GPBUtil::checkUint32($var); - $this->total_count = $var; - - return $this; - } - - /** - * Result-set. - * - * Generated from protobuf field repeated .api.DeviceProfileTemplateListItem result = 2; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getResult() - { - return $this->result; - } - - /** - * Result-set. - * - * Generated from protobuf field repeated .api.DeviceProfileTemplateListItem result = 2; - * @param array<\Chirpstack\Api\DeviceProfileTemplateListItem>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setResult($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Chirpstack\Api\DeviceProfileTemplateListItem::class); - $this->result = $arr; - - return $this; - } - -} - diff --git a/api/php/generated/Chirpstack/Api/ListDeviceProfilesRequest.php b/api/php/generated/Chirpstack/Api/ListDeviceProfilesRequest.php deleted file mode 100644 index f24b4513..00000000 --- a/api/php/generated/Chirpstack/Api/ListDeviceProfilesRequest.php +++ /dev/null @@ -1,167 +0,0 @@ -api.ListDeviceProfilesRequest - */ -class ListDeviceProfilesRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Max number of device-profiles to return in the result-set. - * - * Generated from protobuf field uint32 limit = 1; - */ - protected $limit = 0; - /** - * Offset in the result-set (for pagination). - * - * Generated from protobuf field uint32 offset = 2; - */ - protected $offset = 0; - /** - * If set, the given string will be used to search on name. - * - * Generated from protobuf field string search = 3; - */ - protected $search = ''; - /** - * Tenant ID to list the device-profiles for. - * - * Generated from protobuf field string tenant_id = 4; - */ - protected $tenant_id = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $limit - * Max number of device-profiles to return in the result-set. - * @type int $offset - * Offset in the result-set (for pagination). - * @type string $search - * If set, the given string will be used to search on name. - * @type string $tenant_id - * Tenant ID to list the device-profiles for. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Chirpstack\Api\DeviceProfile::initOnce(); - parent::__construct($data); - } - - /** - * Max number of device-profiles to return in the result-set. - * - * Generated from protobuf field uint32 limit = 1; - * @return int - */ - public function getLimit() - { - return $this->limit; - } - - /** - * Max number of device-profiles to return in the result-set. - * - * Generated from protobuf field uint32 limit = 1; - * @param int $var - * @return $this - */ - public function setLimit($var) - { - GPBUtil::checkUint32($var); - $this->limit = $var; - - return $this; - } - - /** - * Offset in the result-set (for pagination). - * - * Generated from protobuf field uint32 offset = 2; - * @return int - */ - public function getOffset() - { - return $this->offset; - } - - /** - * Offset in the result-set (for pagination). - * - * Generated from protobuf field uint32 offset = 2; - * @param int $var - * @return $this - */ - public function setOffset($var) - { - GPBUtil::checkUint32($var); - $this->offset = $var; - - return $this; - } - - /** - * If set, the given string will be used to search on name. - * - * Generated from protobuf field string search = 3; - * @return string - */ - public function getSearch() - { - return $this->search; - } - - /** - * If set, the given string will be used to search on name. - * - * Generated from protobuf field string search = 3; - * @param string $var - * @return $this - */ - public function setSearch($var) - { - GPBUtil::checkString($var, True); - $this->search = $var; - - return $this; - } - - /** - * Tenant ID to list the device-profiles for. - * - * Generated from protobuf field string tenant_id = 4; - * @return string - */ - public function getTenantId() - { - return $this->tenant_id; - } - - /** - * Tenant ID to list the device-profiles for. - * - * Generated from protobuf field string tenant_id = 4; - * @param string $var - * @return $this - */ - public function setTenantId($var) - { - GPBUtil::checkString($var, True); - $this->tenant_id = $var; - - return $this; - } - -} - diff --git a/api/php/generated/Chirpstack/Api/ListDeviceProfilesResponse.php b/api/php/generated/Chirpstack/Api/ListDeviceProfilesResponse.php deleted file mode 100644 index 3111a762..00000000 --- a/api/php/generated/Chirpstack/Api/ListDeviceProfilesResponse.php +++ /dev/null @@ -1,99 +0,0 @@ -api.ListDeviceProfilesResponse - */ -class ListDeviceProfilesResponse extends \Google\Protobuf\Internal\Message -{ - /** - * Total number of device-profiles. - * - * Generated from protobuf field uint32 total_count = 1; - */ - protected $total_count = 0; - /** - * Result-set. - * - * Generated from protobuf field repeated .api.DeviceProfileListItem result = 2; - */ - private $result; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $total_count - * Total number of device-profiles. - * @type array<\Chirpstack\Api\DeviceProfileListItem>|\Google\Protobuf\Internal\RepeatedField $result - * Result-set. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Chirpstack\Api\DeviceProfile::initOnce(); - parent::__construct($data); - } - - /** - * Total number of device-profiles. - * - * Generated from protobuf field uint32 total_count = 1; - * @return int - */ - public function getTotalCount() - { - return $this->total_count; - } - - /** - * Total number of device-profiles. - * - * Generated from protobuf field uint32 total_count = 1; - * @param int $var - * @return $this - */ - public function setTotalCount($var) - { - GPBUtil::checkUint32($var); - $this->total_count = $var; - - return $this; - } - - /** - * Result-set. - * - * Generated from protobuf field repeated .api.DeviceProfileListItem result = 2; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getResult() - { - return $this->result; - } - - /** - * Result-set. - * - * Generated from protobuf field repeated .api.DeviceProfileListItem result = 2; - * @param array<\Chirpstack\Api\DeviceProfileListItem>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setResult($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Chirpstack\Api\DeviceProfileListItem::class); - $this->result = $arr; - - return $this; - } - -} - diff --git a/api/php/generated/Chirpstack/Api/ListDevicesRequest.php b/api/php/generated/Chirpstack/Api/ListDevicesRequest.php deleted file mode 100644 index bdd8b508..00000000 --- a/api/php/generated/Chirpstack/Api/ListDevicesRequest.php +++ /dev/null @@ -1,201 +0,0 @@ -api.ListDevicesRequest - */ -class ListDevicesRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Max number of devices to return in the result-set. - * - * Generated from protobuf field uint32 limit = 1; - */ - protected $limit = 0; - /** - * Offset in the result-set (for pagination). - * - * Generated from protobuf field uint32 offset = 2; - */ - protected $offset = 0; - /** - * If set, the given string will be used to search on name (optional). - * - * Generated from protobuf field string search = 3; - */ - protected $search = ''; - /** - * Application ID (UUID) to filter devices on. - * - * Generated from protobuf field string application_id = 4; - */ - protected $application_id = ''; - /** - * Multicst-group ID (UUID) to filter devices on. - * - * Generated from protobuf field string multicast_group_id = 5; - */ - protected $multicast_group_id = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $limit - * Max number of devices to return in the result-set. - * @type int $offset - * Offset in the result-set (for pagination). - * @type string $search - * If set, the given string will be used to search on name (optional). - * @type string $application_id - * Application ID (UUID) to filter devices on. - * @type string $multicast_group_id - * Multicst-group ID (UUID) to filter devices on. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Chirpstack\Api\Device::initOnce(); - parent::__construct($data); - } - - /** - * Max number of devices to return in the result-set. - * - * Generated from protobuf field uint32 limit = 1; - * @return int - */ - public function getLimit() - { - return $this->limit; - } - - /** - * Max number of devices to return in the result-set. - * - * Generated from protobuf field uint32 limit = 1; - * @param int $var - * @return $this - */ - public function setLimit($var) - { - GPBUtil::checkUint32($var); - $this->limit = $var; - - return $this; - } - - /** - * Offset in the result-set (for pagination). - * - * Generated from protobuf field uint32 offset = 2; - * @return int - */ - public function getOffset() - { - return $this->offset; - } - - /** - * Offset in the result-set (for pagination). - * - * Generated from protobuf field uint32 offset = 2; - * @param int $var - * @return $this - */ - public function setOffset($var) - { - GPBUtil::checkUint32($var); - $this->offset = $var; - - return $this; - } - - /** - * If set, the given string will be used to search on name (optional). - * - * Generated from protobuf field string search = 3; - * @return string - */ - public function getSearch() - { - return $this->search; - } - - /** - * If set, the given string will be used to search on name (optional). - * - * Generated from protobuf field string search = 3; - * @param string $var - * @return $this - */ - public function setSearch($var) - { - GPBUtil::checkString($var, True); - $this->search = $var; - - return $this; - } - - /** - * Application ID (UUID) to filter devices on. - * - * Generated from protobuf field string application_id = 4; - * @return string - */ - public function getApplicationId() - { - return $this->application_id; - } - - /** - * Application ID (UUID) to filter devices on. - * - * Generated from protobuf field string application_id = 4; - * @param string $var - * @return $this - */ - public function setApplicationId($var) - { - GPBUtil::checkString($var, True); - $this->application_id = $var; - - return $this; - } - - /** - * Multicst-group ID (UUID) to filter devices on. - * - * Generated from protobuf field string multicast_group_id = 5; - * @return string - */ - public function getMulticastGroupId() - { - return $this->multicast_group_id; - } - - /** - * Multicst-group ID (UUID) to filter devices on. - * - * Generated from protobuf field string multicast_group_id = 5; - * @param string $var - * @return $this - */ - public function setMulticastGroupId($var) - { - GPBUtil::checkString($var, True); - $this->multicast_group_id = $var; - - return $this; - } - -} - diff --git a/api/php/generated/Chirpstack/Api/ListDevicesResponse.php b/api/php/generated/Chirpstack/Api/ListDevicesResponse.php deleted file mode 100644 index 8ace9122..00000000 --- a/api/php/generated/Chirpstack/Api/ListDevicesResponse.php +++ /dev/null @@ -1,99 +0,0 @@ -api.ListDevicesResponse - */ -class ListDevicesResponse extends \Google\Protobuf\Internal\Message -{ - /** - * Total number of devices. - * - * Generated from protobuf field uint32 total_count = 1; - */ - protected $total_count = 0; - /** - * Result-set. - * - * Generated from protobuf field repeated .api.DeviceListItem result = 2; - */ - private $result; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $total_count - * Total number of devices. - * @type array<\Chirpstack\Api\DeviceListItem>|\Google\Protobuf\Internal\RepeatedField $result - * Result-set. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Chirpstack\Api\Device::initOnce(); - parent::__construct($data); - } - - /** - * Total number of devices. - * - * Generated from protobuf field uint32 total_count = 1; - * @return int - */ - public function getTotalCount() - { - return $this->total_count; - } - - /** - * Total number of devices. - * - * Generated from protobuf field uint32 total_count = 1; - * @param int $var - * @return $this - */ - public function setTotalCount($var) - { - GPBUtil::checkUint32($var); - $this->total_count = $var; - - return $this; - } - - /** - * Result-set. - * - * Generated from protobuf field repeated .api.DeviceListItem result = 2; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getResult() - { - return $this->result; - } - - /** - * Result-set. - * - * Generated from protobuf field repeated .api.DeviceListItem result = 2; - * @param array<\Chirpstack\Api\DeviceListItem>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setResult($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Chirpstack\Api\DeviceListItem::class); - $this->result = $arr; - - return $this; - } - -} - diff --git a/api/php/generated/Chirpstack/Api/ListGatewaysRequest.php b/api/php/generated/Chirpstack/Api/ListGatewaysRequest.php deleted file mode 100644 index cd5c0c43..00000000 --- a/api/php/generated/Chirpstack/Api/ListGatewaysRequest.php +++ /dev/null @@ -1,205 +0,0 @@ -api.ListGatewaysRequest - */ -class ListGatewaysRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Max number of gateways to return in the result-set. - * - * Generated from protobuf field uint32 limit = 1; - */ - protected $limit = 0; - /** - * Offset in the result-set (for pagination). - * - * Generated from protobuf field uint32 offset = 2; - */ - protected $offset = 0; - /** - * If set, the given string will be used to search on name (optional). - * - * Generated from protobuf field string search = 3; - */ - protected $search = ''; - /** - * Tenant ID (UUID) to filter gateways on. - * To list all gateways as a global admin user, this field can be left blank. - * - * Generated from protobuf field string tenant_id = 4; - */ - protected $tenant_id = ''; - /** - * Multicast-group ID (UUID) to filter gateways on. - * - * Generated from protobuf field string multicast_group_id = 5; - */ - protected $multicast_group_id = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $limit - * Max number of gateways to return in the result-set. - * @type int $offset - * Offset in the result-set (for pagination). - * @type string $search - * If set, the given string will be used to search on name (optional). - * @type string $tenant_id - * Tenant ID (UUID) to filter gateways on. - * To list all gateways as a global admin user, this field can be left blank. - * @type string $multicast_group_id - * Multicast-group ID (UUID) to filter gateways on. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Chirpstack\Api\Gateway::initOnce(); - parent::__construct($data); - } - - /** - * Max number of gateways to return in the result-set. - * - * Generated from protobuf field uint32 limit = 1; - * @return int - */ - public function getLimit() - { - return $this->limit; - } - - /** - * Max number of gateways to return in the result-set. - * - * Generated from protobuf field uint32 limit = 1; - * @param int $var - * @return $this - */ - public function setLimit($var) - { - GPBUtil::checkUint32($var); - $this->limit = $var; - - return $this; - } - - /** - * Offset in the result-set (for pagination). - * - * Generated from protobuf field uint32 offset = 2; - * @return int - */ - public function getOffset() - { - return $this->offset; - } - - /** - * Offset in the result-set (for pagination). - * - * Generated from protobuf field uint32 offset = 2; - * @param int $var - * @return $this - */ - public function setOffset($var) - { - GPBUtil::checkUint32($var); - $this->offset = $var; - - return $this; - } - - /** - * If set, the given string will be used to search on name (optional). - * - * Generated from protobuf field string search = 3; - * @return string - */ - public function getSearch() - { - return $this->search; - } - - /** - * If set, the given string will be used to search on name (optional). - * - * Generated from protobuf field string search = 3; - * @param string $var - * @return $this - */ - public function setSearch($var) - { - GPBUtil::checkString($var, True); - $this->search = $var; - - return $this; - } - - /** - * Tenant ID (UUID) to filter gateways on. - * To list all gateways as a global admin user, this field can be left blank. - * - * Generated from protobuf field string tenant_id = 4; - * @return string - */ - public function getTenantId() - { - return $this->tenant_id; - } - - /** - * Tenant ID (UUID) to filter gateways on. - * To list all gateways as a global admin user, this field can be left blank. - * - * Generated from protobuf field string tenant_id = 4; - * @param string $var - * @return $this - */ - public function setTenantId($var) - { - GPBUtil::checkString($var, True); - $this->tenant_id = $var; - - return $this; - } - - /** - * Multicast-group ID (UUID) to filter gateways on. - * - * Generated from protobuf field string multicast_group_id = 5; - * @return string - */ - public function getMulticastGroupId() - { - return $this->multicast_group_id; - } - - /** - * Multicast-group ID (UUID) to filter gateways on. - * - * Generated from protobuf field string multicast_group_id = 5; - * @param string $var - * @return $this - */ - public function setMulticastGroupId($var) - { - GPBUtil::checkString($var, True); - $this->multicast_group_id = $var; - - return $this; - } - -} - diff --git a/api/php/generated/Chirpstack/Api/ListGatewaysResponse.php b/api/php/generated/Chirpstack/Api/ListGatewaysResponse.php deleted file mode 100644 index 82525752..00000000 --- a/api/php/generated/Chirpstack/Api/ListGatewaysResponse.php +++ /dev/null @@ -1,99 +0,0 @@ -api.ListGatewaysResponse - */ -class ListGatewaysResponse extends \Google\Protobuf\Internal\Message -{ - /** - * Total number of gateways. - * - * Generated from protobuf field uint32 total_count = 1; - */ - protected $total_count = 0; - /** - * Result-set. - * - * Generated from protobuf field repeated .api.GatewayListItem result = 2; - */ - private $result; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $total_count - * Total number of gateways. - * @type array<\Chirpstack\Api\GatewayListItem>|\Google\Protobuf\Internal\RepeatedField $result - * Result-set. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Chirpstack\Api\Gateway::initOnce(); - parent::__construct($data); - } - - /** - * Total number of gateways. - * - * Generated from protobuf field uint32 total_count = 1; - * @return int - */ - public function getTotalCount() - { - return $this->total_count; - } - - /** - * Total number of gateways. - * - * Generated from protobuf field uint32 total_count = 1; - * @param int $var - * @return $this - */ - public function setTotalCount($var) - { - GPBUtil::checkUint32($var); - $this->total_count = $var; - - return $this; - } - - /** - * Result-set. - * - * Generated from protobuf field repeated .api.GatewayListItem result = 2; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getResult() - { - return $this->result; - } - - /** - * Result-set. - * - * Generated from protobuf field repeated .api.GatewayListItem result = 2; - * @param array<\Chirpstack\Api\GatewayListItem>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setResult($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Chirpstack\Api\GatewayListItem::class); - $this->result = $arr; - - return $this; - } - -} - diff --git a/api/php/generated/Chirpstack/Api/ListIntegrationsRequest.php b/api/php/generated/Chirpstack/Api/ListIntegrationsRequest.php deleted file mode 100644 index eb9c2f50..00000000 --- a/api/php/generated/Chirpstack/Api/ListIntegrationsRequest.php +++ /dev/null @@ -1,65 +0,0 @@ -api.ListIntegrationsRequest - */ -class ListIntegrationsRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Application ID (UUID). - * - * Generated from protobuf field string application_id = 1; - */ - protected $application_id = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $application_id - * Application ID (UUID). - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Chirpstack\Api\Application::initOnce(); - parent::__construct($data); - } - - /** - * Application ID (UUID). - * - * Generated from protobuf field string application_id = 1; - * @return string - */ - public function getApplicationId() - { - return $this->application_id; - } - - /** - * Application ID (UUID). - * - * Generated from protobuf field string application_id = 1; - * @param string $var - * @return $this - */ - public function setApplicationId($var) - { - GPBUtil::checkString($var, True); - $this->application_id = $var; - - return $this; - } - -} - diff --git a/api/php/generated/Chirpstack/Api/ListIntegrationsResponse.php b/api/php/generated/Chirpstack/Api/ListIntegrationsResponse.php deleted file mode 100644 index b7178792..00000000 --- a/api/php/generated/Chirpstack/Api/ListIntegrationsResponse.php +++ /dev/null @@ -1,99 +0,0 @@ -api.ListIntegrationsResponse - */ -class ListIntegrationsResponse extends \Google\Protobuf\Internal\Message -{ - /** - * Total number of integrations available within the result-set. - * - * Generated from protobuf field uint32 total_count = 1; - */ - protected $total_count = 0; - /** - * Integrations within result-set. - * - * Generated from protobuf field repeated .api.IntegrationListItem result = 2; - */ - private $result; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $total_count - * Total number of integrations available within the result-set. - * @type array<\Chirpstack\Api\IntegrationListItem>|\Google\Protobuf\Internal\RepeatedField $result - * Integrations within result-set. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Chirpstack\Api\Application::initOnce(); - parent::__construct($data); - } - - /** - * Total number of integrations available within the result-set. - * - * Generated from protobuf field uint32 total_count = 1; - * @return int - */ - public function getTotalCount() - { - return $this->total_count; - } - - /** - * Total number of integrations available within the result-set. - * - * Generated from protobuf field uint32 total_count = 1; - * @param int $var - * @return $this - */ - public function setTotalCount($var) - { - GPBUtil::checkUint32($var); - $this->total_count = $var; - - return $this; - } - - /** - * Integrations within result-set. - * - * Generated from protobuf field repeated .api.IntegrationListItem result = 2; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getResult() - { - return $this->result; - } - - /** - * Integrations within result-set. - * - * Generated from protobuf field repeated .api.IntegrationListItem result = 2; - * @param array<\Chirpstack\Api\IntegrationListItem>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setResult($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Chirpstack\Api\IntegrationListItem::class); - $this->result = $arr; - - return $this; - } - -} - diff --git a/api/php/generated/Chirpstack/Api/ListMulticastGroupQueueRequest.php b/api/php/generated/Chirpstack/Api/ListMulticastGroupQueueRequest.php deleted file mode 100644 index df21b797..00000000 --- a/api/php/generated/Chirpstack/Api/ListMulticastGroupQueueRequest.php +++ /dev/null @@ -1,65 +0,0 @@ -api.ListMulticastGroupQueueRequest - */ -class ListMulticastGroupQueueRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Multicast group ID. - * - * Generated from protobuf field string multicast_group_id = 1; - */ - protected $multicast_group_id = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $multicast_group_id - * Multicast group ID. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Chirpstack\Api\MulticastGroup::initOnce(); - parent::__construct($data); - } - - /** - * Multicast group ID. - * - * Generated from protobuf field string multicast_group_id = 1; - * @return string - */ - public function getMulticastGroupId() - { - return $this->multicast_group_id; - } - - /** - * Multicast group ID. - * - * Generated from protobuf field string multicast_group_id = 1; - * @param string $var - * @return $this - */ - public function setMulticastGroupId($var) - { - GPBUtil::checkString($var, True); - $this->multicast_group_id = $var; - - return $this; - } - -} - diff --git a/api/php/generated/Chirpstack/Api/ListMulticastGroupQueueResponse.php b/api/php/generated/Chirpstack/Api/ListMulticastGroupQueueResponse.php deleted file mode 100644 index 66ee8689..00000000 --- a/api/php/generated/Chirpstack/Api/ListMulticastGroupQueueResponse.php +++ /dev/null @@ -1,58 +0,0 @@ -api.ListMulticastGroupQueueResponse - */ -class ListMulticastGroupQueueResponse extends \Google\Protobuf\Internal\Message -{ - /** - * Generated from protobuf field repeated .api.MulticastGroupQueueItem items = 1; - */ - private $items; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Chirpstack\Api\MulticastGroupQueueItem>|\Google\Protobuf\Internal\RepeatedField $items - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Chirpstack\Api\MulticastGroup::initOnce(); - parent::__construct($data); - } - - /** - * Generated from protobuf field repeated .api.MulticastGroupQueueItem items = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getItems() - { - return $this->items; - } - - /** - * Generated from protobuf field repeated .api.MulticastGroupQueueItem items = 1; - * @param array<\Chirpstack\Api\MulticastGroupQueueItem>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setItems($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Chirpstack\Api\MulticastGroupQueueItem::class); - $this->items = $arr; - - return $this; - } - -} - diff --git a/api/php/generated/Chirpstack/Api/ListMulticastGroupsRequest.php b/api/php/generated/Chirpstack/Api/ListMulticastGroupsRequest.php deleted file mode 100644 index 5bd3c9e5..00000000 --- a/api/php/generated/Chirpstack/Api/ListMulticastGroupsRequest.php +++ /dev/null @@ -1,167 +0,0 @@ -api.ListMulticastGroupsRequest - */ -class ListMulticastGroupsRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Max number of multicast groups to return in the result-set. - * - * Generated from protobuf field uint32 limit = 1; - */ - protected $limit = 0; - /** - * Offset in the result-set (for pagination). - * - * Generated from protobuf field uint32 offset = 2; - */ - protected $offset = 0; - /** - * If set, the given string will be used to search on name. - * - * Generated from protobuf field string search = 3; - */ - protected $search = ''; - /** - * Application ID to list the multicast groups for. - * - * Generated from protobuf field string application_id = 4; - */ - protected $application_id = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $limit - * Max number of multicast groups to return in the result-set. - * @type int $offset - * Offset in the result-set (for pagination). - * @type string $search - * If set, the given string will be used to search on name. - * @type string $application_id - * Application ID to list the multicast groups for. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Chirpstack\Api\MulticastGroup::initOnce(); - parent::__construct($data); - } - - /** - * Max number of multicast groups to return in the result-set. - * - * Generated from protobuf field uint32 limit = 1; - * @return int - */ - public function getLimit() - { - return $this->limit; - } - - /** - * Max number of multicast groups to return in the result-set. - * - * Generated from protobuf field uint32 limit = 1; - * @param int $var - * @return $this - */ - public function setLimit($var) - { - GPBUtil::checkUint32($var); - $this->limit = $var; - - return $this; - } - - /** - * Offset in the result-set (for pagination). - * - * Generated from protobuf field uint32 offset = 2; - * @return int - */ - public function getOffset() - { - return $this->offset; - } - - /** - * Offset in the result-set (for pagination). - * - * Generated from protobuf field uint32 offset = 2; - * @param int $var - * @return $this - */ - public function setOffset($var) - { - GPBUtil::checkUint32($var); - $this->offset = $var; - - return $this; - } - - /** - * If set, the given string will be used to search on name. - * - * Generated from protobuf field string search = 3; - * @return string - */ - public function getSearch() - { - return $this->search; - } - - /** - * If set, the given string will be used to search on name. - * - * Generated from protobuf field string search = 3; - * @param string $var - * @return $this - */ - public function setSearch($var) - { - GPBUtil::checkString($var, True); - $this->search = $var; - - return $this; - } - - /** - * Application ID to list the multicast groups for. - * - * Generated from protobuf field string application_id = 4; - * @return string - */ - public function getApplicationId() - { - return $this->application_id; - } - - /** - * Application ID to list the multicast groups for. - * - * Generated from protobuf field string application_id = 4; - * @param string $var - * @return $this - */ - public function setApplicationId($var) - { - GPBUtil::checkString($var, True); - $this->application_id = $var; - - return $this; - } - -} - diff --git a/api/php/generated/Chirpstack/Api/ListMulticastGroupsResponse.php b/api/php/generated/Chirpstack/Api/ListMulticastGroupsResponse.php deleted file mode 100644 index 47e89b43..00000000 --- a/api/php/generated/Chirpstack/Api/ListMulticastGroupsResponse.php +++ /dev/null @@ -1,99 +0,0 @@ -api.ListMulticastGroupsResponse - */ -class ListMulticastGroupsResponse extends \Google\Protobuf\Internal\Message -{ - /** - * Total number of multicast groups. - * - * Generated from protobuf field uint32 total_count = 1; - */ - protected $total_count = 0; - /** - * Result-test. - * - * Generated from protobuf field repeated .api.MulticastGroupListItem result = 2; - */ - private $result; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $total_count - * Total number of multicast groups. - * @type array<\Chirpstack\Api\MulticastGroupListItem>|\Google\Protobuf\Internal\RepeatedField $result - * Result-test. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Chirpstack\Api\MulticastGroup::initOnce(); - parent::__construct($data); - } - - /** - * Total number of multicast groups. - * - * Generated from protobuf field uint32 total_count = 1; - * @return int - */ - public function getTotalCount() - { - return $this->total_count; - } - - /** - * Total number of multicast groups. - * - * Generated from protobuf field uint32 total_count = 1; - * @param int $var - * @return $this - */ - public function setTotalCount($var) - { - GPBUtil::checkUint32($var); - $this->total_count = $var; - - return $this; - } - - /** - * Result-test. - * - * Generated from protobuf field repeated .api.MulticastGroupListItem result = 2; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getResult() - { - return $this->result; - } - - /** - * Result-test. - * - * Generated from protobuf field repeated .api.MulticastGroupListItem result = 2; - * @param array<\Chirpstack\Api\MulticastGroupListItem>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setResult($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Chirpstack\Api\MulticastGroupListItem::class); - $this->result = $arr; - - return $this; - } - -} - diff --git a/api/php/generated/Chirpstack/Api/ListRegionsResponse.php b/api/php/generated/Chirpstack/Api/ListRegionsResponse.php deleted file mode 100644 index 3967b019..00000000 --- a/api/php/generated/Chirpstack/Api/ListRegionsResponse.php +++ /dev/null @@ -1,65 +0,0 @@ -api.ListRegionsResponse - */ -class ListRegionsResponse extends \Google\Protobuf\Internal\Message -{ - /** - * Configured regions. - * - * Generated from protobuf field repeated .api.RegionListItem regions = 1; - */ - private $regions; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Chirpstack\Api\RegionListItem>|\Google\Protobuf\Internal\RepeatedField $regions - * Configured regions. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Chirpstack\Api\Internal::initOnce(); - parent::__construct($data); - } - - /** - * Configured regions. - * - * Generated from protobuf field repeated .api.RegionListItem regions = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getRegions() - { - return $this->regions; - } - - /** - * Configured regions. - * - * Generated from protobuf field repeated .api.RegionListItem regions = 1; - * @param array<\Chirpstack\Api\RegionListItem>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setRegions($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Chirpstack\Api\RegionListItem::class); - $this->regions = $arr; - - return $this; - } - -} - diff --git a/api/php/generated/Chirpstack/Api/ListRelayDevicesRequest.php b/api/php/generated/Chirpstack/Api/ListRelayDevicesRequest.php deleted file mode 100644 index f6d77a71..00000000 --- a/api/php/generated/Chirpstack/Api/ListRelayDevicesRequest.php +++ /dev/null @@ -1,133 +0,0 @@ -api.ListRelayDevicesRequest - */ -class ListRelayDevicesRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Max number of multicast groups to return in the result-set. - * - * Generated from protobuf field uint32 limit = 1; - */ - protected $limit = 0; - /** - * Offset in the result-set (for pagination). - * - * Generated from protobuf field uint32 offset = 2; - */ - protected $offset = 0; - /** - * Relay DevEUI (EUI64). - * - * Generated from protobuf field string relay_dev_eui = 3; - */ - protected $relay_dev_eui = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $limit - * Max number of multicast groups to return in the result-set. - * @type int $offset - * Offset in the result-set (for pagination). - * @type string $relay_dev_eui - * Relay DevEUI (EUI64). - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Chirpstack\Api\Relay::initOnce(); - parent::__construct($data); - } - - /** - * Max number of multicast groups to return in the result-set. - * - * Generated from protobuf field uint32 limit = 1; - * @return int - */ - public function getLimit() - { - return $this->limit; - } - - /** - * Max number of multicast groups to return in the result-set. - * - * Generated from protobuf field uint32 limit = 1; - * @param int $var - * @return $this - */ - public function setLimit($var) - { - GPBUtil::checkUint32($var); - $this->limit = $var; - - return $this; - } - - /** - * Offset in the result-set (for pagination). - * - * Generated from protobuf field uint32 offset = 2; - * @return int - */ - public function getOffset() - { - return $this->offset; - } - - /** - * Offset in the result-set (for pagination). - * - * Generated from protobuf field uint32 offset = 2; - * @param int $var - * @return $this - */ - public function setOffset($var) - { - GPBUtil::checkUint32($var); - $this->offset = $var; - - return $this; - } - - /** - * Relay DevEUI (EUI64). - * - * Generated from protobuf field string relay_dev_eui = 3; - * @return string - */ - public function getRelayDevEui() - { - return $this->relay_dev_eui; - } - - /** - * Relay DevEUI (EUI64). - * - * Generated from protobuf field string relay_dev_eui = 3; - * @param string $var - * @return $this - */ - public function setRelayDevEui($var) - { - GPBUtil::checkString($var, True); - $this->relay_dev_eui = $var; - - return $this; - } - -} - diff --git a/api/php/generated/Chirpstack/Api/ListRelayDevicesResponse.php b/api/php/generated/Chirpstack/Api/ListRelayDevicesResponse.php deleted file mode 100644 index 359db4c3..00000000 --- a/api/php/generated/Chirpstack/Api/ListRelayDevicesResponse.php +++ /dev/null @@ -1,99 +0,0 @@ -api.ListRelayDevicesResponse - */ -class ListRelayDevicesResponse extends \Google\Protobuf\Internal\Message -{ - /** - * Total number of devices. - * - * Generated from protobuf field uint32 total_count = 1; - */ - protected $total_count = 0; - /** - * Result-set. - * - * Generated from protobuf field repeated .api.RelayDeviceListItem result = 2; - */ - private $result; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $total_count - * Total number of devices. - * @type array<\Chirpstack\Api\RelayDeviceListItem>|\Google\Protobuf\Internal\RepeatedField $result - * Result-set. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Chirpstack\Api\Relay::initOnce(); - parent::__construct($data); - } - - /** - * Total number of devices. - * - * Generated from protobuf field uint32 total_count = 1; - * @return int - */ - public function getTotalCount() - { - return $this->total_count; - } - - /** - * Total number of devices. - * - * Generated from protobuf field uint32 total_count = 1; - * @param int $var - * @return $this - */ - public function setTotalCount($var) - { - GPBUtil::checkUint32($var); - $this->total_count = $var; - - return $this; - } - - /** - * Result-set. - * - * Generated from protobuf field repeated .api.RelayDeviceListItem result = 2; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getResult() - { - return $this->result; - } - - /** - * Result-set. - * - * Generated from protobuf field repeated .api.RelayDeviceListItem result = 2; - * @param array<\Chirpstack\Api\RelayDeviceListItem>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setResult($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Chirpstack\Api\RelayDeviceListItem::class); - $this->result = $arr; - - return $this; - } - -} - diff --git a/api/php/generated/Chirpstack/Api/ListRelayGatewaysRequest.php b/api/php/generated/Chirpstack/Api/ListRelayGatewaysRequest.php deleted file mode 100644 index 0dd28205..00000000 --- a/api/php/generated/Chirpstack/Api/ListRelayGatewaysRequest.php +++ /dev/null @@ -1,137 +0,0 @@ -api.ListRelayGatewaysRequest - */ -class ListRelayGatewaysRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Max number of relay-gateways to return in the result-set. - * - * Generated from protobuf field uint32 limit = 1; - */ - protected $limit = 0; - /** - * Offset in the result-set (for pagination). - * - * Generated from protobuf field uint32 offset = 2; - */ - protected $offset = 0; - /** - * Tenant ID (UUID) to filter relay-gateways on. - * To list all relay-gateways as a global admin user, this field can be left blank. - * - * Generated from protobuf field string tenant_id = 3; - */ - protected $tenant_id = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $limit - * Max number of relay-gateways to return in the result-set. - * @type int $offset - * Offset in the result-set (for pagination). - * @type string $tenant_id - * Tenant ID (UUID) to filter relay-gateways on. - * To list all relay-gateways as a global admin user, this field can be left blank. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Chirpstack\Api\Gateway::initOnce(); - parent::__construct($data); - } - - /** - * Max number of relay-gateways to return in the result-set. - * - * Generated from protobuf field uint32 limit = 1; - * @return int - */ - public function getLimit() - { - return $this->limit; - } - - /** - * Max number of relay-gateways to return in the result-set. - * - * Generated from protobuf field uint32 limit = 1; - * @param int $var - * @return $this - */ - public function setLimit($var) - { - GPBUtil::checkUint32($var); - $this->limit = $var; - - return $this; - } - - /** - * Offset in the result-set (for pagination). - * - * Generated from protobuf field uint32 offset = 2; - * @return int - */ - public function getOffset() - { - return $this->offset; - } - - /** - * Offset in the result-set (for pagination). - * - * Generated from protobuf field uint32 offset = 2; - * @param int $var - * @return $this - */ - public function setOffset($var) - { - GPBUtil::checkUint32($var); - $this->offset = $var; - - return $this; - } - - /** - * Tenant ID (UUID) to filter relay-gateways on. - * To list all relay-gateways as a global admin user, this field can be left blank. - * - * Generated from protobuf field string tenant_id = 3; - * @return string - */ - public function getTenantId() - { - return $this->tenant_id; - } - - /** - * Tenant ID (UUID) to filter relay-gateways on. - * To list all relay-gateways as a global admin user, this field can be left blank. - * - * Generated from protobuf field string tenant_id = 3; - * @param string $var - * @return $this - */ - public function setTenantId($var) - { - GPBUtil::checkString($var, True); - $this->tenant_id = $var; - - return $this; - } - -} - diff --git a/api/php/generated/Chirpstack/Api/ListRelayGatewaysResponse.php b/api/php/generated/Chirpstack/Api/ListRelayGatewaysResponse.php deleted file mode 100644 index e2a6a3a3..00000000 --- a/api/php/generated/Chirpstack/Api/ListRelayGatewaysResponse.php +++ /dev/null @@ -1,99 +0,0 @@ -api.ListRelayGatewaysResponse - */ -class ListRelayGatewaysResponse extends \Google\Protobuf\Internal\Message -{ - /** - * Total number of relay-gateways. - * - * Generated from protobuf field uint32 total_count = 1; - */ - protected $total_count = 0; - /** - * Result-set. - * - * Generated from protobuf field repeated .api.RelayGatewayListItem result = 2; - */ - private $result; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $total_count - * Total number of relay-gateways. - * @type array<\Chirpstack\Api\RelayGatewayListItem>|\Google\Protobuf\Internal\RepeatedField $result - * Result-set. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Chirpstack\Api\Gateway::initOnce(); - parent::__construct($data); - } - - /** - * Total number of relay-gateways. - * - * Generated from protobuf field uint32 total_count = 1; - * @return int - */ - public function getTotalCount() - { - return $this->total_count; - } - - /** - * Total number of relay-gateways. - * - * Generated from protobuf field uint32 total_count = 1; - * @param int $var - * @return $this - */ - public function setTotalCount($var) - { - GPBUtil::checkUint32($var); - $this->total_count = $var; - - return $this; - } - - /** - * Result-set. - * - * Generated from protobuf field repeated .api.RelayGatewayListItem result = 2; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getResult() - { - return $this->result; - } - - /** - * Result-set. - * - * Generated from protobuf field repeated .api.RelayGatewayListItem result = 2; - * @param array<\Chirpstack\Api\RelayGatewayListItem>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setResult($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Chirpstack\Api\RelayGatewayListItem::class); - $this->result = $arr; - - return $this; - } - -} - diff --git a/api/php/generated/Chirpstack/Api/ListRelaysRequest.php b/api/php/generated/Chirpstack/Api/ListRelaysRequest.php deleted file mode 100644 index 0bf27913..00000000 --- a/api/php/generated/Chirpstack/Api/ListRelaysRequest.php +++ /dev/null @@ -1,133 +0,0 @@ -api.ListRelaysRequest - */ -class ListRelaysRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Max number of devices to return in the result-set. - * - * Generated from protobuf field uint32 limit = 1; - */ - protected $limit = 0; - /** - * Offset in the result-set (for pagination). - * - * Generated from protobuf field uint32 offset = 2; - */ - protected $offset = 0; - /** - * Application ID (UUID). - * - * Generated from protobuf field string application_id = 3; - */ - protected $application_id = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $limit - * Max number of devices to return in the result-set. - * @type int $offset - * Offset in the result-set (for pagination). - * @type string $application_id - * Application ID (UUID). - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Chirpstack\Api\Relay::initOnce(); - parent::__construct($data); - } - - /** - * Max number of devices to return in the result-set. - * - * Generated from protobuf field uint32 limit = 1; - * @return int - */ - public function getLimit() - { - return $this->limit; - } - - /** - * Max number of devices to return in the result-set. - * - * Generated from protobuf field uint32 limit = 1; - * @param int $var - * @return $this - */ - public function setLimit($var) - { - GPBUtil::checkUint32($var); - $this->limit = $var; - - return $this; - } - - /** - * Offset in the result-set (for pagination). - * - * Generated from protobuf field uint32 offset = 2; - * @return int - */ - public function getOffset() - { - return $this->offset; - } - - /** - * Offset in the result-set (for pagination). - * - * Generated from protobuf field uint32 offset = 2; - * @param int $var - * @return $this - */ - public function setOffset($var) - { - GPBUtil::checkUint32($var); - $this->offset = $var; - - return $this; - } - - /** - * Application ID (UUID). - * - * Generated from protobuf field string application_id = 3; - * @return string - */ - public function getApplicationId() - { - return $this->application_id; - } - - /** - * Application ID (UUID). - * - * Generated from protobuf field string application_id = 3; - * @param string $var - * @return $this - */ - public function setApplicationId($var) - { - GPBUtil::checkString($var, True); - $this->application_id = $var; - - return $this; - } - -} - diff --git a/api/php/generated/Chirpstack/Api/ListRelaysResponse.php b/api/php/generated/Chirpstack/Api/ListRelaysResponse.php deleted file mode 100644 index 5b103044..00000000 --- a/api/php/generated/Chirpstack/Api/ListRelaysResponse.php +++ /dev/null @@ -1,99 +0,0 @@ -api.ListRelaysResponse - */ -class ListRelaysResponse extends \Google\Protobuf\Internal\Message -{ - /** - * Total number of relays. - * - * Generated from protobuf field uint32 total_count = 1; - */ - protected $total_count = 0; - /** - * Result-set. - * - * Generated from protobuf field repeated .api.RelayListItem result = 2; - */ - private $result; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $total_count - * Total number of relays. - * @type array<\Chirpstack\Api\RelayListItem>|\Google\Protobuf\Internal\RepeatedField $result - * Result-set. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Chirpstack\Api\Relay::initOnce(); - parent::__construct($data); - } - - /** - * Total number of relays. - * - * Generated from protobuf field uint32 total_count = 1; - * @return int - */ - public function getTotalCount() - { - return $this->total_count; - } - - /** - * Total number of relays. - * - * Generated from protobuf field uint32 total_count = 1; - * @param int $var - * @return $this - */ - public function setTotalCount($var) - { - GPBUtil::checkUint32($var); - $this->total_count = $var; - - return $this; - } - - /** - * Result-set. - * - * Generated from protobuf field repeated .api.RelayListItem result = 2; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getResult() - { - return $this->result; - } - - /** - * Result-set. - * - * Generated from protobuf field repeated .api.RelayListItem result = 2; - * @param array<\Chirpstack\Api\RelayListItem>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setResult($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Chirpstack\Api\RelayListItem::class); - $this->result = $arr; - - return $this; - } - -} - diff --git a/api/php/generated/Chirpstack/Api/ListTenantUsersRequest.php b/api/php/generated/Chirpstack/Api/ListTenantUsersRequest.php deleted file mode 100644 index a2cf71d9..00000000 --- a/api/php/generated/Chirpstack/Api/ListTenantUsersRequest.php +++ /dev/null @@ -1,133 +0,0 @@ -api.ListTenantUsersRequest - */ -class ListTenantUsersRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Tenant ID (UUID). - * - * Generated from protobuf field string tenant_id = 1; - */ - protected $tenant_id = ''; - /** - * Max number of tenants to return in the result-set. - * - * Generated from protobuf field uint32 limit = 2; - */ - protected $limit = 0; - /** - * Offset in the result-set (for pagination). - * - * Generated from protobuf field uint32 offset = 3; - */ - protected $offset = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $tenant_id - * Tenant ID (UUID). - * @type int $limit - * Max number of tenants to return in the result-set. - * @type int $offset - * Offset in the result-set (for pagination). - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Chirpstack\Api\Tenant::initOnce(); - parent::__construct($data); - } - - /** - * Tenant ID (UUID). - * - * Generated from protobuf field string tenant_id = 1; - * @return string - */ - public function getTenantId() - { - return $this->tenant_id; - } - - /** - * Tenant ID (UUID). - * - * Generated from protobuf field string tenant_id = 1; - * @param string $var - * @return $this - */ - public function setTenantId($var) - { - GPBUtil::checkString($var, True); - $this->tenant_id = $var; - - return $this; - } - - /** - * Max number of tenants to return in the result-set. - * - * Generated from protobuf field uint32 limit = 2; - * @return int - */ - public function getLimit() - { - return $this->limit; - } - - /** - * Max number of tenants to return in the result-set. - * - * Generated from protobuf field uint32 limit = 2; - * @param int $var - * @return $this - */ - public function setLimit($var) - { - GPBUtil::checkUint32($var); - $this->limit = $var; - - return $this; - } - - /** - * Offset in the result-set (for pagination). - * - * Generated from protobuf field uint32 offset = 3; - * @return int - */ - public function getOffset() - { - return $this->offset; - } - - /** - * Offset in the result-set (for pagination). - * - * Generated from protobuf field uint32 offset = 3; - * @param int $var - * @return $this - */ - public function setOffset($var) - { - GPBUtil::checkUint32($var); - $this->offset = $var; - - return $this; - } - -} - diff --git a/api/php/generated/Chirpstack/Api/ListTenantUsersResponse.php b/api/php/generated/Chirpstack/Api/ListTenantUsersResponse.php deleted file mode 100644 index 3349af14..00000000 --- a/api/php/generated/Chirpstack/Api/ListTenantUsersResponse.php +++ /dev/null @@ -1,99 +0,0 @@ -api.ListTenantUsersResponse - */ -class ListTenantUsersResponse extends \Google\Protobuf\Internal\Message -{ - /** - * Total number of tenants. - * - * Generated from protobuf field uint32 total_count = 1; - */ - protected $total_count = 0; - /** - * Result-set. - * - * Generated from protobuf field repeated .api.TenantUserListItem result = 2; - */ - private $result; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $total_count - * Total number of tenants. - * @type array<\Chirpstack\Api\TenantUserListItem>|\Google\Protobuf\Internal\RepeatedField $result - * Result-set. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Chirpstack\Api\Tenant::initOnce(); - parent::__construct($data); - } - - /** - * Total number of tenants. - * - * Generated from protobuf field uint32 total_count = 1; - * @return int - */ - public function getTotalCount() - { - return $this->total_count; - } - - /** - * Total number of tenants. - * - * Generated from protobuf field uint32 total_count = 1; - * @param int $var - * @return $this - */ - public function setTotalCount($var) - { - GPBUtil::checkUint32($var); - $this->total_count = $var; - - return $this; - } - - /** - * Result-set. - * - * Generated from protobuf field repeated .api.TenantUserListItem result = 2; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getResult() - { - return $this->result; - } - - /** - * Result-set. - * - * Generated from protobuf field repeated .api.TenantUserListItem result = 2; - * @param array<\Chirpstack\Api\TenantUserListItem>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setResult($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Chirpstack\Api\TenantUserListItem::class); - $this->result = $arr; - - return $this; - } - -} - diff --git a/api/php/generated/Chirpstack/Api/ListTenantsRequest.php b/api/php/generated/Chirpstack/Api/ListTenantsRequest.php deleted file mode 100644 index 2b095802..00000000 --- a/api/php/generated/Chirpstack/Api/ListTenantsRequest.php +++ /dev/null @@ -1,171 +0,0 @@ -api.ListTenantsRequest - */ -class ListTenantsRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Max number of tenants to return in the result-set. - * - * Generated from protobuf field uint32 limit = 1; - */ - protected $limit = 0; - /** - * Offset in the result-set (for pagination). - * - * Generated from protobuf field uint32 offset = 2; - */ - protected $offset = 0; - /** - * If set, the given string will be used to search on name. - * - * Generated from protobuf field string search = 3; - */ - protected $search = ''; - /** - * If set, filters the result set to the tenants of the user. - * Only global API keys are able to filter by this field. - * - * Generated from protobuf field string user_id = 4; - */ - protected $user_id = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $limit - * Max number of tenants to return in the result-set. - * @type int $offset - * Offset in the result-set (for pagination). - * @type string $search - * If set, the given string will be used to search on name. - * @type string $user_id - * If set, filters the result set to the tenants of the user. - * Only global API keys are able to filter by this field. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Chirpstack\Api\Tenant::initOnce(); - parent::__construct($data); - } - - /** - * Max number of tenants to return in the result-set. - * - * Generated from protobuf field uint32 limit = 1; - * @return int - */ - public function getLimit() - { - return $this->limit; - } - - /** - * Max number of tenants to return in the result-set. - * - * Generated from protobuf field uint32 limit = 1; - * @param int $var - * @return $this - */ - public function setLimit($var) - { - GPBUtil::checkUint32($var); - $this->limit = $var; - - return $this; - } - - /** - * Offset in the result-set (for pagination). - * - * Generated from protobuf field uint32 offset = 2; - * @return int - */ - public function getOffset() - { - return $this->offset; - } - - /** - * Offset in the result-set (for pagination). - * - * Generated from protobuf field uint32 offset = 2; - * @param int $var - * @return $this - */ - public function setOffset($var) - { - GPBUtil::checkUint32($var); - $this->offset = $var; - - return $this; - } - - /** - * If set, the given string will be used to search on name. - * - * Generated from protobuf field string search = 3; - * @return string - */ - public function getSearch() - { - return $this->search; - } - - /** - * If set, the given string will be used to search on name. - * - * Generated from protobuf field string search = 3; - * @param string $var - * @return $this - */ - public function setSearch($var) - { - GPBUtil::checkString($var, True); - $this->search = $var; - - return $this; - } - - /** - * If set, filters the result set to the tenants of the user. - * Only global API keys are able to filter by this field. - * - * Generated from protobuf field string user_id = 4; - * @return string - */ - public function getUserId() - { - return $this->user_id; - } - - /** - * If set, filters the result set to the tenants of the user. - * Only global API keys are able to filter by this field. - * - * Generated from protobuf field string user_id = 4; - * @param string $var - * @return $this - */ - public function setUserId($var) - { - GPBUtil::checkString($var, True); - $this->user_id = $var; - - return $this; - } - -} - diff --git a/api/php/generated/Chirpstack/Api/ListTenantsResponse.php b/api/php/generated/Chirpstack/Api/ListTenantsResponse.php deleted file mode 100644 index 1d377300..00000000 --- a/api/php/generated/Chirpstack/Api/ListTenantsResponse.php +++ /dev/null @@ -1,99 +0,0 @@ -api.ListTenantsResponse - */ -class ListTenantsResponse extends \Google\Protobuf\Internal\Message -{ - /** - * Total number of tenants. - * - * Generated from protobuf field uint32 total_count = 1; - */ - protected $total_count = 0; - /** - * Result-set. - * - * Generated from protobuf field repeated .api.TenantListItem result = 2; - */ - private $result; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $total_count - * Total number of tenants. - * @type array<\Chirpstack\Api\TenantListItem>|\Google\Protobuf\Internal\RepeatedField $result - * Result-set. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Chirpstack\Api\Tenant::initOnce(); - parent::__construct($data); - } - - /** - * Total number of tenants. - * - * Generated from protobuf field uint32 total_count = 1; - * @return int - */ - public function getTotalCount() - { - return $this->total_count; - } - - /** - * Total number of tenants. - * - * Generated from protobuf field uint32 total_count = 1; - * @param int $var - * @return $this - */ - public function setTotalCount($var) - { - GPBUtil::checkUint32($var); - $this->total_count = $var; - - return $this; - } - - /** - * Result-set. - * - * Generated from protobuf field repeated .api.TenantListItem result = 2; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getResult() - { - return $this->result; - } - - /** - * Result-set. - * - * Generated from protobuf field repeated .api.TenantListItem result = 2; - * @param array<\Chirpstack\Api\TenantListItem>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setResult($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Chirpstack\Api\TenantListItem::class); - $this->result = $arr; - - return $this; - } - -} - diff --git a/api/php/generated/Chirpstack/Api/ListUsersRequest.php b/api/php/generated/Chirpstack/Api/ListUsersRequest.php deleted file mode 100644 index b051ea57..00000000 --- a/api/php/generated/Chirpstack/Api/ListUsersRequest.php +++ /dev/null @@ -1,99 +0,0 @@ -api.ListUsersRequest - */ -class ListUsersRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Max number of tenants to return in the result-set. - * - * Generated from protobuf field uint32 limit = 1; - */ - protected $limit = 0; - /** - * Offset in the result-set (for pagination). - * - * Generated from protobuf field uint32 offset = 2; - */ - protected $offset = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $limit - * Max number of tenants to return in the result-set. - * @type int $offset - * Offset in the result-set (for pagination). - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Chirpstack\Api\User::initOnce(); - parent::__construct($data); - } - - /** - * Max number of tenants to return in the result-set. - * - * Generated from protobuf field uint32 limit = 1; - * @return int - */ - public function getLimit() - { - return $this->limit; - } - - /** - * Max number of tenants to return in the result-set. - * - * Generated from protobuf field uint32 limit = 1; - * @param int $var - * @return $this - */ - public function setLimit($var) - { - GPBUtil::checkUint32($var); - $this->limit = $var; - - return $this; - } - - /** - * Offset in the result-set (for pagination). - * - * Generated from protobuf field uint32 offset = 2; - * @return int - */ - public function getOffset() - { - return $this->offset; - } - - /** - * Offset in the result-set (for pagination). - * - * Generated from protobuf field uint32 offset = 2; - * @param int $var - * @return $this - */ - public function setOffset($var) - { - GPBUtil::checkUint32($var); - $this->offset = $var; - - return $this; - } - -} - diff --git a/api/php/generated/Chirpstack/Api/ListUsersResponse.php b/api/php/generated/Chirpstack/Api/ListUsersResponse.php deleted file mode 100644 index c84604c5..00000000 --- a/api/php/generated/Chirpstack/Api/ListUsersResponse.php +++ /dev/null @@ -1,99 +0,0 @@ -api.ListUsersResponse - */ -class ListUsersResponse extends \Google\Protobuf\Internal\Message -{ - /** - * Total number of users. - * - * Generated from protobuf field uint32 total_count = 1; - */ - protected $total_count = 0; - /** - * Result-set. - * - * Generated from protobuf field repeated .api.UserListItem result = 2; - */ - private $result; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $total_count - * Total number of users. - * @type array<\Chirpstack\Api\UserListItem>|\Google\Protobuf\Internal\RepeatedField $result - * Result-set. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Chirpstack\Api\User::initOnce(); - parent::__construct($data); - } - - /** - * Total number of users. - * - * Generated from protobuf field uint32 total_count = 1; - * @return int - */ - public function getTotalCount() - { - return $this->total_count; - } - - /** - * Total number of users. - * - * Generated from protobuf field uint32 total_count = 1; - * @param int $var - * @return $this - */ - public function setTotalCount($var) - { - GPBUtil::checkUint32($var); - $this->total_count = $var; - - return $this; - } - - /** - * Result-set. - * - * Generated from protobuf field repeated .api.UserListItem result = 2; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getResult() - { - return $this->result; - } - - /** - * Result-set. - * - * Generated from protobuf field repeated .api.UserListItem result = 2; - * @param array<\Chirpstack\Api\UserListItem>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setResult($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Chirpstack\Api\UserListItem::class); - $this->result = $arr; - - return $this; - } - -} - diff --git a/api/php/generated/Chirpstack/Api/LogItem.php b/api/php/generated/Chirpstack/Api/LogItem.php deleted file mode 100644 index ca7801c3..00000000 --- a/api/php/generated/Chirpstack/Api/LogItem.php +++ /dev/null @@ -1,211 +0,0 @@ -api.LogItem - */ -class LogItem extends \Google\Protobuf\Internal\Message -{ - /** - * ID. - * - * Generated from protobuf field string id = 1; - */ - protected $id = ''; - /** - * Timestamp. - * - * Generated from protobuf field .google.protobuf.Timestamp time = 2; - */ - protected $time = null; - /** - * Message. - * - * Generated from protobuf field string description = 3; - */ - protected $description = ''; - /** - * Body. - * - * Generated from protobuf field string body = 4; - */ - protected $body = ''; - /** - * Properties. - * - * Generated from protobuf field map properties = 5; - */ - private $properties; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $id - * ID. - * @type \Google\Protobuf\Timestamp $time - * Timestamp. - * @type string $description - * Message. - * @type string $body - * Body. - * @type array|\Google\Protobuf\Internal\MapField $properties - * Properties. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Chirpstack\Api\Internal::initOnce(); - parent::__construct($data); - } - - /** - * ID. - * - * Generated from protobuf field string id = 1; - * @return string - */ - public function getId() - { - return $this->id; - } - - /** - * ID. - * - * Generated from protobuf field string id = 1; - * @param string $var - * @return $this - */ - public function setId($var) - { - GPBUtil::checkString($var, True); - $this->id = $var; - - return $this; - } - - /** - * Timestamp. - * - * Generated from protobuf field .google.protobuf.Timestamp time = 2; - * @return \Google\Protobuf\Timestamp|null - */ - public function getTime() - { - return $this->time; - } - - public function hasTime() - { - return isset($this->time); - } - - public function clearTime() - { - unset($this->time); - } - - /** - * Timestamp. - * - * Generated from protobuf field .google.protobuf.Timestamp time = 2; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->time = $var; - - return $this; - } - - /** - * Message. - * - * Generated from protobuf field string description = 3; - * @return string - */ - public function getDescription() - { - return $this->description; - } - - /** - * Message. - * - * Generated from protobuf field string description = 3; - * @param string $var - * @return $this - */ - public function setDescription($var) - { - GPBUtil::checkString($var, True); - $this->description = $var; - - return $this; - } - - /** - * Body. - * - * Generated from protobuf field string body = 4; - * @return string - */ - public function getBody() - { - return $this->body; - } - - /** - * Body. - * - * Generated from protobuf field string body = 4; - * @param string $var - * @return $this - */ - public function setBody($var) - { - GPBUtil::checkString($var, True); - $this->body = $var; - - return $this; - } - - /** - * Properties. - * - * Generated from protobuf field map properties = 5; - * @return \Google\Protobuf\Internal\MapField - */ - public function getProperties() - { - return $this->properties; - } - - /** - * Properties. - * - * Generated from protobuf field map properties = 5; - * @param array|\Google\Protobuf\Internal\MapField $var - * @return $this - */ - public function setProperties($var) - { - $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); - $this->properties = $arr; - - return $this; - } - -} - diff --git a/api/php/generated/Chirpstack/Api/LoginRequest.php b/api/php/generated/Chirpstack/Api/LoginRequest.php deleted file mode 100644 index f67ef619..00000000 --- a/api/php/generated/Chirpstack/Api/LoginRequest.php +++ /dev/null @@ -1,99 +0,0 @@ -api.LoginRequest - */ -class LoginRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Email of the user. - * - * Generated from protobuf field string email = 1; - */ - protected $email = ''; - /** - * Password of the user. - * - * Generated from protobuf field string password = 2; - */ - protected $password = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $email - * Email of the user. - * @type string $password - * Password of the user. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Chirpstack\Api\Internal::initOnce(); - parent::__construct($data); - } - - /** - * Email of the user. - * - * Generated from protobuf field string email = 1; - * @return string - */ - public function getEmail() - { - return $this->email; - } - - /** - * Email of the user. - * - * Generated from protobuf field string email = 1; - * @param string $var - * @return $this - */ - public function setEmail($var) - { - GPBUtil::checkString($var, True); - $this->email = $var; - - return $this; - } - - /** - * Password of the user. - * - * Generated from protobuf field string password = 2; - * @return string - */ - public function getPassword() - { - return $this->password; - } - - /** - * Password of the user. - * - * Generated from protobuf field string password = 2; - * @param string $var - * @return $this - */ - public function setPassword($var) - { - GPBUtil::checkString($var, True); - $this->password = $var; - - return $this; - } - -} - diff --git a/api/php/generated/Chirpstack/Api/LoginResponse.php b/api/php/generated/Chirpstack/Api/LoginResponse.php deleted file mode 100644 index cc358d1d..00000000 --- a/api/php/generated/Chirpstack/Api/LoginResponse.php +++ /dev/null @@ -1,65 +0,0 @@ -api.LoginResponse - */ -class LoginResponse extends \Google\Protobuf\Internal\Message -{ - /** - * The JWT tag to be used to access chirpstack-application-server interfaces. - * - * Generated from protobuf field string jwt = 1; - */ - protected $jwt = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $jwt - * The JWT tag to be used to access chirpstack-application-server interfaces. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Chirpstack\Api\Internal::initOnce(); - parent::__construct($data); - } - - /** - * The JWT tag to be used to access chirpstack-application-server interfaces. - * - * Generated from protobuf field string jwt = 1; - * @return string - */ - public function getJwt() - { - return $this->jwt; - } - - /** - * The JWT tag to be used to access chirpstack-application-server interfaces. - * - * Generated from protobuf field string jwt = 1; - * @param string $var - * @return $this - */ - public function setJwt($var) - { - GPBUtil::checkString($var, True); - $this->jwt = $var; - - return $this; - } - -} - diff --git a/api/php/generated/Chirpstack/Api/LoraCloudIntegration.php b/api/php/generated/Chirpstack/Api/LoraCloudIntegration.php deleted file mode 100644 index f0a81e87..00000000 --- a/api/php/generated/Chirpstack/Api/LoraCloudIntegration.php +++ /dev/null @@ -1,109 +0,0 @@ -api.LoraCloudIntegration - */ -class LoraCloudIntegration extends \Google\Protobuf\Internal\Message -{ - /** - * Application ID (UUID). - * - * Generated from protobuf field string application_id = 1; - */ - protected $application_id = ''; - /** - * Modem & Geolocation Services configuration. - * - * Generated from protobuf field .api.LoraCloudModemGeolocationServices modem_geolocation_services = 2; - */ - protected $modem_geolocation_services = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $application_id - * Application ID (UUID). - * @type \Chirpstack\Api\LoraCloudModemGeolocationServices $modem_geolocation_services - * Modem & Geolocation Services configuration. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Chirpstack\Api\Application::initOnce(); - parent::__construct($data); - } - - /** - * Application ID (UUID). - * - * Generated from protobuf field string application_id = 1; - * @return string - */ - public function getApplicationId() - { - return $this->application_id; - } - - /** - * Application ID (UUID). - * - * Generated from protobuf field string application_id = 1; - * @param string $var - * @return $this - */ - public function setApplicationId($var) - { - GPBUtil::checkString($var, True); - $this->application_id = $var; - - return $this; - } - - /** - * Modem & Geolocation Services configuration. - * - * Generated from protobuf field .api.LoraCloudModemGeolocationServices modem_geolocation_services = 2; - * @return \Chirpstack\Api\LoraCloudModemGeolocationServices|null - */ - public function getModemGeolocationServices() - { - return $this->modem_geolocation_services; - } - - public function hasModemGeolocationServices() - { - return isset($this->modem_geolocation_services); - } - - public function clearModemGeolocationServices() - { - unset($this->modem_geolocation_services); - } - - /** - * Modem & Geolocation Services configuration. - * - * Generated from protobuf field .api.LoraCloudModemGeolocationServices modem_geolocation_services = 2; - * @param \Chirpstack\Api\LoraCloudModemGeolocationServices $var - * @return $this - */ - public function setModemGeolocationServices($var) - { - GPBUtil::checkMessage($var, \Chirpstack\Api\LoraCloudModemGeolocationServices::class); - $this->modem_geolocation_services = $var; - - return $this; - } - -} - diff --git a/api/php/generated/Chirpstack/Api/LoraCloudModemGeolocationServices.php b/api/php/generated/Chirpstack/Api/LoraCloudModemGeolocationServices.php deleted file mode 100644 index 333fc7e6..00000000 --- a/api/php/generated/Chirpstack/Api/LoraCloudModemGeolocationServices.php +++ /dev/null @@ -1,637 +0,0 @@ -api.LoraCloudModemGeolocationServices - */ -class LoraCloudModemGeolocationServices extends \Google\Protobuf\Internal\Message -{ - /** - * API token. - * - * Generated from protobuf field string token = 1; - */ - protected $token = ''; - /** - * Device implements Modem / Modem-E stack. - * - * Generated from protobuf field bool modem_enabled = 2; - */ - protected $modem_enabled = false; - /** - * Forward FPorts. - * Forward uplink messages matching the given FPorts to the MGS. - * - * Generated from protobuf field repeated uint32 forward_f_ports = 16; - */ - private $forward_f_ports; - /** - * Use rx time for GNSS resolving. - * In case this is set to true, the MGS resolver will use the RX time of the - * network instead of the timestamp included in the LR1110 payload. - * - * Generated from protobuf field bool gnss_use_rx_time = 5; - */ - protected $gnss_use_rx_time = false; - /** - * Use gateway location for GNSS resolving. - * In the case this is set to true, ChirpStack will provide the location of - * one of the gateways to the MGS resolver to aid the resolving process. - * Disable this in case the gateway location is not accurate / incorrectly - * configured as an incorrect location will cause the resolver to return an - * error. - * - * Generated from protobuf field bool gnss_use_gateway_location = 17; - */ - protected $gnss_use_gateway_location = false; - /** - * Parse TLV records. - * If enabled, stream records (expected in TLV format) are scanned for GNSS - * data (0x06 or 0x07). If found, ChirpStack will make an additional - * geolocation call to the MGS API for resolving the location of the detected - * payload. - * - * Generated from protobuf field bool parse_tlv = 6; - */ - protected $parse_tlv = false; - /** - * Geolocation buffer TTL (in seconds). - * If > 0, uplink RX meta-data will be stored in a buffer so that - * the meta-data of multiple uplinks can be used for geolocation. - * - * Generated from protobuf field uint32 geolocation_buffer_ttl = 7; - */ - protected $geolocation_buffer_ttl = 0; - /** - * Geolocation minimum buffer size. - * If > 0, geolocation will only be performed when the buffer has - * at least the given size. - * - * Generated from protobuf field uint32 geolocation_min_buffer_size = 8; - */ - protected $geolocation_min_buffer_size = 0; - /** - * TDOA based geolocation is enabled. - * - * Generated from protobuf field bool geolocation_tdoa = 9; - */ - protected $geolocation_tdoa = false; - /** - * RSSI based geolocation is enabled. - * - * Generated from protobuf field bool geolocation_rssi = 10; - */ - protected $geolocation_rssi = false; - /** - * GNSS based geolocation is enabled (LR1110). - * - * Generated from protobuf field bool geolocation_gnss = 11; - */ - protected $geolocation_gnss = false; - /** - * GNSS payload field. - * This holds the name of the field in the decoded payload object which - * contains the GNSS payload bytes (as HEX string). - * - * Generated from protobuf field string geolocation_gnss_payload_field = 12; - */ - protected $geolocation_gnss_payload_field = ''; - /** - * GNSS use RX time. - * In case this is set to true, the resolver will use the RX time of the - * network instead of the timestamp included in the LR1110 payload. - * - * Generated from protobuf field bool geolocation_gnss_use_rx_time = 13; - */ - protected $geolocation_gnss_use_rx_time = false; - /** - * Wifi based geolocation is enabled. - * - * Generated from protobuf field bool geolocation_wifi = 14; - */ - protected $geolocation_wifi = false; - /** - * Wifi payload field. - * This holds the name of the field in the decoded payload object which - * contains an array of objects with the following fields: - * * macAddress - e.g. 01:23:45:67:89:ab - * * signalStrength - e.g. -51 (optional) - * - * Generated from protobuf field string geolocation_wifi_payload_field = 15; - */ - protected $geolocation_wifi_payload_field = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $token - * API token. - * @type bool $modem_enabled - * Device implements Modem / Modem-E stack. - * @type array|\Google\Protobuf\Internal\RepeatedField $forward_f_ports - * Forward FPorts. - * Forward uplink messages matching the given FPorts to the MGS. - * @type bool $gnss_use_rx_time - * Use rx time for GNSS resolving. - * In case this is set to true, the MGS resolver will use the RX time of the - * network instead of the timestamp included in the LR1110 payload. - * @type bool $gnss_use_gateway_location - * Use gateway location for GNSS resolving. - * In the case this is set to true, ChirpStack will provide the location of - * one of the gateways to the MGS resolver to aid the resolving process. - * Disable this in case the gateway location is not accurate / incorrectly - * configured as an incorrect location will cause the resolver to return an - * error. - * @type bool $parse_tlv - * Parse TLV records. - * If enabled, stream records (expected in TLV format) are scanned for GNSS - * data (0x06 or 0x07). If found, ChirpStack will make an additional - * geolocation call to the MGS API for resolving the location of the detected - * payload. - * @type int $geolocation_buffer_ttl - * Geolocation buffer TTL (in seconds). - * If > 0, uplink RX meta-data will be stored in a buffer so that - * the meta-data of multiple uplinks can be used for geolocation. - * @type int $geolocation_min_buffer_size - * Geolocation minimum buffer size. - * If > 0, geolocation will only be performed when the buffer has - * at least the given size. - * @type bool $geolocation_tdoa - * TDOA based geolocation is enabled. - * @type bool $geolocation_rssi - * RSSI based geolocation is enabled. - * @type bool $geolocation_gnss - * GNSS based geolocation is enabled (LR1110). - * @type string $geolocation_gnss_payload_field - * GNSS payload field. - * This holds the name of the field in the decoded payload object which - * contains the GNSS payload bytes (as HEX string). - * @type bool $geolocation_gnss_use_rx_time - * GNSS use RX time. - * In case this is set to true, the resolver will use the RX time of the - * network instead of the timestamp included in the LR1110 payload. - * @type bool $geolocation_wifi - * Wifi based geolocation is enabled. - * @type string $geolocation_wifi_payload_field - * Wifi payload field. - * This holds the name of the field in the decoded payload object which - * contains an array of objects with the following fields: - * * macAddress - e.g. 01:23:45:67:89:ab - * * signalStrength - e.g. -51 (optional) - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Chirpstack\Api\Application::initOnce(); - parent::__construct($data); - } - - /** - * API token. - * - * Generated from protobuf field string token = 1; - * @return string - */ - public function getToken() - { - return $this->token; - } - - /** - * API token. - * - * Generated from protobuf field string token = 1; - * @param string $var - * @return $this - */ - public function setToken($var) - { - GPBUtil::checkString($var, True); - $this->token = $var; - - return $this; - } - - /** - * Device implements Modem / Modem-E stack. - * - * Generated from protobuf field bool modem_enabled = 2; - * @return bool - */ - public function getModemEnabled() - { - return $this->modem_enabled; - } - - /** - * Device implements Modem / Modem-E stack. - * - * Generated from protobuf field bool modem_enabled = 2; - * @param bool $var - * @return $this - */ - public function setModemEnabled($var) - { - GPBUtil::checkBool($var); - $this->modem_enabled = $var; - - return $this; - } - - /** - * Forward FPorts. - * Forward uplink messages matching the given FPorts to the MGS. - * - * Generated from protobuf field repeated uint32 forward_f_ports = 16; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getForwardFPorts() - { - return $this->forward_f_ports; - } - - /** - * Forward FPorts. - * Forward uplink messages matching the given FPorts to the MGS. - * - * Generated from protobuf field repeated uint32 forward_f_ports = 16; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setForwardFPorts($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::UINT32); - $this->forward_f_ports = $arr; - - return $this; - } - - /** - * Use rx time for GNSS resolving. - * In case this is set to true, the MGS resolver will use the RX time of the - * network instead of the timestamp included in the LR1110 payload. - * - * Generated from protobuf field bool gnss_use_rx_time = 5; - * @return bool - */ - public function getGnssUseRxTime() - { - return $this->gnss_use_rx_time; - } - - /** - * Use rx time for GNSS resolving. - * In case this is set to true, the MGS resolver will use the RX time of the - * network instead of the timestamp included in the LR1110 payload. - * - * Generated from protobuf field bool gnss_use_rx_time = 5; - * @param bool $var - * @return $this - */ - public function setGnssUseRxTime($var) - { - GPBUtil::checkBool($var); - $this->gnss_use_rx_time = $var; - - return $this; - } - - /** - * Use gateway location for GNSS resolving. - * In the case this is set to true, ChirpStack will provide the location of - * one of the gateways to the MGS resolver to aid the resolving process. - * Disable this in case the gateway location is not accurate / incorrectly - * configured as an incorrect location will cause the resolver to return an - * error. - * - * Generated from protobuf field bool gnss_use_gateway_location = 17; - * @return bool - */ - public function getGnssUseGatewayLocation() - { - return $this->gnss_use_gateway_location; - } - - /** - * Use gateway location for GNSS resolving. - * In the case this is set to true, ChirpStack will provide the location of - * one of the gateways to the MGS resolver to aid the resolving process. - * Disable this in case the gateway location is not accurate / incorrectly - * configured as an incorrect location will cause the resolver to return an - * error. - * - * Generated from protobuf field bool gnss_use_gateway_location = 17; - * @param bool $var - * @return $this - */ - public function setGnssUseGatewayLocation($var) - { - GPBUtil::checkBool($var); - $this->gnss_use_gateway_location = $var; - - return $this; - } - - /** - * Parse TLV records. - * If enabled, stream records (expected in TLV format) are scanned for GNSS - * data (0x06 or 0x07). If found, ChirpStack will make an additional - * geolocation call to the MGS API for resolving the location of the detected - * payload. - * - * Generated from protobuf field bool parse_tlv = 6; - * @return bool - */ - public function getParseTlv() - { - return $this->parse_tlv; - } - - /** - * Parse TLV records. - * If enabled, stream records (expected in TLV format) are scanned for GNSS - * data (0x06 or 0x07). If found, ChirpStack will make an additional - * geolocation call to the MGS API for resolving the location of the detected - * payload. - * - * Generated from protobuf field bool parse_tlv = 6; - * @param bool $var - * @return $this - */ - public function setParseTlv($var) - { - GPBUtil::checkBool($var); - $this->parse_tlv = $var; - - return $this; - } - - /** - * Geolocation buffer TTL (in seconds). - * If > 0, uplink RX meta-data will be stored in a buffer so that - * the meta-data of multiple uplinks can be used for geolocation. - * - * Generated from protobuf field uint32 geolocation_buffer_ttl = 7; - * @return int - */ - public function getGeolocationBufferTtl() - { - return $this->geolocation_buffer_ttl; - } - - /** - * Geolocation buffer TTL (in seconds). - * If > 0, uplink RX meta-data will be stored in a buffer so that - * the meta-data of multiple uplinks can be used for geolocation. - * - * Generated from protobuf field uint32 geolocation_buffer_ttl = 7; - * @param int $var - * @return $this - */ - public function setGeolocationBufferTtl($var) - { - GPBUtil::checkUint32($var); - $this->geolocation_buffer_ttl = $var; - - return $this; - } - - /** - * Geolocation minimum buffer size. - * If > 0, geolocation will only be performed when the buffer has - * at least the given size. - * - * Generated from protobuf field uint32 geolocation_min_buffer_size = 8; - * @return int - */ - public function getGeolocationMinBufferSize() - { - return $this->geolocation_min_buffer_size; - } - - /** - * Geolocation minimum buffer size. - * If > 0, geolocation will only be performed when the buffer has - * at least the given size. - * - * Generated from protobuf field uint32 geolocation_min_buffer_size = 8; - * @param int $var - * @return $this - */ - public function setGeolocationMinBufferSize($var) - { - GPBUtil::checkUint32($var); - $this->geolocation_min_buffer_size = $var; - - return $this; - } - - /** - * TDOA based geolocation is enabled. - * - * Generated from protobuf field bool geolocation_tdoa = 9; - * @return bool - */ - public function getGeolocationTdoa() - { - return $this->geolocation_tdoa; - } - - /** - * TDOA based geolocation is enabled. - * - * Generated from protobuf field bool geolocation_tdoa = 9; - * @param bool $var - * @return $this - */ - public function setGeolocationTdoa($var) - { - GPBUtil::checkBool($var); - $this->geolocation_tdoa = $var; - - return $this; - } - - /** - * RSSI based geolocation is enabled. - * - * Generated from protobuf field bool geolocation_rssi = 10; - * @return bool - */ - public function getGeolocationRssi() - { - return $this->geolocation_rssi; - } - - /** - * RSSI based geolocation is enabled. - * - * Generated from protobuf field bool geolocation_rssi = 10; - * @param bool $var - * @return $this - */ - public function setGeolocationRssi($var) - { - GPBUtil::checkBool($var); - $this->geolocation_rssi = $var; - - return $this; - } - - /** - * GNSS based geolocation is enabled (LR1110). - * - * Generated from protobuf field bool geolocation_gnss = 11; - * @return bool - */ - public function getGeolocationGnss() - { - return $this->geolocation_gnss; - } - - /** - * GNSS based geolocation is enabled (LR1110). - * - * Generated from protobuf field bool geolocation_gnss = 11; - * @param bool $var - * @return $this - */ - public function setGeolocationGnss($var) - { - GPBUtil::checkBool($var); - $this->geolocation_gnss = $var; - - return $this; - } - - /** - * GNSS payload field. - * This holds the name of the field in the decoded payload object which - * contains the GNSS payload bytes (as HEX string). - * - * Generated from protobuf field string geolocation_gnss_payload_field = 12; - * @return string - */ - public function getGeolocationGnssPayloadField() - { - return $this->geolocation_gnss_payload_field; - } - - /** - * GNSS payload field. - * This holds the name of the field in the decoded payload object which - * contains the GNSS payload bytes (as HEX string). - * - * Generated from protobuf field string geolocation_gnss_payload_field = 12; - * @param string $var - * @return $this - */ - public function setGeolocationGnssPayloadField($var) - { - GPBUtil::checkString($var, True); - $this->geolocation_gnss_payload_field = $var; - - return $this; - } - - /** - * GNSS use RX time. - * In case this is set to true, the resolver will use the RX time of the - * network instead of the timestamp included in the LR1110 payload. - * - * Generated from protobuf field bool geolocation_gnss_use_rx_time = 13; - * @return bool - */ - public function getGeolocationGnssUseRxTime() - { - return $this->geolocation_gnss_use_rx_time; - } - - /** - * GNSS use RX time. - * In case this is set to true, the resolver will use the RX time of the - * network instead of the timestamp included in the LR1110 payload. - * - * Generated from protobuf field bool geolocation_gnss_use_rx_time = 13; - * @param bool $var - * @return $this - */ - public function setGeolocationGnssUseRxTime($var) - { - GPBUtil::checkBool($var); - $this->geolocation_gnss_use_rx_time = $var; - - return $this; - } - - /** - * Wifi based geolocation is enabled. - * - * Generated from protobuf field bool geolocation_wifi = 14; - * @return bool - */ - public function getGeolocationWifi() - { - return $this->geolocation_wifi; - } - - /** - * Wifi based geolocation is enabled. - * - * Generated from protobuf field bool geolocation_wifi = 14; - * @param bool $var - * @return $this - */ - public function setGeolocationWifi($var) - { - GPBUtil::checkBool($var); - $this->geolocation_wifi = $var; - - return $this; - } - - /** - * Wifi payload field. - * This holds the name of the field in the decoded payload object which - * contains an array of objects with the following fields: - * * macAddress - e.g. 01:23:45:67:89:ab - * * signalStrength - e.g. -51 (optional) - * - * Generated from protobuf field string geolocation_wifi_payload_field = 15; - * @return string - */ - public function getGeolocationWifiPayloadField() - { - return $this->geolocation_wifi_payload_field; - } - - /** - * Wifi payload field. - * This holds the name of the field in the decoded payload object which - * contains an array of objects with the following fields: - * * macAddress - e.g. 01:23:45:67:89:ab - * * signalStrength - e.g. -51 (optional) - * - * Generated from protobuf field string geolocation_wifi_payload_field = 15; - * @param string $var - * @return $this - */ - public function setGeolocationWifiPayloadField($var) - { - GPBUtil::checkString($var, True); - $this->geolocation_wifi_payload_field = $var; - - return $this; - } - -} - diff --git a/api/php/generated/Chirpstack/Api/Measurement.php b/api/php/generated/Chirpstack/Api/Measurement.php deleted file mode 100644 index 9b2eeacc..00000000 --- a/api/php/generated/Chirpstack/Api/Measurement.php +++ /dev/null @@ -1,99 +0,0 @@ -api.Measurement - */ -class Measurement extends \Google\Protobuf\Internal\Message -{ - /** - * Name (user defined). - * - * Generated from protobuf field string name = 2; - */ - protected $name = ''; - /** - * Kind. - * - * Generated from protobuf field .api.MeasurementKind kind = 3; - */ - protected $kind = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Name (user defined). - * @type int $kind - * Kind. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Chirpstack\Api\DeviceProfile::initOnce(); - parent::__construct($data); - } - - /** - * Name (user defined). - * - * Generated from protobuf field string name = 2; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Name (user defined). - * - * Generated from protobuf field string name = 2; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Kind. - * - * Generated from protobuf field .api.MeasurementKind kind = 3; - * @return int - */ - public function getKind() - { - return $this->kind; - } - - /** - * Kind. - * - * Generated from protobuf field .api.MeasurementKind kind = 3; - * @param int $var - * @return $this - */ - public function setKind($var) - { - GPBUtil::checkEnum($var, \Chirpstack\Api\MeasurementKind::class); - $this->kind = $var; - - return $this; - } - -} - diff --git a/api/php/generated/Chirpstack/Api/MeasurementKind.php b/api/php/generated/Chirpstack/Api/MeasurementKind.php deleted file mode 100644 index 537d404f..00000000 --- a/api/php/generated/Chirpstack/Api/MeasurementKind.php +++ /dev/null @@ -1,74 +0,0 @@ -api.MeasurementKind - */ -class MeasurementKind -{ - /** - * Unknown (in which case it is not tracked). - * - * Generated from protobuf enum UNKNOWN = 0; - */ - const UNKNOWN = 0; - /** - * Incrementing counters that never decrease (these are not reset on each - * reading). - * - * Generated from protobuf enum COUNTER = 1; - */ - const COUNTER = 1; - /** - * Counters that do get reset upon reading. - * - * Generated from protobuf enum ABSOLUTE = 2; - */ - const ABSOLUTE = 2; - /** - * E.g. a temperature value. - * - * Generated from protobuf enum GAUGE = 3; - */ - const GAUGE = 3; - /** - * E.g. a firmware version, true / false value. - * - * Generated from protobuf enum STRING = 4; - */ - const STRING = 4; - - private static $valueToName = [ - self::UNKNOWN => 'UNKNOWN', - self::COUNTER => 'COUNTER', - self::ABSOLUTE => 'ABSOLUTE', - self::GAUGE => 'GAUGE', - self::STRING => 'STRING', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - diff --git a/api/php/generated/Chirpstack/Api/MulticastGroup.php b/api/php/generated/Chirpstack/Api/MulticastGroup.php deleted file mode 100644 index fd7f7be8..00000000 --- a/api/php/generated/Chirpstack/Api/MulticastGroup.php +++ /dev/null @@ -1,527 +0,0 @@ -api.MulticastGroup - */ -class MulticastGroup extends \Google\Protobuf\Internal\Message -{ - /** - * ID (UUID). - * This will be generated automatically on create. - * - * Generated from protobuf field string id = 1; - */ - protected $id = ''; - /** - * Name. - * - * Generated from protobuf field string name = 2; - */ - protected $name = ''; - /** - * Application ID. - * After creation, this can not be updated. - * - * Generated from protobuf field string application_id = 3; - */ - protected $application_id = ''; - /** - * Region. - * - * Generated from protobuf field .common.Region region = 4; - */ - protected $region = 0; - /** - * Multicast address (HEX encoded DevAddr). - * - * Generated from protobuf field string mc_addr = 5; - */ - protected $mc_addr = ''; - /** - * Multicast network session key (HEX encoded AES128 key). - * - * Generated from protobuf field string mc_nwk_s_key = 6; - */ - protected $mc_nwk_s_key = ''; - /** - * Multicast application session key (HEX encoded AES128 key). - * - * Generated from protobuf field string mc_app_s_key = 7; - */ - protected $mc_app_s_key = ''; - /** - * Frame-counter. - * - * Generated from protobuf field uint32 f_cnt = 8; - */ - protected $f_cnt = 0; - /** - * Multicast group type. - * - * Generated from protobuf field .api.MulticastGroupType group_type = 9; - */ - protected $group_type = 0; - /** - * Data-rate. - * - * Generated from protobuf field uint32 dr = 10; - */ - protected $dr = 0; - /** - * Frequency (Hz). - * - * Generated from protobuf field uint32 frequency = 11; - */ - protected $frequency = 0; - /** - * Ping-slot period (only for Class-B). - * Deprecated: use class_b_ping_slot_nb_k. - * - * Generated from protobuf field uint32 class_b_ping_slot_period = 12; - */ - protected $class_b_ping_slot_period = 0; - /** - * Class-B ping-slots per beacon period (only for Class-B). - * Valid options are: 0 - 7; - * The actual number of ping-slots per beacon period equals to 2^k. - * - * Generated from protobuf field uint32 class_b_ping_slot_nb_k = 14; - */ - protected $class_b_ping_slot_nb_k = 0; - /** - * Scheduling type (only for Class-C). - * - * Generated from protobuf field .api.MulticastGroupSchedulingType class_c_scheduling_type = 13; - */ - protected $class_c_scheduling_type = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $id - * ID (UUID). - * This will be generated automatically on create. - * @type string $name - * Name. - * @type string $application_id - * Application ID. - * After creation, this can not be updated. - * @type int $region - * Region. - * @type string $mc_addr - * Multicast address (HEX encoded DevAddr). - * @type string $mc_nwk_s_key - * Multicast network session key (HEX encoded AES128 key). - * @type string $mc_app_s_key - * Multicast application session key (HEX encoded AES128 key). - * @type int $f_cnt - * Frame-counter. - * @type int $group_type - * Multicast group type. - * @type int $dr - * Data-rate. - * @type int $frequency - * Frequency (Hz). - * @type int $class_b_ping_slot_period - * Ping-slot period (only for Class-B). - * Deprecated: use class_b_ping_slot_nb_k. - * @type int $class_b_ping_slot_nb_k - * Class-B ping-slots per beacon period (only for Class-B). - * Valid options are: 0 - 7; - * The actual number of ping-slots per beacon period equals to 2^k. - * @type int $class_c_scheduling_type - * Scheduling type (only for Class-C). - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Chirpstack\Api\MulticastGroup::initOnce(); - parent::__construct($data); - } - - /** - * ID (UUID). - * This will be generated automatically on create. - * - * Generated from protobuf field string id = 1; - * @return string - */ - public function getId() - { - return $this->id; - } - - /** - * ID (UUID). - * This will be generated automatically on create. - * - * Generated from protobuf field string id = 1; - * @param string $var - * @return $this - */ - public function setId($var) - { - GPBUtil::checkString($var, True); - $this->id = $var; - - return $this; - } - - /** - * Name. - * - * Generated from protobuf field string name = 2; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Name. - * - * Generated from protobuf field string name = 2; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Application ID. - * After creation, this can not be updated. - * - * Generated from protobuf field string application_id = 3; - * @return string - */ - public function getApplicationId() - { - return $this->application_id; - } - - /** - * Application ID. - * After creation, this can not be updated. - * - * Generated from protobuf field string application_id = 3; - * @param string $var - * @return $this - */ - public function setApplicationId($var) - { - GPBUtil::checkString($var, True); - $this->application_id = $var; - - return $this; - } - - /** - * Region. - * - * Generated from protobuf field .common.Region region = 4; - * @return int - */ - public function getRegion() - { - return $this->region; - } - - /** - * Region. - * - * Generated from protobuf field .common.Region region = 4; - * @param int $var - * @return $this - */ - public function setRegion($var) - { - GPBUtil::checkEnum($var, \Chirpstack\Common\Region::class); - $this->region = $var; - - return $this; - } - - /** - * Multicast address (HEX encoded DevAddr). - * - * Generated from protobuf field string mc_addr = 5; - * @return string - */ - public function getMcAddr() - { - return $this->mc_addr; - } - - /** - * Multicast address (HEX encoded DevAddr). - * - * Generated from protobuf field string mc_addr = 5; - * @param string $var - * @return $this - */ - public function setMcAddr($var) - { - GPBUtil::checkString($var, True); - $this->mc_addr = $var; - - return $this; - } - - /** - * Multicast network session key (HEX encoded AES128 key). - * - * Generated from protobuf field string mc_nwk_s_key = 6; - * @return string - */ - public function getMcNwkSKey() - { - return $this->mc_nwk_s_key; - } - - /** - * Multicast network session key (HEX encoded AES128 key). - * - * Generated from protobuf field string mc_nwk_s_key = 6; - * @param string $var - * @return $this - */ - public function setMcNwkSKey($var) - { - GPBUtil::checkString($var, True); - $this->mc_nwk_s_key = $var; - - return $this; - } - - /** - * Multicast application session key (HEX encoded AES128 key). - * - * Generated from protobuf field string mc_app_s_key = 7; - * @return string - */ - public function getMcAppSKey() - { - return $this->mc_app_s_key; - } - - /** - * Multicast application session key (HEX encoded AES128 key). - * - * Generated from protobuf field string mc_app_s_key = 7; - * @param string $var - * @return $this - */ - public function setMcAppSKey($var) - { - GPBUtil::checkString($var, True); - $this->mc_app_s_key = $var; - - return $this; - } - - /** - * Frame-counter. - * - * Generated from protobuf field uint32 f_cnt = 8; - * @return int - */ - public function getFCnt() - { - return $this->f_cnt; - } - - /** - * Frame-counter. - * - * Generated from protobuf field uint32 f_cnt = 8; - * @param int $var - * @return $this - */ - public function setFCnt($var) - { - GPBUtil::checkUint32($var); - $this->f_cnt = $var; - - return $this; - } - - /** - * Multicast group type. - * - * Generated from protobuf field .api.MulticastGroupType group_type = 9; - * @return int - */ - public function getGroupType() - { - return $this->group_type; - } - - /** - * Multicast group type. - * - * Generated from protobuf field .api.MulticastGroupType group_type = 9; - * @param int $var - * @return $this - */ - public function setGroupType($var) - { - GPBUtil::checkEnum($var, \Chirpstack\Api\MulticastGroupType::class); - $this->group_type = $var; - - return $this; - } - - /** - * Data-rate. - * - * Generated from protobuf field uint32 dr = 10; - * @return int - */ - public function getDr() - { - return $this->dr; - } - - /** - * Data-rate. - * - * Generated from protobuf field uint32 dr = 10; - * @param int $var - * @return $this - */ - public function setDr($var) - { - GPBUtil::checkUint32($var); - $this->dr = $var; - - return $this; - } - - /** - * Frequency (Hz). - * - * Generated from protobuf field uint32 frequency = 11; - * @return int - */ - public function getFrequency() - { - return $this->frequency; - } - - /** - * Frequency (Hz). - * - * Generated from protobuf field uint32 frequency = 11; - * @param int $var - * @return $this - */ - public function setFrequency($var) - { - GPBUtil::checkUint32($var); - $this->frequency = $var; - - return $this; - } - - /** - * Ping-slot period (only for Class-B). - * Deprecated: use class_b_ping_slot_nb_k. - * - * Generated from protobuf field uint32 class_b_ping_slot_period = 12; - * @return int - */ - public function getClassBPingSlotPeriod() - { - return $this->class_b_ping_slot_period; - } - - /** - * Ping-slot period (only for Class-B). - * Deprecated: use class_b_ping_slot_nb_k. - * - * Generated from protobuf field uint32 class_b_ping_slot_period = 12; - * @param int $var - * @return $this - */ - public function setClassBPingSlotPeriod($var) - { - GPBUtil::checkUint32($var); - $this->class_b_ping_slot_period = $var; - - return $this; - } - - /** - * Class-B ping-slots per beacon period (only for Class-B). - * Valid options are: 0 - 7; - * The actual number of ping-slots per beacon period equals to 2^k. - * - * Generated from protobuf field uint32 class_b_ping_slot_nb_k = 14; - * @return int - */ - public function getClassBPingSlotNbK() - { - return $this->class_b_ping_slot_nb_k; - } - - /** - * Class-B ping-slots per beacon period (only for Class-B). - * Valid options are: 0 - 7; - * The actual number of ping-slots per beacon period equals to 2^k. - * - * Generated from protobuf field uint32 class_b_ping_slot_nb_k = 14; - * @param int $var - * @return $this - */ - public function setClassBPingSlotNbK($var) - { - GPBUtil::checkUint32($var); - $this->class_b_ping_slot_nb_k = $var; - - return $this; - } - - /** - * Scheduling type (only for Class-C). - * - * Generated from protobuf field .api.MulticastGroupSchedulingType class_c_scheduling_type = 13; - * @return int - */ - public function getClassCSchedulingType() - { - return $this->class_c_scheduling_type; - } - - /** - * Scheduling type (only for Class-C). - * - * Generated from protobuf field .api.MulticastGroupSchedulingType class_c_scheduling_type = 13; - * @param int $var - * @return $this - */ - public function setClassCSchedulingType($var) - { - GPBUtil::checkEnum($var, \Chirpstack\Api\MulticastGroupSchedulingType::class); - $this->class_c_scheduling_type = $var; - - return $this; - } - -} - diff --git a/api/php/generated/Chirpstack/Api/MulticastGroupListItem.php b/api/php/generated/Chirpstack/Api/MulticastGroupListItem.php deleted file mode 100644 index b593c47d..00000000 --- a/api/php/generated/Chirpstack/Api/MulticastGroupListItem.php +++ /dev/null @@ -1,255 +0,0 @@ -api.MulticastGroupListItem - */ -class MulticastGroupListItem extends \Google\Protobuf\Internal\Message -{ - /** - * ID. - * - * Generated from protobuf field string id = 1; - */ - protected $id = ''; - /** - * Created at timestamp. - * - * Generated from protobuf field .google.protobuf.Timestamp created_at = 2; - */ - protected $created_at = null; - /** - * Last update timestamp. - * - * Generated from protobuf field .google.protobuf.Timestamp updated_at = 3; - */ - protected $updated_at = null; - /** - * Name. - * - * Generated from protobuf field string name = 4; - */ - protected $name = ''; - /** - * Region. - * - * Generated from protobuf field .common.Region region = 5; - */ - protected $region = 0; - /** - * Multicast group type. - * - * Generated from protobuf field .api.MulticastGroupType group_type = 6; - */ - protected $group_type = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $id - * ID. - * @type \Google\Protobuf\Timestamp $created_at - * Created at timestamp. - * @type \Google\Protobuf\Timestamp $updated_at - * Last update timestamp. - * @type string $name - * Name. - * @type int $region - * Region. - * @type int $group_type - * Multicast group type. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Chirpstack\Api\MulticastGroup::initOnce(); - parent::__construct($data); - } - - /** - * ID. - * - * Generated from protobuf field string id = 1; - * @return string - */ - public function getId() - { - return $this->id; - } - - /** - * ID. - * - * Generated from protobuf field string id = 1; - * @param string $var - * @return $this - */ - public function setId($var) - { - GPBUtil::checkString($var, True); - $this->id = $var; - - return $this; - } - - /** - * Created at timestamp. - * - * Generated from protobuf field .google.protobuf.Timestamp created_at = 2; - * @return \Google\Protobuf\Timestamp|null - */ - public function getCreatedAt() - { - return $this->created_at; - } - - public function hasCreatedAt() - { - return isset($this->created_at); - } - - public function clearCreatedAt() - { - unset($this->created_at); - } - - /** - * Created at timestamp. - * - * Generated from protobuf field .google.protobuf.Timestamp created_at = 2; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setCreatedAt($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->created_at = $var; - - return $this; - } - - /** - * Last update timestamp. - * - * Generated from protobuf field .google.protobuf.Timestamp updated_at = 3; - * @return \Google\Protobuf\Timestamp|null - */ - public function getUpdatedAt() - { - return $this->updated_at; - } - - public function hasUpdatedAt() - { - return isset($this->updated_at); - } - - public function clearUpdatedAt() - { - unset($this->updated_at); - } - - /** - * Last update timestamp. - * - * Generated from protobuf field .google.protobuf.Timestamp updated_at = 3; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setUpdatedAt($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->updated_at = $var; - - return $this; - } - - /** - * Name. - * - * Generated from protobuf field string name = 4; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Name. - * - * Generated from protobuf field string name = 4; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Region. - * - * Generated from protobuf field .common.Region region = 5; - * @return int - */ - public function getRegion() - { - return $this->region; - } - - /** - * Region. - * - * Generated from protobuf field .common.Region region = 5; - * @param int $var - * @return $this - */ - public function setRegion($var) - { - GPBUtil::checkEnum($var, \Chirpstack\Common\Region::class); - $this->region = $var; - - return $this; - } - - /** - * Multicast group type. - * - * Generated from protobuf field .api.MulticastGroupType group_type = 6; - * @return int - */ - public function getGroupType() - { - return $this->group_type; - } - - /** - * Multicast group type. - * - * Generated from protobuf field .api.MulticastGroupType group_type = 6; - * @param int $var - * @return $this - */ - public function setGroupType($var) - { - GPBUtil::checkEnum($var, \Chirpstack\Api\MulticastGroupType::class); - $this->group_type = $var; - - return $this; - } - -} - diff --git a/api/php/generated/Chirpstack/Api/MulticastGroupQueueItem.php b/api/php/generated/Chirpstack/Api/MulticastGroupQueueItem.php deleted file mode 100644 index f3e22338..00000000 --- a/api/php/generated/Chirpstack/Api/MulticastGroupQueueItem.php +++ /dev/null @@ -1,171 +0,0 @@ -api.MulticastGroupQueueItem - */ -class MulticastGroupQueueItem extends \Google\Protobuf\Internal\Message -{ - /** - * Multicast group ID. - * - * Generated from protobuf field string multicast_group_id = 1; - */ - protected $multicast_group_id = ''; - /** - * Downlink frame-counter. - * This will be automatically set on enqueue. - * - * Generated from protobuf field uint32 f_cnt = 2; - */ - protected $f_cnt = 0; - /** - * FPort (must be > 0). - * - * Generated from protobuf field uint32 f_port = 3; - */ - protected $f_port = 0; - /** - * Payload. - * - * Generated from protobuf field bytes data = 4; - */ - protected $data = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $multicast_group_id - * Multicast group ID. - * @type int $f_cnt - * Downlink frame-counter. - * This will be automatically set on enqueue. - * @type int $f_port - * FPort (must be > 0). - * @type string $data - * Payload. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Chirpstack\Api\MulticastGroup::initOnce(); - parent::__construct($data); - } - - /** - * Multicast group ID. - * - * Generated from protobuf field string multicast_group_id = 1; - * @return string - */ - public function getMulticastGroupId() - { - return $this->multicast_group_id; - } - - /** - * Multicast group ID. - * - * Generated from protobuf field string multicast_group_id = 1; - * @param string $var - * @return $this - */ - public function setMulticastGroupId($var) - { - GPBUtil::checkString($var, True); - $this->multicast_group_id = $var; - - return $this; - } - - /** - * Downlink frame-counter. - * This will be automatically set on enqueue. - * - * Generated from protobuf field uint32 f_cnt = 2; - * @return int - */ - public function getFCnt() - { - return $this->f_cnt; - } - - /** - * Downlink frame-counter. - * This will be automatically set on enqueue. - * - * Generated from protobuf field uint32 f_cnt = 2; - * @param int $var - * @return $this - */ - public function setFCnt($var) - { - GPBUtil::checkUint32($var); - $this->f_cnt = $var; - - return $this; - } - - /** - * FPort (must be > 0). - * - * Generated from protobuf field uint32 f_port = 3; - * @return int - */ - public function getFPort() - { - return $this->f_port; - } - - /** - * FPort (must be > 0). - * - * Generated from protobuf field uint32 f_port = 3; - * @param int $var - * @return $this - */ - public function setFPort($var) - { - GPBUtil::checkUint32($var); - $this->f_port = $var; - - return $this; - } - - /** - * Payload. - * - * Generated from protobuf field bytes data = 4; - * @return string - */ - public function getData() - { - return $this->data; - } - - /** - * Payload. - * - * Generated from protobuf field bytes data = 4; - * @param string $var - * @return $this - */ - public function setData($var) - { - GPBUtil::checkString($var, False); - $this->data = $var; - - return $this; - } - -} - diff --git a/api/php/generated/Chirpstack/Api/MulticastGroupSchedulingType.php b/api/php/generated/Chirpstack/Api/MulticastGroupSchedulingType.php deleted file mode 100644 index 0775df7f..00000000 --- a/api/php/generated/Chirpstack/Api/MulticastGroupSchedulingType.php +++ /dev/null @@ -1,57 +0,0 @@ -api.MulticastGroupSchedulingType - */ -class MulticastGroupSchedulingType -{ - /** - * Delay. - * If multicast downlinks must be sent through multiple gateways, then - * these will be sent one by one with a delay between each gateway. - * - * Generated from protobuf enum DELAY = 0; - */ - const DELAY = 0; - /** - * Time. - * If multicast downlinks must be sent through multiple gateways, then - * these will be sent simultaneously using GPS time synchronization. - * Note that this does require GPS time-synchronized LoRa gateways. - * - * Generated from protobuf enum GPS_TIME = 1; - */ - const GPS_TIME = 1; - - private static $valueToName = [ - self::DELAY => 'DELAY', - self::GPS_TIME => 'GPS_TIME', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - diff --git a/api/php/generated/Chirpstack/Api/MulticastGroupServiceClient.php b/api/php/generated/Chirpstack/Api/MulticastGroupServiceClient.php deleted file mode 100644 index cdb754f8..00000000 --- a/api/php/generated/Chirpstack/Api/MulticastGroupServiceClient.php +++ /dev/null @@ -1,200 +0,0 @@ -_simpleRequest('/api.MulticastGroupService/Create', - $argument, - ['\Chirpstack\Api\CreateMulticastGroupResponse', 'decode'], - $metadata, $options); - } - - /** - * Get returns the multicast group for the given ID. - * @param \Chirpstack\Api\GetMulticastGroupRequest $argument input argument - * @param array $metadata metadata - * @param array $options call options - * @return \Grpc\UnaryCall - */ - public function Get(\Chirpstack\Api\GetMulticastGroupRequest $argument, - $metadata = [], $options = []) { - return $this->_simpleRequest('/api.MulticastGroupService/Get', - $argument, - ['\Chirpstack\Api\GetMulticastGroupResponse', 'decode'], - $metadata, $options); - } - - /** - * Update the given multicast group. - * @param \Chirpstack\Api\UpdateMulticastGroupRequest $argument input argument - * @param array $metadata metadata - * @param array $options call options - * @return \Grpc\UnaryCall - */ - public function Update(\Chirpstack\Api\UpdateMulticastGroupRequest $argument, - $metadata = [], $options = []) { - return $this->_simpleRequest('/api.MulticastGroupService/Update', - $argument, - ['\Google\Protobuf\GPBEmpty', 'decode'], - $metadata, $options); - } - - /** - * Delete the multicast-group with the given ID. - * @param \Chirpstack\Api\DeleteMulticastGroupRequest $argument input argument - * @param array $metadata metadata - * @param array $options call options - * @return \Grpc\UnaryCall - */ - public function Delete(\Chirpstack\Api\DeleteMulticastGroupRequest $argument, - $metadata = [], $options = []) { - return $this->_simpleRequest('/api.MulticastGroupService/Delete', - $argument, - ['\Google\Protobuf\GPBEmpty', 'decode'], - $metadata, $options); - } - - /** - * List the available multicast groups. - * @param \Chirpstack\Api\ListMulticastGroupsRequest $argument input argument - * @param array $metadata metadata - * @param array $options call options - * @return \Grpc\UnaryCall - */ - public function List(\Chirpstack\Api\ListMulticastGroupsRequest $argument, - $metadata = [], $options = []) { - return $this->_simpleRequest('/api.MulticastGroupService/List', - $argument, - ['\Chirpstack\Api\ListMulticastGroupsResponse', 'decode'], - $metadata, $options); - } - - /** - * Add a device to the multicast group. - * @param \Chirpstack\Api\AddDeviceToMulticastGroupRequest $argument input argument - * @param array $metadata metadata - * @param array $options call options - * @return \Grpc\UnaryCall - */ - public function AddDevice(\Chirpstack\Api\AddDeviceToMulticastGroupRequest $argument, - $metadata = [], $options = []) { - return $this->_simpleRequest('/api.MulticastGroupService/AddDevice', - $argument, - ['\Google\Protobuf\GPBEmpty', 'decode'], - $metadata, $options); - } - - /** - * Remove a device from the multicast group. - * @param \Chirpstack\Api\RemoveDeviceFromMulticastGroupRequest $argument input argument - * @param array $metadata metadata - * @param array $options call options - * @return \Grpc\UnaryCall - */ - public function RemoveDevice(\Chirpstack\Api\RemoveDeviceFromMulticastGroupRequest $argument, - $metadata = [], $options = []) { - return $this->_simpleRequest('/api.MulticastGroupService/RemoveDevice', - $argument, - ['\Google\Protobuf\GPBEmpty', 'decode'], - $metadata, $options); - } - - /** - * Add a gateway to the multicast group. - * @param \Chirpstack\Api\AddGatewayToMulticastGroupRequest $argument input argument - * @param array $metadata metadata - * @param array $options call options - * @return \Grpc\UnaryCall - */ - public function AddGateway(\Chirpstack\Api\AddGatewayToMulticastGroupRequest $argument, - $metadata = [], $options = []) { - return $this->_simpleRequest('/api.MulticastGroupService/AddGateway', - $argument, - ['\Google\Protobuf\GPBEmpty', 'decode'], - $metadata, $options); - } - - /** - * Remove a gateway from the multicast group. - * @param \Chirpstack\Api\RemoveGatewayFromMulticastGroupRequest $argument input argument - * @param array $metadata metadata - * @param array $options call options - * @return \Grpc\UnaryCall - */ - public function RemoveGateway(\Chirpstack\Api\RemoveGatewayFromMulticastGroupRequest $argument, - $metadata = [], $options = []) { - return $this->_simpleRequest('/api.MulticastGroupService/RemoveGateway', - $argument, - ['\Google\Protobuf\GPBEmpty', 'decode'], - $metadata, $options); - } - - /** - * Add the given item to the multicast group queue. - * @param \Chirpstack\Api\EnqueueMulticastGroupQueueItemRequest $argument input argument - * @param array $metadata metadata - * @param array $options call options - * @return \Grpc\UnaryCall - */ - public function Enqueue(\Chirpstack\Api\EnqueueMulticastGroupQueueItemRequest $argument, - $metadata = [], $options = []) { - return $this->_simpleRequest('/api.MulticastGroupService/Enqueue', - $argument, - ['\Chirpstack\Api\EnqueueMulticastGroupQueueItemResponse', 'decode'], - $metadata, $options); - } - - /** - * Flush the queue for the given multicast group. - * @param \Chirpstack\Api\FlushMulticastGroupQueueRequest $argument input argument - * @param array $metadata metadata - * @param array $options call options - * @return \Grpc\UnaryCall - */ - public function FlushQueue(\Chirpstack\Api\FlushMulticastGroupQueueRequest $argument, - $metadata = [], $options = []) { - return $this->_simpleRequest('/api.MulticastGroupService/FlushQueue', - $argument, - ['\Google\Protobuf\GPBEmpty', 'decode'], - $metadata, $options); - } - - /** - * List the items in the multicast group queue. - * @param \Chirpstack\Api\ListMulticastGroupQueueRequest $argument input argument - * @param array $metadata metadata - * @param array $options call options - * @return \Grpc\UnaryCall - */ - public function ListQueue(\Chirpstack\Api\ListMulticastGroupQueueRequest $argument, - $metadata = [], $options = []) { - return $this->_simpleRequest('/api.MulticastGroupService/ListQueue', - $argument, - ['\Chirpstack\Api\ListMulticastGroupQueueResponse', 'decode'], - $metadata, $options); - } - -} diff --git a/api/php/generated/Chirpstack/Api/MulticastGroupType.php b/api/php/generated/Chirpstack/Api/MulticastGroupType.php deleted file mode 100644 index 36cddcff..00000000 --- a/api/php/generated/Chirpstack/Api/MulticastGroupType.php +++ /dev/null @@ -1,52 +0,0 @@ -api.MulticastGroupType - */ -class MulticastGroupType -{ - /** - * Class C. - * - * Generated from protobuf enum CLASS_C = 0; - */ - const CLASS_C = 0; - /** - * Class-B. - * - * Generated from protobuf enum CLASS_B = 1; - */ - const CLASS_B = 1; - - private static $valueToName = [ - self::CLASS_C => 'CLASS_C', - self::CLASS_B => 'CLASS_B', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - diff --git a/api/php/generated/Chirpstack/Api/MyDevicesIntegration.php b/api/php/generated/Chirpstack/Api/MyDevicesIntegration.php deleted file mode 100644 index 73facec3..00000000 --- a/api/php/generated/Chirpstack/Api/MyDevicesIntegration.php +++ /dev/null @@ -1,99 +0,0 @@ -api.MyDevicesIntegration - */ -class MyDevicesIntegration extends \Google\Protobuf\Internal\Message -{ - /** - * Application ID (UUID). - * - * Generated from protobuf field string application_id = 1; - */ - protected $application_id = ''; - /** - * myDevices API endpoint. - * - * Generated from protobuf field string endpoint = 2; - */ - protected $endpoint = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $application_id - * Application ID (UUID). - * @type string $endpoint - * myDevices API endpoint. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Chirpstack\Api\Application::initOnce(); - parent::__construct($data); - } - - /** - * Application ID (UUID). - * - * Generated from protobuf field string application_id = 1; - * @return string - */ - public function getApplicationId() - { - return $this->application_id; - } - - /** - * Application ID (UUID). - * - * Generated from protobuf field string application_id = 1; - * @param string $var - * @return $this - */ - public function setApplicationId($var) - { - GPBUtil::checkString($var, True); - $this->application_id = $var; - - return $this; - } - - /** - * myDevices API endpoint. - * - * Generated from protobuf field string endpoint = 2; - * @return string - */ - public function getEndpoint() - { - return $this->endpoint; - } - - /** - * myDevices API endpoint. - * - * Generated from protobuf field string endpoint = 2; - * @param string $var - * @return $this - */ - public function setEndpoint($var) - { - GPBUtil::checkString($var, True); - $this->endpoint = $var; - - return $this; - } - -} - diff --git a/api/php/generated/Chirpstack/Api/OAuth2.php b/api/php/generated/Chirpstack/Api/OAuth2.php deleted file mode 100644 index 0a3ebe66..00000000 --- a/api/php/generated/Chirpstack/Api/OAuth2.php +++ /dev/null @@ -1,201 +0,0 @@ -api.OAuth2 - */ -class OAuth2 extends \Google\Protobuf\Internal\Message -{ - /** - * OAuth2 is enabled. - * - * Generated from protobuf field bool enabled = 1; - */ - protected $enabled = false; - /** - * Login url. - * - * Generated from protobuf field string login_url = 2; - */ - protected $login_url = ''; - /** - * Login label. - * - * Generated from protobuf field string login_label = 3; - */ - protected $login_label = ''; - /** - * Logout url. - * - * Generated from protobuf field string logout_url = 4; - */ - protected $logout_url = ''; - /** - * Login redirect. - * - * Generated from protobuf field bool login_redirect = 5; - */ - protected $login_redirect = false; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type bool $enabled - * OAuth2 is enabled. - * @type string $login_url - * Login url. - * @type string $login_label - * Login label. - * @type string $logout_url - * Logout url. - * @type bool $login_redirect - * Login redirect. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Chirpstack\Api\Internal::initOnce(); - parent::__construct($data); - } - - /** - * OAuth2 is enabled. - * - * Generated from protobuf field bool enabled = 1; - * @return bool - */ - public function getEnabled() - { - return $this->enabled; - } - - /** - * OAuth2 is enabled. - * - * Generated from protobuf field bool enabled = 1; - * @param bool $var - * @return $this - */ - public function setEnabled($var) - { - GPBUtil::checkBool($var); - $this->enabled = $var; - - return $this; - } - - /** - * Login url. - * - * Generated from protobuf field string login_url = 2; - * @return string - */ - public function getLoginUrl() - { - return $this->login_url; - } - - /** - * Login url. - * - * Generated from protobuf field string login_url = 2; - * @param string $var - * @return $this - */ - public function setLoginUrl($var) - { - GPBUtil::checkString($var, True); - $this->login_url = $var; - - return $this; - } - - /** - * Login label. - * - * Generated from protobuf field string login_label = 3; - * @return string - */ - public function getLoginLabel() - { - return $this->login_label; - } - - /** - * Login label. - * - * Generated from protobuf field string login_label = 3; - * @param string $var - * @return $this - */ - public function setLoginLabel($var) - { - GPBUtil::checkString($var, True); - $this->login_label = $var; - - return $this; - } - - /** - * Logout url. - * - * Generated from protobuf field string logout_url = 4; - * @return string - */ - public function getLogoutUrl() - { - return $this->logout_url; - } - - /** - * Logout url. - * - * Generated from protobuf field string logout_url = 4; - * @param string $var - * @return $this - */ - public function setLogoutUrl($var) - { - GPBUtil::checkString($var, True); - $this->logout_url = $var; - - return $this; - } - - /** - * Login redirect. - * - * Generated from protobuf field bool login_redirect = 5; - * @return bool - */ - public function getLoginRedirect() - { - return $this->login_redirect; - } - - /** - * Login redirect. - * - * Generated from protobuf field bool login_redirect = 5; - * @param bool $var - * @return $this - */ - public function setLoginRedirect($var) - { - GPBUtil::checkBool($var); - $this->login_redirect = $var; - - return $this; - } - -} - diff --git a/api/php/generated/Chirpstack/Api/OAuth2LoginRequest.php b/api/php/generated/Chirpstack/Api/OAuth2LoginRequest.php deleted file mode 100644 index 98250952..00000000 --- a/api/php/generated/Chirpstack/Api/OAuth2LoginRequest.php +++ /dev/null @@ -1,99 +0,0 @@ -api.OAuth2LoginRequest - */ -class OAuth2LoginRequest extends \Google\Protobuf\Internal\Message -{ - /** - * OAuth2 callback code. - * - * Generated from protobuf field string code = 1; - */ - protected $code = ''; - /** - * OAuth2 callback state. - * - * Generated from protobuf field string state = 2; - */ - protected $state = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $code - * OAuth2 callback code. - * @type string $state - * OAuth2 callback state. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Chirpstack\Api\Internal::initOnce(); - parent::__construct($data); - } - - /** - * OAuth2 callback code. - * - * Generated from protobuf field string code = 1; - * @return string - */ - public function getCode() - { - return $this->code; - } - - /** - * OAuth2 callback code. - * - * Generated from protobuf field string code = 1; - * @param string $var - * @return $this - */ - public function setCode($var) - { - GPBUtil::checkString($var, True); - $this->code = $var; - - return $this; - } - - /** - * OAuth2 callback state. - * - * Generated from protobuf field string state = 2; - * @return string - */ - public function getState() - { - return $this->state; - } - - /** - * OAuth2 callback state. - * - * Generated from protobuf field string state = 2; - * @param string $var - * @return $this - */ - public function setState($var) - { - GPBUtil::checkString($var, True); - $this->state = $var; - - return $this; - } - -} - diff --git a/api/php/generated/Chirpstack/Api/OAuth2LoginResponse.php b/api/php/generated/Chirpstack/Api/OAuth2LoginResponse.php deleted file mode 100644 index d9b61062..00000000 --- a/api/php/generated/Chirpstack/Api/OAuth2LoginResponse.php +++ /dev/null @@ -1,65 +0,0 @@ -api.OAuth2LoginResponse - */ -class OAuth2LoginResponse extends \Google\Protobuf\Internal\Message -{ - /** - * Token to use for authentication. - * - * Generated from protobuf field string token = 1; - */ - protected $token = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $token - * Token to use for authentication. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Chirpstack\Api\Internal::initOnce(); - parent::__construct($data); - } - - /** - * Token to use for authentication. - * - * Generated from protobuf field string token = 1; - * @return string - */ - public function getToken() - { - return $this->token; - } - - /** - * Token to use for authentication. - * - * Generated from protobuf field string token = 1; - * @param string $var - * @return $this - */ - public function setToken($var) - { - GPBUtil::checkString($var, True); - $this->token = $var; - - return $this; - } - -} - diff --git a/api/php/generated/Chirpstack/Api/OpenIdConnect.php b/api/php/generated/Chirpstack/Api/OpenIdConnect.php deleted file mode 100644 index af3fbc9e..00000000 --- a/api/php/generated/Chirpstack/Api/OpenIdConnect.php +++ /dev/null @@ -1,201 +0,0 @@ -api.OpenIdConnect - */ -class OpenIdConnect extends \Google\Protobuf\Internal\Message -{ - /** - * Enable OpenId Connect authentication. - * - * Generated from protobuf field bool enabled = 1; - */ - protected $enabled = false; - /** - * Login url. - * - * Generated from protobuf field string login_url = 2; - */ - protected $login_url = ''; - /** - * Login label. - * - * Generated from protobuf field string login_label = 3; - */ - protected $login_label = ''; - /** - * Logout url. - * - * Generated from protobuf field string logout_url = 4; - */ - protected $logout_url = ''; - /** - * Login redirect. - * - * Generated from protobuf field bool login_redirect = 5; - */ - protected $login_redirect = false; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type bool $enabled - * Enable OpenId Connect authentication. - * @type string $login_url - * Login url. - * @type string $login_label - * Login label. - * @type string $logout_url - * Logout url. - * @type bool $login_redirect - * Login redirect. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Chirpstack\Api\Internal::initOnce(); - parent::__construct($data); - } - - /** - * Enable OpenId Connect authentication. - * - * Generated from protobuf field bool enabled = 1; - * @return bool - */ - public function getEnabled() - { - return $this->enabled; - } - - /** - * Enable OpenId Connect authentication. - * - * Generated from protobuf field bool enabled = 1; - * @param bool $var - * @return $this - */ - public function setEnabled($var) - { - GPBUtil::checkBool($var); - $this->enabled = $var; - - return $this; - } - - /** - * Login url. - * - * Generated from protobuf field string login_url = 2; - * @return string - */ - public function getLoginUrl() - { - return $this->login_url; - } - - /** - * Login url. - * - * Generated from protobuf field string login_url = 2; - * @param string $var - * @return $this - */ - public function setLoginUrl($var) - { - GPBUtil::checkString($var, True); - $this->login_url = $var; - - return $this; - } - - /** - * Login label. - * - * Generated from protobuf field string login_label = 3; - * @return string - */ - public function getLoginLabel() - { - return $this->login_label; - } - - /** - * Login label. - * - * Generated from protobuf field string login_label = 3; - * @param string $var - * @return $this - */ - public function setLoginLabel($var) - { - GPBUtil::checkString($var, True); - $this->login_label = $var; - - return $this; - } - - /** - * Logout url. - * - * Generated from protobuf field string logout_url = 4; - * @return string - */ - public function getLogoutUrl() - { - return $this->logout_url; - } - - /** - * Logout url. - * - * Generated from protobuf field string logout_url = 4; - * @param string $var - * @return $this - */ - public function setLogoutUrl($var) - { - GPBUtil::checkString($var, True); - $this->logout_url = $var; - - return $this; - } - - /** - * Login redirect. - * - * Generated from protobuf field bool login_redirect = 5; - * @return bool - */ - public function getLoginRedirect() - { - return $this->login_redirect; - } - - /** - * Login redirect. - * - * Generated from protobuf field bool login_redirect = 5; - * @param bool $var - * @return $this - */ - public function setLoginRedirect($var) - { - GPBUtil::checkBool($var); - $this->login_redirect = $var; - - return $this; - } - -} - diff --git a/api/php/generated/Chirpstack/Api/OpenIdConnectLoginRequest.php b/api/php/generated/Chirpstack/Api/OpenIdConnectLoginRequest.php deleted file mode 100644 index 37a2d340..00000000 --- a/api/php/generated/Chirpstack/Api/OpenIdConnectLoginRequest.php +++ /dev/null @@ -1,99 +0,0 @@ -api.OpenIdConnectLoginRequest - */ -class OpenIdConnectLoginRequest extends \Google\Protobuf\Internal\Message -{ - /** - * OpenId Connect callback code. - * - * Generated from protobuf field string code = 1; - */ - protected $code = ''; - /** - * OpenId Connect callback state. - * - * Generated from protobuf field string state = 2; - */ - protected $state = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $code - * OpenId Connect callback code. - * @type string $state - * OpenId Connect callback state. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Chirpstack\Api\Internal::initOnce(); - parent::__construct($data); - } - - /** - * OpenId Connect callback code. - * - * Generated from protobuf field string code = 1; - * @return string - */ - public function getCode() - { - return $this->code; - } - - /** - * OpenId Connect callback code. - * - * Generated from protobuf field string code = 1; - * @param string $var - * @return $this - */ - public function setCode($var) - { - GPBUtil::checkString($var, True); - $this->code = $var; - - return $this; - } - - /** - * OpenId Connect callback state. - * - * Generated from protobuf field string state = 2; - * @return string - */ - public function getState() - { - return $this->state; - } - - /** - * OpenId Connect callback state. - * - * Generated from protobuf field string state = 2; - * @param string $var - * @return $this - */ - public function setState($var) - { - GPBUtil::checkString($var, True); - $this->state = $var; - - return $this; - } - -} - diff --git a/api/php/generated/Chirpstack/Api/OpenIdConnectLoginResponse.php b/api/php/generated/Chirpstack/Api/OpenIdConnectLoginResponse.php deleted file mode 100644 index 8c75d70d..00000000 --- a/api/php/generated/Chirpstack/Api/OpenIdConnectLoginResponse.php +++ /dev/null @@ -1,65 +0,0 @@ -api.OpenIdConnectLoginResponse - */ -class OpenIdConnectLoginResponse extends \Google\Protobuf\Internal\Message -{ - /** - * Token to use for authentication. - * - * Generated from protobuf field string token = 1; - */ - protected $token = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $token - * Token to use for authentication. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Chirpstack\Api\Internal::initOnce(); - parent::__construct($data); - } - - /** - * Token to use for authentication. - * - * Generated from protobuf field string token = 1; - * @return string - */ - public function getToken() - { - return $this->token; - } - - /** - * Token to use for authentication. - * - * Generated from protobuf field string token = 1; - * @param string $var - * @return $this - */ - public function setToken($var) - { - GPBUtil::checkString($var, True); - $this->token = $var; - - return $this; - } - -} - diff --git a/api/php/generated/Chirpstack/Api/PilotThingsIntegration.php b/api/php/generated/Chirpstack/Api/PilotThingsIntegration.php deleted file mode 100644 index 1b21cc3a..00000000 --- a/api/php/generated/Chirpstack/Api/PilotThingsIntegration.php +++ /dev/null @@ -1,133 +0,0 @@ -api.PilotThingsIntegration - */ -class PilotThingsIntegration extends \Google\Protobuf\Internal\Message -{ - /** - * Application ID (UUID). - * - * Generated from protobuf field string application_id = 1; - */ - protected $application_id = ''; - /** - * Server URL. - * - * Generated from protobuf field string server = 2; - */ - protected $server = ''; - /** - * Authentication token. - * - * Generated from protobuf field string token = 3; - */ - protected $token = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $application_id - * Application ID (UUID). - * @type string $server - * Server URL. - * @type string $token - * Authentication token. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Chirpstack\Api\Application::initOnce(); - parent::__construct($data); - } - - /** - * Application ID (UUID). - * - * Generated from protobuf field string application_id = 1; - * @return string - */ - public function getApplicationId() - { - return $this->application_id; - } - - /** - * Application ID (UUID). - * - * Generated from protobuf field string application_id = 1; - * @param string $var - * @return $this - */ - public function setApplicationId($var) - { - GPBUtil::checkString($var, True); - $this->application_id = $var; - - return $this; - } - - /** - * Server URL. - * - * Generated from protobuf field string server = 2; - * @return string - */ - public function getServer() - { - return $this->server; - } - - /** - * Server URL. - * - * Generated from protobuf field string server = 2; - * @param string $var - * @return $this - */ - public function setServer($var) - { - GPBUtil::checkString($var, True); - $this->server = $var; - - return $this; - } - - /** - * Authentication token. - * - * Generated from protobuf field string token = 3; - * @return string - */ - public function getToken() - { - return $this->token; - } - - /** - * Authentication token. - * - * Generated from protobuf field string token = 3; - * @param string $var - * @return $this - */ - public function setToken($var) - { - GPBUtil::checkString($var, True); - $this->token = $var; - - return $this; - } - -} - diff --git a/api/php/generated/Chirpstack/Api/ProfileResponse.php b/api/php/generated/Chirpstack/Api/ProfileResponse.php deleted file mode 100644 index 0a7549f2..00000000 --- a/api/php/generated/Chirpstack/Api/ProfileResponse.php +++ /dev/null @@ -1,109 +0,0 @@ -api.ProfileResponse - */ -class ProfileResponse extends \Google\Protobuf\Internal\Message -{ - /** - * User object. - * - * Generated from protobuf field .api.User user = 1; - */ - protected $user = null; - /** - * Tenants to which the user is associated. - * - * Generated from protobuf field repeated .api.UserTenantLink tenants = 3; - */ - private $tenants; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Chirpstack\Api\User $user - * User object. - * @type array<\Chirpstack\Api\UserTenantLink>|\Google\Protobuf\Internal\RepeatedField $tenants - * Tenants to which the user is associated. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Chirpstack\Api\Internal::initOnce(); - parent::__construct($data); - } - - /** - * User object. - * - * Generated from protobuf field .api.User user = 1; - * @return \Chirpstack\Api\User|null - */ - public function getUser() - { - return $this->user; - } - - public function hasUser() - { - return isset($this->user); - } - - public function clearUser() - { - unset($this->user); - } - - /** - * User object. - * - * Generated from protobuf field .api.User user = 1; - * @param \Chirpstack\Api\User $var - * @return $this - */ - public function setUser($var) - { - GPBUtil::checkMessage($var, \Chirpstack\Api\User::class); - $this->user = $var; - - return $this; - } - - /** - * Tenants to which the user is associated. - * - * Generated from protobuf field repeated .api.UserTenantLink tenants = 3; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getTenants() - { - return $this->tenants; - } - - /** - * Tenants to which the user is associated. - * - * Generated from protobuf field repeated .api.UserTenantLink tenants = 3; - * @param array<\Chirpstack\Api\UserTenantLink>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setTenants($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Chirpstack\Api\UserTenantLink::class); - $this->tenants = $arr; - - return $this; - } - -} - diff --git a/api/php/generated/Chirpstack/Api/RegionChannel.php b/api/php/generated/Chirpstack/Api/RegionChannel.php deleted file mode 100644 index c6a99291..00000000 --- a/api/php/generated/Chirpstack/Api/RegionChannel.php +++ /dev/null @@ -1,133 +0,0 @@ -api.RegionChannel - */ -class RegionChannel extends \Google\Protobuf\Internal\Message -{ - /** - * Frequency (Hz). - * - * Generated from protobuf field uint32 frequency = 1; - */ - protected $frequency = 0; - /** - * Min DR. - * - * Generated from protobuf field uint32 dr_min = 2; - */ - protected $dr_min = 0; - /** - * Max DR. - * - * Generated from protobuf field uint32 dr_max = 3; - */ - protected $dr_max = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $frequency - * Frequency (Hz). - * @type int $dr_min - * Min DR. - * @type int $dr_max - * Max DR. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Chirpstack\Api\Internal::initOnce(); - parent::__construct($data); - } - - /** - * Frequency (Hz). - * - * Generated from protobuf field uint32 frequency = 1; - * @return int - */ - public function getFrequency() - { - return $this->frequency; - } - - /** - * Frequency (Hz). - * - * Generated from protobuf field uint32 frequency = 1; - * @param int $var - * @return $this - */ - public function setFrequency($var) - { - GPBUtil::checkUint32($var); - $this->frequency = $var; - - return $this; - } - - /** - * Min DR. - * - * Generated from protobuf field uint32 dr_min = 2; - * @return int - */ - public function getDrMin() - { - return $this->dr_min; - } - - /** - * Min DR. - * - * Generated from protobuf field uint32 dr_min = 2; - * @param int $var - * @return $this - */ - public function setDrMin($var) - { - GPBUtil::checkUint32($var); - $this->dr_min = $var; - - return $this; - } - - /** - * Max DR. - * - * Generated from protobuf field uint32 dr_max = 3; - * @return int - */ - public function getDrMax() - { - return $this->dr_max; - } - - /** - * Max DR. - * - * Generated from protobuf field uint32 dr_max = 3; - * @param int $var - * @return $this - */ - public function setDrMax($var) - { - GPBUtil::checkUint32($var); - $this->dr_max = $var; - - return $this; - } - -} - diff --git a/api/php/generated/Chirpstack/Api/RegionListItem.php b/api/php/generated/Chirpstack/Api/RegionListItem.php deleted file mode 100644 index 08c8e504..00000000 --- a/api/php/generated/Chirpstack/Api/RegionListItem.php +++ /dev/null @@ -1,133 +0,0 @@ -api.RegionListItem - */ -class RegionListItem extends \Google\Protobuf\Internal\Message -{ - /** - * ID. - * - * Generated from protobuf field string id = 1; - */ - protected $id = ''; - /** - * Region. - * - * Generated from protobuf field .common.Region region = 2; - */ - protected $region = 0; - /** - * Description. - * - * Generated from protobuf field string description = 3; - */ - protected $description = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $id - * ID. - * @type int $region - * Region. - * @type string $description - * Description. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Chirpstack\Api\Internal::initOnce(); - parent::__construct($data); - } - - /** - * ID. - * - * Generated from protobuf field string id = 1; - * @return string - */ - public function getId() - { - return $this->id; - } - - /** - * ID. - * - * Generated from protobuf field string id = 1; - * @param string $var - * @return $this - */ - public function setId($var) - { - GPBUtil::checkString($var, True); - $this->id = $var; - - return $this; - } - - /** - * Region. - * - * Generated from protobuf field .common.Region region = 2; - * @return int - */ - public function getRegion() - { - return $this->region; - } - - /** - * Region. - * - * Generated from protobuf field .common.Region region = 2; - * @param int $var - * @return $this - */ - public function setRegion($var) - { - GPBUtil::checkEnum($var, \Chirpstack\Common\Region::class); - $this->region = $var; - - return $this; - } - - /** - * Description. - * - * Generated from protobuf field string description = 3; - * @return string - */ - public function getDescription() - { - return $this->description; - } - - /** - * Description. - * - * Generated from protobuf field string description = 3; - * @param string $var - * @return $this - */ - public function setDescription($var) - { - GPBUtil::checkString($var, True); - $this->description = $var; - - return $this; - } - -} - diff --git a/api/php/generated/Chirpstack/Api/RelayDeviceListItem.php b/api/php/generated/Chirpstack/Api/RelayDeviceListItem.php deleted file mode 100644 index c946daa3..00000000 --- a/api/php/generated/Chirpstack/Api/RelayDeviceListItem.php +++ /dev/null @@ -1,143 +0,0 @@ -api.RelayDeviceListItem - */ -class RelayDeviceListItem extends \Google\Protobuf\Internal\Message -{ - /** - * DevEUI (EUI64). - * - * Generated from protobuf field string dev_eui = 1; - */ - protected $dev_eui = ''; - /** - * Created at timestamp. - * - * Generated from protobuf field .google.protobuf.Timestamp created_at = 2; - */ - protected $created_at = null; - /** - * Device name. - * - * Generated from protobuf field string name = 3; - */ - protected $name = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $dev_eui - * DevEUI (EUI64). - * @type \Google\Protobuf\Timestamp $created_at - * Created at timestamp. - * @type string $name - * Device name. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Chirpstack\Api\Relay::initOnce(); - parent::__construct($data); - } - - /** - * DevEUI (EUI64). - * - * Generated from protobuf field string dev_eui = 1; - * @return string - */ - public function getDevEui() - { - return $this->dev_eui; - } - - /** - * DevEUI (EUI64). - * - * Generated from protobuf field string dev_eui = 1; - * @param string $var - * @return $this - */ - public function setDevEui($var) - { - GPBUtil::checkString($var, True); - $this->dev_eui = $var; - - return $this; - } - - /** - * Created at timestamp. - * - * Generated from protobuf field .google.protobuf.Timestamp created_at = 2; - * @return \Google\Protobuf\Timestamp|null - */ - public function getCreatedAt() - { - return $this->created_at; - } - - public function hasCreatedAt() - { - return isset($this->created_at); - } - - public function clearCreatedAt() - { - unset($this->created_at); - } - - /** - * Created at timestamp. - * - * Generated from protobuf field .google.protobuf.Timestamp created_at = 2; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setCreatedAt($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->created_at = $var; - - return $this; - } - - /** - * Device name. - * - * Generated from protobuf field string name = 3; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Device name. - * - * Generated from protobuf field string name = 3; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/api/php/generated/Chirpstack/Api/RelayGateway.php b/api/php/generated/Chirpstack/Api/RelayGateway.php deleted file mode 100644 index 3dcfdea6..00000000 --- a/api/php/generated/Chirpstack/Api/RelayGateway.php +++ /dev/null @@ -1,243 +0,0 @@ -api.RelayGateway - */ -class RelayGateway extends \Google\Protobuf\Internal\Message -{ - /** - * Tenant ID. - * - * Generated from protobuf field string tenant_id = 1; - */ - protected $tenant_id = ''; - /** - * Relay ID (4 byte HEX). - * - * Generated from protobuf field string relay_id = 2; - */ - protected $relay_id = ''; - /** - * Name. - * - * Generated from protobuf field string name = 3; - */ - protected $name = ''; - /** - * Description. - * - * Generated from protobuf field string description = 4; - */ - protected $description = ''; - /** - * Stats interval (seconds). - * This defines the expected interval in which the gateway sends its - * statistics. - * - * Generated from protobuf field uint32 stats_interval = 5; - */ - protected $stats_interval = 0; - /** - * Region configuration ID. - * - * Generated from protobuf field string region_config_id = 6; - */ - protected $region_config_id = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $tenant_id - * Tenant ID. - * @type string $relay_id - * Relay ID (4 byte HEX). - * @type string $name - * Name. - * @type string $description - * Description. - * @type int $stats_interval - * Stats interval (seconds). - * This defines the expected interval in which the gateway sends its - * statistics. - * @type string $region_config_id - * Region configuration ID. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Chirpstack\Api\Gateway::initOnce(); - parent::__construct($data); - } - - /** - * Tenant ID. - * - * Generated from protobuf field string tenant_id = 1; - * @return string - */ - public function getTenantId() - { - return $this->tenant_id; - } - - /** - * Tenant ID. - * - * Generated from protobuf field string tenant_id = 1; - * @param string $var - * @return $this - */ - public function setTenantId($var) - { - GPBUtil::checkString($var, True); - $this->tenant_id = $var; - - return $this; - } - - /** - * Relay ID (4 byte HEX). - * - * Generated from protobuf field string relay_id = 2; - * @return string - */ - public function getRelayId() - { - return $this->relay_id; - } - - /** - * Relay ID (4 byte HEX). - * - * Generated from protobuf field string relay_id = 2; - * @param string $var - * @return $this - */ - public function setRelayId($var) - { - GPBUtil::checkString($var, True); - $this->relay_id = $var; - - return $this; - } - - /** - * Name. - * - * Generated from protobuf field string name = 3; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Name. - * - * Generated from protobuf field string name = 3; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Description. - * - * Generated from protobuf field string description = 4; - * @return string - */ - public function getDescription() - { - return $this->description; - } - - /** - * Description. - * - * Generated from protobuf field string description = 4; - * @param string $var - * @return $this - */ - public function setDescription($var) - { - GPBUtil::checkString($var, True); - $this->description = $var; - - return $this; - } - - /** - * Stats interval (seconds). - * This defines the expected interval in which the gateway sends its - * statistics. - * - * Generated from protobuf field uint32 stats_interval = 5; - * @return int - */ - public function getStatsInterval() - { - return $this->stats_interval; - } - - /** - * Stats interval (seconds). - * This defines the expected interval in which the gateway sends its - * statistics. - * - * Generated from protobuf field uint32 stats_interval = 5; - * @param int $var - * @return $this - */ - public function setStatsInterval($var) - { - GPBUtil::checkUint32($var); - $this->stats_interval = $var; - - return $this; - } - - /** - * Region configuration ID. - * - * Generated from protobuf field string region_config_id = 6; - * @return string - */ - public function getRegionConfigId() - { - return $this->region_config_id; - } - - /** - * Region configuration ID. - * - * Generated from protobuf field string region_config_id = 6; - * @param string $var - * @return $this - */ - public function setRegionConfigId($var) - { - GPBUtil::checkString($var, True); - $this->region_config_id = $var; - - return $this; - } - -} - diff --git a/api/php/generated/Chirpstack/Api/RelayGatewayListItem.php b/api/php/generated/Chirpstack/Api/RelayGatewayListItem.php deleted file mode 100644 index 5e2341d1..00000000 --- a/api/php/generated/Chirpstack/Api/RelayGatewayListItem.php +++ /dev/null @@ -1,375 +0,0 @@ -api.RelayGatewayListItem - */ -class RelayGatewayListItem extends \Google\Protobuf\Internal\Message -{ - /** - * Tenant ID. - * - * Generated from protobuf field string tenant_id = 1; - */ - protected $tenant_id = ''; - /** - * Relay ID (4 byte HEX). - * - * Generated from protobuf field string relay_id = 2; - */ - protected $relay_id = ''; - /** - * Name. - * - * Generated from protobuf field string name = 3; - */ - protected $name = ''; - /** - * Description. - * - * Generated from protobuf field string description = 4; - */ - protected $description = ''; - /** - * Created at timestamp. - * - * Generated from protobuf field .google.protobuf.Timestamp created_at = 5; - */ - protected $created_at = null; - /** - * Last update timestamp. - * - * Generated from protobuf field .google.protobuf.Timestamp updated_at = 6; - */ - protected $updated_at = null; - /** - * Last seen at timestamp. - * - * Generated from protobuf field .google.protobuf.Timestamp last_seen_at = 7; - */ - protected $last_seen_at = null; - /** - * Gateway state. - * Please note that the state of the relay is driven by the last - * received stats packet sent by the relay-gateway. - * - * Generated from protobuf field .api.GatewayState state = 10; - */ - protected $state = 0; - /** - * Region configuration ID. - * - * Generated from protobuf field string region_config_id = 11; - */ - protected $region_config_id = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $tenant_id - * Tenant ID. - * @type string $relay_id - * Relay ID (4 byte HEX). - * @type string $name - * Name. - * @type string $description - * Description. - * @type \Google\Protobuf\Timestamp $created_at - * Created at timestamp. - * @type \Google\Protobuf\Timestamp $updated_at - * Last update timestamp. - * @type \Google\Protobuf\Timestamp $last_seen_at - * Last seen at timestamp. - * @type int $state - * Gateway state. - * Please note that the state of the relay is driven by the last - * received stats packet sent by the relay-gateway. - * @type string $region_config_id - * Region configuration ID. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Chirpstack\Api\Gateway::initOnce(); - parent::__construct($data); - } - - /** - * Tenant ID. - * - * Generated from protobuf field string tenant_id = 1; - * @return string - */ - public function getTenantId() - { - return $this->tenant_id; - } - - /** - * Tenant ID. - * - * Generated from protobuf field string tenant_id = 1; - * @param string $var - * @return $this - */ - public function setTenantId($var) - { - GPBUtil::checkString($var, True); - $this->tenant_id = $var; - - return $this; - } - - /** - * Relay ID (4 byte HEX). - * - * Generated from protobuf field string relay_id = 2; - * @return string - */ - public function getRelayId() - { - return $this->relay_id; - } - - /** - * Relay ID (4 byte HEX). - * - * Generated from protobuf field string relay_id = 2; - * @param string $var - * @return $this - */ - public function setRelayId($var) - { - GPBUtil::checkString($var, True); - $this->relay_id = $var; - - return $this; - } - - /** - * Name. - * - * Generated from protobuf field string name = 3; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Name. - * - * Generated from protobuf field string name = 3; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Description. - * - * Generated from protobuf field string description = 4; - * @return string - */ - public function getDescription() - { - return $this->description; - } - - /** - * Description. - * - * Generated from protobuf field string description = 4; - * @param string $var - * @return $this - */ - public function setDescription($var) - { - GPBUtil::checkString($var, True); - $this->description = $var; - - return $this; - } - - /** - * Created at timestamp. - * - * Generated from protobuf field .google.protobuf.Timestamp created_at = 5; - * @return \Google\Protobuf\Timestamp|null - */ - public function getCreatedAt() - { - return $this->created_at; - } - - public function hasCreatedAt() - { - return isset($this->created_at); - } - - public function clearCreatedAt() - { - unset($this->created_at); - } - - /** - * Created at timestamp. - * - * Generated from protobuf field .google.protobuf.Timestamp created_at = 5; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setCreatedAt($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->created_at = $var; - - return $this; - } - - /** - * Last update timestamp. - * - * Generated from protobuf field .google.protobuf.Timestamp updated_at = 6; - * @return \Google\Protobuf\Timestamp|null - */ - public function getUpdatedAt() - { - return $this->updated_at; - } - - public function hasUpdatedAt() - { - return isset($this->updated_at); - } - - public function clearUpdatedAt() - { - unset($this->updated_at); - } - - /** - * Last update timestamp. - * - * Generated from protobuf field .google.protobuf.Timestamp updated_at = 6; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setUpdatedAt($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->updated_at = $var; - - return $this; - } - - /** - * Last seen at timestamp. - * - * Generated from protobuf field .google.protobuf.Timestamp last_seen_at = 7; - * @return \Google\Protobuf\Timestamp|null - */ - public function getLastSeenAt() - { - return $this->last_seen_at; - } - - public function hasLastSeenAt() - { - return isset($this->last_seen_at); - } - - public function clearLastSeenAt() - { - unset($this->last_seen_at); - } - - /** - * Last seen at timestamp. - * - * Generated from protobuf field .google.protobuf.Timestamp last_seen_at = 7; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setLastSeenAt($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->last_seen_at = $var; - - return $this; - } - - /** - * Gateway state. - * Please note that the state of the relay is driven by the last - * received stats packet sent by the relay-gateway. - * - * Generated from protobuf field .api.GatewayState state = 10; - * @return int - */ - public function getState() - { - return $this->state; - } - - /** - * Gateway state. - * Please note that the state of the relay is driven by the last - * received stats packet sent by the relay-gateway. - * - * Generated from protobuf field .api.GatewayState state = 10; - * @param int $var - * @return $this - */ - public function setState($var) - { - GPBUtil::checkEnum($var, \Chirpstack\Api\GatewayState::class); - $this->state = $var; - - return $this; - } - - /** - * Region configuration ID. - * - * Generated from protobuf field string region_config_id = 11; - * @return string - */ - public function getRegionConfigId() - { - return $this->region_config_id; - } - - /** - * Region configuration ID. - * - * Generated from protobuf field string region_config_id = 11; - * @param string $var - * @return $this - */ - public function setRegionConfigId($var) - { - GPBUtil::checkString($var, True); - $this->region_config_id = $var; - - return $this; - } - -} - diff --git a/api/php/generated/Chirpstack/Api/RelayListItem.php b/api/php/generated/Chirpstack/Api/RelayListItem.php deleted file mode 100644 index 55f2a09e..00000000 --- a/api/php/generated/Chirpstack/Api/RelayListItem.php +++ /dev/null @@ -1,99 +0,0 @@ -api.RelayListItem - */ -class RelayListItem extends \Google\Protobuf\Internal\Message -{ - /** - * DevEUI (EUI64). - * - * Generated from protobuf field string dev_eui = 1; - */ - protected $dev_eui = ''; - /** - * Name. - * - * Generated from protobuf field string name = 2; - */ - protected $name = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $dev_eui - * DevEUI (EUI64). - * @type string $name - * Name. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Chirpstack\Api\Relay::initOnce(); - parent::__construct($data); - } - - /** - * DevEUI (EUI64). - * - * Generated from protobuf field string dev_eui = 1; - * @return string - */ - public function getDevEui() - { - return $this->dev_eui; - } - - /** - * DevEUI (EUI64). - * - * Generated from protobuf field string dev_eui = 1; - * @param string $var - * @return $this - */ - public function setDevEui($var) - { - GPBUtil::checkString($var, True); - $this->dev_eui = $var; - - return $this; - } - - /** - * Name. - * - * Generated from protobuf field string name = 2; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Name. - * - * Generated from protobuf field string name = 2; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/api/php/generated/Chirpstack/Api/RelayModeActivation.php b/api/php/generated/Chirpstack/Api/RelayModeActivation.php deleted file mode 100644 index f9c32263..00000000 --- a/api/php/generated/Chirpstack/Api/RelayModeActivation.php +++ /dev/null @@ -1,66 +0,0 @@ -api.RelayModeActivation - */ -class RelayModeActivation -{ - /** - * Disable the relay mode. - * - * Generated from protobuf enum DISABLE_RELAY_MODE = 0; - */ - const DISABLE_RELAY_MODE = 0; - /** - * Enable the relay model. - * - * Generated from protobuf enum ENABLE_RELAY_MODE = 1; - */ - const ENABLE_RELAY_MODE = 1; - /** - * Dynamic. - * - * Generated from protobuf enum DYNAMIC = 2; - */ - const DYNAMIC = 2; - /** - * End-device controlled. - * - * Generated from protobuf enum END_DEVICE_CONTROLLED = 3; - */ - const END_DEVICE_CONTROLLED = 3; - - private static $valueToName = [ - self::DISABLE_RELAY_MODE => 'DISABLE_RELAY_MODE', - self::ENABLE_RELAY_MODE => 'ENABLE_RELAY_MODE', - self::DYNAMIC => 'DYNAMIC', - self::END_DEVICE_CONTROLLED => 'END_DEVICE_CONTROLLED', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - diff --git a/api/php/generated/Chirpstack/Api/RelayServiceClient.php b/api/php/generated/Chirpstack/Api/RelayServiceClient.php deleted file mode 100644 index 85380c4c..00000000 --- a/api/php/generated/Chirpstack/Api/RelayServiceClient.php +++ /dev/null @@ -1,80 +0,0 @@ -_simpleRequest('/api.RelayService/List', - $argument, - ['\Chirpstack\Api\ListRelaysResponse', 'decode'], - $metadata, $options); - } - - /** - * AddDevice adds the given device to the relay. - * @param \Chirpstack\Api\AddRelayDeviceRequest $argument input argument - * @param array $metadata metadata - * @param array $options call options - * @return \Grpc\UnaryCall - */ - public function AddDevice(\Chirpstack\Api\AddRelayDeviceRequest $argument, - $metadata = [], $options = []) { - return $this->_simpleRequest('/api.RelayService/AddDevice', - $argument, - ['\Google\Protobuf\GPBEmpty', 'decode'], - $metadata, $options); - } - - /** - * RemoveDevice removes the given device from the relay. - * @param \Chirpstack\Api\RemoveRelayDeviceRequest $argument input argument - * @param array $metadata metadata - * @param array $options call options - * @return \Grpc\UnaryCall - */ - public function RemoveDevice(\Chirpstack\Api\RemoveRelayDeviceRequest $argument, - $metadata = [], $options = []) { - return $this->_simpleRequest('/api.RelayService/RemoveDevice', - $argument, - ['\Google\Protobuf\GPBEmpty', 'decode'], - $metadata, $options); - } - - /** - * ListDevices lists the devices for the given relay. - * @param \Chirpstack\Api\ListRelayDevicesRequest $argument input argument - * @param array $metadata metadata - * @param array $options call options - * @return \Grpc\UnaryCall - */ - public function ListDevices(\Chirpstack\Api\ListRelayDevicesRequest $argument, - $metadata = [], $options = []) { - return $this->_simpleRequest('/api.RelayService/ListDevices', - $argument, - ['\Chirpstack\Api\ListRelayDevicesResponse', 'decode'], - $metadata, $options); - } - -} diff --git a/api/php/generated/Chirpstack/Api/RemoveDeviceFromMulticastGroupRequest.php b/api/php/generated/Chirpstack/Api/RemoveDeviceFromMulticastGroupRequest.php deleted file mode 100644 index e7af0724..00000000 --- a/api/php/generated/Chirpstack/Api/RemoveDeviceFromMulticastGroupRequest.php +++ /dev/null @@ -1,99 +0,0 @@ -api.RemoveDeviceFromMulticastGroupRequest - */ -class RemoveDeviceFromMulticastGroupRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Multicast group ID. - * - * Generated from protobuf field string multicast_group_id = 1; - */ - protected $multicast_group_id = ''; - /** - * Device EUI (HEX encoded). - * - * Generated from protobuf field string dev_eui = 2; - */ - protected $dev_eui = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $multicast_group_id - * Multicast group ID. - * @type string $dev_eui - * Device EUI (HEX encoded). - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Chirpstack\Api\MulticastGroup::initOnce(); - parent::__construct($data); - } - - /** - * Multicast group ID. - * - * Generated from protobuf field string multicast_group_id = 1; - * @return string - */ - public function getMulticastGroupId() - { - return $this->multicast_group_id; - } - - /** - * Multicast group ID. - * - * Generated from protobuf field string multicast_group_id = 1; - * @param string $var - * @return $this - */ - public function setMulticastGroupId($var) - { - GPBUtil::checkString($var, True); - $this->multicast_group_id = $var; - - return $this; - } - - /** - * Device EUI (HEX encoded). - * - * Generated from protobuf field string dev_eui = 2; - * @return string - */ - public function getDevEui() - { - return $this->dev_eui; - } - - /** - * Device EUI (HEX encoded). - * - * Generated from protobuf field string dev_eui = 2; - * @param string $var - * @return $this - */ - public function setDevEui($var) - { - GPBUtil::checkString($var, True); - $this->dev_eui = $var; - - return $this; - } - -} - diff --git a/api/php/generated/Chirpstack/Api/RemoveGatewayFromMulticastGroupRequest.php b/api/php/generated/Chirpstack/Api/RemoveGatewayFromMulticastGroupRequest.php deleted file mode 100644 index 4655feff..00000000 --- a/api/php/generated/Chirpstack/Api/RemoveGatewayFromMulticastGroupRequest.php +++ /dev/null @@ -1,99 +0,0 @@ -api.RemoveGatewayFromMulticastGroupRequest - */ -class RemoveGatewayFromMulticastGroupRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Multicast group ID. - * - * Generated from protobuf field string multicast_group_id = 1; - */ - protected $multicast_group_id = ''; - /** - * Gateway ID (HEX encoded). - * - * Generated from protobuf field string gateway_id = 2; - */ - protected $gateway_id = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $multicast_group_id - * Multicast group ID. - * @type string $gateway_id - * Gateway ID (HEX encoded). - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Chirpstack\Api\MulticastGroup::initOnce(); - parent::__construct($data); - } - - /** - * Multicast group ID. - * - * Generated from protobuf field string multicast_group_id = 1; - * @return string - */ - public function getMulticastGroupId() - { - return $this->multicast_group_id; - } - - /** - * Multicast group ID. - * - * Generated from protobuf field string multicast_group_id = 1; - * @param string $var - * @return $this - */ - public function setMulticastGroupId($var) - { - GPBUtil::checkString($var, True); - $this->multicast_group_id = $var; - - return $this; - } - - /** - * Gateway ID (HEX encoded). - * - * Generated from protobuf field string gateway_id = 2; - * @return string - */ - public function getGatewayId() - { - return $this->gateway_id; - } - - /** - * Gateway ID (HEX encoded). - * - * Generated from protobuf field string gateway_id = 2; - * @param string $var - * @return $this - */ - public function setGatewayId($var) - { - GPBUtil::checkString($var, True); - $this->gateway_id = $var; - - return $this; - } - -} - diff --git a/api/php/generated/Chirpstack/Api/RemoveRelayDeviceRequest.php b/api/php/generated/Chirpstack/Api/RemoveRelayDeviceRequest.php deleted file mode 100644 index e9a78131..00000000 --- a/api/php/generated/Chirpstack/Api/RemoveRelayDeviceRequest.php +++ /dev/null @@ -1,99 +0,0 @@ -api.RemoveRelayDeviceRequest - */ -class RemoveRelayDeviceRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Relay DevEUI (EUI64). - * - * Generated from protobuf field string relay_dev_eui = 1; - */ - protected $relay_dev_eui = ''; - /** - * Device DevEUI (EUI64). - * - * Generated from protobuf field string device_dev_eui = 2; - */ - protected $device_dev_eui = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $relay_dev_eui - * Relay DevEUI (EUI64). - * @type string $device_dev_eui - * Device DevEUI (EUI64). - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Chirpstack\Api\Relay::initOnce(); - parent::__construct($data); - } - - /** - * Relay DevEUI (EUI64). - * - * Generated from protobuf field string relay_dev_eui = 1; - * @return string - */ - public function getRelayDevEui() - { - return $this->relay_dev_eui; - } - - /** - * Relay DevEUI (EUI64). - * - * Generated from protobuf field string relay_dev_eui = 1; - * @param string $var - * @return $this - */ - public function setRelayDevEui($var) - { - GPBUtil::checkString($var, True); - $this->relay_dev_eui = $var; - - return $this; - } - - /** - * Device DevEUI (EUI64). - * - * Generated from protobuf field string device_dev_eui = 2; - * @return string - */ - public function getDeviceDevEui() - { - return $this->device_dev_eui; - } - - /** - * Device DevEUI (EUI64). - * - * Generated from protobuf field string device_dev_eui = 2; - * @param string $var - * @return $this - */ - public function setDeviceDevEui($var) - { - GPBUtil::checkString($var, True); - $this->device_dev_eui = $var; - - return $this; - } - -} - diff --git a/api/php/generated/Chirpstack/Api/SecondChAckOffset.php b/api/php/generated/Chirpstack/Api/SecondChAckOffset.php deleted file mode 100644 index d9a275b2..00000000 --- a/api/php/generated/Chirpstack/Api/SecondChAckOffset.php +++ /dev/null @@ -1,80 +0,0 @@ -api.SecondChAckOffset - */ -class SecondChAckOffset -{ - /** - * 0 kHz. - * - * Generated from protobuf enum KHZ_0 = 0; - */ - const KHZ_0 = 0; - /** - * 200 kHz. - * - * Generated from protobuf enum KHZ_200 = 1; - */ - const KHZ_200 = 1; - /** - * 400 kHz. - * - * Generated from protobuf enum KHZ_400 = 2; - */ - const KHZ_400 = 2; - /** - * 800 kHz. - * - * Generated from protobuf enum KHZ_800 = 3; - */ - const KHZ_800 = 3; - /** - * 1600 kHz. - * - * Generated from protobuf enum KHZ_1600 = 4; - */ - const KHZ_1600 = 4; - /** - * 3200 kHz. - * - * Generated from protobuf enum KHZ_3200 = 5; - */ - const KHZ_3200 = 5; - - private static $valueToName = [ - self::KHZ_0 => 'KHZ_0', - self::KHZ_200 => 'KHZ_200', - self::KHZ_400 => 'KHZ_400', - self::KHZ_800 => 'KHZ_800', - self::KHZ_1600 => 'KHZ_1600', - self::KHZ_3200 => 'KHZ_3200', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - diff --git a/api/php/generated/Chirpstack/Api/SettingsResponse.php b/api/php/generated/Chirpstack/Api/SettingsResponse.php deleted file mode 100644 index 34a79daa..00000000 --- a/api/php/generated/Chirpstack/Api/SettingsResponse.php +++ /dev/null @@ -1,119 +0,0 @@ -api.SettingsResponse - */ -class SettingsResponse extends \Google\Protobuf\Internal\Message -{ - /** - * OpenId Connect settings. - * - * Generated from protobuf field .api.OpenIdConnect openid_connect = 1; - */ - protected $openid_connect = null; - /** - * OAuth2 settings. - * - * Generated from protobuf field .api.OAuth2 oauth2 = 2; - */ - protected $oauth2 = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Chirpstack\Api\OpenIdConnect $openid_connect - * OpenId Connect settings. - * @type \Chirpstack\Api\OAuth2 $oauth2 - * OAuth2 settings. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Chirpstack\Api\Internal::initOnce(); - parent::__construct($data); - } - - /** - * OpenId Connect settings. - * - * Generated from protobuf field .api.OpenIdConnect openid_connect = 1; - * @return \Chirpstack\Api\OpenIdConnect|null - */ - public function getOpenidConnect() - { - return $this->openid_connect; - } - - public function hasOpenidConnect() - { - return isset($this->openid_connect); - } - - public function clearOpenidConnect() - { - unset($this->openid_connect); - } - - /** - * OpenId Connect settings. - * - * Generated from protobuf field .api.OpenIdConnect openid_connect = 1; - * @param \Chirpstack\Api\OpenIdConnect $var - * @return $this - */ - public function setOpenidConnect($var) - { - GPBUtil::checkMessage($var, \Chirpstack\Api\OpenIdConnect::class); - $this->openid_connect = $var; - - return $this; - } - - /** - * OAuth2 settings. - * - * Generated from protobuf field .api.OAuth2 oauth2 = 2; - * @return \Chirpstack\Api\OAuth2|null - */ - public function getOauth2() - { - return $this->oauth2; - } - - public function hasOauth2() - { - return isset($this->oauth2); - } - - public function clearOauth2() - { - unset($this->oauth2); - } - - /** - * OAuth2 settings. - * - * Generated from protobuf field .api.OAuth2 oauth2 = 2; - * @param \Chirpstack\Api\OAuth2 $var - * @return $this - */ - public function setOauth2($var) - { - GPBUtil::checkMessage($var, \Chirpstack\Api\OAuth2::class); - $this->oauth2 = $var; - - return $this; - } - -} - diff --git a/api/php/generated/Chirpstack/Api/StreamDeviceEventsRequest.php b/api/php/generated/Chirpstack/Api/StreamDeviceEventsRequest.php deleted file mode 100644 index 8f33669a..00000000 --- a/api/php/generated/Chirpstack/Api/StreamDeviceEventsRequest.php +++ /dev/null @@ -1,65 +0,0 @@ -api.StreamDeviceEventsRequest - */ -class StreamDeviceEventsRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Device EUI. - * - * Generated from protobuf field string dev_eui = 1; - */ - protected $dev_eui = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $dev_eui - * Device EUI. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Chirpstack\Api\Internal::initOnce(); - parent::__construct($data); - } - - /** - * Device EUI. - * - * Generated from protobuf field string dev_eui = 1; - * @return string - */ - public function getDevEui() - { - return $this->dev_eui; - } - - /** - * Device EUI. - * - * Generated from protobuf field string dev_eui = 1; - * @param string $var - * @return $this - */ - public function setDevEui($var) - { - GPBUtil::checkString($var, True); - $this->dev_eui = $var; - - return $this; - } - -} - diff --git a/api/php/generated/Chirpstack/Api/StreamDeviceFramesRequest.php b/api/php/generated/Chirpstack/Api/StreamDeviceFramesRequest.php deleted file mode 100644 index 5b3abe89..00000000 --- a/api/php/generated/Chirpstack/Api/StreamDeviceFramesRequest.php +++ /dev/null @@ -1,65 +0,0 @@ -api.StreamDeviceFramesRequest - */ -class StreamDeviceFramesRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Device EUI. - * - * Generated from protobuf field string dev_eui = 1; - */ - protected $dev_eui = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $dev_eui - * Device EUI. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Chirpstack\Api\Internal::initOnce(); - parent::__construct($data); - } - - /** - * Device EUI. - * - * Generated from protobuf field string dev_eui = 1; - * @return string - */ - public function getDevEui() - { - return $this->dev_eui; - } - - /** - * Device EUI. - * - * Generated from protobuf field string dev_eui = 1; - * @param string $var - * @return $this - */ - public function setDevEui($var) - { - GPBUtil::checkString($var, True); - $this->dev_eui = $var; - - return $this; - } - -} - diff --git a/api/php/generated/Chirpstack/Api/StreamGatewayFramesRequest.php b/api/php/generated/Chirpstack/Api/StreamGatewayFramesRequest.php deleted file mode 100644 index 45030ac6..00000000 --- a/api/php/generated/Chirpstack/Api/StreamGatewayFramesRequest.php +++ /dev/null @@ -1,65 +0,0 @@ -api.StreamGatewayFramesRequest - */ -class StreamGatewayFramesRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Gateway ID (EUI64). - * - * Generated from protobuf field string gateway_id = 1; - */ - protected $gateway_id = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $gateway_id - * Gateway ID (EUI64). - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Chirpstack\Api\Internal::initOnce(); - parent::__construct($data); - } - - /** - * Gateway ID (EUI64). - * - * Generated from protobuf field string gateway_id = 1; - * @return string - */ - public function getGatewayId() - { - return $this->gateway_id; - } - - /** - * Gateway ID (EUI64). - * - * Generated from protobuf field string gateway_id = 1; - * @param string $var - * @return $this - */ - public function setGatewayId($var) - { - GPBUtil::checkString($var, True); - $this->gateway_id = $var; - - return $this; - } - -} - diff --git a/api/php/generated/Chirpstack/Api/Tenant.php b/api/php/generated/Chirpstack/Api/Tenant.php deleted file mode 100644 index 304ec028..00000000 --- a/api/php/generated/Chirpstack/Api/Tenant.php +++ /dev/null @@ -1,377 +0,0 @@ -api.Tenant - */ -class Tenant extends \Google\Protobuf\Internal\Message -{ - /** - * Tenant ID (UUID). - * Note: this value will be automatically generated on create. - * - * Generated from protobuf field string id = 1; - */ - protected $id = ''; - /** - * Tenant name, - * - * Generated from protobuf field string name = 2; - */ - protected $name = ''; - /** - * Tenant description. - * - * Generated from protobuf field string description = 3; - */ - protected $description = ''; - /** - * Can the tenant create and "own" Gateways? - * - * Generated from protobuf field bool can_have_gateways = 4; - */ - protected $can_have_gateways = false; - /** - * Max. gateway count for tenant. - * When set to 0, the tenant can have unlimited gateways. - * - * Generated from protobuf field uint32 max_gateway_count = 5; - */ - protected $max_gateway_count = 0; - /** - * Max. device count for tenant. - * When set to 0, the tenant can have unlimited devices. - * - * Generated from protobuf field uint32 max_device_count = 6; - */ - protected $max_device_count = 0; - /** - * Private gateways (uplink). - * If enabled, then uplink messages will not be shared with other tenants. - * - * Generated from protobuf field bool private_gateways_up = 7; - */ - protected $private_gateways_up = false; - /** - * Private gateways (downlink). - * If enabled, then other tenants will not be able to schedule downlink - * messages through the gateways of this tenant. For example, in case you - * do want to share uplinks with other tenants (private_gateways_up=false), - * but you want to prevent other tenants from using gateway airtime. - * - * Generated from protobuf field bool private_gateways_down = 8; - */ - protected $private_gateways_down = false; - /** - * Tags (user defined). - * These tags can be used to add additional information to the tenant. These - * tags are NOT exposed in the integration events. - * - * Generated from protobuf field map tags = 9; - */ - private $tags; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $id - * Tenant ID (UUID). - * Note: this value will be automatically generated on create. - * @type string $name - * Tenant name, - * @type string $description - * Tenant description. - * @type bool $can_have_gateways - * Can the tenant create and "own" Gateways? - * @type int $max_gateway_count - * Max. gateway count for tenant. - * When set to 0, the tenant can have unlimited gateways. - * @type int $max_device_count - * Max. device count for tenant. - * When set to 0, the tenant can have unlimited devices. - * @type bool $private_gateways_up - * Private gateways (uplink). - * If enabled, then uplink messages will not be shared with other tenants. - * @type bool $private_gateways_down - * Private gateways (downlink). - * If enabled, then other tenants will not be able to schedule downlink - * messages through the gateways of this tenant. For example, in case you - * do want to share uplinks with other tenants (private_gateways_up=false), - * but you want to prevent other tenants from using gateway airtime. - * @type array|\Google\Protobuf\Internal\MapField $tags - * Tags (user defined). - * These tags can be used to add additional information to the tenant. These - * tags are NOT exposed in the integration events. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Chirpstack\Api\Tenant::initOnce(); - parent::__construct($data); - } - - /** - * Tenant ID (UUID). - * Note: this value will be automatically generated on create. - * - * Generated from protobuf field string id = 1; - * @return string - */ - public function getId() - { - return $this->id; - } - - /** - * Tenant ID (UUID). - * Note: this value will be automatically generated on create. - * - * Generated from protobuf field string id = 1; - * @param string $var - * @return $this - */ - public function setId($var) - { - GPBUtil::checkString($var, True); - $this->id = $var; - - return $this; - } - - /** - * Tenant name, - * - * Generated from protobuf field string name = 2; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Tenant name, - * - * Generated from protobuf field string name = 2; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Tenant description. - * - * Generated from protobuf field string description = 3; - * @return string - */ - public function getDescription() - { - return $this->description; - } - - /** - * Tenant description. - * - * Generated from protobuf field string description = 3; - * @param string $var - * @return $this - */ - public function setDescription($var) - { - GPBUtil::checkString($var, True); - $this->description = $var; - - return $this; - } - - /** - * Can the tenant create and "own" Gateways? - * - * Generated from protobuf field bool can_have_gateways = 4; - * @return bool - */ - public function getCanHaveGateways() - { - return $this->can_have_gateways; - } - - /** - * Can the tenant create and "own" Gateways? - * - * Generated from protobuf field bool can_have_gateways = 4; - * @param bool $var - * @return $this - */ - public function setCanHaveGateways($var) - { - GPBUtil::checkBool($var); - $this->can_have_gateways = $var; - - return $this; - } - - /** - * Max. gateway count for tenant. - * When set to 0, the tenant can have unlimited gateways. - * - * Generated from protobuf field uint32 max_gateway_count = 5; - * @return int - */ - public function getMaxGatewayCount() - { - return $this->max_gateway_count; - } - - /** - * Max. gateway count for tenant. - * When set to 0, the tenant can have unlimited gateways. - * - * Generated from protobuf field uint32 max_gateway_count = 5; - * @param int $var - * @return $this - */ - public function setMaxGatewayCount($var) - { - GPBUtil::checkUint32($var); - $this->max_gateway_count = $var; - - return $this; - } - - /** - * Max. device count for tenant. - * When set to 0, the tenant can have unlimited devices. - * - * Generated from protobuf field uint32 max_device_count = 6; - * @return int - */ - public function getMaxDeviceCount() - { - return $this->max_device_count; - } - - /** - * Max. device count for tenant. - * When set to 0, the tenant can have unlimited devices. - * - * Generated from protobuf field uint32 max_device_count = 6; - * @param int $var - * @return $this - */ - public function setMaxDeviceCount($var) - { - GPBUtil::checkUint32($var); - $this->max_device_count = $var; - - return $this; - } - - /** - * Private gateways (uplink). - * If enabled, then uplink messages will not be shared with other tenants. - * - * Generated from protobuf field bool private_gateways_up = 7; - * @return bool - */ - public function getPrivateGatewaysUp() - { - return $this->private_gateways_up; - } - - /** - * Private gateways (uplink). - * If enabled, then uplink messages will not be shared with other tenants. - * - * Generated from protobuf field bool private_gateways_up = 7; - * @param bool $var - * @return $this - */ - public function setPrivateGatewaysUp($var) - { - GPBUtil::checkBool($var); - $this->private_gateways_up = $var; - - return $this; - } - - /** - * Private gateways (downlink). - * If enabled, then other tenants will not be able to schedule downlink - * messages through the gateways of this tenant. For example, in case you - * do want to share uplinks with other tenants (private_gateways_up=false), - * but you want to prevent other tenants from using gateway airtime. - * - * Generated from protobuf field bool private_gateways_down = 8; - * @return bool - */ - public function getPrivateGatewaysDown() - { - return $this->private_gateways_down; - } - - /** - * Private gateways (downlink). - * If enabled, then other tenants will not be able to schedule downlink - * messages through the gateways of this tenant. For example, in case you - * do want to share uplinks with other tenants (private_gateways_up=false), - * but you want to prevent other tenants from using gateway airtime. - * - * Generated from protobuf field bool private_gateways_down = 8; - * @param bool $var - * @return $this - */ - public function setPrivateGatewaysDown($var) - { - GPBUtil::checkBool($var); - $this->private_gateways_down = $var; - - return $this; - } - - /** - * Tags (user defined). - * These tags can be used to add additional information to the tenant. These - * tags are NOT exposed in the integration events. - * - * Generated from protobuf field map tags = 9; - * @return \Google\Protobuf\Internal\MapField - */ - public function getTags() - { - return $this->tags; - } - - /** - * Tags (user defined). - * These tags can be used to add additional information to the tenant. These - * tags are NOT exposed in the integration events. - * - * Generated from protobuf field map tags = 9; - * @param array|\Google\Protobuf\Internal\MapField $var - * @return $this - */ - public function setTags($var) - { - $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); - $this->tags = $arr; - - return $this; - } - -} - diff --git a/api/php/generated/Chirpstack/Api/TenantListItem.php b/api/php/generated/Chirpstack/Api/TenantListItem.php deleted file mode 100644 index 95be2b6a..00000000 --- a/api/php/generated/Chirpstack/Api/TenantListItem.php +++ /dev/null @@ -1,365 +0,0 @@ -api.TenantListItem - */ -class TenantListItem extends \Google\Protobuf\Internal\Message -{ - /** - * Tenant ID (UUID). - * - * Generated from protobuf field string id = 1; - */ - protected $id = ''; - /** - * Created at timestamp. - * - * Generated from protobuf field .google.protobuf.Timestamp created_at = 2; - */ - protected $created_at = null; - /** - * Last update timestamp. - * - * Generated from protobuf field .google.protobuf.Timestamp updated_at = 3; - */ - protected $updated_at = null; - /** - * Tenant name. - * - * Generated from protobuf field string name = 4; - */ - protected $name = ''; - /** - * Can the tenant create and "own" Gateways? - * - * Generated from protobuf field bool can_have_gateways = 5; - */ - protected $can_have_gateways = false; - /** - * Private gateways (uplink). - * - * Generated from protobuf field bool private_gateways_up = 6; - */ - protected $private_gateways_up = false; - /** - * Private gateways (downlink). - * - * Generated from protobuf field bool private_gateways_down = 9; - */ - protected $private_gateways_down = false; - /** - * Max gateway count. - * 0 = unlimited. - * - * Generated from protobuf field uint32 max_gateway_count = 7; - */ - protected $max_gateway_count = 0; - /** - * Max device count. - * 0 = unlimited. - * - * Generated from protobuf field uint32 max_device_count = 8; - */ - protected $max_device_count = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $id - * Tenant ID (UUID). - * @type \Google\Protobuf\Timestamp $created_at - * Created at timestamp. - * @type \Google\Protobuf\Timestamp $updated_at - * Last update timestamp. - * @type string $name - * Tenant name. - * @type bool $can_have_gateways - * Can the tenant create and "own" Gateways? - * @type bool $private_gateways_up - * Private gateways (uplink). - * @type bool $private_gateways_down - * Private gateways (downlink). - * @type int $max_gateway_count - * Max gateway count. - * 0 = unlimited. - * @type int $max_device_count - * Max device count. - * 0 = unlimited. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Chirpstack\Api\Tenant::initOnce(); - parent::__construct($data); - } - - /** - * Tenant ID (UUID). - * - * Generated from protobuf field string id = 1; - * @return string - */ - public function getId() - { - return $this->id; - } - - /** - * Tenant ID (UUID). - * - * Generated from protobuf field string id = 1; - * @param string $var - * @return $this - */ - public function setId($var) - { - GPBUtil::checkString($var, True); - $this->id = $var; - - return $this; - } - - /** - * Created at timestamp. - * - * Generated from protobuf field .google.protobuf.Timestamp created_at = 2; - * @return \Google\Protobuf\Timestamp|null - */ - public function getCreatedAt() - { - return $this->created_at; - } - - public function hasCreatedAt() - { - return isset($this->created_at); - } - - public function clearCreatedAt() - { - unset($this->created_at); - } - - /** - * Created at timestamp. - * - * Generated from protobuf field .google.protobuf.Timestamp created_at = 2; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setCreatedAt($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->created_at = $var; - - return $this; - } - - /** - * Last update timestamp. - * - * Generated from protobuf field .google.protobuf.Timestamp updated_at = 3; - * @return \Google\Protobuf\Timestamp|null - */ - public function getUpdatedAt() - { - return $this->updated_at; - } - - public function hasUpdatedAt() - { - return isset($this->updated_at); - } - - public function clearUpdatedAt() - { - unset($this->updated_at); - } - - /** - * Last update timestamp. - * - * Generated from protobuf field .google.protobuf.Timestamp updated_at = 3; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setUpdatedAt($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->updated_at = $var; - - return $this; - } - - /** - * Tenant name. - * - * Generated from protobuf field string name = 4; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Tenant name. - * - * Generated from protobuf field string name = 4; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Can the tenant create and "own" Gateways? - * - * Generated from protobuf field bool can_have_gateways = 5; - * @return bool - */ - public function getCanHaveGateways() - { - return $this->can_have_gateways; - } - - /** - * Can the tenant create and "own" Gateways? - * - * Generated from protobuf field bool can_have_gateways = 5; - * @param bool $var - * @return $this - */ - public function setCanHaveGateways($var) - { - GPBUtil::checkBool($var); - $this->can_have_gateways = $var; - - return $this; - } - - /** - * Private gateways (uplink). - * - * Generated from protobuf field bool private_gateways_up = 6; - * @return bool - */ - public function getPrivateGatewaysUp() - { - return $this->private_gateways_up; - } - - /** - * Private gateways (uplink). - * - * Generated from protobuf field bool private_gateways_up = 6; - * @param bool $var - * @return $this - */ - public function setPrivateGatewaysUp($var) - { - GPBUtil::checkBool($var); - $this->private_gateways_up = $var; - - return $this; - } - - /** - * Private gateways (downlink). - * - * Generated from protobuf field bool private_gateways_down = 9; - * @return bool - */ - public function getPrivateGatewaysDown() - { - return $this->private_gateways_down; - } - - /** - * Private gateways (downlink). - * - * Generated from protobuf field bool private_gateways_down = 9; - * @param bool $var - * @return $this - */ - public function setPrivateGatewaysDown($var) - { - GPBUtil::checkBool($var); - $this->private_gateways_down = $var; - - return $this; - } - - /** - * Max gateway count. - * 0 = unlimited. - * - * Generated from protobuf field uint32 max_gateway_count = 7; - * @return int - */ - public function getMaxGatewayCount() - { - return $this->max_gateway_count; - } - - /** - * Max gateway count. - * 0 = unlimited. - * - * Generated from protobuf field uint32 max_gateway_count = 7; - * @param int $var - * @return $this - */ - public function setMaxGatewayCount($var) - { - GPBUtil::checkUint32($var); - $this->max_gateway_count = $var; - - return $this; - } - - /** - * Max device count. - * 0 = unlimited. - * - * Generated from protobuf field uint32 max_device_count = 8; - * @return int - */ - public function getMaxDeviceCount() - { - return $this->max_device_count; - } - - /** - * Max device count. - * 0 = unlimited. - * - * Generated from protobuf field uint32 max_device_count = 8; - * @param int $var - * @return $this - */ - public function setMaxDeviceCount($var) - { - GPBUtil::checkUint32($var); - $this->max_device_count = $var; - - return $this; - } - -} - diff --git a/api/php/generated/Chirpstack/Api/TenantServiceClient.php b/api/php/generated/Chirpstack/Api/TenantServiceClient.php deleted file mode 100644 index d9bbd8d1..00000000 --- a/api/php/generated/Chirpstack/Api/TenantServiceClient.php +++ /dev/null @@ -1,171 +0,0 @@ -_simpleRequest('/api.TenantService/Create', - $argument, - ['\Chirpstack\Api\CreateTenantResponse', 'decode'], - $metadata, $options); - } - - /** - * Get the tenant for the given ID. - * @param \Chirpstack\Api\GetTenantRequest $argument input argument - * @param array $metadata metadata - * @param array $options call options - * @return \Grpc\UnaryCall - */ - public function Get(\Chirpstack\Api\GetTenantRequest $argument, - $metadata = [], $options = []) { - return $this->_simpleRequest('/api.TenantService/Get', - $argument, - ['\Chirpstack\Api\GetTenantResponse', 'decode'], - $metadata, $options); - } - - /** - * Update the given tenant. - * @param \Chirpstack\Api\UpdateTenantRequest $argument input argument - * @param array $metadata metadata - * @param array $options call options - * @return \Grpc\UnaryCall - */ - public function Update(\Chirpstack\Api\UpdateTenantRequest $argument, - $metadata = [], $options = []) { - return $this->_simpleRequest('/api.TenantService/Update', - $argument, - ['\Google\Protobuf\GPBEmpty', 'decode'], - $metadata, $options); - } - - /** - * Delete the tenant with the given ID. - * @param \Chirpstack\Api\DeleteTenantRequest $argument input argument - * @param array $metadata metadata - * @param array $options call options - * @return \Grpc\UnaryCall - */ - public function Delete(\Chirpstack\Api\DeleteTenantRequest $argument, - $metadata = [], $options = []) { - return $this->_simpleRequest('/api.TenantService/Delete', - $argument, - ['\Google\Protobuf\GPBEmpty', 'decode'], - $metadata, $options); - } - - /** - * Get the list of tenants. - * @param \Chirpstack\Api\ListTenantsRequest $argument input argument - * @param array $metadata metadata - * @param array $options call options - * @return \Grpc\UnaryCall - */ - public function List(\Chirpstack\Api\ListTenantsRequest $argument, - $metadata = [], $options = []) { - return $this->_simpleRequest('/api.TenantService/List', - $argument, - ['\Chirpstack\Api\ListTenantsResponse', 'decode'], - $metadata, $options); - } - - /** - * Add an user to the tenant. - * Note: the user must already exist. - * @param \Chirpstack\Api\AddTenantUserRequest $argument input argument - * @param array $metadata metadata - * @param array $options call options - * @return \Grpc\UnaryCall - */ - public function AddUser(\Chirpstack\Api\AddTenantUserRequest $argument, - $metadata = [], $options = []) { - return $this->_simpleRequest('/api.TenantService/AddUser', - $argument, - ['\Google\Protobuf\GPBEmpty', 'decode'], - $metadata, $options); - } - - /** - * Get the the tenant user for the given tenant and user IDs. - * @param \Chirpstack\Api\GetTenantUserRequest $argument input argument - * @param array $metadata metadata - * @param array $options call options - * @return \Grpc\UnaryCall - */ - public function GetUser(\Chirpstack\Api\GetTenantUserRequest $argument, - $metadata = [], $options = []) { - return $this->_simpleRequest('/api.TenantService/GetUser', - $argument, - ['\Chirpstack\Api\GetTenantUserResponse', 'decode'], - $metadata, $options); - } - - /** - * Update the given tenant user. - * @param \Chirpstack\Api\UpdateTenantUserRequest $argument input argument - * @param array $metadata metadata - * @param array $options call options - * @return \Grpc\UnaryCall - */ - public function UpdateUser(\Chirpstack\Api\UpdateTenantUserRequest $argument, - $metadata = [], $options = []) { - return $this->_simpleRequest('/api.TenantService/UpdateUser', - $argument, - ['\Google\Protobuf\GPBEmpty', 'decode'], - $metadata, $options); - } - - /** - * Delete the given tenant user. - * @param \Chirpstack\Api\DeleteTenantUserRequest $argument input argument - * @param array $metadata metadata - * @param array $options call options - * @return \Grpc\UnaryCall - */ - public function DeleteUser(\Chirpstack\Api\DeleteTenantUserRequest $argument, - $metadata = [], $options = []) { - return $this->_simpleRequest('/api.TenantService/DeleteUser', - $argument, - ['\Google\Protobuf\GPBEmpty', 'decode'], - $metadata, $options); - } - - /** - * Get the list of tenant users. - * @param \Chirpstack\Api\ListTenantUsersRequest $argument input argument - * @param array $metadata metadata - * @param array $options call options - * @return \Grpc\UnaryCall - */ - public function ListUsers(\Chirpstack\Api\ListTenantUsersRequest $argument, - $metadata = [], $options = []) { - return $this->_simpleRequest('/api.TenantService/ListUsers', - $argument, - ['\Chirpstack\Api\ListTenantUsersResponse', 'decode'], - $metadata, $options); - } - -} diff --git a/api/php/generated/Chirpstack/Api/TenantUser.php b/api/php/generated/Chirpstack/Api/TenantUser.php deleted file mode 100644 index 5ff4e9b5..00000000 --- a/api/php/generated/Chirpstack/Api/TenantUser.php +++ /dev/null @@ -1,243 +0,0 @@ -api.TenantUser - */ -class TenantUser extends \Google\Protobuf\Internal\Message -{ - /** - * Tenant ID (UUID). - * - * Generated from protobuf field string tenant_id = 1; - */ - protected $tenant_id = ''; - /** - * User ID (UUID). - * - * Generated from protobuf field string user_id = 2; - */ - protected $user_id = ''; - /** - * User is admin within the context of the tenant. - * There is no need to set the is_device_admin and is_gateway_admin flags. - * - * Generated from protobuf field bool is_admin = 3; - */ - protected $is_admin = false; - /** - * User is able to modify device related resources (applications, - * device-profiles, devices, multicast-groups). - * - * Generated from protobuf field bool is_device_admin = 4; - */ - protected $is_device_admin = false; - /** - * User is able to modify gateways. - * - * Generated from protobuf field bool is_gateway_admin = 5; - */ - protected $is_gateway_admin = false; - /** - * Email (only used on get and when adding a user to a tenant). - * - * Generated from protobuf field string email = 6; - */ - protected $email = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $tenant_id - * Tenant ID (UUID). - * @type string $user_id - * User ID (UUID). - * @type bool $is_admin - * User is admin within the context of the tenant. - * There is no need to set the is_device_admin and is_gateway_admin flags. - * @type bool $is_device_admin - * User is able to modify device related resources (applications, - * device-profiles, devices, multicast-groups). - * @type bool $is_gateway_admin - * User is able to modify gateways. - * @type string $email - * Email (only used on get and when adding a user to a tenant). - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Chirpstack\Api\Tenant::initOnce(); - parent::__construct($data); - } - - /** - * Tenant ID (UUID). - * - * Generated from protobuf field string tenant_id = 1; - * @return string - */ - public function getTenantId() - { - return $this->tenant_id; - } - - /** - * Tenant ID (UUID). - * - * Generated from protobuf field string tenant_id = 1; - * @param string $var - * @return $this - */ - public function setTenantId($var) - { - GPBUtil::checkString($var, True); - $this->tenant_id = $var; - - return $this; - } - - /** - * User ID (UUID). - * - * Generated from protobuf field string user_id = 2; - * @return string - */ - public function getUserId() - { - return $this->user_id; - } - - /** - * User ID (UUID). - * - * Generated from protobuf field string user_id = 2; - * @param string $var - * @return $this - */ - public function setUserId($var) - { - GPBUtil::checkString($var, True); - $this->user_id = $var; - - return $this; - } - - /** - * User is admin within the context of the tenant. - * There is no need to set the is_device_admin and is_gateway_admin flags. - * - * Generated from protobuf field bool is_admin = 3; - * @return bool - */ - public function getIsAdmin() - { - return $this->is_admin; - } - - /** - * User is admin within the context of the tenant. - * There is no need to set the is_device_admin and is_gateway_admin flags. - * - * Generated from protobuf field bool is_admin = 3; - * @param bool $var - * @return $this - */ - public function setIsAdmin($var) - { - GPBUtil::checkBool($var); - $this->is_admin = $var; - - return $this; - } - - /** - * User is able to modify device related resources (applications, - * device-profiles, devices, multicast-groups). - * - * Generated from protobuf field bool is_device_admin = 4; - * @return bool - */ - public function getIsDeviceAdmin() - { - return $this->is_device_admin; - } - - /** - * User is able to modify device related resources (applications, - * device-profiles, devices, multicast-groups). - * - * Generated from protobuf field bool is_device_admin = 4; - * @param bool $var - * @return $this - */ - public function setIsDeviceAdmin($var) - { - GPBUtil::checkBool($var); - $this->is_device_admin = $var; - - return $this; - } - - /** - * User is able to modify gateways. - * - * Generated from protobuf field bool is_gateway_admin = 5; - * @return bool - */ - public function getIsGatewayAdmin() - { - return $this->is_gateway_admin; - } - - /** - * User is able to modify gateways. - * - * Generated from protobuf field bool is_gateway_admin = 5; - * @param bool $var - * @return $this - */ - public function setIsGatewayAdmin($var) - { - GPBUtil::checkBool($var); - $this->is_gateway_admin = $var; - - return $this; - } - - /** - * Email (only used on get and when adding a user to a tenant). - * - * Generated from protobuf field string email = 6; - * @return string - */ - public function getEmail() - { - return $this->email; - } - - /** - * Email (only used on get and when adding a user to a tenant). - * - * Generated from protobuf field string email = 6; - * @param string $var - * @return $this - */ - public function setEmail($var) - { - GPBUtil::checkString($var, True); - $this->email = $var; - - return $this; - } - -} - diff --git a/api/php/generated/Chirpstack/Api/TenantUserListItem.php b/api/php/generated/Chirpstack/Api/TenantUserListItem.php deleted file mode 100644 index 15024189..00000000 --- a/api/php/generated/Chirpstack/Api/TenantUserListItem.php +++ /dev/null @@ -1,331 +0,0 @@ -api.TenantUserListItem - */ -class TenantUserListItem extends \Google\Protobuf\Internal\Message -{ - /** - * Tenant ID (UUID). - * - * Generated from protobuf field string tenant_id = 1; - */ - protected $tenant_id = ''; - /** - * User ID (UUID). - * - * Generated from protobuf field string user_id = 2; - */ - protected $user_id = ''; - /** - * Created at timestamp. - * - * Generated from protobuf field .google.protobuf.Timestamp created_at = 3; - */ - protected $created_at = null; - /** - * Last update timestamp. - * - * Generated from protobuf field .google.protobuf.Timestamp updated_at = 4; - */ - protected $updated_at = null; - /** - * Email. - * - * Generated from protobuf field string email = 5; - */ - protected $email = ''; - /** - * User is admin within the context of the tenant. - * There is no need to set the is_device_admin and is_gateway_admin flags. - * - * Generated from protobuf field bool is_admin = 6; - */ - protected $is_admin = false; - /** - * User is able to modify device related resources (applications, - * device-profiles, devices, multicast-groups). - * - * Generated from protobuf field bool is_device_admin = 7; - */ - protected $is_device_admin = false; - /** - * User is able to modify gateways. - * - * Generated from protobuf field bool is_gateway_admin = 8; - */ - protected $is_gateway_admin = false; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $tenant_id - * Tenant ID (UUID). - * @type string $user_id - * User ID (UUID). - * @type \Google\Protobuf\Timestamp $created_at - * Created at timestamp. - * @type \Google\Protobuf\Timestamp $updated_at - * Last update timestamp. - * @type string $email - * Email. - * @type bool $is_admin - * User is admin within the context of the tenant. - * There is no need to set the is_device_admin and is_gateway_admin flags. - * @type bool $is_device_admin - * User is able to modify device related resources (applications, - * device-profiles, devices, multicast-groups). - * @type bool $is_gateway_admin - * User is able to modify gateways. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Chirpstack\Api\Tenant::initOnce(); - parent::__construct($data); - } - - /** - * Tenant ID (UUID). - * - * Generated from protobuf field string tenant_id = 1; - * @return string - */ - public function getTenantId() - { - return $this->tenant_id; - } - - /** - * Tenant ID (UUID). - * - * Generated from protobuf field string tenant_id = 1; - * @param string $var - * @return $this - */ - public function setTenantId($var) - { - GPBUtil::checkString($var, True); - $this->tenant_id = $var; - - return $this; - } - - /** - * User ID (UUID). - * - * Generated from protobuf field string user_id = 2; - * @return string - */ - public function getUserId() - { - return $this->user_id; - } - - /** - * User ID (UUID). - * - * Generated from protobuf field string user_id = 2; - * @param string $var - * @return $this - */ - public function setUserId($var) - { - GPBUtil::checkString($var, True); - $this->user_id = $var; - - return $this; - } - - /** - * Created at timestamp. - * - * Generated from protobuf field .google.protobuf.Timestamp created_at = 3; - * @return \Google\Protobuf\Timestamp|null - */ - public function getCreatedAt() - { - return $this->created_at; - } - - public function hasCreatedAt() - { - return isset($this->created_at); - } - - public function clearCreatedAt() - { - unset($this->created_at); - } - - /** - * Created at timestamp. - * - * Generated from protobuf field .google.protobuf.Timestamp created_at = 3; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setCreatedAt($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->created_at = $var; - - return $this; - } - - /** - * Last update timestamp. - * - * Generated from protobuf field .google.protobuf.Timestamp updated_at = 4; - * @return \Google\Protobuf\Timestamp|null - */ - public function getUpdatedAt() - { - return $this->updated_at; - } - - public function hasUpdatedAt() - { - return isset($this->updated_at); - } - - public function clearUpdatedAt() - { - unset($this->updated_at); - } - - /** - * Last update timestamp. - * - * Generated from protobuf field .google.protobuf.Timestamp updated_at = 4; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setUpdatedAt($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->updated_at = $var; - - return $this; - } - - /** - * Email. - * - * Generated from protobuf field string email = 5; - * @return string - */ - public function getEmail() - { - return $this->email; - } - - /** - * Email. - * - * Generated from protobuf field string email = 5; - * @param string $var - * @return $this - */ - public function setEmail($var) - { - GPBUtil::checkString($var, True); - $this->email = $var; - - return $this; - } - - /** - * User is admin within the context of the tenant. - * There is no need to set the is_device_admin and is_gateway_admin flags. - * - * Generated from protobuf field bool is_admin = 6; - * @return bool - */ - public function getIsAdmin() - { - return $this->is_admin; - } - - /** - * User is admin within the context of the tenant. - * There is no need to set the is_device_admin and is_gateway_admin flags. - * - * Generated from protobuf field bool is_admin = 6; - * @param bool $var - * @return $this - */ - public function setIsAdmin($var) - { - GPBUtil::checkBool($var); - $this->is_admin = $var; - - return $this; - } - - /** - * User is able to modify device related resources (applications, - * device-profiles, devices, multicast-groups). - * - * Generated from protobuf field bool is_device_admin = 7; - * @return bool - */ - public function getIsDeviceAdmin() - { - return $this->is_device_admin; - } - - /** - * User is able to modify device related resources (applications, - * device-profiles, devices, multicast-groups). - * - * Generated from protobuf field bool is_device_admin = 7; - * @param bool $var - * @return $this - */ - public function setIsDeviceAdmin($var) - { - GPBUtil::checkBool($var); - $this->is_device_admin = $var; - - return $this; - } - - /** - * User is able to modify gateways. - * - * Generated from protobuf field bool is_gateway_admin = 8; - * @return bool - */ - public function getIsGatewayAdmin() - { - return $this->is_gateway_admin; - } - - /** - * User is able to modify gateways. - * - * Generated from protobuf field bool is_gateway_admin = 8; - * @param bool $var - * @return $this - */ - public function setIsGatewayAdmin($var) - { - GPBUtil::checkBool($var); - $this->is_gateway_admin = $var; - - return $this; - } - -} - diff --git a/api/php/generated/Chirpstack/Api/ThingsBoardIntegration.php b/api/php/generated/Chirpstack/Api/ThingsBoardIntegration.php deleted file mode 100644 index 8a377db5..00000000 --- a/api/php/generated/Chirpstack/Api/ThingsBoardIntegration.php +++ /dev/null @@ -1,99 +0,0 @@ -api.ThingsBoardIntegration - */ -class ThingsBoardIntegration extends \Google\Protobuf\Internal\Message -{ - /** - * Application ID (UUID). - * - * Generated from protobuf field string application_id = 1; - */ - protected $application_id = ''; - /** - * ThingsBoard server endpoint, e.g. https://example.com - * - * Generated from protobuf field string server = 2; - */ - protected $server = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $application_id - * Application ID (UUID). - * @type string $server - * ThingsBoard server endpoint, e.g. https://example.com - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Chirpstack\Api\Application::initOnce(); - parent::__construct($data); - } - - /** - * Application ID (UUID). - * - * Generated from protobuf field string application_id = 1; - * @return string - */ - public function getApplicationId() - { - return $this->application_id; - } - - /** - * Application ID (UUID). - * - * Generated from protobuf field string application_id = 1; - * @param string $var - * @return $this - */ - public function setApplicationId($var) - { - GPBUtil::checkString($var, True); - $this->application_id = $var; - - return $this; - } - - /** - * ThingsBoard server endpoint, e.g. https://example.com - * - * Generated from protobuf field string server = 2; - * @return string - */ - public function getServer() - { - return $this->server; - } - - /** - * ThingsBoard server endpoint, e.g. https://example.com - * - * Generated from protobuf field string server = 2; - * @param string $var - * @return $this - */ - public function setServer($var) - { - GPBUtil::checkString($var, True); - $this->server = $var; - - return $this; - } - -} - diff --git a/api/php/generated/Chirpstack/Api/UpdateApplicationRequest.php b/api/php/generated/Chirpstack/Api/UpdateApplicationRequest.php deleted file mode 100644 index e57a806b..00000000 --- a/api/php/generated/Chirpstack/Api/UpdateApplicationRequest.php +++ /dev/null @@ -1,75 +0,0 @@ -api.UpdateApplicationRequest - */ -class UpdateApplicationRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Application object. - * - * Generated from protobuf field .api.Application application = 1; - */ - protected $application = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Chirpstack\Api\Application $application - * Application object. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Chirpstack\Api\Application::initOnce(); - parent::__construct($data); - } - - /** - * Application object. - * - * Generated from protobuf field .api.Application application = 1; - * @return \Chirpstack\Api\Application|null - */ - public function getApplication() - { - return $this->application; - } - - public function hasApplication() - { - return isset($this->application); - } - - public function clearApplication() - { - unset($this->application); - } - - /** - * Application object. - * - * Generated from protobuf field .api.Application application = 1; - * @param \Chirpstack\Api\Application $var - * @return $this - */ - public function setApplication($var) - { - GPBUtil::checkMessage($var, \Chirpstack\Api\Application::class); - $this->application = $var; - - return $this; - } - -} - diff --git a/api/php/generated/Chirpstack/Api/UpdateAwsSnsIntegrationRequest.php b/api/php/generated/Chirpstack/Api/UpdateAwsSnsIntegrationRequest.php deleted file mode 100644 index e6a4bbab..00000000 --- a/api/php/generated/Chirpstack/Api/UpdateAwsSnsIntegrationRequest.php +++ /dev/null @@ -1,75 +0,0 @@ -api.UpdateAwsSnsIntegrationRequest - */ -class UpdateAwsSnsIntegrationRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Integration object to update. - * - * Generated from protobuf field .api.AwsSnsIntegration integration = 1; - */ - protected $integration = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Chirpstack\Api\AwsSnsIntegration $integration - * Integration object to update. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Chirpstack\Api\Application::initOnce(); - parent::__construct($data); - } - - /** - * Integration object to update. - * - * Generated from protobuf field .api.AwsSnsIntegration integration = 1; - * @return \Chirpstack\Api\AwsSnsIntegration|null - */ - public function getIntegration() - { - return $this->integration; - } - - public function hasIntegration() - { - return isset($this->integration); - } - - public function clearIntegration() - { - unset($this->integration); - } - - /** - * Integration object to update. - * - * Generated from protobuf field .api.AwsSnsIntegration integration = 1; - * @param \Chirpstack\Api\AwsSnsIntegration $var - * @return $this - */ - public function setIntegration($var) - { - GPBUtil::checkMessage($var, \Chirpstack\Api\AwsSnsIntegration::class); - $this->integration = $var; - - return $this; - } - -} - diff --git a/api/php/generated/Chirpstack/Api/UpdateAzureServiceBusIntegrationRequest.php b/api/php/generated/Chirpstack/Api/UpdateAzureServiceBusIntegrationRequest.php deleted file mode 100644 index 5c4e1afc..00000000 --- a/api/php/generated/Chirpstack/Api/UpdateAzureServiceBusIntegrationRequest.php +++ /dev/null @@ -1,75 +0,0 @@ -api.UpdateAzureServiceBusIntegrationRequest - */ -class UpdateAzureServiceBusIntegrationRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Integration object to create. - * - * Generated from protobuf field .api.AzureServiceBusIntegration integration = 1; - */ - protected $integration = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Chirpstack\Api\AzureServiceBusIntegration $integration - * Integration object to create. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Chirpstack\Api\Application::initOnce(); - parent::__construct($data); - } - - /** - * Integration object to create. - * - * Generated from protobuf field .api.AzureServiceBusIntegration integration = 1; - * @return \Chirpstack\Api\AzureServiceBusIntegration|null - */ - public function getIntegration() - { - return $this->integration; - } - - public function hasIntegration() - { - return isset($this->integration); - } - - public function clearIntegration() - { - unset($this->integration); - } - - /** - * Integration object to create. - * - * Generated from protobuf field .api.AzureServiceBusIntegration integration = 1; - * @param \Chirpstack\Api\AzureServiceBusIntegration $var - * @return $this - */ - public function setIntegration($var) - { - GPBUtil::checkMessage($var, \Chirpstack\Api\AzureServiceBusIntegration::class); - $this->integration = $var; - - return $this; - } - -} - diff --git a/api/php/generated/Chirpstack/Api/UpdateDeviceKeysRequest.php b/api/php/generated/Chirpstack/Api/UpdateDeviceKeysRequest.php deleted file mode 100644 index 63fa291e..00000000 --- a/api/php/generated/Chirpstack/Api/UpdateDeviceKeysRequest.php +++ /dev/null @@ -1,75 +0,0 @@ -api.UpdateDeviceKeysRequest - */ -class UpdateDeviceKeysRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Device-keys object. - * - * Generated from protobuf field .api.DeviceKeys device_keys = 1; - */ - protected $device_keys = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Chirpstack\Api\DeviceKeys $device_keys - * Device-keys object. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Chirpstack\Api\Device::initOnce(); - parent::__construct($data); - } - - /** - * Device-keys object. - * - * Generated from protobuf field .api.DeviceKeys device_keys = 1; - * @return \Chirpstack\Api\DeviceKeys|null - */ - public function getDeviceKeys() - { - return $this->device_keys; - } - - public function hasDeviceKeys() - { - return isset($this->device_keys); - } - - public function clearDeviceKeys() - { - unset($this->device_keys); - } - - /** - * Device-keys object. - * - * Generated from protobuf field .api.DeviceKeys device_keys = 1; - * @param \Chirpstack\Api\DeviceKeys $var - * @return $this - */ - public function setDeviceKeys($var) - { - GPBUtil::checkMessage($var, \Chirpstack\Api\DeviceKeys::class); - $this->device_keys = $var; - - return $this; - } - -} - diff --git a/api/php/generated/Chirpstack/Api/UpdateDeviceProfileRequest.php b/api/php/generated/Chirpstack/Api/UpdateDeviceProfileRequest.php deleted file mode 100644 index 6223af4b..00000000 --- a/api/php/generated/Chirpstack/Api/UpdateDeviceProfileRequest.php +++ /dev/null @@ -1,75 +0,0 @@ -api.UpdateDeviceProfileRequest - */ -class UpdateDeviceProfileRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Device-profile object. - * - * Generated from protobuf field .api.DeviceProfile device_profile = 1; - */ - protected $device_profile = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Chirpstack\Api\DeviceProfile $device_profile - * Device-profile object. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Chirpstack\Api\DeviceProfile::initOnce(); - parent::__construct($data); - } - - /** - * Device-profile object. - * - * Generated from protobuf field .api.DeviceProfile device_profile = 1; - * @return \Chirpstack\Api\DeviceProfile|null - */ - public function getDeviceProfile() - { - return $this->device_profile; - } - - public function hasDeviceProfile() - { - return isset($this->device_profile); - } - - public function clearDeviceProfile() - { - unset($this->device_profile); - } - - /** - * Device-profile object. - * - * Generated from protobuf field .api.DeviceProfile device_profile = 1; - * @param \Chirpstack\Api\DeviceProfile $var - * @return $this - */ - public function setDeviceProfile($var) - { - GPBUtil::checkMessage($var, \Chirpstack\Api\DeviceProfile::class); - $this->device_profile = $var; - - return $this; - } - -} - diff --git a/api/php/generated/Chirpstack/Api/UpdateDeviceProfileTemplateRequest.php b/api/php/generated/Chirpstack/Api/UpdateDeviceProfileTemplateRequest.php deleted file mode 100644 index 6f4b2f6a..00000000 --- a/api/php/generated/Chirpstack/Api/UpdateDeviceProfileTemplateRequest.php +++ /dev/null @@ -1,75 +0,0 @@ -api.UpdateDeviceProfileTemplateRequest - */ -class UpdateDeviceProfileTemplateRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Object to update. - * - * Generated from protobuf field .api.DeviceProfileTemplate device_profile_template = 1; - */ - protected $device_profile_template = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Chirpstack\Api\DeviceProfileTemplate $device_profile_template - * Object to update. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Chirpstack\Api\DeviceProfileTemplate::initOnce(); - parent::__construct($data); - } - - /** - * Object to update. - * - * Generated from protobuf field .api.DeviceProfileTemplate device_profile_template = 1; - * @return \Chirpstack\Api\DeviceProfileTemplate|null - */ - public function getDeviceProfileTemplate() - { - return $this->device_profile_template; - } - - public function hasDeviceProfileTemplate() - { - return isset($this->device_profile_template); - } - - public function clearDeviceProfileTemplate() - { - unset($this->device_profile_template); - } - - /** - * Object to update. - * - * Generated from protobuf field .api.DeviceProfileTemplate device_profile_template = 1; - * @param \Chirpstack\Api\DeviceProfileTemplate $var - * @return $this - */ - public function setDeviceProfileTemplate($var) - { - GPBUtil::checkMessage($var, \Chirpstack\Api\DeviceProfileTemplate::class); - $this->device_profile_template = $var; - - return $this; - } - -} - diff --git a/api/php/generated/Chirpstack/Api/UpdateDeviceRequest.php b/api/php/generated/Chirpstack/Api/UpdateDeviceRequest.php deleted file mode 100644 index 8d99ea8f..00000000 --- a/api/php/generated/Chirpstack/Api/UpdateDeviceRequest.php +++ /dev/null @@ -1,75 +0,0 @@ -api.UpdateDeviceRequest - */ -class UpdateDeviceRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Device object. - * - * Generated from protobuf field .api.Device device = 1; - */ - protected $device = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Chirpstack\Api\Device $device - * Device object. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Chirpstack\Api\Device::initOnce(); - parent::__construct($data); - } - - /** - * Device object. - * - * Generated from protobuf field .api.Device device = 1; - * @return \Chirpstack\Api\Device|null - */ - public function getDevice() - { - return $this->device; - } - - public function hasDevice() - { - return isset($this->device); - } - - public function clearDevice() - { - unset($this->device); - } - - /** - * Device object. - * - * Generated from protobuf field .api.Device device = 1; - * @param \Chirpstack\Api\Device $var - * @return $this - */ - public function setDevice($var) - { - GPBUtil::checkMessage($var, \Chirpstack\Api\Device::class); - $this->device = $var; - - return $this; - } - -} - diff --git a/api/php/generated/Chirpstack/Api/UpdateGatewayRequest.php b/api/php/generated/Chirpstack/Api/UpdateGatewayRequest.php deleted file mode 100644 index 70c16654..00000000 --- a/api/php/generated/Chirpstack/Api/UpdateGatewayRequest.php +++ /dev/null @@ -1,75 +0,0 @@ -api.UpdateGatewayRequest - */ -class UpdateGatewayRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Gateway object. - * - * Generated from protobuf field .api.Gateway gateway = 1; - */ - protected $gateway = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Chirpstack\Api\Gateway $gateway - * Gateway object. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Chirpstack\Api\Gateway::initOnce(); - parent::__construct($data); - } - - /** - * Gateway object. - * - * Generated from protobuf field .api.Gateway gateway = 1; - * @return \Chirpstack\Api\Gateway|null - */ - public function getGateway() - { - return $this->gateway; - } - - public function hasGateway() - { - return isset($this->gateway); - } - - public function clearGateway() - { - unset($this->gateway); - } - - /** - * Gateway object. - * - * Generated from protobuf field .api.Gateway gateway = 1; - * @param \Chirpstack\Api\Gateway $var - * @return $this - */ - public function setGateway($var) - { - GPBUtil::checkMessage($var, \Chirpstack\Api\Gateway::class); - $this->gateway = $var; - - return $this; - } - -} - diff --git a/api/php/generated/Chirpstack/Api/UpdateGcpPubSubIntegrationRequest.php b/api/php/generated/Chirpstack/Api/UpdateGcpPubSubIntegrationRequest.php deleted file mode 100644 index 932bfd0d..00000000 --- a/api/php/generated/Chirpstack/Api/UpdateGcpPubSubIntegrationRequest.php +++ /dev/null @@ -1,75 +0,0 @@ -api.UpdateGcpPubSubIntegrationRequest - */ -class UpdateGcpPubSubIntegrationRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Integration object to update. - * - * Generated from protobuf field .api.GcpPubSubIntegration integration = 1; - */ - protected $integration = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Chirpstack\Api\GcpPubSubIntegration $integration - * Integration object to update. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Chirpstack\Api\Application::initOnce(); - parent::__construct($data); - } - - /** - * Integration object to update. - * - * Generated from protobuf field .api.GcpPubSubIntegration integration = 1; - * @return \Chirpstack\Api\GcpPubSubIntegration|null - */ - public function getIntegration() - { - return $this->integration; - } - - public function hasIntegration() - { - return isset($this->integration); - } - - public function clearIntegration() - { - unset($this->integration); - } - - /** - * Integration object to update. - * - * Generated from protobuf field .api.GcpPubSubIntegration integration = 1; - * @param \Chirpstack\Api\GcpPubSubIntegration $var - * @return $this - */ - public function setIntegration($var) - { - GPBUtil::checkMessage($var, \Chirpstack\Api\GcpPubSubIntegration::class); - $this->integration = $var; - - return $this; - } - -} - diff --git a/api/php/generated/Chirpstack/Api/UpdateHttpIntegrationRequest.php b/api/php/generated/Chirpstack/Api/UpdateHttpIntegrationRequest.php deleted file mode 100644 index c54549bd..00000000 --- a/api/php/generated/Chirpstack/Api/UpdateHttpIntegrationRequest.php +++ /dev/null @@ -1,75 +0,0 @@ -api.UpdateHttpIntegrationRequest - */ -class UpdateHttpIntegrationRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Integration object to update. - * - * Generated from protobuf field .api.HttpIntegration integration = 1; - */ - protected $integration = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Chirpstack\Api\HttpIntegration $integration - * Integration object to update. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Chirpstack\Api\Application::initOnce(); - parent::__construct($data); - } - - /** - * Integration object to update. - * - * Generated from protobuf field .api.HttpIntegration integration = 1; - * @return \Chirpstack\Api\HttpIntegration|null - */ - public function getIntegration() - { - return $this->integration; - } - - public function hasIntegration() - { - return isset($this->integration); - } - - public function clearIntegration() - { - unset($this->integration); - } - - /** - * Integration object to update. - * - * Generated from protobuf field .api.HttpIntegration integration = 1; - * @param \Chirpstack\Api\HttpIntegration $var - * @return $this - */ - public function setIntegration($var) - { - GPBUtil::checkMessage($var, \Chirpstack\Api\HttpIntegration::class); - $this->integration = $var; - - return $this; - } - -} - diff --git a/api/php/generated/Chirpstack/Api/UpdateIftttIntegrationRequest.php b/api/php/generated/Chirpstack/Api/UpdateIftttIntegrationRequest.php deleted file mode 100644 index e4ca3cc1..00000000 --- a/api/php/generated/Chirpstack/Api/UpdateIftttIntegrationRequest.php +++ /dev/null @@ -1,75 +0,0 @@ -api.UpdateIftttIntegrationRequest - */ -class UpdateIftttIntegrationRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Integration object to update. - * - * Generated from protobuf field .api.IftttIntegration integration = 1; - */ - protected $integration = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Chirpstack\Api\IftttIntegration $integration - * Integration object to update. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Chirpstack\Api\Application::initOnce(); - parent::__construct($data); - } - - /** - * Integration object to update. - * - * Generated from protobuf field .api.IftttIntegration integration = 1; - * @return \Chirpstack\Api\IftttIntegration|null - */ - public function getIntegration() - { - return $this->integration; - } - - public function hasIntegration() - { - return isset($this->integration); - } - - public function clearIntegration() - { - unset($this->integration); - } - - /** - * Integration object to update. - * - * Generated from protobuf field .api.IftttIntegration integration = 1; - * @param \Chirpstack\Api\IftttIntegration $var - * @return $this - */ - public function setIntegration($var) - { - GPBUtil::checkMessage($var, \Chirpstack\Api\IftttIntegration::class); - $this->integration = $var; - - return $this; - } - -} - diff --git a/api/php/generated/Chirpstack/Api/UpdateInfluxDbIntegrationRequest.php b/api/php/generated/Chirpstack/Api/UpdateInfluxDbIntegrationRequest.php deleted file mode 100644 index 59aa5ffe..00000000 --- a/api/php/generated/Chirpstack/Api/UpdateInfluxDbIntegrationRequest.php +++ /dev/null @@ -1,75 +0,0 @@ -api.UpdateInfluxDbIntegrationRequest - */ -class UpdateInfluxDbIntegrationRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Integration object to update. - * - * Generated from protobuf field .api.InfluxDbIntegration integration = 1; - */ - protected $integration = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Chirpstack\Api\InfluxDbIntegration $integration - * Integration object to update. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Chirpstack\Api\Application::initOnce(); - parent::__construct($data); - } - - /** - * Integration object to update. - * - * Generated from protobuf field .api.InfluxDbIntegration integration = 1; - * @return \Chirpstack\Api\InfluxDbIntegration|null - */ - public function getIntegration() - { - return $this->integration; - } - - public function hasIntegration() - { - return isset($this->integration); - } - - public function clearIntegration() - { - unset($this->integration); - } - - /** - * Integration object to update. - * - * Generated from protobuf field .api.InfluxDbIntegration integration = 1; - * @param \Chirpstack\Api\InfluxDbIntegration $var - * @return $this - */ - public function setIntegration($var) - { - GPBUtil::checkMessage($var, \Chirpstack\Api\InfluxDbIntegration::class); - $this->integration = $var; - - return $this; - } - -} - diff --git a/api/php/generated/Chirpstack/Api/UpdateLoraCloudIntegrationRequest.php b/api/php/generated/Chirpstack/Api/UpdateLoraCloudIntegrationRequest.php deleted file mode 100644 index 32ce38c7..00000000 --- a/api/php/generated/Chirpstack/Api/UpdateLoraCloudIntegrationRequest.php +++ /dev/null @@ -1,75 +0,0 @@ -api.UpdateLoraCloudIntegrationRequest - */ -class UpdateLoraCloudIntegrationRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Integration object to update. - * - * Generated from protobuf field .api.LoraCloudIntegration integration = 1; - */ - protected $integration = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Chirpstack\Api\LoraCloudIntegration $integration - * Integration object to update. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Chirpstack\Api\Application::initOnce(); - parent::__construct($data); - } - - /** - * Integration object to update. - * - * Generated from protobuf field .api.LoraCloudIntegration integration = 1; - * @return \Chirpstack\Api\LoraCloudIntegration|null - */ - public function getIntegration() - { - return $this->integration; - } - - public function hasIntegration() - { - return isset($this->integration); - } - - public function clearIntegration() - { - unset($this->integration); - } - - /** - * Integration object to update. - * - * Generated from protobuf field .api.LoraCloudIntegration integration = 1; - * @param \Chirpstack\Api\LoraCloudIntegration $var - * @return $this - */ - public function setIntegration($var) - { - GPBUtil::checkMessage($var, \Chirpstack\Api\LoraCloudIntegration::class); - $this->integration = $var; - - return $this; - } - -} - diff --git a/api/php/generated/Chirpstack/Api/UpdateMulticastGroupRequest.php b/api/php/generated/Chirpstack/Api/UpdateMulticastGroupRequest.php deleted file mode 100644 index c3335f53..00000000 --- a/api/php/generated/Chirpstack/Api/UpdateMulticastGroupRequest.php +++ /dev/null @@ -1,75 +0,0 @@ -api.UpdateMulticastGroupRequest - */ -class UpdateMulticastGroupRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Multicast group object to update. - * - * Generated from protobuf field .api.MulticastGroup multicast_group = 1; - */ - protected $multicast_group = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Chirpstack\Api\MulticastGroup $multicast_group - * Multicast group object to update. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Chirpstack\Api\MulticastGroup::initOnce(); - parent::__construct($data); - } - - /** - * Multicast group object to update. - * - * Generated from protobuf field .api.MulticastGroup multicast_group = 1; - * @return \Chirpstack\Api\MulticastGroup|null - */ - public function getMulticastGroup() - { - return $this->multicast_group; - } - - public function hasMulticastGroup() - { - return isset($this->multicast_group); - } - - public function clearMulticastGroup() - { - unset($this->multicast_group); - } - - /** - * Multicast group object to update. - * - * Generated from protobuf field .api.MulticastGroup multicast_group = 1; - * @param \Chirpstack\Api\MulticastGroup $var - * @return $this - */ - public function setMulticastGroup($var) - { - GPBUtil::checkMessage($var, \Chirpstack\Api\MulticastGroup::class); - $this->multicast_group = $var; - - return $this; - } - -} - diff --git a/api/php/generated/Chirpstack/Api/UpdateMyDevicesIntegrationRequest.php b/api/php/generated/Chirpstack/Api/UpdateMyDevicesIntegrationRequest.php deleted file mode 100644 index edf966b0..00000000 --- a/api/php/generated/Chirpstack/Api/UpdateMyDevicesIntegrationRequest.php +++ /dev/null @@ -1,75 +0,0 @@ -api.UpdateMyDevicesIntegrationRequest - */ -class UpdateMyDevicesIntegrationRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Integration object to update. - * - * Generated from protobuf field .api.MyDevicesIntegration integration = 1; - */ - protected $integration = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Chirpstack\Api\MyDevicesIntegration $integration - * Integration object to update. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Chirpstack\Api\Application::initOnce(); - parent::__construct($data); - } - - /** - * Integration object to update. - * - * Generated from protobuf field .api.MyDevicesIntegration integration = 1; - * @return \Chirpstack\Api\MyDevicesIntegration|null - */ - public function getIntegration() - { - return $this->integration; - } - - public function hasIntegration() - { - return isset($this->integration); - } - - public function clearIntegration() - { - unset($this->integration); - } - - /** - * Integration object to update. - * - * Generated from protobuf field .api.MyDevicesIntegration integration = 1; - * @param \Chirpstack\Api\MyDevicesIntegration $var - * @return $this - */ - public function setIntegration($var) - { - GPBUtil::checkMessage($var, \Chirpstack\Api\MyDevicesIntegration::class); - $this->integration = $var; - - return $this; - } - -} - diff --git a/api/php/generated/Chirpstack/Api/UpdatePilotThingsIntegrationRequest.php b/api/php/generated/Chirpstack/Api/UpdatePilotThingsIntegrationRequest.php deleted file mode 100644 index dea61a69..00000000 --- a/api/php/generated/Chirpstack/Api/UpdatePilotThingsIntegrationRequest.php +++ /dev/null @@ -1,75 +0,0 @@ -api.UpdatePilotThingsIntegrationRequest - */ -class UpdatePilotThingsIntegrationRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Integration object to update. - * - * Generated from protobuf field .api.PilotThingsIntegration integration = 1; - */ - protected $integration = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Chirpstack\Api\PilotThingsIntegration $integration - * Integration object to update. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Chirpstack\Api\Application::initOnce(); - parent::__construct($data); - } - - /** - * Integration object to update. - * - * Generated from protobuf field .api.PilotThingsIntegration integration = 1; - * @return \Chirpstack\Api\PilotThingsIntegration|null - */ - public function getIntegration() - { - return $this->integration; - } - - public function hasIntegration() - { - return isset($this->integration); - } - - public function clearIntegration() - { - unset($this->integration); - } - - /** - * Integration object to update. - * - * Generated from protobuf field .api.PilotThingsIntegration integration = 1; - * @param \Chirpstack\Api\PilotThingsIntegration $var - * @return $this - */ - public function setIntegration($var) - { - GPBUtil::checkMessage($var, \Chirpstack\Api\PilotThingsIntegration::class); - $this->integration = $var; - - return $this; - } - -} - diff --git a/api/php/generated/Chirpstack/Api/UpdateRelayGatewayRequest.php b/api/php/generated/Chirpstack/Api/UpdateRelayGatewayRequest.php deleted file mode 100644 index 6f65f38c..00000000 --- a/api/php/generated/Chirpstack/Api/UpdateRelayGatewayRequest.php +++ /dev/null @@ -1,75 +0,0 @@ -api.UpdateRelayGatewayRequest - */ -class UpdateRelayGatewayRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Relay Gateway object. - * - * Generated from protobuf field .api.RelayGateway relay_gateway = 1; - */ - protected $relay_gateway = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Chirpstack\Api\RelayGateway $relay_gateway - * Relay Gateway object. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Chirpstack\Api\Gateway::initOnce(); - parent::__construct($data); - } - - /** - * Relay Gateway object. - * - * Generated from protobuf field .api.RelayGateway relay_gateway = 1; - * @return \Chirpstack\Api\RelayGateway|null - */ - public function getRelayGateway() - { - return $this->relay_gateway; - } - - public function hasRelayGateway() - { - return isset($this->relay_gateway); - } - - public function clearRelayGateway() - { - unset($this->relay_gateway); - } - - /** - * Relay Gateway object. - * - * Generated from protobuf field .api.RelayGateway relay_gateway = 1; - * @param \Chirpstack\Api\RelayGateway $var - * @return $this - */ - public function setRelayGateway($var) - { - GPBUtil::checkMessage($var, \Chirpstack\Api\RelayGateway::class); - $this->relay_gateway = $var; - - return $this; - } - -} - diff --git a/api/php/generated/Chirpstack/Api/UpdateTenantRequest.php b/api/php/generated/Chirpstack/Api/UpdateTenantRequest.php deleted file mode 100644 index 13a05a14..00000000 --- a/api/php/generated/Chirpstack/Api/UpdateTenantRequest.php +++ /dev/null @@ -1,75 +0,0 @@ -api.UpdateTenantRequest - */ -class UpdateTenantRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Tenant object. - * - * Generated from protobuf field .api.Tenant tenant = 1; - */ - protected $tenant = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Chirpstack\Api\Tenant $tenant - * Tenant object. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Chirpstack\Api\Tenant::initOnce(); - parent::__construct($data); - } - - /** - * Tenant object. - * - * Generated from protobuf field .api.Tenant tenant = 1; - * @return \Chirpstack\Api\Tenant|null - */ - public function getTenant() - { - return $this->tenant; - } - - public function hasTenant() - { - return isset($this->tenant); - } - - public function clearTenant() - { - unset($this->tenant); - } - - /** - * Tenant object. - * - * Generated from protobuf field .api.Tenant tenant = 1; - * @param \Chirpstack\Api\Tenant $var - * @return $this - */ - public function setTenant($var) - { - GPBUtil::checkMessage($var, \Chirpstack\Api\Tenant::class); - $this->tenant = $var; - - return $this; - } - -} - diff --git a/api/php/generated/Chirpstack/Api/UpdateTenantUserRequest.php b/api/php/generated/Chirpstack/Api/UpdateTenantUserRequest.php deleted file mode 100644 index 6f96e867..00000000 --- a/api/php/generated/Chirpstack/Api/UpdateTenantUserRequest.php +++ /dev/null @@ -1,75 +0,0 @@ -api.UpdateTenantUserRequest - */ -class UpdateTenantUserRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Tenant user object. - * - * Generated from protobuf field .api.TenantUser tenant_user = 1; - */ - protected $tenant_user = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Chirpstack\Api\TenantUser $tenant_user - * Tenant user object. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Chirpstack\Api\Tenant::initOnce(); - parent::__construct($data); - } - - /** - * Tenant user object. - * - * Generated from protobuf field .api.TenantUser tenant_user = 1; - * @return \Chirpstack\Api\TenantUser|null - */ - public function getTenantUser() - { - return $this->tenant_user; - } - - public function hasTenantUser() - { - return isset($this->tenant_user); - } - - public function clearTenantUser() - { - unset($this->tenant_user); - } - - /** - * Tenant user object. - * - * Generated from protobuf field .api.TenantUser tenant_user = 1; - * @param \Chirpstack\Api\TenantUser $var - * @return $this - */ - public function setTenantUser($var) - { - GPBUtil::checkMessage($var, \Chirpstack\Api\TenantUser::class); - $this->tenant_user = $var; - - return $this; - } - -} - diff --git a/api/php/generated/Chirpstack/Api/UpdateThingsBoardIntegrationRequest.php b/api/php/generated/Chirpstack/Api/UpdateThingsBoardIntegrationRequest.php deleted file mode 100644 index 1be941bd..00000000 --- a/api/php/generated/Chirpstack/Api/UpdateThingsBoardIntegrationRequest.php +++ /dev/null @@ -1,75 +0,0 @@ -api.UpdateThingsBoardIntegrationRequest - */ -class UpdateThingsBoardIntegrationRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Integration object to update. - * - * Generated from protobuf field .api.ThingsBoardIntegration integration = 1; - */ - protected $integration = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Chirpstack\Api\ThingsBoardIntegration $integration - * Integration object to update. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Chirpstack\Api\Application::initOnce(); - parent::__construct($data); - } - - /** - * Integration object to update. - * - * Generated from protobuf field .api.ThingsBoardIntegration integration = 1; - * @return \Chirpstack\Api\ThingsBoardIntegration|null - */ - public function getIntegration() - { - return $this->integration; - } - - public function hasIntegration() - { - return isset($this->integration); - } - - public function clearIntegration() - { - unset($this->integration); - } - - /** - * Integration object to update. - * - * Generated from protobuf field .api.ThingsBoardIntegration integration = 1; - * @param \Chirpstack\Api\ThingsBoardIntegration $var - * @return $this - */ - public function setIntegration($var) - { - GPBUtil::checkMessage($var, \Chirpstack\Api\ThingsBoardIntegration::class); - $this->integration = $var; - - return $this; - } - -} - diff --git a/api/php/generated/Chirpstack/Api/UpdateUserPasswordRequest.php b/api/php/generated/Chirpstack/Api/UpdateUserPasswordRequest.php deleted file mode 100644 index 07eef24c..00000000 --- a/api/php/generated/Chirpstack/Api/UpdateUserPasswordRequest.php +++ /dev/null @@ -1,99 +0,0 @@ -api.UpdateUserPasswordRequest - */ -class UpdateUserPasswordRequest extends \Google\Protobuf\Internal\Message -{ - /** - * User ID. - * - * Generated from protobuf field string user_id = 1; - */ - protected $user_id = ''; - /** - * Password to set. - * - * Generated from protobuf field string password = 2; - */ - protected $password = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $user_id - * User ID. - * @type string $password - * Password to set. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Chirpstack\Api\User::initOnce(); - parent::__construct($data); - } - - /** - * User ID. - * - * Generated from protobuf field string user_id = 1; - * @return string - */ - public function getUserId() - { - return $this->user_id; - } - - /** - * User ID. - * - * Generated from protobuf field string user_id = 1; - * @param string $var - * @return $this - */ - public function setUserId($var) - { - GPBUtil::checkString($var, True); - $this->user_id = $var; - - return $this; - } - - /** - * Password to set. - * - * Generated from protobuf field string password = 2; - * @return string - */ - public function getPassword() - { - return $this->password; - } - - /** - * Password to set. - * - * Generated from protobuf field string password = 2; - * @param string $var - * @return $this - */ - public function setPassword($var) - { - GPBUtil::checkString($var, True); - $this->password = $var; - - return $this; - } - -} - diff --git a/api/php/generated/Chirpstack/Api/UpdateUserRequest.php b/api/php/generated/Chirpstack/Api/UpdateUserRequest.php deleted file mode 100644 index b261fe37..00000000 --- a/api/php/generated/Chirpstack/Api/UpdateUserRequest.php +++ /dev/null @@ -1,75 +0,0 @@ -api.UpdateUserRequest - */ -class UpdateUserRequest extends \Google\Protobuf\Internal\Message -{ - /** - * User object. - * - * Generated from protobuf field .api.User user = 1; - */ - protected $user = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Chirpstack\Api\User $user - * User object. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Chirpstack\Api\User::initOnce(); - parent::__construct($data); - } - - /** - * User object. - * - * Generated from protobuf field .api.User user = 1; - * @return \Chirpstack\Api\User|null - */ - public function getUser() - { - return $this->user; - } - - public function hasUser() - { - return isset($this->user); - } - - public function clearUser() - { - unset($this->user); - } - - /** - * User object. - * - * Generated from protobuf field .api.User user = 1; - * @param \Chirpstack\Api\User $var - * @return $this - */ - public function setUser($var) - { - GPBUtil::checkMessage($var, \Chirpstack\Api\User::class); - $this->user = $var; - - return $this; - } - -} - diff --git a/api/php/generated/Chirpstack/Api/User.php b/api/php/generated/Chirpstack/Api/User.php deleted file mode 100644 index b3871489..00000000 --- a/api/php/generated/Chirpstack/Api/User.php +++ /dev/null @@ -1,205 +0,0 @@ -api.User - */ -class User extends \Google\Protobuf\Internal\Message -{ - /** - * User ID (UUID). - * Will be set automatically on create. - * - * Generated from protobuf field string id = 1; - */ - protected $id = ''; - /** - * Set to true to make the user a global administrator. - * - * Generated from protobuf field bool is_admin = 4; - */ - protected $is_admin = false; - /** - * Set to false to disable the user. - * - * Generated from protobuf field bool is_active = 5; - */ - protected $is_active = false; - /** - * E-mail of the user. - * - * Generated from protobuf field string email = 6; - */ - protected $email = ''; - /** - * Optional note to store with the user. - * - * Generated from protobuf field string note = 7; - */ - protected $note = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $id - * User ID (UUID). - * Will be set automatically on create. - * @type bool $is_admin - * Set to true to make the user a global administrator. - * @type bool $is_active - * Set to false to disable the user. - * @type string $email - * E-mail of the user. - * @type string $note - * Optional note to store with the user. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Chirpstack\Api\User::initOnce(); - parent::__construct($data); - } - - /** - * User ID (UUID). - * Will be set automatically on create. - * - * Generated from protobuf field string id = 1; - * @return string - */ - public function getId() - { - return $this->id; - } - - /** - * User ID (UUID). - * Will be set automatically on create. - * - * Generated from protobuf field string id = 1; - * @param string $var - * @return $this - */ - public function setId($var) - { - GPBUtil::checkString($var, True); - $this->id = $var; - - return $this; - } - - /** - * Set to true to make the user a global administrator. - * - * Generated from protobuf field bool is_admin = 4; - * @return bool - */ - public function getIsAdmin() - { - return $this->is_admin; - } - - /** - * Set to true to make the user a global administrator. - * - * Generated from protobuf field bool is_admin = 4; - * @param bool $var - * @return $this - */ - public function setIsAdmin($var) - { - GPBUtil::checkBool($var); - $this->is_admin = $var; - - return $this; - } - - /** - * Set to false to disable the user. - * - * Generated from protobuf field bool is_active = 5; - * @return bool - */ - public function getIsActive() - { - return $this->is_active; - } - - /** - * Set to false to disable the user. - * - * Generated from protobuf field bool is_active = 5; - * @param bool $var - * @return $this - */ - public function setIsActive($var) - { - GPBUtil::checkBool($var); - $this->is_active = $var; - - return $this; - } - - /** - * E-mail of the user. - * - * Generated from protobuf field string email = 6; - * @return string - */ - public function getEmail() - { - return $this->email; - } - - /** - * E-mail of the user. - * - * Generated from protobuf field string email = 6; - * @param string $var - * @return $this - */ - public function setEmail($var) - { - GPBUtil::checkString($var, True); - $this->email = $var; - - return $this; - } - - /** - * Optional note to store with the user. - * - * Generated from protobuf field string note = 7; - * @return string - */ - public function getNote() - { - return $this->note; - } - - /** - * Optional note to store with the user. - * - * Generated from protobuf field string note = 7; - * @param string $var - * @return $this - */ - public function setNote($var) - { - GPBUtil::checkString($var, True); - $this->note = $var; - - return $this; - } - -} - diff --git a/api/php/generated/Chirpstack/Api/UserListItem.php b/api/php/generated/Chirpstack/Api/UserListItem.php deleted file mode 100644 index 31f23ef2..00000000 --- a/api/php/generated/Chirpstack/Api/UserListItem.php +++ /dev/null @@ -1,255 +0,0 @@ -api.UserListItem - */ -class UserListItem extends \Google\Protobuf\Internal\Message -{ - /** - * User ID (UUID). - * - * Generated from protobuf field string id = 1; - */ - protected $id = ''; - /** - * Created at timestamp. - * - * Generated from protobuf field .google.protobuf.Timestamp created_at = 2; - */ - protected $created_at = null; - /** - * Last update timestamp. - * - * Generated from protobuf field .google.protobuf.Timestamp updated_at = 3; - */ - protected $updated_at = null; - /** - * Email of the user. - * - * Generated from protobuf field string email = 4; - */ - protected $email = ''; - /** - * Set to true to make the user a global administrator. - * - * Generated from protobuf field bool is_admin = 5; - */ - protected $is_admin = false; - /** - * Set to false to disable the user. - * - * Generated from protobuf field bool is_active = 6; - */ - protected $is_active = false; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $id - * User ID (UUID). - * @type \Google\Protobuf\Timestamp $created_at - * Created at timestamp. - * @type \Google\Protobuf\Timestamp $updated_at - * Last update timestamp. - * @type string $email - * Email of the user. - * @type bool $is_admin - * Set to true to make the user a global administrator. - * @type bool $is_active - * Set to false to disable the user. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Chirpstack\Api\User::initOnce(); - parent::__construct($data); - } - - /** - * User ID (UUID). - * - * Generated from protobuf field string id = 1; - * @return string - */ - public function getId() - { - return $this->id; - } - - /** - * User ID (UUID). - * - * Generated from protobuf field string id = 1; - * @param string $var - * @return $this - */ - public function setId($var) - { - GPBUtil::checkString($var, True); - $this->id = $var; - - return $this; - } - - /** - * Created at timestamp. - * - * Generated from protobuf field .google.protobuf.Timestamp created_at = 2; - * @return \Google\Protobuf\Timestamp|null - */ - public function getCreatedAt() - { - return $this->created_at; - } - - public function hasCreatedAt() - { - return isset($this->created_at); - } - - public function clearCreatedAt() - { - unset($this->created_at); - } - - /** - * Created at timestamp. - * - * Generated from protobuf field .google.protobuf.Timestamp created_at = 2; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setCreatedAt($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->created_at = $var; - - return $this; - } - - /** - * Last update timestamp. - * - * Generated from protobuf field .google.protobuf.Timestamp updated_at = 3; - * @return \Google\Protobuf\Timestamp|null - */ - public function getUpdatedAt() - { - return $this->updated_at; - } - - public function hasUpdatedAt() - { - return isset($this->updated_at); - } - - public function clearUpdatedAt() - { - unset($this->updated_at); - } - - /** - * Last update timestamp. - * - * Generated from protobuf field .google.protobuf.Timestamp updated_at = 3; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setUpdatedAt($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->updated_at = $var; - - return $this; - } - - /** - * Email of the user. - * - * Generated from protobuf field string email = 4; - * @return string - */ - public function getEmail() - { - return $this->email; - } - - /** - * Email of the user. - * - * Generated from protobuf field string email = 4; - * @param string $var - * @return $this - */ - public function setEmail($var) - { - GPBUtil::checkString($var, True); - $this->email = $var; - - return $this; - } - - /** - * Set to true to make the user a global administrator. - * - * Generated from protobuf field bool is_admin = 5; - * @return bool - */ - public function getIsAdmin() - { - return $this->is_admin; - } - - /** - * Set to true to make the user a global administrator. - * - * Generated from protobuf field bool is_admin = 5; - * @param bool $var - * @return $this - */ - public function setIsAdmin($var) - { - GPBUtil::checkBool($var); - $this->is_admin = $var; - - return $this; - } - - /** - * Set to false to disable the user. - * - * Generated from protobuf field bool is_active = 6; - * @return bool - */ - public function getIsActive() - { - return $this->is_active; - } - - /** - * Set to false to disable the user. - * - * Generated from protobuf field bool is_active = 6; - * @param bool $var - * @return $this - */ - public function setIsActive($var) - { - GPBUtil::checkBool($var); - $this->is_active = $var; - - return $this; - } - -} - diff --git a/api/php/generated/Chirpstack/Api/UserServiceClient.php b/api/php/generated/Chirpstack/Api/UserServiceClient.php deleted file mode 100644 index bb000f46..00000000 --- a/api/php/generated/Chirpstack/Api/UserServiceClient.php +++ /dev/null @@ -1,110 +0,0 @@ -_simpleRequest('/api.UserService/Create', - $argument, - ['\Chirpstack\Api\CreateUserResponse', 'decode'], - $metadata, $options); - } - - /** - * Get the user for the given ID. - * @param \Chirpstack\Api\GetUserRequest $argument input argument - * @param array $metadata metadata - * @param array $options call options - * @return \Grpc\UnaryCall - */ - public function Get(\Chirpstack\Api\GetUserRequest $argument, - $metadata = [], $options = []) { - return $this->_simpleRequest('/api.UserService/Get', - $argument, - ['\Chirpstack\Api\GetUserResponse', 'decode'], - $metadata, $options); - } - - /** - * Update the given user. - * @param \Chirpstack\Api\UpdateUserRequest $argument input argument - * @param array $metadata metadata - * @param array $options call options - * @return \Grpc\UnaryCall - */ - public function Update(\Chirpstack\Api\UpdateUserRequest $argument, - $metadata = [], $options = []) { - return $this->_simpleRequest('/api.UserService/Update', - $argument, - ['\Google\Protobuf\GPBEmpty', 'decode'], - $metadata, $options); - } - - /** - * Delete the user with the given ID. - * @param \Chirpstack\Api\DeleteUserRequest $argument input argument - * @param array $metadata metadata - * @param array $options call options - * @return \Grpc\UnaryCall - */ - public function Delete(\Chirpstack\Api\DeleteUserRequest $argument, - $metadata = [], $options = []) { - return $this->_simpleRequest('/api.UserService/Delete', - $argument, - ['\Google\Protobuf\GPBEmpty', 'decode'], - $metadata, $options); - } - - /** - * Get the list of users. - * @param \Chirpstack\Api\ListUsersRequest $argument input argument - * @param array $metadata metadata - * @param array $options call options - * @return \Grpc\UnaryCall - */ - public function List(\Chirpstack\Api\ListUsersRequest $argument, - $metadata = [], $options = []) { - return $this->_simpleRequest('/api.UserService/List', - $argument, - ['\Chirpstack\Api\ListUsersResponse', 'decode'], - $metadata, $options); - } - - /** - * Update the password for the given user. - * @param \Chirpstack\Api\UpdateUserPasswordRequest $argument input argument - * @param array $metadata metadata - * @param array $options call options - * @return \Grpc\UnaryCall - */ - public function UpdatePassword(\Chirpstack\Api\UpdateUserPasswordRequest $argument, - $metadata = [], $options = []) { - return $this->_simpleRequest('/api.UserService/UpdatePassword', - $argument, - ['\Google\Protobuf\GPBEmpty', 'decode'], - $metadata, $options); - } - -} diff --git a/api/php/generated/Chirpstack/Api/UserTenant.php b/api/php/generated/Chirpstack/Api/UserTenant.php deleted file mode 100644 index 9f2c015a..00000000 --- a/api/php/generated/Chirpstack/Api/UserTenant.php +++ /dev/null @@ -1,175 +0,0 @@ -api.UserTenant - */ -class UserTenant extends \Google\Protobuf\Internal\Message -{ - /** - * Tenant ID. - * - * Generated from protobuf field string tenant_id = 1; - */ - protected $tenant_id = ''; - /** - * User is admin within the context of the tenant. - * There is no need to set the is_device_admin and is_gateway_admin flags. - * - * Generated from protobuf field bool is_admin = 2; - */ - protected $is_admin = false; - /** - * User is able to modify device related resources (applications, - * device-profiles, devices, multicast-groups). - * - * Generated from protobuf field bool is_device_admin = 3; - */ - protected $is_device_admin = false; - /** - * User is able to modify gateways. - * - * Generated from protobuf field bool is_gateway_admin = 4; - */ - protected $is_gateway_admin = false; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $tenant_id - * Tenant ID. - * @type bool $is_admin - * User is admin within the context of the tenant. - * There is no need to set the is_device_admin and is_gateway_admin flags. - * @type bool $is_device_admin - * User is able to modify device related resources (applications, - * device-profiles, devices, multicast-groups). - * @type bool $is_gateway_admin - * User is able to modify gateways. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Chirpstack\Api\User::initOnce(); - parent::__construct($data); - } - - /** - * Tenant ID. - * - * Generated from protobuf field string tenant_id = 1; - * @return string - */ - public function getTenantId() - { - return $this->tenant_id; - } - - /** - * Tenant ID. - * - * Generated from protobuf field string tenant_id = 1; - * @param string $var - * @return $this - */ - public function setTenantId($var) - { - GPBUtil::checkString($var, True); - $this->tenant_id = $var; - - return $this; - } - - /** - * User is admin within the context of the tenant. - * There is no need to set the is_device_admin and is_gateway_admin flags. - * - * Generated from protobuf field bool is_admin = 2; - * @return bool - */ - public function getIsAdmin() - { - return $this->is_admin; - } - - /** - * User is admin within the context of the tenant. - * There is no need to set the is_device_admin and is_gateway_admin flags. - * - * Generated from protobuf field bool is_admin = 2; - * @param bool $var - * @return $this - */ - public function setIsAdmin($var) - { - GPBUtil::checkBool($var); - $this->is_admin = $var; - - return $this; - } - - /** - * User is able to modify device related resources (applications, - * device-profiles, devices, multicast-groups). - * - * Generated from protobuf field bool is_device_admin = 3; - * @return bool - */ - public function getIsDeviceAdmin() - { - return $this->is_device_admin; - } - - /** - * User is able to modify device related resources (applications, - * device-profiles, devices, multicast-groups). - * - * Generated from protobuf field bool is_device_admin = 3; - * @param bool $var - * @return $this - */ - public function setIsDeviceAdmin($var) - { - GPBUtil::checkBool($var); - $this->is_device_admin = $var; - - return $this; - } - - /** - * User is able to modify gateways. - * - * Generated from protobuf field bool is_gateway_admin = 4; - * @return bool - */ - public function getIsGatewayAdmin() - { - return $this->is_gateway_admin; - } - - /** - * User is able to modify gateways. - * - * Generated from protobuf field bool is_gateway_admin = 4; - * @param bool $var - * @return $this - */ - public function setIsGatewayAdmin($var) - { - GPBUtil::checkBool($var); - $this->is_gateway_admin = $var; - - return $this; - } - -} - diff --git a/api/php/generated/Chirpstack/Api/UserTenantLink.php b/api/php/generated/Chirpstack/Api/UserTenantLink.php deleted file mode 100644 index 386fcadb..00000000 --- a/api/php/generated/Chirpstack/Api/UserTenantLink.php +++ /dev/null @@ -1,265 +0,0 @@ -api.UserTenantLink - */ -class UserTenantLink extends \Google\Protobuf\Internal\Message -{ - /** - * Created at timestamp. - * - * Generated from protobuf field .google.protobuf.Timestamp created_at = 1; - */ - protected $created_at = null; - /** - * Last update timestamp. - * - * Generated from protobuf field .google.protobuf.Timestamp updated_at = 2; - */ - protected $updated_at = null; - /** - * Tenant ID. - * - * Generated from protobuf field string tenant_id = 3; - */ - protected $tenant_id = ''; - /** - * User is admin within the context of this tenant. - * There is no need to set the is_device_admin and is_gateway_admin flags. - * - * Generated from protobuf field bool is_admin = 4; - */ - protected $is_admin = false; - /** - * User is able to modify device related resources (applications, - * device-profiles, devices, multicast-groups). - * - * Generated from protobuf field bool is_device_admin = 5; - */ - protected $is_device_admin = false; - /** - * User is able to modify gateways. - * - * Generated from protobuf field bool is_gateway_admin = 6; - */ - protected $is_gateway_admin = false; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Protobuf\Timestamp $created_at - * Created at timestamp. - * @type \Google\Protobuf\Timestamp $updated_at - * Last update timestamp. - * @type string $tenant_id - * Tenant ID. - * @type bool $is_admin - * User is admin within the context of this tenant. - * There is no need to set the is_device_admin and is_gateway_admin flags. - * @type bool $is_device_admin - * User is able to modify device related resources (applications, - * device-profiles, devices, multicast-groups). - * @type bool $is_gateway_admin - * User is able to modify gateways. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Chirpstack\Api\Internal::initOnce(); - parent::__construct($data); - } - - /** - * Created at timestamp. - * - * Generated from protobuf field .google.protobuf.Timestamp created_at = 1; - * @return \Google\Protobuf\Timestamp|null - */ - public function getCreatedAt() - { - return $this->created_at; - } - - public function hasCreatedAt() - { - return isset($this->created_at); - } - - public function clearCreatedAt() - { - unset($this->created_at); - } - - /** - * Created at timestamp. - * - * Generated from protobuf field .google.protobuf.Timestamp created_at = 1; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setCreatedAt($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->created_at = $var; - - return $this; - } - - /** - * Last update timestamp. - * - * Generated from protobuf field .google.protobuf.Timestamp updated_at = 2; - * @return \Google\Protobuf\Timestamp|null - */ - public function getUpdatedAt() - { - return $this->updated_at; - } - - public function hasUpdatedAt() - { - return isset($this->updated_at); - } - - public function clearUpdatedAt() - { - unset($this->updated_at); - } - - /** - * Last update timestamp. - * - * Generated from protobuf field .google.protobuf.Timestamp updated_at = 2; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setUpdatedAt($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->updated_at = $var; - - return $this; - } - - /** - * Tenant ID. - * - * Generated from protobuf field string tenant_id = 3; - * @return string - */ - public function getTenantId() - { - return $this->tenant_id; - } - - /** - * Tenant ID. - * - * Generated from protobuf field string tenant_id = 3; - * @param string $var - * @return $this - */ - public function setTenantId($var) - { - GPBUtil::checkString($var, True); - $this->tenant_id = $var; - - return $this; - } - - /** - * User is admin within the context of this tenant. - * There is no need to set the is_device_admin and is_gateway_admin flags. - * - * Generated from protobuf field bool is_admin = 4; - * @return bool - */ - public function getIsAdmin() - { - return $this->is_admin; - } - - /** - * User is admin within the context of this tenant. - * There is no need to set the is_device_admin and is_gateway_admin flags. - * - * Generated from protobuf field bool is_admin = 4; - * @param bool $var - * @return $this - */ - public function setIsAdmin($var) - { - GPBUtil::checkBool($var); - $this->is_admin = $var; - - return $this; - } - - /** - * User is able to modify device related resources (applications, - * device-profiles, devices, multicast-groups). - * - * Generated from protobuf field bool is_device_admin = 5; - * @return bool - */ - public function getIsDeviceAdmin() - { - return $this->is_device_admin; - } - - /** - * User is able to modify device related resources (applications, - * device-profiles, devices, multicast-groups). - * - * Generated from protobuf field bool is_device_admin = 5; - * @param bool $var - * @return $this - */ - public function setIsDeviceAdmin($var) - { - GPBUtil::checkBool($var); - $this->is_device_admin = $var; - - return $this; - } - - /** - * User is able to modify gateways. - * - * Generated from protobuf field bool is_gateway_admin = 6; - * @return bool - */ - public function getIsGatewayAdmin() - { - return $this->is_gateway_admin; - } - - /** - * User is able to modify gateways. - * - * Generated from protobuf field bool is_gateway_admin = 6; - * @param bool $var - * @return $this - */ - public function setIsGatewayAdmin($var) - { - GPBUtil::checkBool($var); - $this->is_gateway_admin = $var; - - return $this; - } - -} - diff --git a/api/php/generated/Chirpstack/Common/Aggregation.php b/api/php/generated/Chirpstack/Common/Aggregation.php deleted file mode 100644 index 3e1866de..00000000 --- a/api/php/generated/Chirpstack/Common/Aggregation.php +++ /dev/null @@ -1,66 +0,0 @@ -common.Aggregation - */ -class Aggregation -{ - /** - * Hour. - * - * Generated from protobuf enum HOUR = 0; - */ - const HOUR = 0; - /** - * Day. - * - * Generated from protobuf enum DAY = 1; - */ - const DAY = 1; - /** - * Month. - * - * Generated from protobuf enum MONTH = 2; - */ - const MONTH = 2; - /** - * Minute. - * - * Generated from protobuf enum MINUTE = 3; - */ - const MINUTE = 3; - - private static $valueToName = [ - self::HOUR => 'HOUR', - self::DAY => 'DAY', - self::MONTH => 'MONTH', - self::MINUTE => 'MINUTE', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - diff --git a/api/php/generated/Chirpstack/Common/DeviceClass.php b/api/php/generated/Chirpstack/Common/DeviceClass.php deleted file mode 100644 index aaebfe25..00000000 --- a/api/php/generated/Chirpstack/Common/DeviceClass.php +++ /dev/null @@ -1,59 +0,0 @@ -common.DeviceClass - */ -class DeviceClass -{ - /** - * Class-A. - * - * Generated from protobuf enum CLASS_A = 0; - */ - const CLASS_A = 0; - /** - * Class-B. - * - * Generated from protobuf enum CLASS_B = 1; - */ - const CLASS_B = 1; - /** - * Class-C. - * - * Generated from protobuf enum CLASS_C = 2; - */ - const CLASS_C = 2; - - private static $valueToName = [ - self::CLASS_A => 'CLASS_A', - self::CLASS_B => 'CLASS_B', - self::CLASS_C => 'CLASS_C', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - diff --git a/api/php/generated/Chirpstack/Common/JoinServerContext.php b/api/php/generated/Chirpstack/Common/JoinServerContext.php deleted file mode 100644 index cade7f9f..00000000 --- a/api/php/generated/Chirpstack/Common/JoinServerContext.php +++ /dev/null @@ -1,111 +0,0 @@ -common.JoinServerContext - */ -class JoinServerContext extends \Google\Protobuf\Internal\Message -{ - /** - * Session-key ID. - * - * Generated from protobuf field string session_key_id = 1; - */ - protected $session_key_id = ''; - /** - * AppSKey envelope. - * - * Generated from protobuf field .common.KeyEnvelope app_s_key = 2; - */ - protected $app_s_key = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $session_key_id - * Session-key ID. - * @type \Chirpstack\Common\KeyEnvelope $app_s_key - * AppSKey envelope. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Chirpstack\Common\Common::initOnce(); - parent::__construct($data); - } - - /** - * Session-key ID. - * - * Generated from protobuf field string session_key_id = 1; - * @return string - */ - public function getSessionKeyId() - { - return $this->session_key_id; - } - - /** - * Session-key ID. - * - * Generated from protobuf field string session_key_id = 1; - * @param string $var - * @return $this - */ - public function setSessionKeyId($var) - { - GPBUtil::checkString($var, True); - $this->session_key_id = $var; - - return $this; - } - - /** - * AppSKey envelope. - * - * Generated from protobuf field .common.KeyEnvelope app_s_key = 2; - * @return \Chirpstack\Common\KeyEnvelope|null - */ - public function getAppSKey() - { - return $this->app_s_key; - } - - public function hasAppSKey() - { - return isset($this->app_s_key); - } - - public function clearAppSKey() - { - unset($this->app_s_key); - } - - /** - * AppSKey envelope. - * - * Generated from protobuf field .common.KeyEnvelope app_s_key = 2; - * @param \Chirpstack\Common\KeyEnvelope $var - * @return $this - */ - public function setAppSKey($var) - { - GPBUtil::checkMessage($var, \Chirpstack\Common\KeyEnvelope::class); - $this->app_s_key = $var; - - return $this; - } - -} - diff --git a/api/php/generated/Chirpstack/Common/KeyEnvelope.php b/api/php/generated/Chirpstack/Common/KeyEnvelope.php deleted file mode 100644 index 9cc0f09f..00000000 --- a/api/php/generated/Chirpstack/Common/KeyEnvelope.php +++ /dev/null @@ -1,99 +0,0 @@ -common.KeyEnvelope - */ -class KeyEnvelope extends \Google\Protobuf\Internal\Message -{ - /** - * KEK label. - * - * Generated from protobuf field string kek_label = 1; - */ - protected $kek_label = ''; - /** - * AES key (when the kek_label is set, this value must first be decrypted). - * - * Generated from protobuf field bytes aes_key = 2; - */ - protected $aes_key = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $kek_label - * KEK label. - * @type string $aes_key - * AES key (when the kek_label is set, this value must first be decrypted). - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Chirpstack\Common\Common::initOnce(); - parent::__construct($data); - } - - /** - * KEK label. - * - * Generated from protobuf field string kek_label = 1; - * @return string - */ - public function getKekLabel() - { - return $this->kek_label; - } - - /** - * KEK label. - * - * Generated from protobuf field string kek_label = 1; - * @param string $var - * @return $this - */ - public function setKekLabel($var) - { - GPBUtil::checkString($var, True); - $this->kek_label = $var; - - return $this; - } - - /** - * AES key (when the kek_label is set, this value must first be decrypted). - * - * Generated from protobuf field bytes aes_key = 2; - * @return string - */ - public function getAesKey() - { - return $this->aes_key; - } - - /** - * AES key (when the kek_label is set, this value must first be decrypted). - * - * Generated from protobuf field bytes aes_key = 2; - * @param string $var - * @return $this - */ - public function setAesKey($var) - { - GPBUtil::checkString($var, False); - $this->aes_key = $var; - - return $this; - } - -} - diff --git a/api/php/generated/Chirpstack/Common/Location.php b/api/php/generated/Chirpstack/Common/Location.php deleted file mode 100644 index 85218451..00000000 --- a/api/php/generated/Chirpstack/Common/Location.php +++ /dev/null @@ -1,201 +0,0 @@ -common.Location - */ -class Location extends \Google\Protobuf\Internal\Message -{ - /** - * Latitude. - * - * Generated from protobuf field double latitude = 1; - */ - protected $latitude = 0.0; - /** - * Longitude. - * - * Generated from protobuf field double longitude = 2; - */ - protected $longitude = 0.0; - /** - * Altitude. - * - * Generated from protobuf field double altitude = 3; - */ - protected $altitude = 0.0; - /** - * Location source. - * - * Generated from protobuf field .common.LocationSource source = 4; - */ - protected $source = 0; - /** - * Accuracy. - * - * Generated from protobuf field float accuracy = 5; - */ - protected $accuracy = 0.0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type float $latitude - * Latitude. - * @type float $longitude - * Longitude. - * @type float $altitude - * Altitude. - * @type int $source - * Location source. - * @type float $accuracy - * Accuracy. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Chirpstack\Common\Common::initOnce(); - parent::__construct($data); - } - - /** - * Latitude. - * - * Generated from protobuf field double latitude = 1; - * @return float - */ - public function getLatitude() - { - return $this->latitude; - } - - /** - * Latitude. - * - * Generated from protobuf field double latitude = 1; - * @param float $var - * @return $this - */ - public function setLatitude($var) - { - GPBUtil::checkDouble($var); - $this->latitude = $var; - - return $this; - } - - /** - * Longitude. - * - * Generated from protobuf field double longitude = 2; - * @return float - */ - public function getLongitude() - { - return $this->longitude; - } - - /** - * Longitude. - * - * Generated from protobuf field double longitude = 2; - * @param float $var - * @return $this - */ - public function setLongitude($var) - { - GPBUtil::checkDouble($var); - $this->longitude = $var; - - return $this; - } - - /** - * Altitude. - * - * Generated from protobuf field double altitude = 3; - * @return float - */ - public function getAltitude() - { - return $this->altitude; - } - - /** - * Altitude. - * - * Generated from protobuf field double altitude = 3; - * @param float $var - * @return $this - */ - public function setAltitude($var) - { - GPBUtil::checkDouble($var); - $this->altitude = $var; - - return $this; - } - - /** - * Location source. - * - * Generated from protobuf field .common.LocationSource source = 4; - * @return int - */ - public function getSource() - { - return $this->source; - } - - /** - * Location source. - * - * Generated from protobuf field .common.LocationSource source = 4; - * @param int $var - * @return $this - */ - public function setSource($var) - { - GPBUtil::checkEnum($var, \Chirpstack\Common\LocationSource::class); - $this->source = $var; - - return $this; - } - - /** - * Accuracy. - * - * Generated from protobuf field float accuracy = 5; - * @return float - */ - public function getAccuracy() - { - return $this->accuracy; - } - - /** - * Accuracy. - * - * Generated from protobuf field float accuracy = 5; - * @param float $var - * @return $this - */ - public function setAccuracy($var) - { - GPBUtil::checkFloat($var); - $this->accuracy = $var; - - return $this; - } - -} - diff --git a/api/php/generated/Chirpstack/Common/LocationSource.php b/api/php/generated/Chirpstack/Common/LocationSource.php deleted file mode 100644 index 6d7fd1a1..00000000 --- a/api/php/generated/Chirpstack/Common/LocationSource.php +++ /dev/null @@ -1,87 +0,0 @@ -common.LocationSource - */ -class LocationSource -{ - /** - * Unknown. - * - * Generated from protobuf enum UNKNOWN = 0; - */ - const UNKNOWN = 0; - /** - * GPS. - * - * Generated from protobuf enum GPS = 1; - */ - const GPS = 1; - /** - * Manually configured. - * - * Generated from protobuf enum CONFIG = 2; - */ - const CONFIG = 2; - /** - * Geo resolver (TDOA). - * - * Generated from protobuf enum GEO_RESOLVER_TDOA = 3; - */ - const GEO_RESOLVER_TDOA = 3; - /** - * Geo resolver (RSSI). - * - * Generated from protobuf enum GEO_RESOLVER_RSSI = 4; - */ - const GEO_RESOLVER_RSSI = 4; - /** - * Geo resolver (GNSS). - * - * Generated from protobuf enum GEO_RESOLVER_GNSS = 5; - */ - const GEO_RESOLVER_GNSS = 5; - /** - * Geo resolver (WIFI). - * - * Generated from protobuf enum GEO_RESOLVER_WIFI = 6; - */ - const GEO_RESOLVER_WIFI = 6; - - private static $valueToName = [ - self::UNKNOWN => 'UNKNOWN', - self::GPS => 'GPS', - self::CONFIG => 'CONFIG', - self::GEO_RESOLVER_TDOA => 'GEO_RESOLVER_TDOA', - self::GEO_RESOLVER_RSSI => 'GEO_RESOLVER_RSSI', - self::GEO_RESOLVER_GNSS => 'GEO_RESOLVER_GNSS', - self::GEO_RESOLVER_WIFI => 'GEO_RESOLVER_WIFI', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - diff --git a/api/php/generated/Chirpstack/Common/MType.php b/api/php/generated/Chirpstack/Common/MType.php deleted file mode 100644 index 0baeb182..00000000 --- a/api/php/generated/Chirpstack/Common/MType.php +++ /dev/null @@ -1,94 +0,0 @@ -common.MType - */ -class MType -{ - /** - * JoinRequest. - * - * Generated from protobuf enum JOIN_REQUEST = 0; - */ - const JOIN_REQUEST = 0; - /** - * JoinAccept. - * - * Generated from protobuf enum JOIN_ACCEPT = 1; - */ - const JOIN_ACCEPT = 1; - /** - * UnconfirmedDataUp. - * - * Generated from protobuf enum UNCONFIRMED_DATA_UP = 2; - */ - const UNCONFIRMED_DATA_UP = 2; - /** - * UnconfirmedDataDown. - * - * Generated from protobuf enum UNCONFIRMED_DATA_DOWN = 3; - */ - const UNCONFIRMED_DATA_DOWN = 3; - /** - * ConfirmedDataUp. - * - * Generated from protobuf enum CONFIRMED_DATA_UP = 4; - */ - const CONFIRMED_DATA_UP = 4; - /** - * ConfirmedDataDown. - * - * Generated from protobuf enum CONFIRMED_DATA_DOWN = 5; - */ - const CONFIRMED_DATA_DOWN = 5; - /** - * RejoinRequest. - * - * Generated from protobuf enum REJOIN_REQUEST = 6; - */ - const REJOIN_REQUEST = 6; - /** - * Proprietary. - * - * Generated from protobuf enum PROPRIETARY = 7; - */ - const PROPRIETARY = 7; - - private static $valueToName = [ - self::JOIN_REQUEST => 'JOIN_REQUEST', - self::JOIN_ACCEPT => 'JOIN_ACCEPT', - self::UNCONFIRMED_DATA_UP => 'UNCONFIRMED_DATA_UP', - self::UNCONFIRMED_DATA_DOWN => 'UNCONFIRMED_DATA_DOWN', - self::CONFIRMED_DATA_UP => 'CONFIRMED_DATA_UP', - self::CONFIRMED_DATA_DOWN => 'CONFIRMED_DATA_DOWN', - self::REJOIN_REQUEST => 'REJOIN_REQUEST', - self::PROPRIETARY => 'PROPRIETARY', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - diff --git a/api/php/generated/Chirpstack/Common/MacVersion.php b/api/php/generated/Chirpstack/Common/MacVersion.php deleted file mode 100644 index 40aeb999..00000000 --- a/api/php/generated/Chirpstack/Common/MacVersion.php +++ /dev/null @@ -1,68 +0,0 @@ -common.MacVersion - */ -class MacVersion -{ - /** - * Generated from protobuf enum LORAWAN_1_0_0 = 0; - */ - const LORAWAN_1_0_0 = 0; - /** - * Generated from protobuf enum LORAWAN_1_0_1 = 1; - */ - const LORAWAN_1_0_1 = 1; - /** - * Generated from protobuf enum LORAWAN_1_0_2 = 2; - */ - const LORAWAN_1_0_2 = 2; - /** - * Generated from protobuf enum LORAWAN_1_0_3 = 3; - */ - const LORAWAN_1_0_3 = 3; - /** - * Generated from protobuf enum LORAWAN_1_0_4 = 4; - */ - const LORAWAN_1_0_4 = 4; - /** - * Generated from protobuf enum LORAWAN_1_1_0 = 5; - */ - const LORAWAN_1_1_0 = 5; - - private static $valueToName = [ - self::LORAWAN_1_0_0 => 'LORAWAN_1_0_0', - self::LORAWAN_1_0_1 => 'LORAWAN_1_0_1', - self::LORAWAN_1_0_2 => 'LORAWAN_1_0_2', - self::LORAWAN_1_0_3 => 'LORAWAN_1_0_3', - self::LORAWAN_1_0_4 => 'LORAWAN_1_0_4', - self::LORAWAN_1_1_0 => 'LORAWAN_1_1_0', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - diff --git a/api/php/generated/Chirpstack/Common/Metric.php b/api/php/generated/Chirpstack/Common/Metric.php deleted file mode 100644 index 93a449ec..00000000 --- a/api/php/generated/Chirpstack/Common/Metric.php +++ /dev/null @@ -1,167 +0,0 @@ -common.Metric - */ -class Metric extends \Google\Protobuf\Internal\Message -{ - /** - * Name. - * - * Generated from protobuf field string name = 1; - */ - protected $name = ''; - /** - * Timestamps. - * - * Generated from protobuf field repeated .google.protobuf.Timestamp timestamps = 2; - */ - private $timestamps; - /** - * Datasets. - * - * Generated from protobuf field repeated .common.MetricDataset datasets = 3; - */ - private $datasets; - /** - * Kind. - * - * Generated from protobuf field .common.MetricKind kind = 4; - */ - protected $kind = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Name. - * @type array<\Google\Protobuf\Timestamp>|\Google\Protobuf\Internal\RepeatedField $timestamps - * Timestamps. - * @type array<\Chirpstack\Common\MetricDataset>|\Google\Protobuf\Internal\RepeatedField $datasets - * Datasets. - * @type int $kind - * Kind. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Chirpstack\Common\Common::initOnce(); - parent::__construct($data); - } - - /** - * Name. - * - * Generated from protobuf field string name = 1; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Name. - * - * Generated from protobuf field string name = 1; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Timestamps. - * - * Generated from protobuf field repeated .google.protobuf.Timestamp timestamps = 2; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getTimestamps() - { - return $this->timestamps; - } - - /** - * Timestamps. - * - * Generated from protobuf field repeated .google.protobuf.Timestamp timestamps = 2; - * @param array<\Google\Protobuf\Timestamp>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setTimestamps($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Protobuf\Timestamp::class); - $this->timestamps = $arr; - - return $this; - } - - /** - * Datasets. - * - * Generated from protobuf field repeated .common.MetricDataset datasets = 3; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getDatasets() - { - return $this->datasets; - } - - /** - * Datasets. - * - * Generated from protobuf field repeated .common.MetricDataset datasets = 3; - * @param array<\Chirpstack\Common\MetricDataset>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setDatasets($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Chirpstack\Common\MetricDataset::class); - $this->datasets = $arr; - - return $this; - } - - /** - * Kind. - * - * Generated from protobuf field .common.MetricKind kind = 4; - * @return int - */ - public function getKind() - { - return $this->kind; - } - - /** - * Kind. - * - * Generated from protobuf field .common.MetricKind kind = 4; - * @param int $var - * @return $this - */ - public function setKind($var) - { - GPBUtil::checkEnum($var, \Chirpstack\Common\MetricKind::class); - $this->kind = $var; - - return $this; - } - -} - diff --git a/api/php/generated/Chirpstack/Common/MetricDataset.php b/api/php/generated/Chirpstack/Common/MetricDataset.php deleted file mode 100644 index c5964f76..00000000 --- a/api/php/generated/Chirpstack/Common/MetricDataset.php +++ /dev/null @@ -1,103 +0,0 @@ -common.MetricDataset - */ -class MetricDataset extends \Google\Protobuf\Internal\Message -{ - /** - * Label. - * - * Generated from protobuf field string label = 1; - */ - protected $label = ''; - /** - * Data. - * Each value index corresponds with the same timestamp index of the Metric. - * - * Generated from protobuf field repeated float data = 2; - */ - private $data; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $label - * Label. - * @type array|\Google\Protobuf\Internal\RepeatedField $data - * Data. - * Each value index corresponds with the same timestamp index of the Metric. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Chirpstack\Common\Common::initOnce(); - parent::__construct($data); - } - - /** - * Label. - * - * Generated from protobuf field string label = 1; - * @return string - */ - public function getLabel() - { - return $this->label; - } - - /** - * Label. - * - * Generated from protobuf field string label = 1; - * @param string $var - * @return $this - */ - public function setLabel($var) - { - GPBUtil::checkString($var, True); - $this->label = $var; - - return $this; - } - - /** - * Data. - * Each value index corresponds with the same timestamp index of the Metric. - * - * Generated from protobuf field repeated float data = 2; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getData() - { - return $this->data; - } - - /** - * Data. - * Each value index corresponds with the same timestamp index of the Metric. - * - * Generated from protobuf field repeated float data = 2; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setData($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::FLOAT); - $this->data = $arr; - - return $this; - } - -} - diff --git a/api/php/generated/Chirpstack/Common/MetricKind.php b/api/php/generated/Chirpstack/Common/MetricKind.php deleted file mode 100644 index 8d749cd0..00000000 --- a/api/php/generated/Chirpstack/Common/MetricKind.php +++ /dev/null @@ -1,60 +0,0 @@ -common.MetricKind - */ -class MetricKind -{ - /** - * Incrementing counters that never decrease (these are not reset on each - * reading). - * - * Generated from protobuf enum COUNTER = 0; - */ - const COUNTER = 0; - /** - * Counters that do get reset upon reading. - * - * Generated from protobuf enum ABSOLUTE = 1; - */ - const ABSOLUTE = 1; - /** - * E.g. a temperature value. - * - * Generated from protobuf enum GAUGE = 2; - */ - const GAUGE = 2; - - private static $valueToName = [ - self::COUNTER => 'COUNTER', - self::ABSOLUTE => 'ABSOLUTE', - self::GAUGE => 'GAUGE', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - diff --git a/api/php/generated/Chirpstack/Common/Modulation.php b/api/php/generated/Chirpstack/Common/Modulation.php deleted file mode 100644 index 98349356..00000000 --- a/api/php/generated/Chirpstack/Common/Modulation.php +++ /dev/null @@ -1,59 +0,0 @@ -common.Modulation - */ -class Modulation -{ - /** - * LoRa - * - * Generated from protobuf enum LORA = 0; - */ - const LORA = 0; - /** - * FSK - * - * Generated from protobuf enum FSK = 1; - */ - const FSK = 1; - /** - * LR-FHSS - * - * Generated from protobuf enum LR_FHSS = 2; - */ - const LR_FHSS = 2; - - private static $valueToName = [ - self::LORA => 'LORA', - self::FSK => 'FSK', - self::LR_FHSS => 'LR_FHSS', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - diff --git a/api/php/generated/Chirpstack/Common/RegParamsRevision.php b/api/php/generated/Chirpstack/Common/RegParamsRevision.php deleted file mode 100644 index 2411f2b9..00000000 --- a/api/php/generated/Chirpstack/Common/RegParamsRevision.php +++ /dev/null @@ -1,73 +0,0 @@ -common.RegParamsRevision - */ -class RegParamsRevision -{ - /** - * Generated from protobuf enum A = 0; - */ - const A = 0; - /** - * Generated from protobuf enum B = 1; - */ - const B = 1; - /** - * Generated from protobuf enum RP002_1_0_0 = 2; - */ - const RP002_1_0_0 = 2; - /** - * Generated from protobuf enum RP002_1_0_1 = 3; - */ - const RP002_1_0_1 = 3; - /** - * Generated from protobuf enum RP002_1_0_2 = 4; - */ - const RP002_1_0_2 = 4; - /** - * Generated from protobuf enum RP002_1_0_3 = 5; - */ - const RP002_1_0_3 = 5; - /** - * Generated from protobuf enum RP002_1_0_4 = 6; - */ - const RP002_1_0_4 = 6; - - private static $valueToName = [ - self::A => 'A', - self::B => 'B', - self::RP002_1_0_0 => 'RP002_1_0_0', - self::RP002_1_0_1 => 'RP002_1_0_1', - self::RP002_1_0_2 => 'RP002_1_0_2', - self::RP002_1_0_3 => 'RP002_1_0_3', - self::RP002_1_0_4 => 'RP002_1_0_4', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - diff --git a/api/php/generated/Chirpstack/Common/Region.php b/api/php/generated/Chirpstack/Common/Region.php deleted file mode 100644 index 8e602b90..00000000 --- a/api/php/generated/Chirpstack/Common/Region.php +++ /dev/null @@ -1,136 +0,0 @@ -common.Region - */ -class Region -{ - /** - * EU868 - * - * Generated from protobuf enum EU868 = 0; - */ - const EU868 = 0; - /** - * US915 - * - * Generated from protobuf enum US915 = 2; - */ - const US915 = 2; - /** - * CN779 - * - * Generated from protobuf enum CN779 = 3; - */ - const CN779 = 3; - /** - * EU433 - * - * Generated from protobuf enum EU433 = 4; - */ - const EU433 = 4; - /** - * AU915 - * - * Generated from protobuf enum AU915 = 5; - */ - const AU915 = 5; - /** - * CN470 - * - * Generated from protobuf enum CN470 = 6; - */ - const CN470 = 6; - /** - * AS923 - * - * Generated from protobuf enum AS923 = 7; - */ - const AS923 = 7; - /** - * AS923 with -1.80 MHz frequency offset - * - * Generated from protobuf enum AS923_2 = 12; - */ - const AS923_2 = 12; - /** - * AS923 with -6.60 MHz frequency offset - * - * Generated from protobuf enum AS923_3 = 13; - */ - const AS923_3 = 13; - /** - * (AS923 with -5.90 MHz frequency offset). - * - * Generated from protobuf enum AS923_4 = 14; - */ - const AS923_4 = 14; - /** - * KR920 - * - * Generated from protobuf enum KR920 = 8; - */ - const KR920 = 8; - /** - * IN865 - * - * Generated from protobuf enum IN865 = 9; - */ - const IN865 = 9; - /** - * RU864 - * - * Generated from protobuf enum RU864 = 10; - */ - const RU864 = 10; - /** - * ISM2400 (LoRaWAN 2.4 GHz) - * - * Generated from protobuf enum ISM2400 = 11; - */ - const ISM2400 = 11; - - private static $valueToName = [ - self::EU868 => 'EU868', - self::US915 => 'US915', - self::CN779 => 'CN779', - self::EU433 => 'EU433', - self::AU915 => 'AU915', - self::CN470 => 'CN470', - self::AS923 => 'AS923', - self::AS923_2 => 'AS923_2', - self::AS923_3 => 'AS923_3', - self::AS923_4 => 'AS923_4', - self::KR920 => 'KR920', - self::IN865 => 'IN865', - self::RU864 => 'RU864', - self::ISM2400 => 'ISM2400', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - diff --git a/api/php/generated/Chirpstack/Common/Regulation.php b/api/php/generated/Chirpstack/Common/Regulation.php deleted file mode 100644 index 4d4d85ab..00000000 --- a/api/php/generated/Chirpstack/Common/Regulation.php +++ /dev/null @@ -1,52 +0,0 @@ -common.Regulation - */ -class Regulation -{ - /** - * Unknown. - * - * Generated from protobuf enum REGULATION_UNKNOWN = 0; - */ - const REGULATION_UNKNOWN = 0; - /** - * ETSI EN 300 220. - * - * Generated from protobuf enum ETSI_EN_300_220 = 1; - */ - const ETSI_EN_300_220 = 1; - - private static $valueToName = [ - self::REGULATION_UNKNOWN => 'REGULATION_UNKNOWN', - self::ETSI_EN_300_220 => 'ETSI_EN_300_220', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - diff --git a/api/php/generated/Chirpstack/Gateway/CRCStatus.php b/api/php/generated/Chirpstack/Gateway/CRCStatus.php deleted file mode 100644 index b74a8397..00000000 --- a/api/php/generated/Chirpstack/Gateway/CRCStatus.php +++ /dev/null @@ -1,59 +0,0 @@ -gw.CRCStatus - */ -class CRCStatus -{ - /** - * No CRC. - * - * Generated from protobuf enum NO_CRC = 0; - */ - const NO_CRC = 0; - /** - * Bad CRC. - * - * Generated from protobuf enum BAD_CRC = 1; - */ - const BAD_CRC = 1; - /** - * CRC OK. - * - * Generated from protobuf enum CRC_OK = 2; - */ - const CRC_OK = 2; - - private static $valueToName = [ - self::NO_CRC => 'NO_CRC', - self::BAD_CRC => 'BAD_CRC', - self::CRC_OK => 'CRC_OK', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - diff --git a/api/php/generated/Chirpstack/Gateway/ChannelConfiguration.php b/api/php/generated/Chirpstack/Gateway/ChannelConfiguration.php deleted file mode 100644 index 3291df92..00000000 --- a/api/php/generated/Chirpstack/Gateway/ChannelConfiguration.php +++ /dev/null @@ -1,242 +0,0 @@ -gw.ChannelConfiguration - */ -class ChannelConfiguration extends \Google\Protobuf\Internal\Message -{ - /** - * Frequency (Hz). - * - * Generated from protobuf field uint32 frequency = 1; - */ - protected $frequency = 0; - /** - * Modulation (deprecated). - * - * Generated from protobuf field .common.Modulation modulation_legacy = 2; - */ - protected $modulation_legacy = 0; - /** - * Board index. - * - * Generated from protobuf field uint32 board = 5; - */ - protected $board = 0; - /** - * Demodulator index (of the given board). - * - * Generated from protobuf field uint32 demodulator = 6; - */ - protected $demodulator = 0; - protected $modulation_config; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $frequency - * Frequency (Hz). - * @type int $modulation_legacy - * Modulation (deprecated). - * @type \Chirpstack\Gateway\LoraModulationConfig $lora_modulation_config - * LoRa modulation config. - * @type \Chirpstack\Gateway\FskModulationConfig $fsk_modulation_config - * FSK modulation config. - * @type int $board - * Board index. - * @type int $demodulator - * Demodulator index (of the given board). - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Chirpstack\Gateway\Gw::initOnce(); - parent::__construct($data); - } - - /** - * Frequency (Hz). - * - * Generated from protobuf field uint32 frequency = 1; - * @return int - */ - public function getFrequency() - { - return $this->frequency; - } - - /** - * Frequency (Hz). - * - * Generated from protobuf field uint32 frequency = 1; - * @param int $var - * @return $this - */ - public function setFrequency($var) - { - GPBUtil::checkUint32($var); - $this->frequency = $var; - - return $this; - } - - /** - * Modulation (deprecated). - * - * Generated from protobuf field .common.Modulation modulation_legacy = 2; - * @return int - */ - public function getModulationLegacy() - { - return $this->modulation_legacy; - } - - /** - * Modulation (deprecated). - * - * Generated from protobuf field .common.Modulation modulation_legacy = 2; - * @param int $var - * @return $this - */ - public function setModulationLegacy($var) - { - GPBUtil::checkEnum($var, \Chirpstack\Common\Modulation::class); - $this->modulation_legacy = $var; - - return $this; - } - - /** - * LoRa modulation config. - * - * Generated from protobuf field .gw.LoraModulationConfig lora_modulation_config = 3; - * @return \Chirpstack\Gateway\LoraModulationConfig|null - */ - public function getLoraModulationConfig() - { - return $this->readOneof(3); - } - - public function hasLoraModulationConfig() - { - return $this->hasOneof(3); - } - - /** - * LoRa modulation config. - * - * Generated from protobuf field .gw.LoraModulationConfig lora_modulation_config = 3; - * @param \Chirpstack\Gateway\LoraModulationConfig $var - * @return $this - */ - public function setLoraModulationConfig($var) - { - GPBUtil::checkMessage($var, \Chirpstack\Gateway\LoraModulationConfig::class); - $this->writeOneof(3, $var); - - return $this; - } - - /** - * FSK modulation config. - * - * Generated from protobuf field .gw.FskModulationConfig fsk_modulation_config = 4; - * @return \Chirpstack\Gateway\FskModulationConfig|null - */ - public function getFskModulationConfig() - { - return $this->readOneof(4); - } - - public function hasFskModulationConfig() - { - return $this->hasOneof(4); - } - - /** - * FSK modulation config. - * - * Generated from protobuf field .gw.FskModulationConfig fsk_modulation_config = 4; - * @param \Chirpstack\Gateway\FskModulationConfig $var - * @return $this - */ - public function setFskModulationConfig($var) - { - GPBUtil::checkMessage($var, \Chirpstack\Gateway\FskModulationConfig::class); - $this->writeOneof(4, $var); - - return $this; - } - - /** - * Board index. - * - * Generated from protobuf field uint32 board = 5; - * @return int - */ - public function getBoard() - { - return $this->board; - } - - /** - * Board index. - * - * Generated from protobuf field uint32 board = 5; - * @param int $var - * @return $this - */ - public function setBoard($var) - { - GPBUtil::checkUint32($var); - $this->board = $var; - - return $this; - } - - /** - * Demodulator index (of the given board). - * - * Generated from protobuf field uint32 demodulator = 6; - * @return int - */ - public function getDemodulator() - { - return $this->demodulator; - } - - /** - * Demodulator index (of the given board). - * - * Generated from protobuf field uint32 demodulator = 6; - * @param int $var - * @return $this - */ - public function setDemodulator($var) - { - GPBUtil::checkUint32($var); - $this->demodulator = $var; - - return $this; - } - - /** - * @return string - */ - public function getModulationConfig() - { - return $this->whichOneof("modulation_config"); - } - -} - diff --git a/api/php/generated/Chirpstack/Gateway/CodeRate.php b/api/php/generated/Chirpstack/Gateway/CodeRate.php deleted file mode 100644 index 35d04b8e..00000000 --- a/api/php/generated/Chirpstack/Gateway/CodeRate.php +++ /dev/null @@ -1,109 +0,0 @@ -gw.CodeRate - */ -class CodeRate -{ - /** - * Generated from protobuf enum CR_UNDEFINED = 0; - */ - const CR_UNDEFINED = 0; - /** - * LoRa - * - * Generated from protobuf enum CR_4_5 = 1; - */ - const CR_4_5 = 1; - /** - * Generated from protobuf enum CR_4_6 = 2; - */ - const CR_4_6 = 2; - /** - * Generated from protobuf enum CR_4_7 = 3; - */ - const CR_4_7 = 3; - /** - * Generated from protobuf enum CR_4_8 = 4; - */ - const CR_4_8 = 4; - /** - * LR-FHSS - * - * Generated from protobuf enum CR_3_8 = 5; - */ - const CR_3_8 = 5; - /** - * Generated from protobuf enum CR_2_6 = 6; - */ - const CR_2_6 = 6; - /** - * Generated from protobuf enum CR_1_4 = 7; - */ - const CR_1_4 = 7; - /** - * Generated from protobuf enum CR_1_6 = 8; - */ - const CR_1_6 = 8; - /** - * Generated from protobuf enum CR_5_6 = 9; - */ - const CR_5_6 = 9; - /** - * LoRa 2.4 gHz - * - * Generated from protobuf enum CR_LI_4_5 = 10; - */ - const CR_LI_4_5 = 10; - /** - * Generated from protobuf enum CR_LI_4_6 = 11; - */ - const CR_LI_4_6 = 11; - /** - * Generated from protobuf enum CR_LI_4_8 = 12; - */ - const CR_LI_4_8 = 12; - - private static $valueToName = [ - self::CR_UNDEFINED => 'CR_UNDEFINED', - self::CR_4_5 => 'CR_4_5', - self::CR_4_6 => 'CR_4_6', - self::CR_4_7 => 'CR_4_7', - self::CR_4_8 => 'CR_4_8', - self::CR_3_8 => 'CR_3_8', - self::CR_2_6 => 'CR_2_6', - self::CR_1_4 => 'CR_1_4', - self::CR_1_6 => 'CR_1_6', - self::CR_5_6 => 'CR_5_6', - self::CR_LI_4_5 => 'CR_LI_4_5', - self::CR_LI_4_6 => 'CR_LI_4_6', - self::CR_LI_4_8 => 'CR_LI_4_8', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - diff --git a/api/php/generated/Chirpstack/Gateway/ConnState.php b/api/php/generated/Chirpstack/Gateway/ConnState.php deleted file mode 100644 index e4bc8a9a..00000000 --- a/api/php/generated/Chirpstack/Gateway/ConnState.php +++ /dev/null @@ -1,132 +0,0 @@ -gw.ConnState - */ -class ConnState extends \Google\Protobuf\Internal\Message -{ - /** - * Gateway ID. - * Deprecated: use gateway_id. - * - * Generated from protobuf field bytes gateway_id_legacy = 1; - */ - protected $gateway_id_legacy = ''; - /** - * Gateway ID. - * - * Generated from protobuf field string gateway_id = 3; - */ - protected $gateway_id = ''; - /** - * Generated from protobuf field .gw.ConnState.State state = 2; - */ - protected $state = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $gateway_id_legacy - * Gateway ID. - * Deprecated: use gateway_id. - * @type string $gateway_id - * Gateway ID. - * @type int $state - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Chirpstack\Gateway\Gw::initOnce(); - parent::__construct($data); - } - - /** - * Gateway ID. - * Deprecated: use gateway_id. - * - * Generated from protobuf field bytes gateway_id_legacy = 1; - * @return string - */ - public function getGatewayIdLegacy() - { - return $this->gateway_id_legacy; - } - - /** - * Gateway ID. - * Deprecated: use gateway_id. - * - * Generated from protobuf field bytes gateway_id_legacy = 1; - * @param string $var - * @return $this - */ - public function setGatewayIdLegacy($var) - { - GPBUtil::checkString($var, False); - $this->gateway_id_legacy = $var; - - return $this; - } - - /** - * Gateway ID. - * - * Generated from protobuf field string gateway_id = 3; - * @return string - */ - public function getGatewayId() - { - return $this->gateway_id; - } - - /** - * Gateway ID. - * - * Generated from protobuf field string gateway_id = 3; - * @param string $var - * @return $this - */ - public function setGatewayId($var) - { - GPBUtil::checkString($var, True); - $this->gateway_id = $var; - - return $this; - } - - /** - * Generated from protobuf field .gw.ConnState.State state = 2; - * @return int - */ - public function getState() - { - return $this->state; - } - - /** - * Generated from protobuf field .gw.ConnState.State state = 2; - * @param int $var - * @return $this - */ - public function setState($var) - { - GPBUtil::checkEnum($var, \Chirpstack\Gateway\ConnState\State::class); - $this->state = $var; - - return $this; - } - -} - diff --git a/api/php/generated/Chirpstack/Gateway/ConnState/State.php b/api/php/generated/Chirpstack/Gateway/ConnState/State.php deleted file mode 100644 index 01f4e67f..00000000 --- a/api/php/generated/Chirpstack/Gateway/ConnState/State.php +++ /dev/null @@ -1,51 +0,0 @@ -gw.ConnState.State - */ -class State -{ - /** - * Generated from protobuf enum OFFLINE = 0; - */ - const OFFLINE = 0; - /** - * Generated from protobuf enum ONLINE = 1; - */ - const ONLINE = 1; - - private static $valueToName = [ - self::OFFLINE => 'OFFLINE', - self::ONLINE => 'ONLINE', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(State::class, \Chirpstack\Gateway\ConnState_State::class); - diff --git a/api/php/generated/Chirpstack/Gateway/ConnState_State.php b/api/php/generated/Chirpstack/Gateway/ConnState_State.php deleted file mode 100644 index 54d00672..00000000 --- a/api/php/generated/Chirpstack/Gateway/ConnState_State.php +++ /dev/null @@ -1,16 +0,0 @@ -gw.DelayTimingInfo - */ -class DelayTimingInfo extends \Google\Protobuf\Internal\Message -{ - /** - * Delay (duration). - * The delay will be added to the gateway internal timing, provided by the - * context object. - * - * Generated from protobuf field .google.protobuf.Duration delay = 1; - */ - protected $delay = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Protobuf\Duration $delay - * Delay (duration). - * The delay will be added to the gateway internal timing, provided by the - * context object. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Chirpstack\Gateway\Gw::initOnce(); - parent::__construct($data); - } - - /** - * Delay (duration). - * The delay will be added to the gateway internal timing, provided by the - * context object. - * - * Generated from protobuf field .google.protobuf.Duration delay = 1; - * @return \Google\Protobuf\Duration|null - */ - public function getDelay() - { - return $this->delay; - } - - public function hasDelay() - { - return isset($this->delay); - } - - public function clearDelay() - { - unset($this->delay); - } - - /** - * Delay (duration). - * The delay will be added to the gateway internal timing, provided by the - * context object. - * - * Generated from protobuf field .google.protobuf.Duration delay = 1; - * @param \Google\Protobuf\Duration $var - * @return $this - */ - public function setDelay($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Duration::class); - $this->delay = $var; - - return $this; - } - -} - diff --git a/api/php/generated/Chirpstack/Gateway/DownlinkFrame.php b/api/php/generated/Chirpstack/Gateway/DownlinkFrame.php deleted file mode 100644 index 49ae2c1d..00000000 --- a/api/php/generated/Chirpstack/Gateway/DownlinkFrame.php +++ /dev/null @@ -1,225 +0,0 @@ -gw.DownlinkFrame - */ -class DownlinkFrame extends \Google\Protobuf\Internal\Message -{ - /** - * Downlink ID. - * - * Generated from protobuf field uint32 downlink_id = 3; - */ - protected $downlink_id = 0; - /** - * Downlink ID (UUID). - * Deprecated: use downlink_id. - * - * Generated from protobuf field bytes downlink_id_legacy = 4; - */ - protected $downlink_id_legacy = ''; - /** - * Downlink frame items. - * This makes it possible to send multiple downlink opportunities to the - * gateway at once (e.g. RX1 and RX2 in LoRaWAN). The first item has the - * highest priority, the last the lowest. The gateway will emit at most - * one item. - * - * Generated from protobuf field repeated .gw.DownlinkFrameItem items = 5; - */ - private $items; - /** - * Gateway ID. - * Deprecated: use gateway_id - * - * Generated from protobuf field bytes gateway_id_legacy = 6; - */ - protected $gateway_id_legacy = ''; - /** - * Gateway ID. - * - * Generated from protobuf field string gateway_id = 7; - */ - protected $gateway_id = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $downlink_id - * Downlink ID. - * @type string $downlink_id_legacy - * Downlink ID (UUID). - * Deprecated: use downlink_id. - * @type array<\Chirpstack\Gateway\DownlinkFrameItem>|\Google\Protobuf\Internal\RepeatedField $items - * Downlink frame items. - * This makes it possible to send multiple downlink opportunities to the - * gateway at once (e.g. RX1 and RX2 in LoRaWAN). The first item has the - * highest priority, the last the lowest. The gateway will emit at most - * one item. - * @type string $gateway_id_legacy - * Gateway ID. - * Deprecated: use gateway_id - * @type string $gateway_id - * Gateway ID. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Chirpstack\Gateway\Gw::initOnce(); - parent::__construct($data); - } - - /** - * Downlink ID. - * - * Generated from protobuf field uint32 downlink_id = 3; - * @return int - */ - public function getDownlinkId() - { - return $this->downlink_id; - } - - /** - * Downlink ID. - * - * Generated from protobuf field uint32 downlink_id = 3; - * @param int $var - * @return $this - */ - public function setDownlinkId($var) - { - GPBUtil::checkUint32($var); - $this->downlink_id = $var; - - return $this; - } - - /** - * Downlink ID (UUID). - * Deprecated: use downlink_id. - * - * Generated from protobuf field bytes downlink_id_legacy = 4; - * @return string - */ - public function getDownlinkIdLegacy() - { - return $this->downlink_id_legacy; - } - - /** - * Downlink ID (UUID). - * Deprecated: use downlink_id. - * - * Generated from protobuf field bytes downlink_id_legacy = 4; - * @param string $var - * @return $this - */ - public function setDownlinkIdLegacy($var) - { - GPBUtil::checkString($var, False); - $this->downlink_id_legacy = $var; - - return $this; - } - - /** - * Downlink frame items. - * This makes it possible to send multiple downlink opportunities to the - * gateway at once (e.g. RX1 and RX2 in LoRaWAN). The first item has the - * highest priority, the last the lowest. The gateway will emit at most - * one item. - * - * Generated from protobuf field repeated .gw.DownlinkFrameItem items = 5; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getItems() - { - return $this->items; - } - - /** - * Downlink frame items. - * This makes it possible to send multiple downlink opportunities to the - * gateway at once (e.g. RX1 and RX2 in LoRaWAN). The first item has the - * highest priority, the last the lowest. The gateway will emit at most - * one item. - * - * Generated from protobuf field repeated .gw.DownlinkFrameItem items = 5; - * @param array<\Chirpstack\Gateway\DownlinkFrameItem>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setItems($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Chirpstack\Gateway\DownlinkFrameItem::class); - $this->items = $arr; - - return $this; - } - - /** - * Gateway ID. - * Deprecated: use gateway_id - * - * Generated from protobuf field bytes gateway_id_legacy = 6; - * @return string - */ - public function getGatewayIdLegacy() - { - return $this->gateway_id_legacy; - } - - /** - * Gateway ID. - * Deprecated: use gateway_id - * - * Generated from protobuf field bytes gateway_id_legacy = 6; - * @param string $var - * @return $this - */ - public function setGatewayIdLegacy($var) - { - GPBUtil::checkString($var, False); - $this->gateway_id_legacy = $var; - - return $this; - } - - /** - * Gateway ID. - * - * Generated from protobuf field string gateway_id = 7; - * @return string - */ - public function getGatewayId() - { - return $this->gateway_id; - } - - /** - * Gateway ID. - * - * Generated from protobuf field string gateway_id = 7; - * @param string $var - * @return $this - */ - public function setGatewayId($var) - { - GPBUtil::checkString($var, True); - $this->gateway_id = $var; - - return $this; - } - -} - diff --git a/api/php/generated/Chirpstack/Gateway/DownlinkFrameItem.php b/api/php/generated/Chirpstack/Gateway/DownlinkFrameItem.php deleted file mode 100644 index 27ffb9e2..00000000 --- a/api/php/generated/Chirpstack/Gateway/DownlinkFrameItem.php +++ /dev/null @@ -1,153 +0,0 @@ -gw.DownlinkFrameItem - */ -class DownlinkFrameItem extends \Google\Protobuf\Internal\Message -{ - /** - * PHYPayload. - * - * Generated from protobuf field bytes phy_payload = 1; - */ - protected $phy_payload = ''; - /** - * TX meta-data (deprecated). - * - * Generated from protobuf field .gw.DownlinkTxInfoLegacy tx_info_legacy = 2; - */ - protected $tx_info_legacy = null; - /** - * Tx meta-data. - * - * Generated from protobuf field .gw.DownlinkTxInfo tx_info = 3; - */ - protected $tx_info = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $phy_payload - * PHYPayload. - * @type \Chirpstack\Gateway\DownlinkTxInfoLegacy $tx_info_legacy - * TX meta-data (deprecated). - * @type \Chirpstack\Gateway\DownlinkTxInfo $tx_info - * Tx meta-data. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Chirpstack\Gateway\Gw::initOnce(); - parent::__construct($data); - } - - /** - * PHYPayload. - * - * Generated from protobuf field bytes phy_payload = 1; - * @return string - */ - public function getPhyPayload() - { - return $this->phy_payload; - } - - /** - * PHYPayload. - * - * Generated from protobuf field bytes phy_payload = 1; - * @param string $var - * @return $this - */ - public function setPhyPayload($var) - { - GPBUtil::checkString($var, False); - $this->phy_payload = $var; - - return $this; - } - - /** - * TX meta-data (deprecated). - * - * Generated from protobuf field .gw.DownlinkTxInfoLegacy tx_info_legacy = 2; - * @return \Chirpstack\Gateway\DownlinkTxInfoLegacy|null - */ - public function getTxInfoLegacy() - { - return $this->tx_info_legacy; - } - - public function hasTxInfoLegacy() - { - return isset($this->tx_info_legacy); - } - - public function clearTxInfoLegacy() - { - unset($this->tx_info_legacy); - } - - /** - * TX meta-data (deprecated). - * - * Generated from protobuf field .gw.DownlinkTxInfoLegacy tx_info_legacy = 2; - * @param \Chirpstack\Gateway\DownlinkTxInfoLegacy $var - * @return $this - */ - public function setTxInfoLegacy($var) - { - GPBUtil::checkMessage($var, \Chirpstack\Gateway\DownlinkTxInfoLegacy::class); - $this->tx_info_legacy = $var; - - return $this; - } - - /** - * Tx meta-data. - * - * Generated from protobuf field .gw.DownlinkTxInfo tx_info = 3; - * @return \Chirpstack\Gateway\DownlinkTxInfo|null - */ - public function getTxInfo() - { - return $this->tx_info; - } - - public function hasTxInfo() - { - return isset($this->tx_info); - } - - public function clearTxInfo() - { - unset($this->tx_info); - } - - /** - * Tx meta-data. - * - * Generated from protobuf field .gw.DownlinkTxInfo tx_info = 3; - * @param \Chirpstack\Gateway\DownlinkTxInfo $var - * @return $this - */ - public function setTxInfo($var) - { - GPBUtil::checkMessage($var, \Chirpstack\Gateway\DownlinkTxInfo::class); - $this->tx_info = $var; - - return $this; - } - -} - diff --git a/api/php/generated/Chirpstack/Gateway/DownlinkTiming.php b/api/php/generated/Chirpstack/Gateway/DownlinkTiming.php deleted file mode 100644 index 2b4afcb9..00000000 --- a/api/php/generated/Chirpstack/Gateway/DownlinkTiming.php +++ /dev/null @@ -1,59 +0,0 @@ -gw.DownlinkTiming - */ -class DownlinkTiming -{ - /** - * Send the downlink immediately. - * - * Generated from protobuf enum IMMEDIATELY = 0; - */ - const IMMEDIATELY = 0; - /** - * Send downlink at the given delay (based on provided context). - * - * Generated from protobuf enum DELAY = 1; - */ - const DELAY = 1; - /** - * Send at given GPS epoch value. - * - * Generated from protobuf enum GPS_EPOCH = 2; - */ - const GPS_EPOCH = 2; - - private static $valueToName = [ - self::IMMEDIATELY => 'IMMEDIATELY', - self::DELAY => 'DELAY', - self::GPS_EPOCH => 'GPS_EPOCH', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - diff --git a/api/php/generated/Chirpstack/Gateway/DownlinkTxAck.php b/api/php/generated/Chirpstack/Gateway/DownlinkTxAck.php deleted file mode 100644 index 1c2a42a9..00000000 --- a/api/php/generated/Chirpstack/Gateway/DownlinkTxAck.php +++ /dev/null @@ -1,213 +0,0 @@ -gw.DownlinkTxAck - */ -class DownlinkTxAck extends \Google\Protobuf\Internal\Message -{ - /** - * Gateway ID (deprecated). - * - * Generated from protobuf field bytes gateway_id_legacy = 1; - */ - protected $gateway_id_legacy = ''; - /** - * Gateway ID. - * - * Generated from protobuf field string gateway_id = 6; - */ - protected $gateway_id = ''; - /** - * Downlink ID. - * - * Generated from protobuf field uint32 downlink_id = 2; - */ - protected $downlink_id = 0; - /** - * Downlink ID (deprecated). - * - * Generated from protobuf field bytes downlink_id_legacy = 4; - */ - protected $downlink_id_legacy = ''; - /** - * Downlink frame items. - * This list has the same length as the request and indicates which - * downlink frame has been emitted of the requested list (or why it failed). - * Note that at most one item has a positive acknowledgement. - * - * Generated from protobuf field repeated .gw.DownlinkTxAckItem items = 5; - */ - private $items; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $gateway_id_legacy - * Gateway ID (deprecated). - * @type string $gateway_id - * Gateway ID. - * @type int $downlink_id - * Downlink ID. - * @type string $downlink_id_legacy - * Downlink ID (deprecated). - * @type array<\Chirpstack\Gateway\DownlinkTxAckItem>|\Google\Protobuf\Internal\RepeatedField $items - * Downlink frame items. - * This list has the same length as the request and indicates which - * downlink frame has been emitted of the requested list (or why it failed). - * Note that at most one item has a positive acknowledgement. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Chirpstack\Gateway\Gw::initOnce(); - parent::__construct($data); - } - - /** - * Gateway ID (deprecated). - * - * Generated from protobuf field bytes gateway_id_legacy = 1; - * @return string - */ - public function getGatewayIdLegacy() - { - return $this->gateway_id_legacy; - } - - /** - * Gateway ID (deprecated). - * - * Generated from protobuf field bytes gateway_id_legacy = 1; - * @param string $var - * @return $this - */ - public function setGatewayIdLegacy($var) - { - GPBUtil::checkString($var, False); - $this->gateway_id_legacy = $var; - - return $this; - } - - /** - * Gateway ID. - * - * Generated from protobuf field string gateway_id = 6; - * @return string - */ - public function getGatewayId() - { - return $this->gateway_id; - } - - /** - * Gateway ID. - * - * Generated from protobuf field string gateway_id = 6; - * @param string $var - * @return $this - */ - public function setGatewayId($var) - { - GPBUtil::checkString($var, True); - $this->gateway_id = $var; - - return $this; - } - - /** - * Downlink ID. - * - * Generated from protobuf field uint32 downlink_id = 2; - * @return int - */ - public function getDownlinkId() - { - return $this->downlink_id; - } - - /** - * Downlink ID. - * - * Generated from protobuf field uint32 downlink_id = 2; - * @param int $var - * @return $this - */ - public function setDownlinkId($var) - { - GPBUtil::checkUint32($var); - $this->downlink_id = $var; - - return $this; - } - - /** - * Downlink ID (deprecated). - * - * Generated from protobuf field bytes downlink_id_legacy = 4; - * @return string - */ - public function getDownlinkIdLegacy() - { - return $this->downlink_id_legacy; - } - - /** - * Downlink ID (deprecated). - * - * Generated from protobuf field bytes downlink_id_legacy = 4; - * @param string $var - * @return $this - */ - public function setDownlinkIdLegacy($var) - { - GPBUtil::checkString($var, False); - $this->downlink_id_legacy = $var; - - return $this; - } - - /** - * Downlink frame items. - * This list has the same length as the request and indicates which - * downlink frame has been emitted of the requested list (or why it failed). - * Note that at most one item has a positive acknowledgement. - * - * Generated from protobuf field repeated .gw.DownlinkTxAckItem items = 5; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getItems() - { - return $this->items; - } - - /** - * Downlink frame items. - * This list has the same length as the request and indicates which - * downlink frame has been emitted of the requested list (or why it failed). - * Note that at most one item has a positive acknowledgement. - * - * Generated from protobuf field repeated .gw.DownlinkTxAckItem items = 5; - * @param array<\Chirpstack\Gateway\DownlinkTxAckItem>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setItems($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Chirpstack\Gateway\DownlinkTxAckItem::class); - $this->items = $arr; - - return $this; - } - -} - diff --git a/api/php/generated/Chirpstack/Gateway/DownlinkTxAckItem.php b/api/php/generated/Chirpstack/Gateway/DownlinkTxAckItem.php deleted file mode 100644 index b7ab3ee8..00000000 --- a/api/php/generated/Chirpstack/Gateway/DownlinkTxAckItem.php +++ /dev/null @@ -1,65 +0,0 @@ -gw.DownlinkTxAckItem - */ -class DownlinkTxAckItem extends \Google\Protobuf\Internal\Message -{ - /** - * The Ack status of this item. - * - * Generated from protobuf field .gw.TxAckStatus status = 1; - */ - protected $status = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $status - * The Ack status of this item. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Chirpstack\Gateway\Gw::initOnce(); - parent::__construct($data); - } - - /** - * The Ack status of this item. - * - * Generated from protobuf field .gw.TxAckStatus status = 1; - * @return int - */ - public function getStatus() - { - return $this->status; - } - - /** - * The Ack status of this item. - * - * Generated from protobuf field .gw.TxAckStatus status = 1; - * @param int $var - * @return $this - */ - public function setStatus($var) - { - GPBUtil::checkEnum($var, \Chirpstack\Gateway\TxAckStatus::class); - $this->status = $var; - - return $this; - } - -} - diff --git a/api/php/generated/Chirpstack/Gateway/DownlinkTxInfo.php b/api/php/generated/Chirpstack/Gateway/DownlinkTxInfo.php deleted file mode 100644 index 25682656..00000000 --- a/api/php/generated/Chirpstack/Gateway/DownlinkTxInfo.php +++ /dev/null @@ -1,293 +0,0 @@ -gw.DownlinkTxInfo - */ -class DownlinkTxInfo extends \Google\Protobuf\Internal\Message -{ - /** - * TX frequency (in Hz). - * - * Generated from protobuf field uint32 frequency = 1; - */ - protected $frequency = 0; - /** - * TX power (in dBm EIRP). - * - * Generated from protobuf field int32 power = 2; - */ - protected $power = 0; - /** - * Modulation. - * - * Generated from protobuf field .gw.Modulation modulation = 3; - */ - protected $modulation = null; - /** - * The board identifier for emitting the frame. - * - * Generated from protobuf field uint32 board = 4; - */ - protected $board = 0; - /** - * The antenna identifier for emitting the frame. - * - * Generated from protobuf field uint32 antenna = 5; - */ - protected $antenna = 0; - /** - * Timing. - * - * Generated from protobuf field .gw.Timing timing = 6; - */ - protected $timing = null; - /** - * Gateway specific context. - * In case of a Class-A downlink, this contains a copy of the uplink context. - * - * Generated from protobuf field bytes context = 7; - */ - protected $context = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $frequency - * TX frequency (in Hz). - * @type int $power - * TX power (in dBm EIRP). - * @type \Chirpstack\Gateway\Modulation $modulation - * Modulation. - * @type int $board - * The board identifier for emitting the frame. - * @type int $antenna - * The antenna identifier for emitting the frame. - * @type \Chirpstack\Gateway\Timing $timing - * Timing. - * @type string $context - * Gateway specific context. - * In case of a Class-A downlink, this contains a copy of the uplink context. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Chirpstack\Gateway\Gw::initOnce(); - parent::__construct($data); - } - - /** - * TX frequency (in Hz). - * - * Generated from protobuf field uint32 frequency = 1; - * @return int - */ - public function getFrequency() - { - return $this->frequency; - } - - /** - * TX frequency (in Hz). - * - * Generated from protobuf field uint32 frequency = 1; - * @param int $var - * @return $this - */ - public function setFrequency($var) - { - GPBUtil::checkUint32($var); - $this->frequency = $var; - - return $this; - } - - /** - * TX power (in dBm EIRP). - * - * Generated from protobuf field int32 power = 2; - * @return int - */ - public function getPower() - { - return $this->power; - } - - /** - * TX power (in dBm EIRP). - * - * Generated from protobuf field int32 power = 2; - * @param int $var - * @return $this - */ - public function setPower($var) - { - GPBUtil::checkInt32($var); - $this->power = $var; - - return $this; - } - - /** - * Modulation. - * - * Generated from protobuf field .gw.Modulation modulation = 3; - * @return \Chirpstack\Gateway\Modulation|null - */ - public function getModulation() - { - return $this->modulation; - } - - public function hasModulation() - { - return isset($this->modulation); - } - - public function clearModulation() - { - unset($this->modulation); - } - - /** - * Modulation. - * - * Generated from protobuf field .gw.Modulation modulation = 3; - * @param \Chirpstack\Gateway\Modulation $var - * @return $this - */ - public function setModulation($var) - { - GPBUtil::checkMessage($var, \Chirpstack\Gateway\Modulation::class); - $this->modulation = $var; - - return $this; - } - - /** - * The board identifier for emitting the frame. - * - * Generated from protobuf field uint32 board = 4; - * @return int - */ - public function getBoard() - { - return $this->board; - } - - /** - * The board identifier for emitting the frame. - * - * Generated from protobuf field uint32 board = 4; - * @param int $var - * @return $this - */ - public function setBoard($var) - { - GPBUtil::checkUint32($var); - $this->board = $var; - - return $this; - } - - /** - * The antenna identifier for emitting the frame. - * - * Generated from protobuf field uint32 antenna = 5; - * @return int - */ - public function getAntenna() - { - return $this->antenna; - } - - /** - * The antenna identifier for emitting the frame. - * - * Generated from protobuf field uint32 antenna = 5; - * @param int $var - * @return $this - */ - public function setAntenna($var) - { - GPBUtil::checkUint32($var); - $this->antenna = $var; - - return $this; - } - - /** - * Timing. - * - * Generated from protobuf field .gw.Timing timing = 6; - * @return \Chirpstack\Gateway\Timing|null - */ - public function getTiming() - { - return $this->timing; - } - - public function hasTiming() - { - return isset($this->timing); - } - - public function clearTiming() - { - unset($this->timing); - } - - /** - * Timing. - * - * Generated from protobuf field .gw.Timing timing = 6; - * @param \Chirpstack\Gateway\Timing $var - * @return $this - */ - public function setTiming($var) - { - GPBUtil::checkMessage($var, \Chirpstack\Gateway\Timing::class); - $this->timing = $var; - - return $this; - } - - /** - * Gateway specific context. - * In case of a Class-A downlink, this contains a copy of the uplink context. - * - * Generated from protobuf field bytes context = 7; - * @return string - */ - public function getContext() - { - return $this->context; - } - - /** - * Gateway specific context. - * In case of a Class-A downlink, this contains a copy of the uplink context. - * - * Generated from protobuf field bytes context = 7; - * @param string $var - * @return $this - */ - public function setContext($var) - { - GPBUtil::checkString($var, False); - $this->context = $var; - - return $this; - } - -} - diff --git a/api/php/generated/Chirpstack/Gateway/DownlinkTxInfoLegacy.php b/api/php/generated/Chirpstack/Gateway/DownlinkTxInfoLegacy.php deleted file mode 100644 index 92bb74b6..00000000 --- a/api/php/generated/Chirpstack/Gateway/DownlinkTxInfoLegacy.php +++ /dev/null @@ -1,494 +0,0 @@ -gw.DownlinkTxInfoLegacy - */ -class DownlinkTxInfoLegacy extends \Google\Protobuf\Internal\Message -{ - /** - * Gateway ID. - * Deprecated: replaced by gateway_id in DownlinkFrame. - * - * Generated from protobuf field bytes gateway_id = 1; - */ - protected $gateway_id = ''; - /** - * TX frequency (in Hz). - * - * Generated from protobuf field uint32 frequency = 5; - */ - protected $frequency = 0; - /** - * TX power (in dBm EIRP). - * - * Generated from protobuf field int32 power = 6; - */ - protected $power = 0; - /** - * Modulation. - * - * Generated from protobuf field .common.Modulation modulation = 7; - */ - protected $modulation = 0; - /** - * The board identifier for emitting the frame. - * - * Generated from protobuf field uint32 board = 10; - */ - protected $board = 0; - /** - * The antenna identifier for emitting the frame. - * - * Generated from protobuf field uint32 antenna = 11; - */ - protected $antenna = 0; - /** - * Timing defines the downlink timing to use. - * - * Generated from protobuf field .gw.DownlinkTiming timing = 12; - */ - protected $timing = 0; - /** - * Gateway specific context. - * In case of a Class-A downlink, this contains a copy of the uplink context. - * - * Generated from protobuf field bytes context = 16; - */ - protected $context = ''; - protected $modulation_info; - protected $timing_info; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $gateway_id - * Gateway ID. - * Deprecated: replaced by gateway_id in DownlinkFrame. - * @type int $frequency - * TX frequency (in Hz). - * @type int $power - * TX power (in dBm EIRP). - * @type int $modulation - * Modulation. - * @type \Chirpstack\Gateway\LoraModulationInfo $lora_modulation_info - * LoRa modulation information. - * @type \Chirpstack\Gateway\FskModulationInfo $fsk_modulation_info - * FSK modulation information. - * @type int $board - * The board identifier for emitting the frame. - * @type int $antenna - * The antenna identifier for emitting the frame. - * @type int $timing - * Timing defines the downlink timing to use. - * @type \Chirpstack\Gateway\ImmediatelyTimingInfo $immediately_timing_info - * Immediately timing information. - * @type \Chirpstack\Gateway\DelayTimingInfo $delay_timing_info - * Context based delay timing information. - * @type \Chirpstack\Gateway\GPSEpochTimingInfo $gps_epoch_timing_info - * GPS Epoch timing information. - * @type string $context - * Gateway specific context. - * In case of a Class-A downlink, this contains a copy of the uplink context. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Chirpstack\Gateway\Gw::initOnce(); - parent::__construct($data); - } - - /** - * Gateway ID. - * Deprecated: replaced by gateway_id in DownlinkFrame. - * - * Generated from protobuf field bytes gateway_id = 1; - * @return string - */ - public function getGatewayId() - { - return $this->gateway_id; - } - - /** - * Gateway ID. - * Deprecated: replaced by gateway_id in DownlinkFrame. - * - * Generated from protobuf field bytes gateway_id = 1; - * @param string $var - * @return $this - */ - public function setGatewayId($var) - { - GPBUtil::checkString($var, False); - $this->gateway_id = $var; - - return $this; - } - - /** - * TX frequency (in Hz). - * - * Generated from protobuf field uint32 frequency = 5; - * @return int - */ - public function getFrequency() - { - return $this->frequency; - } - - /** - * TX frequency (in Hz). - * - * Generated from protobuf field uint32 frequency = 5; - * @param int $var - * @return $this - */ - public function setFrequency($var) - { - GPBUtil::checkUint32($var); - $this->frequency = $var; - - return $this; - } - - /** - * TX power (in dBm EIRP). - * - * Generated from protobuf field int32 power = 6; - * @return int - */ - public function getPower() - { - return $this->power; - } - - /** - * TX power (in dBm EIRP). - * - * Generated from protobuf field int32 power = 6; - * @param int $var - * @return $this - */ - public function setPower($var) - { - GPBUtil::checkInt32($var); - $this->power = $var; - - return $this; - } - - /** - * Modulation. - * - * Generated from protobuf field .common.Modulation modulation = 7; - * @return int - */ - public function getModulation() - { - return $this->modulation; - } - - /** - * Modulation. - * - * Generated from protobuf field .common.Modulation modulation = 7; - * @param int $var - * @return $this - */ - public function setModulation($var) - { - GPBUtil::checkEnum($var, \Chirpstack\Common\Modulation::class); - $this->modulation = $var; - - return $this; - } - - /** - * LoRa modulation information. - * - * Generated from protobuf field .gw.LoraModulationInfo lora_modulation_info = 8; - * @return \Chirpstack\Gateway\LoraModulationInfo|null - */ - public function getLoraModulationInfo() - { - return $this->readOneof(8); - } - - public function hasLoraModulationInfo() - { - return $this->hasOneof(8); - } - - /** - * LoRa modulation information. - * - * Generated from protobuf field .gw.LoraModulationInfo lora_modulation_info = 8; - * @param \Chirpstack\Gateway\LoraModulationInfo $var - * @return $this - */ - public function setLoraModulationInfo($var) - { - GPBUtil::checkMessage($var, \Chirpstack\Gateway\LoraModulationInfo::class); - $this->writeOneof(8, $var); - - return $this; - } - - /** - * FSK modulation information. - * - * Generated from protobuf field .gw.FskModulationInfo fsk_modulation_info = 9; - * @return \Chirpstack\Gateway\FskModulationInfo|null - */ - public function getFskModulationInfo() - { - return $this->readOneof(9); - } - - public function hasFskModulationInfo() - { - return $this->hasOneof(9); - } - - /** - * FSK modulation information. - * - * Generated from protobuf field .gw.FskModulationInfo fsk_modulation_info = 9; - * @param \Chirpstack\Gateway\FskModulationInfo $var - * @return $this - */ - public function setFskModulationInfo($var) - { - GPBUtil::checkMessage($var, \Chirpstack\Gateway\FskModulationInfo::class); - $this->writeOneof(9, $var); - - return $this; - } - - /** - * The board identifier for emitting the frame. - * - * Generated from protobuf field uint32 board = 10; - * @return int - */ - public function getBoard() - { - return $this->board; - } - - /** - * The board identifier for emitting the frame. - * - * Generated from protobuf field uint32 board = 10; - * @param int $var - * @return $this - */ - public function setBoard($var) - { - GPBUtil::checkUint32($var); - $this->board = $var; - - return $this; - } - - /** - * The antenna identifier for emitting the frame. - * - * Generated from protobuf field uint32 antenna = 11; - * @return int - */ - public function getAntenna() - { - return $this->antenna; - } - - /** - * The antenna identifier for emitting the frame. - * - * Generated from protobuf field uint32 antenna = 11; - * @param int $var - * @return $this - */ - public function setAntenna($var) - { - GPBUtil::checkUint32($var); - $this->antenna = $var; - - return $this; - } - - /** - * Timing defines the downlink timing to use. - * - * Generated from protobuf field .gw.DownlinkTiming timing = 12; - * @return int - */ - public function getTiming() - { - return $this->timing; - } - - /** - * Timing defines the downlink timing to use. - * - * Generated from protobuf field .gw.DownlinkTiming timing = 12; - * @param int $var - * @return $this - */ - public function setTiming($var) - { - GPBUtil::checkEnum($var, \Chirpstack\Gateway\DownlinkTiming::class); - $this->timing = $var; - - return $this; - } - - /** - * Immediately timing information. - * - * Generated from protobuf field .gw.ImmediatelyTimingInfo immediately_timing_info = 13; - * @return \Chirpstack\Gateway\ImmediatelyTimingInfo|null - */ - public function getImmediatelyTimingInfo() - { - return $this->readOneof(13); - } - - public function hasImmediatelyTimingInfo() - { - return $this->hasOneof(13); - } - - /** - * Immediately timing information. - * - * Generated from protobuf field .gw.ImmediatelyTimingInfo immediately_timing_info = 13; - * @param \Chirpstack\Gateway\ImmediatelyTimingInfo $var - * @return $this - */ - public function setImmediatelyTimingInfo($var) - { - GPBUtil::checkMessage($var, \Chirpstack\Gateway\ImmediatelyTimingInfo::class); - $this->writeOneof(13, $var); - - return $this; - } - - /** - * Context based delay timing information. - * - * Generated from protobuf field .gw.DelayTimingInfo delay_timing_info = 14; - * @return \Chirpstack\Gateway\DelayTimingInfo|null - */ - public function getDelayTimingInfo() - { - return $this->readOneof(14); - } - - public function hasDelayTimingInfo() - { - return $this->hasOneof(14); - } - - /** - * Context based delay timing information. - * - * Generated from protobuf field .gw.DelayTimingInfo delay_timing_info = 14; - * @param \Chirpstack\Gateway\DelayTimingInfo $var - * @return $this - */ - public function setDelayTimingInfo($var) - { - GPBUtil::checkMessage($var, \Chirpstack\Gateway\DelayTimingInfo::class); - $this->writeOneof(14, $var); - - return $this; - } - - /** - * GPS Epoch timing information. - * - * Generated from protobuf field .gw.GPSEpochTimingInfo gps_epoch_timing_info = 15; - * @return \Chirpstack\Gateway\GPSEpochTimingInfo|null - */ - public function getGpsEpochTimingInfo() - { - return $this->readOneof(15); - } - - public function hasGpsEpochTimingInfo() - { - return $this->hasOneof(15); - } - - /** - * GPS Epoch timing information. - * - * Generated from protobuf field .gw.GPSEpochTimingInfo gps_epoch_timing_info = 15; - * @param \Chirpstack\Gateway\GPSEpochTimingInfo $var - * @return $this - */ - public function setGpsEpochTimingInfo($var) - { - GPBUtil::checkMessage($var, \Chirpstack\Gateway\GPSEpochTimingInfo::class); - $this->writeOneof(15, $var); - - return $this; - } - - /** - * Gateway specific context. - * In case of a Class-A downlink, this contains a copy of the uplink context. - * - * Generated from protobuf field bytes context = 16; - * @return string - */ - public function getContext() - { - return $this->context; - } - - /** - * Gateway specific context. - * In case of a Class-A downlink, this contains a copy of the uplink context. - * - * Generated from protobuf field bytes context = 16; - * @param string $var - * @return $this - */ - public function setContext($var) - { - GPBUtil::checkString($var, False); - $this->context = $var; - - return $this; - } - - /** - * @return string - */ - public function getModulationInfo() - { - return $this->whichOneof("modulation_info"); - } - - /** - * @return string - */ - public function getTimingInfo() - { - return $this->whichOneof("timing_info"); - } - -} - diff --git a/api/php/generated/Chirpstack/Gateway/DutyCycleBand.php b/api/php/generated/Chirpstack/Gateway/DutyCycleBand.php deleted file mode 100644 index 6aa2f145..00000000 --- a/api/php/generated/Chirpstack/Gateway/DutyCycleBand.php +++ /dev/null @@ -1,221 +0,0 @@ -gw.DutyCycleBand - */ -class DutyCycleBand extends \Google\Protobuf\Internal\Message -{ - /** - * Band name. - * - * Generated from protobuf field string name = 1; - */ - protected $name = ''; - /** - * Min frequency for this band. - * - * Generated from protobuf field uint32 frequency_min = 2; - */ - protected $frequency_min = 0; - /** - * Max frequency for this band. - * - * Generated from protobuf field uint32 frequency_max = 3; - */ - protected $frequency_max = 0; - /** - * Max. allowed load. - * - * Generated from protobuf field .google.protobuf.Duration load_max = 4; - */ - protected $load_max = null; - /** - * Tracked load (within the window of the regionlation). - * - * Generated from protobuf field .google.protobuf.Duration load_tracked = 5; - */ - protected $load_tracked = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Band name. - * @type int $frequency_min - * Min frequency for this band. - * @type int $frequency_max - * Max frequency for this band. - * @type \Google\Protobuf\Duration $load_max - * Max. allowed load. - * @type \Google\Protobuf\Duration $load_tracked - * Tracked load (within the window of the regionlation). - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Chirpstack\Gateway\Gw::initOnce(); - parent::__construct($data); - } - - /** - * Band name. - * - * Generated from protobuf field string name = 1; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Band name. - * - * Generated from protobuf field string name = 1; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Min frequency for this band. - * - * Generated from protobuf field uint32 frequency_min = 2; - * @return int - */ - public function getFrequencyMin() - { - return $this->frequency_min; - } - - /** - * Min frequency for this band. - * - * Generated from protobuf field uint32 frequency_min = 2; - * @param int $var - * @return $this - */ - public function setFrequencyMin($var) - { - GPBUtil::checkUint32($var); - $this->frequency_min = $var; - - return $this; - } - - /** - * Max frequency for this band. - * - * Generated from protobuf field uint32 frequency_max = 3; - * @return int - */ - public function getFrequencyMax() - { - return $this->frequency_max; - } - - /** - * Max frequency for this band. - * - * Generated from protobuf field uint32 frequency_max = 3; - * @param int $var - * @return $this - */ - public function setFrequencyMax($var) - { - GPBUtil::checkUint32($var); - $this->frequency_max = $var; - - return $this; - } - - /** - * Max. allowed load. - * - * Generated from protobuf field .google.protobuf.Duration load_max = 4; - * @return \Google\Protobuf\Duration|null - */ - public function getLoadMax() - { - return $this->load_max; - } - - public function hasLoadMax() - { - return isset($this->load_max); - } - - public function clearLoadMax() - { - unset($this->load_max); - } - - /** - * Max. allowed load. - * - * Generated from protobuf field .google.protobuf.Duration load_max = 4; - * @param \Google\Protobuf\Duration $var - * @return $this - */ - public function setLoadMax($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Duration::class); - $this->load_max = $var; - - return $this; - } - - /** - * Tracked load (within the window of the regionlation). - * - * Generated from protobuf field .google.protobuf.Duration load_tracked = 5; - * @return \Google\Protobuf\Duration|null - */ - public function getLoadTracked() - { - return $this->load_tracked; - } - - public function hasLoadTracked() - { - return isset($this->load_tracked); - } - - public function clearLoadTracked() - { - unset($this->load_tracked); - } - - /** - * Tracked load (within the window of the regionlation). - * - * Generated from protobuf field .google.protobuf.Duration load_tracked = 5; - * @param \Google\Protobuf\Duration $var - * @return $this - */ - public function setLoadTracked($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Duration::class); - $this->load_tracked = $var; - - return $this; - } - -} - diff --git a/api/php/generated/Chirpstack/Gateway/DutyCycleStats.php b/api/php/generated/Chirpstack/Gateway/DutyCycleStats.php deleted file mode 100644 index e7492c34..00000000 --- a/api/php/generated/Chirpstack/Gateway/DutyCycleStats.php +++ /dev/null @@ -1,143 +0,0 @@ -gw.DutyCycleStats - */ -class DutyCycleStats extends \Google\Protobuf\Internal\Message -{ - /** - * Implemented regulation. - * - * Generated from protobuf field .common.Regulation regulation = 1; - */ - protected $regulation = 0; - /** - * Tracking window. - * - * Generated from protobuf field .google.protobuf.Duration window = 2; - */ - protected $window = null; - /** - * Bands. - * - * Generated from protobuf field repeated .gw.DutyCycleBand bands = 3; - */ - private $bands; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $regulation - * Implemented regulation. - * @type \Google\Protobuf\Duration $window - * Tracking window. - * @type array<\Chirpstack\Gateway\DutyCycleBand>|\Google\Protobuf\Internal\RepeatedField $bands - * Bands. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Chirpstack\Gateway\Gw::initOnce(); - parent::__construct($data); - } - - /** - * Implemented regulation. - * - * Generated from protobuf field .common.Regulation regulation = 1; - * @return int - */ - public function getRegulation() - { - return $this->regulation; - } - - /** - * Implemented regulation. - * - * Generated from protobuf field .common.Regulation regulation = 1; - * @param int $var - * @return $this - */ - public function setRegulation($var) - { - GPBUtil::checkEnum($var, \Chirpstack\Common\Regulation::class); - $this->regulation = $var; - - return $this; - } - - /** - * Tracking window. - * - * Generated from protobuf field .google.protobuf.Duration window = 2; - * @return \Google\Protobuf\Duration|null - */ - public function getWindow() - { - return $this->window; - } - - public function hasWindow() - { - return isset($this->window); - } - - public function clearWindow() - { - unset($this->window); - } - - /** - * Tracking window. - * - * Generated from protobuf field .google.protobuf.Duration window = 2; - * @param \Google\Protobuf\Duration $var - * @return $this - */ - public function setWindow($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Duration::class); - $this->window = $var; - - return $this; - } - - /** - * Bands. - * - * Generated from protobuf field repeated .gw.DutyCycleBand bands = 3; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getBands() - { - return $this->bands; - } - - /** - * Bands. - * - * Generated from protobuf field repeated .gw.DutyCycleBand bands = 3; - * @param array<\Chirpstack\Gateway\DutyCycleBand>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setBands($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Chirpstack\Gateway\DutyCycleBand::class); - $this->bands = $arr; - - return $this; - } - -} - diff --git a/api/php/generated/Chirpstack/Gateway/EncryptedFineTimestamp.php b/api/php/generated/Chirpstack/Gateway/EncryptedFineTimestamp.php deleted file mode 100644 index 718bd8bd..00000000 --- a/api/php/generated/Chirpstack/Gateway/EncryptedFineTimestamp.php +++ /dev/null @@ -1,133 +0,0 @@ -gw.EncryptedFineTimestamp - */ -class EncryptedFineTimestamp extends \Google\Protobuf\Internal\Message -{ - /** - * AES key index used for encrypting the fine timestamp. - * - * Generated from protobuf field uint32 aes_key_index = 1; - */ - protected $aes_key_index = 0; - /** - * Encrypted 'main' fine-timestamp (ns precision part of the timestamp). - * - * Generated from protobuf field bytes encrypted_ns = 2; - */ - protected $encrypted_ns = ''; - /** - * FPGA ID. - * - * Generated from protobuf field bytes fpga_id = 3; - */ - protected $fpga_id = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $aes_key_index - * AES key index used for encrypting the fine timestamp. - * @type string $encrypted_ns - * Encrypted 'main' fine-timestamp (ns precision part of the timestamp). - * @type string $fpga_id - * FPGA ID. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Chirpstack\Gateway\Gw::initOnce(); - parent::__construct($data); - } - - /** - * AES key index used for encrypting the fine timestamp. - * - * Generated from protobuf field uint32 aes_key_index = 1; - * @return int - */ - public function getAesKeyIndex() - { - return $this->aes_key_index; - } - - /** - * AES key index used for encrypting the fine timestamp. - * - * Generated from protobuf field uint32 aes_key_index = 1; - * @param int $var - * @return $this - */ - public function setAesKeyIndex($var) - { - GPBUtil::checkUint32($var); - $this->aes_key_index = $var; - - return $this; - } - - /** - * Encrypted 'main' fine-timestamp (ns precision part of the timestamp). - * - * Generated from protobuf field bytes encrypted_ns = 2; - * @return string - */ - public function getEncryptedNs() - { - return $this->encrypted_ns; - } - - /** - * Encrypted 'main' fine-timestamp (ns precision part of the timestamp). - * - * Generated from protobuf field bytes encrypted_ns = 2; - * @param string $var - * @return $this - */ - public function setEncryptedNs($var) - { - GPBUtil::checkString($var, False); - $this->encrypted_ns = $var; - - return $this; - } - - /** - * FPGA ID. - * - * Generated from protobuf field bytes fpga_id = 3; - * @return string - */ - public function getFpgaId() - { - return $this->fpga_id; - } - - /** - * FPGA ID. - * - * Generated from protobuf field bytes fpga_id = 3; - * @param string $var - * @return $this - */ - public function setFpgaId($var) - { - GPBUtil::checkString($var, False); - $this->fpga_id = $var; - - return $this; - } - -} - diff --git a/api/php/generated/Chirpstack/Gateway/FineTimestampType.php b/api/php/generated/Chirpstack/Gateway/FineTimestampType.php deleted file mode 100644 index cbd7ff1b..00000000 --- a/api/php/generated/Chirpstack/Gateway/FineTimestampType.php +++ /dev/null @@ -1,59 +0,0 @@ -gw.FineTimestampType - */ -class FineTimestampType -{ - /** - * No fine-timestamp available. - * - * Generated from protobuf enum NONE = 0; - */ - const NONE = 0; - /** - * Encrypted fine-timestamp. - * - * Generated from protobuf enum ENCRYPTED = 1; - */ - const ENCRYPTED = 1; - /** - * Plain fine-timestamp. - * - * Generated from protobuf enum PLAIN = 2; - */ - const PLAIN = 2; - - private static $valueToName = [ - self::NONE => 'NONE', - self::ENCRYPTED => 'ENCRYPTED', - self::PLAIN => 'PLAIN', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - diff --git a/api/php/generated/Chirpstack/Gateway/FskModulationConfig.php b/api/php/generated/Chirpstack/Gateway/FskModulationConfig.php deleted file mode 100644 index e15cc168..00000000 --- a/api/php/generated/Chirpstack/Gateway/FskModulationConfig.php +++ /dev/null @@ -1,137 +0,0 @@ -gw.FskModulationConfig - */ -class FskModulationConfig extends \Google\Protobuf\Internal\Message -{ - /** - * Bandwidth (kHz). - * Deprecated: use bandwidth. - * - * Generated from protobuf field uint32 bandwidth_legacy = 1; - */ - protected $bandwidth_legacy = 0; - /** - * Bandwidth (Hz). - * - * Generated from protobuf field uint32 bandwidth = 3; - */ - protected $bandwidth = 0; - /** - * Bitrate. - * - * Generated from protobuf field uint32 bitrate = 2; - */ - protected $bitrate = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $bandwidth_legacy - * Bandwidth (kHz). - * Deprecated: use bandwidth. - * @type int $bandwidth - * Bandwidth (Hz). - * @type int $bitrate - * Bitrate. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Chirpstack\Gateway\Gw::initOnce(); - parent::__construct($data); - } - - /** - * Bandwidth (kHz). - * Deprecated: use bandwidth. - * - * Generated from protobuf field uint32 bandwidth_legacy = 1; - * @return int - */ - public function getBandwidthLegacy() - { - return $this->bandwidth_legacy; - } - - /** - * Bandwidth (kHz). - * Deprecated: use bandwidth. - * - * Generated from protobuf field uint32 bandwidth_legacy = 1; - * @param int $var - * @return $this - */ - public function setBandwidthLegacy($var) - { - GPBUtil::checkUint32($var); - $this->bandwidth_legacy = $var; - - return $this; - } - - /** - * Bandwidth (Hz). - * - * Generated from protobuf field uint32 bandwidth = 3; - * @return int - */ - public function getBandwidth() - { - return $this->bandwidth; - } - - /** - * Bandwidth (Hz). - * - * Generated from protobuf field uint32 bandwidth = 3; - * @param int $var - * @return $this - */ - public function setBandwidth($var) - { - GPBUtil::checkUint32($var); - $this->bandwidth = $var; - - return $this; - } - - /** - * Bitrate. - * - * Generated from protobuf field uint32 bitrate = 2; - * @return int - */ - public function getBitrate() - { - return $this->bitrate; - } - - /** - * Bitrate. - * - * Generated from protobuf field uint32 bitrate = 2; - * @param int $var - * @return $this - */ - public function setBitrate($var) - { - GPBUtil::checkUint32($var); - $this->bitrate = $var; - - return $this; - } - -} - diff --git a/api/php/generated/Chirpstack/Gateway/FskModulationInfo.php b/api/php/generated/Chirpstack/Gateway/FskModulationInfo.php deleted file mode 100644 index af4ccdfe..00000000 --- a/api/php/generated/Chirpstack/Gateway/FskModulationInfo.php +++ /dev/null @@ -1,99 +0,0 @@ -gw.FskModulationInfo - */ -class FskModulationInfo extends \Google\Protobuf\Internal\Message -{ - /** - * Frequency deviation. - * - * Generated from protobuf field uint32 frequency_deviation = 1; - */ - protected $frequency_deviation = 0; - /** - * FSK datarate (bits / sec). - * - * Generated from protobuf field uint32 datarate = 2; - */ - protected $datarate = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $frequency_deviation - * Frequency deviation. - * @type int $datarate - * FSK datarate (bits / sec). - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Chirpstack\Gateway\Gw::initOnce(); - parent::__construct($data); - } - - /** - * Frequency deviation. - * - * Generated from protobuf field uint32 frequency_deviation = 1; - * @return int - */ - public function getFrequencyDeviation() - { - return $this->frequency_deviation; - } - - /** - * Frequency deviation. - * - * Generated from protobuf field uint32 frequency_deviation = 1; - * @param int $var - * @return $this - */ - public function setFrequencyDeviation($var) - { - GPBUtil::checkUint32($var); - $this->frequency_deviation = $var; - - return $this; - } - - /** - * FSK datarate (bits / sec). - * - * Generated from protobuf field uint32 datarate = 2; - * @return int - */ - public function getDatarate() - { - return $this->datarate; - } - - /** - * FSK datarate (bits / sec). - * - * Generated from protobuf field uint32 datarate = 2; - * @param int $var - * @return $this - */ - public function setDatarate($var) - { - GPBUtil::checkUint32($var); - $this->datarate = $var; - - return $this; - } - -} - diff --git a/api/php/generated/Chirpstack/Gateway/GPSEpochTimingInfo.php b/api/php/generated/Chirpstack/Gateway/GPSEpochTimingInfo.php deleted file mode 100644 index 154c0449..00000000 --- a/api/php/generated/Chirpstack/Gateway/GPSEpochTimingInfo.php +++ /dev/null @@ -1,75 +0,0 @@ -gw.GPSEpochTimingInfo - */ -class GPSEpochTimingInfo extends \Google\Protobuf\Internal\Message -{ - /** - * Duration since GPS Epoch. - * - * Generated from protobuf field .google.protobuf.Duration time_since_gps_epoch = 1; - */ - protected $time_since_gps_epoch = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Protobuf\Duration $time_since_gps_epoch - * Duration since GPS Epoch. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Chirpstack\Gateway\Gw::initOnce(); - parent::__construct($data); - } - - /** - * Duration since GPS Epoch. - * - * Generated from protobuf field .google.protobuf.Duration time_since_gps_epoch = 1; - * @return \Google\Protobuf\Duration|null - */ - public function getTimeSinceGpsEpoch() - { - return $this->time_since_gps_epoch; - } - - public function hasTimeSinceGpsEpoch() - { - return isset($this->time_since_gps_epoch); - } - - public function clearTimeSinceGpsEpoch() - { - unset($this->time_since_gps_epoch); - } - - /** - * Duration since GPS Epoch. - * - * Generated from protobuf field .google.protobuf.Duration time_since_gps_epoch = 1; - * @param \Google\Protobuf\Duration $var - * @return $this - */ - public function setTimeSinceGpsEpoch($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Duration::class); - $this->time_since_gps_epoch = $var; - - return $this; - } - -} - diff --git a/api/php/generated/Chirpstack/Gateway/GatewayCommandExecRequest.php b/api/php/generated/Chirpstack/Gateway/GatewayCommandExecRequest.php deleted file mode 100644 index ce6cede0..00000000 --- a/api/php/generated/Chirpstack/Gateway/GatewayCommandExecRequest.php +++ /dev/null @@ -1,255 +0,0 @@ -gw.GatewayCommandExecRequest - */ -class GatewayCommandExecRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Gateway ID. - * Deprecated: use gateway_id. - * - * Generated from protobuf field bytes gateway_id_legacy = 1; - */ - protected $gateway_id_legacy = ''; - /** - * Gateway ID. - * - * Generated from protobuf field string gateway_id = 6; - */ - protected $gateway_id = ''; - /** - * Command to execute. - * This command must be pre-configured in the LoRa Gateway Bridge - * configuration. - * - * Generated from protobuf field string command = 2; - */ - protected $command = ''; - /** - * Execution request ID. - * The same will be returned when the execution of the command has - * completed. - * - * Generated from protobuf field uint32 exec_id = 7; - */ - protected $exec_id = 0; - /** - * Standard input. - * - * Generated from protobuf field bytes stdin = 4; - */ - protected $stdin = ''; - /** - * Environment variables. - * - * Generated from protobuf field map environment = 5; - */ - private $environment; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $gateway_id_legacy - * Gateway ID. - * Deprecated: use gateway_id. - * @type string $gateway_id - * Gateway ID. - * @type string $command - * Command to execute. - * This command must be pre-configured in the LoRa Gateway Bridge - * configuration. - * @type int $exec_id - * Execution request ID. - * The same will be returned when the execution of the command has - * completed. - * @type string $stdin - * Standard input. - * @type array|\Google\Protobuf\Internal\MapField $environment - * Environment variables. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Chirpstack\Gateway\Gw::initOnce(); - parent::__construct($data); - } - - /** - * Gateway ID. - * Deprecated: use gateway_id. - * - * Generated from protobuf field bytes gateway_id_legacy = 1; - * @return string - */ - public function getGatewayIdLegacy() - { - return $this->gateway_id_legacy; - } - - /** - * Gateway ID. - * Deprecated: use gateway_id. - * - * Generated from protobuf field bytes gateway_id_legacy = 1; - * @param string $var - * @return $this - */ - public function setGatewayIdLegacy($var) - { - GPBUtil::checkString($var, False); - $this->gateway_id_legacy = $var; - - return $this; - } - - /** - * Gateway ID. - * - * Generated from protobuf field string gateway_id = 6; - * @return string - */ - public function getGatewayId() - { - return $this->gateway_id; - } - - /** - * Gateway ID. - * - * Generated from protobuf field string gateway_id = 6; - * @param string $var - * @return $this - */ - public function setGatewayId($var) - { - GPBUtil::checkString($var, True); - $this->gateway_id = $var; - - return $this; - } - - /** - * Command to execute. - * This command must be pre-configured in the LoRa Gateway Bridge - * configuration. - * - * Generated from protobuf field string command = 2; - * @return string - */ - public function getCommand() - { - return $this->command; - } - - /** - * Command to execute. - * This command must be pre-configured in the LoRa Gateway Bridge - * configuration. - * - * Generated from protobuf field string command = 2; - * @param string $var - * @return $this - */ - public function setCommand($var) - { - GPBUtil::checkString($var, True); - $this->command = $var; - - return $this; - } - - /** - * Execution request ID. - * The same will be returned when the execution of the command has - * completed. - * - * Generated from protobuf field uint32 exec_id = 7; - * @return int - */ - public function getExecId() - { - return $this->exec_id; - } - - /** - * Execution request ID. - * The same will be returned when the execution of the command has - * completed. - * - * Generated from protobuf field uint32 exec_id = 7; - * @param int $var - * @return $this - */ - public function setExecId($var) - { - GPBUtil::checkUint32($var); - $this->exec_id = $var; - - return $this; - } - - /** - * Standard input. - * - * Generated from protobuf field bytes stdin = 4; - * @return string - */ - public function getStdin() - { - return $this->stdin; - } - - /** - * Standard input. - * - * Generated from protobuf field bytes stdin = 4; - * @param string $var - * @return $this - */ - public function setStdin($var) - { - GPBUtil::checkString($var, False); - $this->stdin = $var; - - return $this; - } - - /** - * Environment variables. - * - * Generated from protobuf field map environment = 5; - * @return \Google\Protobuf\Internal\MapField - */ - public function getEnvironment() - { - return $this->environment; - } - - /** - * Environment variables. - * - * Generated from protobuf field map environment = 5; - * @param array|\Google\Protobuf\Internal\MapField $var - * @return $this - */ - public function setEnvironment($var) - { - $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); - $this->environment = $arr; - - return $this; - } - -} - diff --git a/api/php/generated/Chirpstack/Gateway/GatewayCommandExecResponse.php b/api/php/generated/Chirpstack/Gateway/GatewayCommandExecResponse.php deleted file mode 100644 index eab9f7d2..00000000 --- a/api/php/generated/Chirpstack/Gateway/GatewayCommandExecResponse.php +++ /dev/null @@ -1,239 +0,0 @@ -gw.GatewayCommandExecResponse - */ -class GatewayCommandExecResponse extends \Google\Protobuf\Internal\Message -{ - /** - * Gateway ID. - * Deprecated: use gateway_id. - * - * Generated from protobuf field bytes gateway_id_legacy = 1; - */ - protected $gateway_id_legacy = ''; - /** - * Gateway ID. - * - * Generated from protobuf field string gateway_id = 6; - */ - protected $gateway_id = ''; - /** - * Execution request ID. - * - * Generated from protobuf field uint32 exec_id = 7; - */ - protected $exec_id = 0; - /** - * Standard output. - * - * Generated from protobuf field bytes stdout = 3; - */ - protected $stdout = ''; - /** - * Standard error. - * - * Generated from protobuf field bytes stderr = 4; - */ - protected $stderr = ''; - /** - * Error message. - * - * Generated from protobuf field string error = 5; - */ - protected $error = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $gateway_id_legacy - * Gateway ID. - * Deprecated: use gateway_id. - * @type string $gateway_id - * Gateway ID. - * @type int $exec_id - * Execution request ID. - * @type string $stdout - * Standard output. - * @type string $stderr - * Standard error. - * @type string $error - * Error message. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Chirpstack\Gateway\Gw::initOnce(); - parent::__construct($data); - } - - /** - * Gateway ID. - * Deprecated: use gateway_id. - * - * Generated from protobuf field bytes gateway_id_legacy = 1; - * @return string - */ - public function getGatewayIdLegacy() - { - return $this->gateway_id_legacy; - } - - /** - * Gateway ID. - * Deprecated: use gateway_id. - * - * Generated from protobuf field bytes gateway_id_legacy = 1; - * @param string $var - * @return $this - */ - public function setGatewayIdLegacy($var) - { - GPBUtil::checkString($var, False); - $this->gateway_id_legacy = $var; - - return $this; - } - - /** - * Gateway ID. - * - * Generated from protobuf field string gateway_id = 6; - * @return string - */ - public function getGatewayId() - { - return $this->gateway_id; - } - - /** - * Gateway ID. - * - * Generated from protobuf field string gateway_id = 6; - * @param string $var - * @return $this - */ - public function setGatewayId($var) - { - GPBUtil::checkString($var, True); - $this->gateway_id = $var; - - return $this; - } - - /** - * Execution request ID. - * - * Generated from protobuf field uint32 exec_id = 7; - * @return int - */ - public function getExecId() - { - return $this->exec_id; - } - - /** - * Execution request ID. - * - * Generated from protobuf field uint32 exec_id = 7; - * @param int $var - * @return $this - */ - public function setExecId($var) - { - GPBUtil::checkUint32($var); - $this->exec_id = $var; - - return $this; - } - - /** - * Standard output. - * - * Generated from protobuf field bytes stdout = 3; - * @return string - */ - public function getStdout() - { - return $this->stdout; - } - - /** - * Standard output. - * - * Generated from protobuf field bytes stdout = 3; - * @param string $var - * @return $this - */ - public function setStdout($var) - { - GPBUtil::checkString($var, False); - $this->stdout = $var; - - return $this; - } - - /** - * Standard error. - * - * Generated from protobuf field bytes stderr = 4; - * @return string - */ - public function getStderr() - { - return $this->stderr; - } - - /** - * Standard error. - * - * Generated from protobuf field bytes stderr = 4; - * @param string $var - * @return $this - */ - public function setStderr($var) - { - GPBUtil::checkString($var, False); - $this->stderr = $var; - - return $this; - } - - /** - * Error message. - * - * Generated from protobuf field string error = 5; - * @return string - */ - public function getError() - { - return $this->error; - } - - /** - * Error message. - * - * Generated from protobuf field string error = 5; - * @param string $var - * @return $this - */ - public function setError($var) - { - GPBUtil::checkString($var, True); - $this->error = $var; - - return $this; - } - -} - diff --git a/api/php/generated/Chirpstack/Gateway/GatewayConfiguration.php b/api/php/generated/Chirpstack/Gateway/GatewayConfiguration.php deleted file mode 100644 index 1d5055f1..00000000 --- a/api/php/generated/Chirpstack/Gateway/GatewayConfiguration.php +++ /dev/null @@ -1,215 +0,0 @@ -gw.GatewayConfiguration - */ -class GatewayConfiguration extends \Google\Protobuf\Internal\Message -{ - /** - * Gateway ID. - * Deprecated: use gateway_id. - * - * Generated from protobuf field bytes gateway_id_legacy = 1; - */ - protected $gateway_id_legacy = ''; - /** - * Gateway ID. - * - * Generated from protobuf field string gateway_id = 5; - */ - protected $gateway_id = ''; - /** - * Configuration version. - * - * Generated from protobuf field string version = 2; - */ - protected $version = ''; - /** - * Channels. - * - * Generated from protobuf field repeated .gw.ChannelConfiguration channels = 3; - */ - private $channels; - /** - * Stats interval. - * - * Generated from protobuf field .google.protobuf.Duration stats_interval = 4; - */ - protected $stats_interval = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $gateway_id_legacy - * Gateway ID. - * Deprecated: use gateway_id. - * @type string $gateway_id - * Gateway ID. - * @type string $version - * Configuration version. - * @type array<\Chirpstack\Gateway\ChannelConfiguration>|\Google\Protobuf\Internal\RepeatedField $channels - * Channels. - * @type \Google\Protobuf\Duration $stats_interval - * Stats interval. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Chirpstack\Gateway\Gw::initOnce(); - parent::__construct($data); - } - - /** - * Gateway ID. - * Deprecated: use gateway_id. - * - * Generated from protobuf field bytes gateway_id_legacy = 1; - * @return string - */ - public function getGatewayIdLegacy() - { - return $this->gateway_id_legacy; - } - - /** - * Gateway ID. - * Deprecated: use gateway_id. - * - * Generated from protobuf field bytes gateway_id_legacy = 1; - * @param string $var - * @return $this - */ - public function setGatewayIdLegacy($var) - { - GPBUtil::checkString($var, False); - $this->gateway_id_legacy = $var; - - return $this; - } - - /** - * Gateway ID. - * - * Generated from protobuf field string gateway_id = 5; - * @return string - */ - public function getGatewayId() - { - return $this->gateway_id; - } - - /** - * Gateway ID. - * - * Generated from protobuf field string gateway_id = 5; - * @param string $var - * @return $this - */ - public function setGatewayId($var) - { - GPBUtil::checkString($var, True); - $this->gateway_id = $var; - - return $this; - } - - /** - * Configuration version. - * - * Generated from protobuf field string version = 2; - * @return string - */ - public function getVersion() - { - return $this->version; - } - - /** - * Configuration version. - * - * Generated from protobuf field string version = 2; - * @param string $var - * @return $this - */ - public function setVersion($var) - { - GPBUtil::checkString($var, True); - $this->version = $var; - - return $this; - } - - /** - * Channels. - * - * Generated from protobuf field repeated .gw.ChannelConfiguration channels = 3; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getChannels() - { - return $this->channels; - } - - /** - * Channels. - * - * Generated from protobuf field repeated .gw.ChannelConfiguration channels = 3; - * @param array<\Chirpstack\Gateway\ChannelConfiguration>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setChannels($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Chirpstack\Gateway\ChannelConfiguration::class); - $this->channels = $arr; - - return $this; - } - - /** - * Stats interval. - * - * Generated from protobuf field .google.protobuf.Duration stats_interval = 4; - * @return \Google\Protobuf\Duration|null - */ - public function getStatsInterval() - { - return $this->stats_interval; - } - - public function hasStatsInterval() - { - return isset($this->stats_interval); - } - - public function clearStatsInterval() - { - unset($this->stats_interval); - } - - /** - * Stats interval. - * - * Generated from protobuf field .google.protobuf.Duration stats_interval = 4; - * @param \Google\Protobuf\Duration $var - * @return $this - */ - public function setStatsInterval($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Duration::class); - $this->stats_interval = $var; - - return $this; - } - -} - diff --git a/api/php/generated/Chirpstack/Gateway/GatewayStats.php b/api/php/generated/Chirpstack/Gateway/GatewayStats.php deleted file mode 100644 index 9583a056..00000000 --- a/api/php/generated/Chirpstack/Gateway/GatewayStats.php +++ /dev/null @@ -1,613 +0,0 @@ -gw.GatewayStats - */ -class GatewayStats extends \Google\Protobuf\Internal\Message -{ - /** - * Gateway ID. - * Deprecated: use gateway_id. - * - * Generated from protobuf field bytes gateway_id_legacy = 1; - */ - protected $gateway_id_legacy = ''; - /** - * Gateway ID. - * - * Generated from protobuf field string gateway_id = 17; - */ - protected $gateway_id = ''; - /** - * Gateway time. - * - * Generated from protobuf field .google.protobuf.Timestamp time = 2; - */ - protected $time = null; - /** - * Gateway location. - * - * Generated from protobuf field .common.Location location = 3; - */ - protected $location = null; - /** - * Gateway configuration version (this maps to the config_version sent - * by ChirpStack to the gateway). - * - * Generated from protobuf field string config_version = 4; - */ - protected $config_version = ''; - /** - * Number of radio packets received. - * - * Generated from protobuf field uint32 rx_packets_received = 5; - */ - protected $rx_packets_received = 0; - /** - * Number of radio packets received with valid PHY CRC. - * - * Generated from protobuf field uint32 rx_packets_received_ok = 6; - */ - protected $rx_packets_received_ok = 0; - /** - * Number of downlink packets received for transmission. - * - * Generated from protobuf field uint32 tx_packets_received = 7; - */ - protected $tx_packets_received = 0; - /** - * Number of downlink packets emitted. - * - * Generated from protobuf field uint32 tx_packets_emitted = 8; - */ - protected $tx_packets_emitted = 0; - /** - * Additional gateway meta-data. - * - * Generated from protobuf field map metadata = 10; - */ - private $metadata; - /** - * Tx packets per frequency. - * - * Generated from protobuf field map tx_packets_per_frequency = 12; - */ - private $tx_packets_per_frequency; - /** - * Rx packets per frequency. - * - * Generated from protobuf field map rx_packets_per_frequency = 13; - */ - private $rx_packets_per_frequency; - /** - * Tx packets per modulation parameters. - * - * Generated from protobuf field repeated .gw.PerModulationCount tx_packets_per_modulation = 14; - */ - private $tx_packets_per_modulation; - /** - * Rx packets per modulation parameters. - * - * Generated from protobuf field repeated .gw.PerModulationCount rx_packets_per_modulation = 15; - */ - private $rx_packets_per_modulation; - /** - * Tx packets per status. - * - * Generated from protobuf field map tx_packets_per_status = 16; - */ - private $tx_packets_per_status; - /** - * Duty-cycle statistics (Concentratord only). - * - * Generated from protobuf field .gw.DutyCycleStats duty_cycle_stats = 18; - */ - protected $duty_cycle_stats = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $gateway_id_legacy - * Gateway ID. - * Deprecated: use gateway_id. - * @type string $gateway_id - * Gateway ID. - * @type \Google\Protobuf\Timestamp $time - * Gateway time. - * @type \Chirpstack\Common\Location $location - * Gateway location. - * @type string $config_version - * Gateway configuration version (this maps to the config_version sent - * by ChirpStack to the gateway). - * @type int $rx_packets_received - * Number of radio packets received. - * @type int $rx_packets_received_ok - * Number of radio packets received with valid PHY CRC. - * @type int $tx_packets_received - * Number of downlink packets received for transmission. - * @type int $tx_packets_emitted - * Number of downlink packets emitted. - * @type array|\Google\Protobuf\Internal\MapField $metadata - * Additional gateway meta-data. - * @type array|\Google\Protobuf\Internal\MapField $tx_packets_per_frequency - * Tx packets per frequency. - * @type array|\Google\Protobuf\Internal\MapField $rx_packets_per_frequency - * Rx packets per frequency. - * @type array<\Chirpstack\Gateway\PerModulationCount>|\Google\Protobuf\Internal\RepeatedField $tx_packets_per_modulation - * Tx packets per modulation parameters. - * @type array<\Chirpstack\Gateway\PerModulationCount>|\Google\Protobuf\Internal\RepeatedField $rx_packets_per_modulation - * Rx packets per modulation parameters. - * @type array|\Google\Protobuf\Internal\MapField $tx_packets_per_status - * Tx packets per status. - * @type \Chirpstack\Gateway\DutyCycleStats $duty_cycle_stats - * Duty-cycle statistics (Concentratord only). - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Chirpstack\Gateway\Gw::initOnce(); - parent::__construct($data); - } - - /** - * Gateway ID. - * Deprecated: use gateway_id. - * - * Generated from protobuf field bytes gateway_id_legacy = 1; - * @return string - */ - public function getGatewayIdLegacy() - { - return $this->gateway_id_legacy; - } - - /** - * Gateway ID. - * Deprecated: use gateway_id. - * - * Generated from protobuf field bytes gateway_id_legacy = 1; - * @param string $var - * @return $this - */ - public function setGatewayIdLegacy($var) - { - GPBUtil::checkString($var, False); - $this->gateway_id_legacy = $var; - - return $this; - } - - /** - * Gateway ID. - * - * Generated from protobuf field string gateway_id = 17; - * @return string - */ - public function getGatewayId() - { - return $this->gateway_id; - } - - /** - * Gateway ID. - * - * Generated from protobuf field string gateway_id = 17; - * @param string $var - * @return $this - */ - public function setGatewayId($var) - { - GPBUtil::checkString($var, True); - $this->gateway_id = $var; - - return $this; - } - - /** - * Gateway time. - * - * Generated from protobuf field .google.protobuf.Timestamp time = 2; - * @return \Google\Protobuf\Timestamp|null - */ - public function getTime() - { - return $this->time; - } - - public function hasTime() - { - return isset($this->time); - } - - public function clearTime() - { - unset($this->time); - } - - /** - * Gateway time. - * - * Generated from protobuf field .google.protobuf.Timestamp time = 2; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->time = $var; - - return $this; - } - - /** - * Gateway location. - * - * Generated from protobuf field .common.Location location = 3; - * @return \Chirpstack\Common\Location|null - */ - public function getLocation() - { - return $this->location; - } - - public function hasLocation() - { - return isset($this->location); - } - - public function clearLocation() - { - unset($this->location); - } - - /** - * Gateway location. - * - * Generated from protobuf field .common.Location location = 3; - * @param \Chirpstack\Common\Location $var - * @return $this - */ - public function setLocation($var) - { - GPBUtil::checkMessage($var, \Chirpstack\Common\Location::class); - $this->location = $var; - - return $this; - } - - /** - * Gateway configuration version (this maps to the config_version sent - * by ChirpStack to the gateway). - * - * Generated from protobuf field string config_version = 4; - * @return string - */ - public function getConfigVersion() - { - return $this->config_version; - } - - /** - * Gateway configuration version (this maps to the config_version sent - * by ChirpStack to the gateway). - * - * Generated from protobuf field string config_version = 4; - * @param string $var - * @return $this - */ - public function setConfigVersion($var) - { - GPBUtil::checkString($var, True); - $this->config_version = $var; - - return $this; - } - - /** - * Number of radio packets received. - * - * Generated from protobuf field uint32 rx_packets_received = 5; - * @return int - */ - public function getRxPacketsReceived() - { - return $this->rx_packets_received; - } - - /** - * Number of radio packets received. - * - * Generated from protobuf field uint32 rx_packets_received = 5; - * @param int $var - * @return $this - */ - public function setRxPacketsReceived($var) - { - GPBUtil::checkUint32($var); - $this->rx_packets_received = $var; - - return $this; - } - - /** - * Number of radio packets received with valid PHY CRC. - * - * Generated from protobuf field uint32 rx_packets_received_ok = 6; - * @return int - */ - public function getRxPacketsReceivedOk() - { - return $this->rx_packets_received_ok; - } - - /** - * Number of radio packets received with valid PHY CRC. - * - * Generated from protobuf field uint32 rx_packets_received_ok = 6; - * @param int $var - * @return $this - */ - public function setRxPacketsReceivedOk($var) - { - GPBUtil::checkUint32($var); - $this->rx_packets_received_ok = $var; - - return $this; - } - - /** - * Number of downlink packets received for transmission. - * - * Generated from protobuf field uint32 tx_packets_received = 7; - * @return int - */ - public function getTxPacketsReceived() - { - return $this->tx_packets_received; - } - - /** - * Number of downlink packets received for transmission. - * - * Generated from protobuf field uint32 tx_packets_received = 7; - * @param int $var - * @return $this - */ - public function setTxPacketsReceived($var) - { - GPBUtil::checkUint32($var); - $this->tx_packets_received = $var; - - return $this; - } - - /** - * Number of downlink packets emitted. - * - * Generated from protobuf field uint32 tx_packets_emitted = 8; - * @return int - */ - public function getTxPacketsEmitted() - { - return $this->tx_packets_emitted; - } - - /** - * Number of downlink packets emitted. - * - * Generated from protobuf field uint32 tx_packets_emitted = 8; - * @param int $var - * @return $this - */ - public function setTxPacketsEmitted($var) - { - GPBUtil::checkUint32($var); - $this->tx_packets_emitted = $var; - - return $this; - } - - /** - * Additional gateway meta-data. - * - * Generated from protobuf field map metadata = 10; - * @return \Google\Protobuf\Internal\MapField - */ - public function getMetadata() - { - return $this->metadata; - } - - /** - * Additional gateway meta-data. - * - * Generated from protobuf field map metadata = 10; - * @param array|\Google\Protobuf\Internal\MapField $var - * @return $this - */ - public function setMetadata($var) - { - $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); - $this->metadata = $arr; - - return $this; - } - - /** - * Tx packets per frequency. - * - * Generated from protobuf field map tx_packets_per_frequency = 12; - * @return \Google\Protobuf\Internal\MapField - */ - public function getTxPacketsPerFrequency() - { - return $this->tx_packets_per_frequency; - } - - /** - * Tx packets per frequency. - * - * Generated from protobuf field map tx_packets_per_frequency = 12; - * @param array|\Google\Protobuf\Internal\MapField $var - * @return $this - */ - public function setTxPacketsPerFrequency($var) - { - $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::UINT32, \Google\Protobuf\Internal\GPBType::UINT32); - $this->tx_packets_per_frequency = $arr; - - return $this; - } - - /** - * Rx packets per frequency. - * - * Generated from protobuf field map rx_packets_per_frequency = 13; - * @return \Google\Protobuf\Internal\MapField - */ - public function getRxPacketsPerFrequency() - { - return $this->rx_packets_per_frequency; - } - - /** - * Rx packets per frequency. - * - * Generated from protobuf field map rx_packets_per_frequency = 13; - * @param array|\Google\Protobuf\Internal\MapField $var - * @return $this - */ - public function setRxPacketsPerFrequency($var) - { - $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::UINT32, \Google\Protobuf\Internal\GPBType::UINT32); - $this->rx_packets_per_frequency = $arr; - - return $this; - } - - /** - * Tx packets per modulation parameters. - * - * Generated from protobuf field repeated .gw.PerModulationCount tx_packets_per_modulation = 14; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getTxPacketsPerModulation() - { - return $this->tx_packets_per_modulation; - } - - /** - * Tx packets per modulation parameters. - * - * Generated from protobuf field repeated .gw.PerModulationCount tx_packets_per_modulation = 14; - * @param array<\Chirpstack\Gateway\PerModulationCount>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setTxPacketsPerModulation($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Chirpstack\Gateway\PerModulationCount::class); - $this->tx_packets_per_modulation = $arr; - - return $this; - } - - /** - * Rx packets per modulation parameters. - * - * Generated from protobuf field repeated .gw.PerModulationCount rx_packets_per_modulation = 15; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getRxPacketsPerModulation() - { - return $this->rx_packets_per_modulation; - } - - /** - * Rx packets per modulation parameters. - * - * Generated from protobuf field repeated .gw.PerModulationCount rx_packets_per_modulation = 15; - * @param array<\Chirpstack\Gateway\PerModulationCount>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setRxPacketsPerModulation($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Chirpstack\Gateway\PerModulationCount::class); - $this->rx_packets_per_modulation = $arr; - - return $this; - } - - /** - * Tx packets per status. - * - * Generated from protobuf field map tx_packets_per_status = 16; - * @return \Google\Protobuf\Internal\MapField - */ - public function getTxPacketsPerStatus() - { - return $this->tx_packets_per_status; - } - - /** - * Tx packets per status. - * - * Generated from protobuf field map tx_packets_per_status = 16; - * @param array|\Google\Protobuf\Internal\MapField $var - * @return $this - */ - public function setTxPacketsPerStatus($var) - { - $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::UINT32); - $this->tx_packets_per_status = $arr; - - return $this; - } - - /** - * Duty-cycle statistics (Concentratord only). - * - * Generated from protobuf field .gw.DutyCycleStats duty_cycle_stats = 18; - * @return \Chirpstack\Gateway\DutyCycleStats|null - */ - public function getDutyCycleStats() - { - return $this->duty_cycle_stats; - } - - public function hasDutyCycleStats() - { - return isset($this->duty_cycle_stats); - } - - public function clearDutyCycleStats() - { - unset($this->duty_cycle_stats); - } - - /** - * Duty-cycle statistics (Concentratord only). - * - * Generated from protobuf field .gw.DutyCycleStats duty_cycle_stats = 18; - * @param \Chirpstack\Gateway\DutyCycleStats $var - * @return $this - */ - public function setDutyCycleStats($var) - { - GPBUtil::checkMessage($var, \Chirpstack\Gateway\DutyCycleStats::class); - $this->duty_cycle_stats = $var; - - return $this; - } - -} - diff --git a/api/php/generated/Chirpstack/Gateway/ImmediatelyTimingInfo.php b/api/php/generated/Chirpstack/Gateway/ImmediatelyTimingInfo.php deleted file mode 100644 index b20cee2b..00000000 --- a/api/php/generated/Chirpstack/Gateway/ImmediatelyTimingInfo.php +++ /dev/null @@ -1,33 +0,0 @@ -gw.ImmediatelyTimingInfo - */ -class ImmediatelyTimingInfo extends \Google\Protobuf\Internal\Message -{ - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Chirpstack\Gateway\Gw::initOnce(); - parent::__construct($data); - } - -} - diff --git a/api/php/generated/Chirpstack/Gateway/LoraModulationConfig.php b/api/php/generated/Chirpstack/Gateway/LoraModulationConfig.php deleted file mode 100644 index 9a469f3e..00000000 --- a/api/php/generated/Chirpstack/Gateway/LoraModulationConfig.php +++ /dev/null @@ -1,137 +0,0 @@ -gw.LoraModulationConfig - */ -class LoraModulationConfig extends \Google\Protobuf\Internal\Message -{ - /** - * Bandwidth (kHz). - * Deprecated: use bandwidth. - * - * Generated from protobuf field uint32 bandwidth_legacy = 1; - */ - protected $bandwidth_legacy = 0; - /** - * Bandwidth (Hz). - * - * Generated from protobuf field uint32 bandwidth = 3; - */ - protected $bandwidth = 0; - /** - * Spreading-factors. - * - * Generated from protobuf field repeated uint32 spreading_factors = 2; - */ - private $spreading_factors; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $bandwidth_legacy - * Bandwidth (kHz). - * Deprecated: use bandwidth. - * @type int $bandwidth - * Bandwidth (Hz). - * @type array|\Google\Protobuf\Internal\RepeatedField $spreading_factors - * Spreading-factors. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Chirpstack\Gateway\Gw::initOnce(); - parent::__construct($data); - } - - /** - * Bandwidth (kHz). - * Deprecated: use bandwidth. - * - * Generated from protobuf field uint32 bandwidth_legacy = 1; - * @return int - */ - public function getBandwidthLegacy() - { - return $this->bandwidth_legacy; - } - - /** - * Bandwidth (kHz). - * Deprecated: use bandwidth. - * - * Generated from protobuf field uint32 bandwidth_legacy = 1; - * @param int $var - * @return $this - */ - public function setBandwidthLegacy($var) - { - GPBUtil::checkUint32($var); - $this->bandwidth_legacy = $var; - - return $this; - } - - /** - * Bandwidth (Hz). - * - * Generated from protobuf field uint32 bandwidth = 3; - * @return int - */ - public function getBandwidth() - { - return $this->bandwidth; - } - - /** - * Bandwidth (Hz). - * - * Generated from protobuf field uint32 bandwidth = 3; - * @param int $var - * @return $this - */ - public function setBandwidth($var) - { - GPBUtil::checkUint32($var); - $this->bandwidth = $var; - - return $this; - } - - /** - * Spreading-factors. - * - * Generated from protobuf field repeated uint32 spreading_factors = 2; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getSpreadingFactors() - { - return $this->spreading_factors; - } - - /** - * Spreading-factors. - * - * Generated from protobuf field repeated uint32 spreading_factors = 2; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setSpreadingFactors($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::UINT32); - $this->spreading_factors = $arr; - - return $this; - } - -} - diff --git a/api/php/generated/Chirpstack/Gateway/LoraModulationInfo.php b/api/php/generated/Chirpstack/Gateway/LoraModulationInfo.php deleted file mode 100644 index 22498286..00000000 --- a/api/php/generated/Chirpstack/Gateway/LoraModulationInfo.php +++ /dev/null @@ -1,273 +0,0 @@ -gw.LoraModulationInfo - */ -class LoraModulationInfo extends \Google\Protobuf\Internal\Message -{ - /** - * Bandwidth. - * - * Generated from protobuf field uint32 bandwidth = 1; - */ - protected $bandwidth = 0; - /** - * Speading-factor. - * - * Generated from protobuf field uint32 spreading_factor = 2; - */ - protected $spreading_factor = 0; - /** - * Code-rate. - * - * Generated from protobuf field string code_rate_legacy = 3; - */ - protected $code_rate_legacy = ''; - /** - * Code-rate. - * - * Generated from protobuf field .gw.CodeRate code_rate = 5; - */ - protected $code_rate = 0; - /** - * Polarization inversion. - * - * Generated from protobuf field bool polarization_inversion = 4; - */ - protected $polarization_inversion = false; - /** - * Preamble length (for TX). - * - * Generated from protobuf field uint32 preamble = 6; - */ - protected $preamble = 0; - /** - * No CRC (for TX). - * If true, do not send a CRC in the packet. - * - * Generated from protobuf field bool no_crc = 7; - */ - protected $no_crc = false; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $bandwidth - * Bandwidth. - * @type int $spreading_factor - * Speading-factor. - * @type string $code_rate_legacy - * Code-rate. - * @type int $code_rate - * Code-rate. - * @type bool $polarization_inversion - * Polarization inversion. - * @type int $preamble - * Preamble length (for TX). - * @type bool $no_crc - * No CRC (for TX). - * If true, do not send a CRC in the packet. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Chirpstack\Gateway\Gw::initOnce(); - parent::__construct($data); - } - - /** - * Bandwidth. - * - * Generated from protobuf field uint32 bandwidth = 1; - * @return int - */ - public function getBandwidth() - { - return $this->bandwidth; - } - - /** - * Bandwidth. - * - * Generated from protobuf field uint32 bandwidth = 1; - * @param int $var - * @return $this - */ - public function setBandwidth($var) - { - GPBUtil::checkUint32($var); - $this->bandwidth = $var; - - return $this; - } - - /** - * Speading-factor. - * - * Generated from protobuf field uint32 spreading_factor = 2; - * @return int - */ - public function getSpreadingFactor() - { - return $this->spreading_factor; - } - - /** - * Speading-factor. - * - * Generated from protobuf field uint32 spreading_factor = 2; - * @param int $var - * @return $this - */ - public function setSpreadingFactor($var) - { - GPBUtil::checkUint32($var); - $this->spreading_factor = $var; - - return $this; - } - - /** - * Code-rate. - * - * Generated from protobuf field string code_rate_legacy = 3; - * @return string - */ - public function getCodeRateLegacy() - { - return $this->code_rate_legacy; - } - - /** - * Code-rate. - * - * Generated from protobuf field string code_rate_legacy = 3; - * @param string $var - * @return $this - */ - public function setCodeRateLegacy($var) - { - GPBUtil::checkString($var, True); - $this->code_rate_legacy = $var; - - return $this; - } - - /** - * Code-rate. - * - * Generated from protobuf field .gw.CodeRate code_rate = 5; - * @return int - */ - public function getCodeRate() - { - return $this->code_rate; - } - - /** - * Code-rate. - * - * Generated from protobuf field .gw.CodeRate code_rate = 5; - * @param int $var - * @return $this - */ - public function setCodeRate($var) - { - GPBUtil::checkEnum($var, \Chirpstack\Gateway\CodeRate::class); - $this->code_rate = $var; - - return $this; - } - - /** - * Polarization inversion. - * - * Generated from protobuf field bool polarization_inversion = 4; - * @return bool - */ - public function getPolarizationInversion() - { - return $this->polarization_inversion; - } - - /** - * Polarization inversion. - * - * Generated from protobuf field bool polarization_inversion = 4; - * @param bool $var - * @return $this - */ - public function setPolarizationInversion($var) - { - GPBUtil::checkBool($var); - $this->polarization_inversion = $var; - - return $this; - } - - /** - * Preamble length (for TX). - * - * Generated from protobuf field uint32 preamble = 6; - * @return int - */ - public function getPreamble() - { - return $this->preamble; - } - - /** - * Preamble length (for TX). - * - * Generated from protobuf field uint32 preamble = 6; - * @param int $var - * @return $this - */ - public function setPreamble($var) - { - GPBUtil::checkUint32($var); - $this->preamble = $var; - - return $this; - } - - /** - * No CRC (for TX). - * If true, do not send a CRC in the packet. - * - * Generated from protobuf field bool no_crc = 7; - * @return bool - */ - public function getNoCrc() - { - return $this->no_crc; - } - - /** - * No CRC (for TX). - * If true, do not send a CRC in the packet. - * - * Generated from protobuf field bool no_crc = 7; - * @param bool $var - * @return $this - */ - public function setNoCrc($var) - { - GPBUtil::checkBool($var); - $this->no_crc = $var; - - return $this; - } - -} - diff --git a/api/php/generated/Chirpstack/Gateway/LrFhssModulationInfo.php b/api/php/generated/Chirpstack/Gateway/LrFhssModulationInfo.php deleted file mode 100644 index fc5b67cd..00000000 --- a/api/php/generated/Chirpstack/Gateway/LrFhssModulationInfo.php +++ /dev/null @@ -1,171 +0,0 @@ -gw.LrFhssModulationInfo - */ -class LrFhssModulationInfo extends \Google\Protobuf\Internal\Message -{ - /** - * Operating channel width (OCW) in Hz. - * - * Generated from protobuf field uint32 operating_channel_width = 1; - */ - protected $operating_channel_width = 0; - /** - * Code-rate. - * Deprecated: use code_rate. - * - * Generated from protobuf field string code_rate_legacy = 2; - */ - protected $code_rate_legacy = ''; - /** - * Code-rate. - * - * Generated from protobuf field .gw.CodeRate code_rate = 4; - */ - protected $code_rate = 0; - /** - * Hopping grid number of steps. - * - * Generated from protobuf field uint32 grid_steps = 3; - */ - protected $grid_steps = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $operating_channel_width - * Operating channel width (OCW) in Hz. - * @type string $code_rate_legacy - * Code-rate. - * Deprecated: use code_rate. - * @type int $code_rate - * Code-rate. - * @type int $grid_steps - * Hopping grid number of steps. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Chirpstack\Gateway\Gw::initOnce(); - parent::__construct($data); - } - - /** - * Operating channel width (OCW) in Hz. - * - * Generated from protobuf field uint32 operating_channel_width = 1; - * @return int - */ - public function getOperatingChannelWidth() - { - return $this->operating_channel_width; - } - - /** - * Operating channel width (OCW) in Hz. - * - * Generated from protobuf field uint32 operating_channel_width = 1; - * @param int $var - * @return $this - */ - public function setOperatingChannelWidth($var) - { - GPBUtil::checkUint32($var); - $this->operating_channel_width = $var; - - return $this; - } - - /** - * Code-rate. - * Deprecated: use code_rate. - * - * Generated from protobuf field string code_rate_legacy = 2; - * @return string - */ - public function getCodeRateLegacy() - { - return $this->code_rate_legacy; - } - - /** - * Code-rate. - * Deprecated: use code_rate. - * - * Generated from protobuf field string code_rate_legacy = 2; - * @param string $var - * @return $this - */ - public function setCodeRateLegacy($var) - { - GPBUtil::checkString($var, True); - $this->code_rate_legacy = $var; - - return $this; - } - - /** - * Code-rate. - * - * Generated from protobuf field .gw.CodeRate code_rate = 4; - * @return int - */ - public function getCodeRate() - { - return $this->code_rate; - } - - /** - * Code-rate. - * - * Generated from protobuf field .gw.CodeRate code_rate = 4; - * @param int $var - * @return $this - */ - public function setCodeRate($var) - { - GPBUtil::checkEnum($var, \Chirpstack\Gateway\CodeRate::class); - $this->code_rate = $var; - - return $this; - } - - /** - * Hopping grid number of steps. - * - * Generated from protobuf field uint32 grid_steps = 3; - * @return int - */ - public function getGridSteps() - { - return $this->grid_steps; - } - - /** - * Hopping grid number of steps. - * - * Generated from protobuf field uint32 grid_steps = 3; - * @param int $var - * @return $this - */ - public function setGridSteps($var) - { - GPBUtil::checkUint32($var); - $this->grid_steps = $var; - - return $this; - } - -} - diff --git a/api/php/generated/Chirpstack/Gateway/MeshHeartbeat.php b/api/php/generated/Chirpstack/Gateway/MeshHeartbeat.php deleted file mode 100644 index 7932bd14..00000000 --- a/api/php/generated/Chirpstack/Gateway/MeshHeartbeat.php +++ /dev/null @@ -1,179 +0,0 @@ -gw.MeshHeartbeat - */ -class MeshHeartbeat extends \Google\Protobuf\Internal\Message -{ - /** - * Gateway ID (of the Border Gateway). - * - * Generated from protobuf field string gateway_id = 1; - */ - protected $gateway_id = ''; - /** - * Relay ID. - * - * Generated from protobuf field string relay_id = 2; - */ - protected $relay_id = ''; - /** - * Timestamp (second precision). - * - * Generated from protobuf field .google.protobuf.Timestamp time = 3; - */ - protected $time = null; - /** - * Relay path. - * - * Generated from protobuf field repeated .gw.MeshHeartbeatRelayPath relay_path = 4; - */ - private $relay_path; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $gateway_id - * Gateway ID (of the Border Gateway). - * @type string $relay_id - * Relay ID. - * @type \Google\Protobuf\Timestamp $time - * Timestamp (second precision). - * @type array<\Chirpstack\Gateway\MeshHeartbeatRelayPath>|\Google\Protobuf\Internal\RepeatedField $relay_path - * Relay path. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Chirpstack\Gateway\Gw::initOnce(); - parent::__construct($data); - } - - /** - * Gateway ID (of the Border Gateway). - * - * Generated from protobuf field string gateway_id = 1; - * @return string - */ - public function getGatewayId() - { - return $this->gateway_id; - } - - /** - * Gateway ID (of the Border Gateway). - * - * Generated from protobuf field string gateway_id = 1; - * @param string $var - * @return $this - */ - public function setGatewayId($var) - { - GPBUtil::checkString($var, True); - $this->gateway_id = $var; - - return $this; - } - - /** - * Relay ID. - * - * Generated from protobuf field string relay_id = 2; - * @return string - */ - public function getRelayId() - { - return $this->relay_id; - } - - /** - * Relay ID. - * - * Generated from protobuf field string relay_id = 2; - * @param string $var - * @return $this - */ - public function setRelayId($var) - { - GPBUtil::checkString($var, True); - $this->relay_id = $var; - - return $this; - } - - /** - * Timestamp (second precision). - * - * Generated from protobuf field .google.protobuf.Timestamp time = 3; - * @return \Google\Protobuf\Timestamp|null - */ - public function getTime() - { - return $this->time; - } - - public function hasTime() - { - return isset($this->time); - } - - public function clearTime() - { - unset($this->time); - } - - /** - * Timestamp (second precision). - * - * Generated from protobuf field .google.protobuf.Timestamp time = 3; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->time = $var; - - return $this; - } - - /** - * Relay path. - * - * Generated from protobuf field repeated .gw.MeshHeartbeatRelayPath relay_path = 4; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getRelayPath() - { - return $this->relay_path; - } - - /** - * Relay path. - * - * Generated from protobuf field repeated .gw.MeshHeartbeatRelayPath relay_path = 4; - * @param array<\Chirpstack\Gateway\MeshHeartbeatRelayPath>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setRelayPath($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Chirpstack\Gateway\MeshHeartbeatRelayPath::class); - $this->relay_path = $arr; - - return $this; - } - -} - diff --git a/api/php/generated/Chirpstack/Gateway/MeshHeartbeatRelayPath.php b/api/php/generated/Chirpstack/Gateway/MeshHeartbeatRelayPath.php deleted file mode 100644 index ff7d7b9f..00000000 --- a/api/php/generated/Chirpstack/Gateway/MeshHeartbeatRelayPath.php +++ /dev/null @@ -1,133 +0,0 @@ -gw.MeshHeartbeatRelayPath - */ -class MeshHeartbeatRelayPath extends \Google\Protobuf\Internal\Message -{ - /** - * Relay ID. - * - * Generated from protobuf field string relay_id = 1; - */ - protected $relay_id = ''; - /** - * RSSI. - * - * Generated from protobuf field int32 rssi = 2; - */ - protected $rssi = 0; - /** - * SNR. - * - * Generated from protobuf field int32 snr = 3; - */ - protected $snr = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $relay_id - * Relay ID. - * @type int $rssi - * RSSI. - * @type int $snr - * SNR. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Chirpstack\Gateway\Gw::initOnce(); - parent::__construct($data); - } - - /** - * Relay ID. - * - * Generated from protobuf field string relay_id = 1; - * @return string - */ - public function getRelayId() - { - return $this->relay_id; - } - - /** - * Relay ID. - * - * Generated from protobuf field string relay_id = 1; - * @param string $var - * @return $this - */ - public function setRelayId($var) - { - GPBUtil::checkString($var, True); - $this->relay_id = $var; - - return $this; - } - - /** - * RSSI. - * - * Generated from protobuf field int32 rssi = 2; - * @return int - */ - public function getRssi() - { - return $this->rssi; - } - - /** - * RSSI. - * - * Generated from protobuf field int32 rssi = 2; - * @param int $var - * @return $this - */ - public function setRssi($var) - { - GPBUtil::checkInt32($var); - $this->rssi = $var; - - return $this; - } - - /** - * SNR. - * - * Generated from protobuf field int32 snr = 3; - * @return int - */ - public function getSnr() - { - return $this->snr; - } - - /** - * SNR. - * - * Generated from protobuf field int32 snr = 3; - * @param int $var - * @return $this - */ - public function setSnr($var) - { - GPBUtil::checkInt32($var); - $this->snr = $var; - - return $this; - } - -} - diff --git a/api/php/generated/Chirpstack/Gateway/Modulation.php b/api/php/generated/Chirpstack/Gateway/Modulation.php deleted file mode 100644 index 20cc1cd0..00000000 --- a/api/php/generated/Chirpstack/Gateway/Modulation.php +++ /dev/null @@ -1,139 +0,0 @@ -gw.Modulation - */ -class Modulation extends \Google\Protobuf\Internal\Message -{ - protected $parameters; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Chirpstack\Gateway\LoraModulationInfo $lora - * LoRa modulation information. - * @type \Chirpstack\Gateway\FskModulationInfo $fsk - * FSK modulation information. - * @type \Chirpstack\Gateway\LrFhssModulationInfo $lr_fhss - * LR-FHSS modulation information. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Chirpstack\Gateway\Gw::initOnce(); - parent::__construct($data); - } - - /** - * LoRa modulation information. - * - * Generated from protobuf field .gw.LoraModulationInfo lora = 3; - * @return \Chirpstack\Gateway\LoraModulationInfo|null - */ - public function getLora() - { - return $this->readOneof(3); - } - - public function hasLora() - { - return $this->hasOneof(3); - } - - /** - * LoRa modulation information. - * - * Generated from protobuf field .gw.LoraModulationInfo lora = 3; - * @param \Chirpstack\Gateway\LoraModulationInfo $var - * @return $this - */ - public function setLora($var) - { - GPBUtil::checkMessage($var, \Chirpstack\Gateway\LoraModulationInfo::class); - $this->writeOneof(3, $var); - - return $this; - } - - /** - * FSK modulation information. - * - * Generated from protobuf field .gw.FskModulationInfo fsk = 4; - * @return \Chirpstack\Gateway\FskModulationInfo|null - */ - public function getFsk() - { - return $this->readOneof(4); - } - - public function hasFsk() - { - return $this->hasOneof(4); - } - - /** - * FSK modulation information. - * - * Generated from protobuf field .gw.FskModulationInfo fsk = 4; - * @param \Chirpstack\Gateway\FskModulationInfo $var - * @return $this - */ - public function setFsk($var) - { - GPBUtil::checkMessage($var, \Chirpstack\Gateway\FskModulationInfo::class); - $this->writeOneof(4, $var); - - return $this; - } - - /** - * LR-FHSS modulation information. - * - * Generated from protobuf field .gw.LrFhssModulationInfo lr_fhss = 5; - * @return \Chirpstack\Gateway\LrFhssModulationInfo|null - */ - public function getLrFhss() - { - return $this->readOneof(5); - } - - public function hasLrFhss() - { - return $this->hasOneof(5); - } - - /** - * LR-FHSS modulation information. - * - * Generated from protobuf field .gw.LrFhssModulationInfo lr_fhss = 5; - * @param \Chirpstack\Gateway\LrFhssModulationInfo $var - * @return $this - */ - public function setLrFhss($var) - { - GPBUtil::checkMessage($var, \Chirpstack\Gateway\LrFhssModulationInfo::class); - $this->writeOneof(5, $var); - - return $this; - } - - /** - * @return string - */ - public function getParameters() - { - return $this->whichOneof("parameters"); - } - -} - diff --git a/api/php/generated/Chirpstack/Gateway/PerModulationCount.php b/api/php/generated/Chirpstack/Gateway/PerModulationCount.php deleted file mode 100644 index d72d7c2a..00000000 --- a/api/php/generated/Chirpstack/Gateway/PerModulationCount.php +++ /dev/null @@ -1,109 +0,0 @@ -gw.PerModulationCount - */ -class PerModulationCount extends \Google\Protobuf\Internal\Message -{ - /** - * Modulation. - * - * Generated from protobuf field .gw.Modulation modulation = 1; - */ - protected $modulation = null; - /** - * Count. - * - * Generated from protobuf field uint32 count = 2; - */ - protected $count = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Chirpstack\Gateway\Modulation $modulation - * Modulation. - * @type int $count - * Count. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Chirpstack\Gateway\Gw::initOnce(); - parent::__construct($data); - } - - /** - * Modulation. - * - * Generated from protobuf field .gw.Modulation modulation = 1; - * @return \Chirpstack\Gateway\Modulation|null - */ - public function getModulation() - { - return $this->modulation; - } - - public function hasModulation() - { - return isset($this->modulation); - } - - public function clearModulation() - { - unset($this->modulation); - } - - /** - * Modulation. - * - * Generated from protobuf field .gw.Modulation modulation = 1; - * @param \Chirpstack\Gateway\Modulation $var - * @return $this - */ - public function setModulation($var) - { - GPBUtil::checkMessage($var, \Chirpstack\Gateway\Modulation::class); - $this->modulation = $var; - - return $this; - } - - /** - * Count. - * - * Generated from protobuf field uint32 count = 2; - * @return int - */ - public function getCount() - { - return $this->count; - } - - /** - * Count. - * - * Generated from protobuf field uint32 count = 2; - * @param int $var - * @return $this - */ - public function setCount($var) - { - GPBUtil::checkUint32($var); - $this->count = $var; - - return $this; - } - -} - diff --git a/api/php/generated/Chirpstack/Gateway/PlainFineTimestamp.php b/api/php/generated/Chirpstack/Gateway/PlainFineTimestamp.php deleted file mode 100644 index 01851ebd..00000000 --- a/api/php/generated/Chirpstack/Gateway/PlainFineTimestamp.php +++ /dev/null @@ -1,75 +0,0 @@ -gw.PlainFineTimestamp - */ -class PlainFineTimestamp extends \Google\Protobuf\Internal\Message -{ - /** - * Full timestamp. - * - * Generated from protobuf field .google.protobuf.Timestamp time = 1; - */ - protected $time = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Protobuf\Timestamp $time - * Full timestamp. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Chirpstack\Gateway\Gw::initOnce(); - parent::__construct($data); - } - - /** - * Full timestamp. - * - * Generated from protobuf field .google.protobuf.Timestamp time = 1; - * @return \Google\Protobuf\Timestamp|null - */ - public function getTime() - { - return $this->time; - } - - public function hasTime() - { - return isset($this->time); - } - - public function clearTime() - { - unset($this->time); - } - - /** - * Full timestamp. - * - * Generated from protobuf field .google.protobuf.Timestamp time = 1; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->time = $var; - - return $this; - } - -} - diff --git a/api/php/generated/Chirpstack/Gateway/RawPacketForwarderCommand.php b/api/php/generated/Chirpstack/Gateway/RawPacketForwarderCommand.php deleted file mode 100644 index 55bbae41..00000000 --- a/api/php/generated/Chirpstack/Gateway/RawPacketForwarderCommand.php +++ /dev/null @@ -1,141 +0,0 @@ -gw.RawPacketForwarderCommand - */ -class RawPacketForwarderCommand extends \Google\Protobuf\Internal\Message -{ - /** - * Gateway ID. - * Deprecated: use gateway_id. - * - * Generated from protobuf field bytes gateway_id_legacy = 1; - */ - protected $gateway_id_legacy = ''; - /** - * Gateway ID. - * - * Generated from protobuf field string gateway_id = 4; - */ - protected $gateway_id = ''; - /** - * Payload contains the raw payload. - * - * Generated from protobuf field bytes payload = 3; - */ - protected $payload = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $gateway_id_legacy - * Gateway ID. - * Deprecated: use gateway_id. - * @type string $gateway_id - * Gateway ID. - * @type string $payload - * Payload contains the raw payload. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Chirpstack\Gateway\Gw::initOnce(); - parent::__construct($data); - } - - /** - * Gateway ID. - * Deprecated: use gateway_id. - * - * Generated from protobuf field bytes gateway_id_legacy = 1; - * @return string - */ - public function getGatewayIdLegacy() - { - return $this->gateway_id_legacy; - } - - /** - * Gateway ID. - * Deprecated: use gateway_id. - * - * Generated from protobuf field bytes gateway_id_legacy = 1; - * @param string $var - * @return $this - */ - public function setGatewayIdLegacy($var) - { - GPBUtil::checkString($var, False); - $this->gateway_id_legacy = $var; - - return $this; - } - - /** - * Gateway ID. - * - * Generated from protobuf field string gateway_id = 4; - * @return string - */ - public function getGatewayId() - { - return $this->gateway_id; - } - - /** - * Gateway ID. - * - * Generated from protobuf field string gateway_id = 4; - * @param string $var - * @return $this - */ - public function setGatewayId($var) - { - GPBUtil::checkString($var, True); - $this->gateway_id = $var; - - return $this; - } - - /** - * Payload contains the raw payload. - * - * Generated from protobuf field bytes payload = 3; - * @return string - */ - public function getPayload() - { - return $this->payload; - } - - /** - * Payload contains the raw payload. - * - * Generated from protobuf field bytes payload = 3; - * @param string $var - * @return $this - */ - public function setPayload($var) - { - GPBUtil::checkString($var, False); - $this->payload = $var; - - return $this; - } - -} - diff --git a/api/php/generated/Chirpstack/Gateway/RawPacketForwarderEvent.php b/api/php/generated/Chirpstack/Gateway/RawPacketForwarderEvent.php deleted file mode 100644 index e3e2979f..00000000 --- a/api/php/generated/Chirpstack/Gateway/RawPacketForwarderEvent.php +++ /dev/null @@ -1,141 +0,0 @@ -gw.RawPacketForwarderEvent - */ -class RawPacketForwarderEvent extends \Google\Protobuf\Internal\Message -{ - /** - * Gateway ID. - * Deprecated: use gateway_id. - * - * Generated from protobuf field bytes gateway_id_legacy = 1; - */ - protected $gateway_id_legacy = ''; - /** - * Gateway ID. - * - * Generated from protobuf field string gateway_id = 4; - */ - protected $gateway_id = ''; - /** - * Payload contains the raw payload. - * - * Generated from protobuf field bytes payload = 3; - */ - protected $payload = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $gateway_id_legacy - * Gateway ID. - * Deprecated: use gateway_id. - * @type string $gateway_id - * Gateway ID. - * @type string $payload - * Payload contains the raw payload. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Chirpstack\Gateway\Gw::initOnce(); - parent::__construct($data); - } - - /** - * Gateway ID. - * Deprecated: use gateway_id. - * - * Generated from protobuf field bytes gateway_id_legacy = 1; - * @return string - */ - public function getGatewayIdLegacy() - { - return $this->gateway_id_legacy; - } - - /** - * Gateway ID. - * Deprecated: use gateway_id. - * - * Generated from protobuf field bytes gateway_id_legacy = 1; - * @param string $var - * @return $this - */ - public function setGatewayIdLegacy($var) - { - GPBUtil::checkString($var, False); - $this->gateway_id_legacy = $var; - - return $this; - } - - /** - * Gateway ID. - * - * Generated from protobuf field string gateway_id = 4; - * @return string - */ - public function getGatewayId() - { - return $this->gateway_id; - } - - /** - * Gateway ID. - * - * Generated from protobuf field string gateway_id = 4; - * @param string $var - * @return $this - */ - public function setGatewayId($var) - { - GPBUtil::checkString($var, True); - $this->gateway_id = $var; - - return $this; - } - - /** - * Payload contains the raw payload. - * - * Generated from protobuf field bytes payload = 3; - * @return string - */ - public function getPayload() - { - return $this->payload; - } - - /** - * Payload contains the raw payload. - * - * Generated from protobuf field bytes payload = 3; - * @param string $var - * @return $this - */ - public function setPayload($var) - { - GPBUtil::checkString($var, False); - $this->payload = $var; - - return $this; - } - -} - diff --git a/api/php/generated/Chirpstack/Gateway/Timing.php b/api/php/generated/Chirpstack/Gateway/Timing.php deleted file mode 100644 index cc53d3cd..00000000 --- a/api/php/generated/Chirpstack/Gateway/Timing.php +++ /dev/null @@ -1,139 +0,0 @@ -gw.Timing - */ -class Timing extends \Google\Protobuf\Internal\Message -{ - protected $parameters; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Chirpstack\Gateway\ImmediatelyTimingInfo $immediately - * Immediately timing information. - * @type \Chirpstack\Gateway\DelayTimingInfo $delay - * Context based delay timing information. - * @type \Chirpstack\Gateway\GPSEpochTimingInfo $gps_epoch - * GPS Epoch timing information. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Chirpstack\Gateway\Gw::initOnce(); - parent::__construct($data); - } - - /** - * Immediately timing information. - * - * Generated from protobuf field .gw.ImmediatelyTimingInfo immediately = 1; - * @return \Chirpstack\Gateway\ImmediatelyTimingInfo|null - */ - public function getImmediately() - { - return $this->readOneof(1); - } - - public function hasImmediately() - { - return $this->hasOneof(1); - } - - /** - * Immediately timing information. - * - * Generated from protobuf field .gw.ImmediatelyTimingInfo immediately = 1; - * @param \Chirpstack\Gateway\ImmediatelyTimingInfo $var - * @return $this - */ - public function setImmediately($var) - { - GPBUtil::checkMessage($var, \Chirpstack\Gateway\ImmediatelyTimingInfo::class); - $this->writeOneof(1, $var); - - return $this; - } - - /** - * Context based delay timing information. - * - * Generated from protobuf field .gw.DelayTimingInfo delay = 2; - * @return \Chirpstack\Gateway\DelayTimingInfo|null - */ - public function getDelay() - { - return $this->readOneof(2); - } - - public function hasDelay() - { - return $this->hasOneof(2); - } - - /** - * Context based delay timing information. - * - * Generated from protobuf field .gw.DelayTimingInfo delay = 2; - * @param \Chirpstack\Gateway\DelayTimingInfo $var - * @return $this - */ - public function setDelay($var) - { - GPBUtil::checkMessage($var, \Chirpstack\Gateway\DelayTimingInfo::class); - $this->writeOneof(2, $var); - - return $this; - } - - /** - * GPS Epoch timing information. - * - * Generated from protobuf field .gw.GPSEpochTimingInfo gps_epoch = 3; - * @return \Chirpstack\Gateway\GPSEpochTimingInfo|null - */ - public function getGpsEpoch() - { - return $this->readOneof(3); - } - - public function hasGpsEpoch() - { - return $this->hasOneof(3); - } - - /** - * GPS Epoch timing information. - * - * Generated from protobuf field .gw.GPSEpochTimingInfo gps_epoch = 3; - * @param \Chirpstack\Gateway\GPSEpochTimingInfo $var - * @return $this - */ - public function setGpsEpoch($var) - { - GPBUtil::checkMessage($var, \Chirpstack\Gateway\GPSEpochTimingInfo::class); - $this->writeOneof(3, $var); - - return $this; - } - - /** - * @return string - */ - public function getParameters() - { - return $this->whichOneof("parameters"); - } - -} - diff --git a/api/php/generated/Chirpstack/Gateway/TxAckStatus.php b/api/php/generated/Chirpstack/Gateway/TxAckStatus.php deleted file mode 100644 index 85202e7d..00000000 --- a/api/php/generated/Chirpstack/Gateway/TxAckStatus.php +++ /dev/null @@ -1,124 +0,0 @@ -gw.TxAckStatus - */ -class TxAckStatus -{ - /** - * Ignored (when a previous item was already emitted). - * - * Generated from protobuf enum IGNORED = 0; - */ - const IGNORED = 0; - /** - * Packet has been programmed for downlink. - * - * Generated from protobuf enum OK = 1; - */ - const OK = 1; - /** - * Rejected because it was already too late to program this packet for - * downlink. - * - * Generated from protobuf enum TOO_LATE = 2; - */ - const TOO_LATE = 2; - /** - * Rejected because downlink packet timestamp is too much in advance. - * - * Generated from protobuf enum TOO_EARLY = 3; - */ - const TOO_EARLY = 3; - /** - * Rejected because there was already a packet programmed in requested - * timeframe. - * - * Generated from protobuf enum COLLISION_PACKET = 4; - */ - const COLLISION_PACKET = 4; - /** - * Rejected because there was already a beacon planned in requested timeframe. - * - * Generated from protobuf enum COLLISION_BEACON = 5; - */ - const COLLISION_BEACON = 5; - /** - * Rejected because requested frequency is not supported by TX RF chain. - * - * Generated from protobuf enum TX_FREQ = 6; - */ - const TX_FREQ = 6; - /** - * Rejected because requested power is not supported by gateway. - * - * Generated from protobuf enum TX_POWER = 7; - */ - const TX_POWER = 7; - /** - * Rejected because GPS is unlocked, so GPS timestamp cannot be used. - * - * Generated from protobuf enum GPS_UNLOCKED = 8; - */ - const GPS_UNLOCKED = 8; - /** - * Downlink queue is full. - * - * Generated from protobuf enum QUEUE_FULL = 9; - */ - const QUEUE_FULL = 9; - /** - * Internal error. - * - * Generated from protobuf enum INTERNAL_ERROR = 10; - */ - const INTERNAL_ERROR = 10; - /** - * Duty-cycle overflow. - * - * Generated from protobuf enum DUTY_CYCLE_OVERFLOW = 11; - */ - const DUTY_CYCLE_OVERFLOW = 11; - - private static $valueToName = [ - self::IGNORED => 'IGNORED', - self::OK => 'OK', - self::TOO_LATE => 'TOO_LATE', - self::TOO_EARLY => 'TOO_EARLY', - self::COLLISION_PACKET => 'COLLISION_PACKET', - self::COLLISION_BEACON => 'COLLISION_BEACON', - self::TX_FREQ => 'TX_FREQ', - self::TX_POWER => 'TX_POWER', - self::GPS_UNLOCKED => 'GPS_UNLOCKED', - self::QUEUE_FULL => 'QUEUE_FULL', - self::INTERNAL_ERROR => 'INTERNAL_ERROR', - self::DUTY_CYCLE_OVERFLOW => 'DUTY_CYCLE_OVERFLOW', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - diff --git a/api/php/generated/Chirpstack/Gateway/UplinkFrame.php b/api/php/generated/Chirpstack/Gateway/UplinkFrame.php deleted file mode 100644 index 9f5274c6..00000000 --- a/api/php/generated/Chirpstack/Gateway/UplinkFrame.php +++ /dev/null @@ -1,241 +0,0 @@ -gw.UplinkFrame - */ -class UplinkFrame extends \Google\Protobuf\Internal\Message -{ - /** - * PHYPayload. - * - * Generated from protobuf field bytes phy_payload = 1; - */ - protected $phy_payload = ''; - /** - * TX meta-data (deprecated). - * - * Generated from protobuf field .gw.UplinkTxInfoLegacy tx_info_legacy = 2; - */ - protected $tx_info_legacy = null; - /** - * RX meta-data (deprecated). - * - * Generated from protobuf field .gw.UplinkRxInfoLegacy rx_info_legacy = 3; - */ - protected $rx_info_legacy = null; - /** - * Tx meta-data. - * - * Generated from protobuf field .gw.UplinkTxInfo tx_info = 4; - */ - protected $tx_info = null; - /** - * Rx meta-data. - * - * Generated from protobuf field .gw.UplinkRxInfo rx_info = 5; - */ - protected $rx_info = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $phy_payload - * PHYPayload. - * @type \Chirpstack\Gateway\UplinkTxInfoLegacy $tx_info_legacy - * TX meta-data (deprecated). - * @type \Chirpstack\Gateway\UplinkRxInfoLegacy $rx_info_legacy - * RX meta-data (deprecated). - * @type \Chirpstack\Gateway\UplinkTxInfo $tx_info - * Tx meta-data. - * @type \Chirpstack\Gateway\UplinkRxInfo $rx_info - * Rx meta-data. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Chirpstack\Gateway\Gw::initOnce(); - parent::__construct($data); - } - - /** - * PHYPayload. - * - * Generated from protobuf field bytes phy_payload = 1; - * @return string - */ - public function getPhyPayload() - { - return $this->phy_payload; - } - - /** - * PHYPayload. - * - * Generated from protobuf field bytes phy_payload = 1; - * @param string $var - * @return $this - */ - public function setPhyPayload($var) - { - GPBUtil::checkString($var, False); - $this->phy_payload = $var; - - return $this; - } - - /** - * TX meta-data (deprecated). - * - * Generated from protobuf field .gw.UplinkTxInfoLegacy tx_info_legacy = 2; - * @return \Chirpstack\Gateway\UplinkTxInfoLegacy|null - */ - public function getTxInfoLegacy() - { - return $this->tx_info_legacy; - } - - public function hasTxInfoLegacy() - { - return isset($this->tx_info_legacy); - } - - public function clearTxInfoLegacy() - { - unset($this->tx_info_legacy); - } - - /** - * TX meta-data (deprecated). - * - * Generated from protobuf field .gw.UplinkTxInfoLegacy tx_info_legacy = 2; - * @param \Chirpstack\Gateway\UplinkTxInfoLegacy $var - * @return $this - */ - public function setTxInfoLegacy($var) - { - GPBUtil::checkMessage($var, \Chirpstack\Gateway\UplinkTxInfoLegacy::class); - $this->tx_info_legacy = $var; - - return $this; - } - - /** - * RX meta-data (deprecated). - * - * Generated from protobuf field .gw.UplinkRxInfoLegacy rx_info_legacy = 3; - * @return \Chirpstack\Gateway\UplinkRxInfoLegacy|null - */ - public function getRxInfoLegacy() - { - return $this->rx_info_legacy; - } - - public function hasRxInfoLegacy() - { - return isset($this->rx_info_legacy); - } - - public function clearRxInfoLegacy() - { - unset($this->rx_info_legacy); - } - - /** - * RX meta-data (deprecated). - * - * Generated from protobuf field .gw.UplinkRxInfoLegacy rx_info_legacy = 3; - * @param \Chirpstack\Gateway\UplinkRxInfoLegacy $var - * @return $this - */ - public function setRxInfoLegacy($var) - { - GPBUtil::checkMessage($var, \Chirpstack\Gateway\UplinkRxInfoLegacy::class); - $this->rx_info_legacy = $var; - - return $this; - } - - /** - * Tx meta-data. - * - * Generated from protobuf field .gw.UplinkTxInfo tx_info = 4; - * @return \Chirpstack\Gateway\UplinkTxInfo|null - */ - public function getTxInfo() - { - return $this->tx_info; - } - - public function hasTxInfo() - { - return isset($this->tx_info); - } - - public function clearTxInfo() - { - unset($this->tx_info); - } - - /** - * Tx meta-data. - * - * Generated from protobuf field .gw.UplinkTxInfo tx_info = 4; - * @param \Chirpstack\Gateway\UplinkTxInfo $var - * @return $this - */ - public function setTxInfo($var) - { - GPBUtil::checkMessage($var, \Chirpstack\Gateway\UplinkTxInfo::class); - $this->tx_info = $var; - - return $this; - } - - /** - * Rx meta-data. - * - * Generated from protobuf field .gw.UplinkRxInfo rx_info = 5; - * @return \Chirpstack\Gateway\UplinkRxInfo|null - */ - public function getRxInfo() - { - return $this->rx_info; - } - - public function hasRxInfo() - { - return isset($this->rx_info); - } - - public function clearRxInfo() - { - unset($this->rx_info); - } - - /** - * Rx meta-data. - * - * Generated from protobuf field .gw.UplinkRxInfo rx_info = 5; - * @param \Chirpstack\Gateway\UplinkRxInfo $var - * @return $this - */ - public function setRxInfo($var) - { - GPBUtil::checkMessage($var, \Chirpstack\Gateway\UplinkRxInfo::class); - $this->rx_info = $var; - - return $this; - } - -} - diff --git a/api/php/generated/Chirpstack/Gateway/UplinkFrameSet.php b/api/php/generated/Chirpstack/Gateway/UplinkFrameSet.php deleted file mode 100644 index 6b9e572f..00000000 --- a/api/php/generated/Chirpstack/Gateway/UplinkFrameSet.php +++ /dev/null @@ -1,143 +0,0 @@ -gw.UplinkFrameSet - */ -class UplinkFrameSet extends \Google\Protobuf\Internal\Message -{ - /** - * PHYPayload. - * - * Generated from protobuf field bytes phy_payload = 1; - */ - protected $phy_payload = ''; - /** - * TX meta-data. - * - * Generated from protobuf field .gw.UplinkTxInfo tx_info = 2; - */ - protected $tx_info = null; - /** - * RX meta-data set. - * - * Generated from protobuf field repeated .gw.UplinkRxInfo rx_info = 3; - */ - private $rx_info; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $phy_payload - * PHYPayload. - * @type \Chirpstack\Gateway\UplinkTxInfo $tx_info - * TX meta-data. - * @type array<\Chirpstack\Gateway\UplinkRxInfo>|\Google\Protobuf\Internal\RepeatedField $rx_info - * RX meta-data set. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Chirpstack\Gateway\Gw::initOnce(); - parent::__construct($data); - } - - /** - * PHYPayload. - * - * Generated from protobuf field bytes phy_payload = 1; - * @return string - */ - public function getPhyPayload() - { - return $this->phy_payload; - } - - /** - * PHYPayload. - * - * Generated from protobuf field bytes phy_payload = 1; - * @param string $var - * @return $this - */ - public function setPhyPayload($var) - { - GPBUtil::checkString($var, False); - $this->phy_payload = $var; - - return $this; - } - - /** - * TX meta-data. - * - * Generated from protobuf field .gw.UplinkTxInfo tx_info = 2; - * @return \Chirpstack\Gateway\UplinkTxInfo|null - */ - public function getTxInfo() - { - return $this->tx_info; - } - - public function hasTxInfo() - { - return isset($this->tx_info); - } - - public function clearTxInfo() - { - unset($this->tx_info); - } - - /** - * TX meta-data. - * - * Generated from protobuf field .gw.UplinkTxInfo tx_info = 2; - * @param \Chirpstack\Gateway\UplinkTxInfo $var - * @return $this - */ - public function setTxInfo($var) - { - GPBUtil::checkMessage($var, \Chirpstack\Gateway\UplinkTxInfo::class); - $this->tx_info = $var; - - return $this; - } - - /** - * RX meta-data set. - * - * Generated from protobuf field repeated .gw.UplinkRxInfo rx_info = 3; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getRxInfo() - { - return $this->rx_info; - } - - /** - * RX meta-data set. - * - * Generated from protobuf field repeated .gw.UplinkRxInfo rx_info = 3; - * @param array<\Chirpstack\Gateway\UplinkRxInfo>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setRxInfo($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Chirpstack\Gateway\UplinkRxInfo::class); - $this->rx_info = $arr; - - return $this; - } - -} - diff --git a/api/php/generated/Chirpstack/Gateway/UplinkRxInfo.php b/api/php/generated/Chirpstack/Gateway/UplinkRxInfo.php deleted file mode 100644 index dc7d0026..00000000 --- a/api/php/generated/Chirpstack/Gateway/UplinkRxInfo.php +++ /dev/null @@ -1,637 +0,0 @@ -gw.UplinkRxInfo - */ -class UplinkRxInfo extends \Google\Protobuf\Internal\Message -{ - /** - * Gateway ID. - * - * Generated from protobuf field string gateway_id = 1; - */ - protected $gateway_id = ''; - /** - * Uplink ID. - * - * Generated from protobuf field uint32 uplink_id = 2; - */ - protected $uplink_id = 0; - /** - * Gateway RX time (set if the gateway has a GNSS module). - * - * Generated from protobuf field .google.protobuf.Timestamp gw_time = 3; - */ - protected $gw_time = null; - /** - * Network Server RX time (set by the NS on receiving the uplink). - * - * Generated from protobuf field .google.protobuf.Timestamp ns_time = 17; - */ - protected $ns_time = null; - /** - * RX time as time since GPS epoch (set if the gateway has a GNSS module). - * - * Generated from protobuf field .google.protobuf.Duration time_since_gps_epoch = 4; - */ - protected $time_since_gps_epoch = null; - /** - * Fine-timestamp. - * This timestamp can be used for TDOA based geolocation. - * - * Generated from protobuf field .google.protobuf.Duration fine_time_since_gps_epoch = 5; - */ - protected $fine_time_since_gps_epoch = null; - /** - * RSSI. - * - * Generated from protobuf field int32 rssi = 6; - */ - protected $rssi = 0; - /** - * SNR. - * Note: only available for LoRa modulation. - * - * Generated from protobuf field float snr = 7; - */ - protected $snr = 0.0; - /** - * Channel. - * - * Generated from protobuf field uint32 channel = 8; - */ - protected $channel = 0; - /** - * RF chain. - * - * Generated from protobuf field uint32 rf_chain = 9; - */ - protected $rf_chain = 0; - /** - * Board. - * - * Generated from protobuf field uint32 board = 10; - */ - protected $board = 0; - /** - * Antenna. - * - * Generated from protobuf field uint32 antenna = 11; - */ - protected $antenna = 0; - /** - * Location. - * - * Generated from protobuf field .common.Location location = 12; - */ - protected $location = null; - /** - * Gateway specific context. - * This value must be returned to the gateway on (Class-A) downlink. - * - * Generated from protobuf field bytes context = 13; - */ - protected $context = ''; - /** - * Additional gateway meta-data. - * - * Generated from protobuf field map metadata = 15; - */ - private $metadata; - /** - * CRC status. - * - * Generated from protobuf field .gw.CRCStatus crc_status = 16; - */ - protected $crc_status = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $gateway_id - * Gateway ID. - * @type int $uplink_id - * Uplink ID. - * @type \Google\Protobuf\Timestamp $gw_time - * Gateway RX time (set if the gateway has a GNSS module). - * @type \Google\Protobuf\Timestamp $ns_time - * Network Server RX time (set by the NS on receiving the uplink). - * @type \Google\Protobuf\Duration $time_since_gps_epoch - * RX time as time since GPS epoch (set if the gateway has a GNSS module). - * @type \Google\Protobuf\Duration $fine_time_since_gps_epoch - * Fine-timestamp. - * This timestamp can be used for TDOA based geolocation. - * @type int $rssi - * RSSI. - * @type float $snr - * SNR. - * Note: only available for LoRa modulation. - * @type int $channel - * Channel. - * @type int $rf_chain - * RF chain. - * @type int $board - * Board. - * @type int $antenna - * Antenna. - * @type \Chirpstack\Common\Location $location - * Location. - * @type string $context - * Gateway specific context. - * This value must be returned to the gateway on (Class-A) downlink. - * @type array|\Google\Protobuf\Internal\MapField $metadata - * Additional gateway meta-data. - * @type int $crc_status - * CRC status. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Chirpstack\Gateway\Gw::initOnce(); - parent::__construct($data); - } - - /** - * Gateway ID. - * - * Generated from protobuf field string gateway_id = 1; - * @return string - */ - public function getGatewayId() - { - return $this->gateway_id; - } - - /** - * Gateway ID. - * - * Generated from protobuf field string gateway_id = 1; - * @param string $var - * @return $this - */ - public function setGatewayId($var) - { - GPBUtil::checkString($var, True); - $this->gateway_id = $var; - - return $this; - } - - /** - * Uplink ID. - * - * Generated from protobuf field uint32 uplink_id = 2; - * @return int - */ - public function getUplinkId() - { - return $this->uplink_id; - } - - /** - * Uplink ID. - * - * Generated from protobuf field uint32 uplink_id = 2; - * @param int $var - * @return $this - */ - public function setUplinkId($var) - { - GPBUtil::checkUint32($var); - $this->uplink_id = $var; - - return $this; - } - - /** - * Gateway RX time (set if the gateway has a GNSS module). - * - * Generated from protobuf field .google.protobuf.Timestamp gw_time = 3; - * @return \Google\Protobuf\Timestamp|null - */ - public function getGwTime() - { - return $this->gw_time; - } - - public function hasGwTime() - { - return isset($this->gw_time); - } - - public function clearGwTime() - { - unset($this->gw_time); - } - - /** - * Gateway RX time (set if the gateway has a GNSS module). - * - * Generated from protobuf field .google.protobuf.Timestamp gw_time = 3; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setGwTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->gw_time = $var; - - return $this; - } - - /** - * Network Server RX time (set by the NS on receiving the uplink). - * - * Generated from protobuf field .google.protobuf.Timestamp ns_time = 17; - * @return \Google\Protobuf\Timestamp|null - */ - public function getNsTime() - { - return $this->ns_time; - } - - public function hasNsTime() - { - return isset($this->ns_time); - } - - public function clearNsTime() - { - unset($this->ns_time); - } - - /** - * Network Server RX time (set by the NS on receiving the uplink). - * - * Generated from protobuf field .google.protobuf.Timestamp ns_time = 17; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setNsTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->ns_time = $var; - - return $this; - } - - /** - * RX time as time since GPS epoch (set if the gateway has a GNSS module). - * - * Generated from protobuf field .google.protobuf.Duration time_since_gps_epoch = 4; - * @return \Google\Protobuf\Duration|null - */ - public function getTimeSinceGpsEpoch() - { - return $this->time_since_gps_epoch; - } - - public function hasTimeSinceGpsEpoch() - { - return isset($this->time_since_gps_epoch); - } - - public function clearTimeSinceGpsEpoch() - { - unset($this->time_since_gps_epoch); - } - - /** - * RX time as time since GPS epoch (set if the gateway has a GNSS module). - * - * Generated from protobuf field .google.protobuf.Duration time_since_gps_epoch = 4; - * @param \Google\Protobuf\Duration $var - * @return $this - */ - public function setTimeSinceGpsEpoch($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Duration::class); - $this->time_since_gps_epoch = $var; - - return $this; - } - - /** - * Fine-timestamp. - * This timestamp can be used for TDOA based geolocation. - * - * Generated from protobuf field .google.protobuf.Duration fine_time_since_gps_epoch = 5; - * @return \Google\Protobuf\Duration|null - */ - public function getFineTimeSinceGpsEpoch() - { - return $this->fine_time_since_gps_epoch; - } - - public function hasFineTimeSinceGpsEpoch() - { - return isset($this->fine_time_since_gps_epoch); - } - - public function clearFineTimeSinceGpsEpoch() - { - unset($this->fine_time_since_gps_epoch); - } - - /** - * Fine-timestamp. - * This timestamp can be used for TDOA based geolocation. - * - * Generated from protobuf field .google.protobuf.Duration fine_time_since_gps_epoch = 5; - * @param \Google\Protobuf\Duration $var - * @return $this - */ - public function setFineTimeSinceGpsEpoch($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Duration::class); - $this->fine_time_since_gps_epoch = $var; - - return $this; - } - - /** - * RSSI. - * - * Generated from protobuf field int32 rssi = 6; - * @return int - */ - public function getRssi() - { - return $this->rssi; - } - - /** - * RSSI. - * - * Generated from protobuf field int32 rssi = 6; - * @param int $var - * @return $this - */ - public function setRssi($var) - { - GPBUtil::checkInt32($var); - $this->rssi = $var; - - return $this; - } - - /** - * SNR. - * Note: only available for LoRa modulation. - * - * Generated from protobuf field float snr = 7; - * @return float - */ - public function getSnr() - { - return $this->snr; - } - - /** - * SNR. - * Note: only available for LoRa modulation. - * - * Generated from protobuf field float snr = 7; - * @param float $var - * @return $this - */ - public function setSnr($var) - { - GPBUtil::checkFloat($var); - $this->snr = $var; - - return $this; - } - - /** - * Channel. - * - * Generated from protobuf field uint32 channel = 8; - * @return int - */ - public function getChannel() - { - return $this->channel; - } - - /** - * Channel. - * - * Generated from protobuf field uint32 channel = 8; - * @param int $var - * @return $this - */ - public function setChannel($var) - { - GPBUtil::checkUint32($var); - $this->channel = $var; - - return $this; - } - - /** - * RF chain. - * - * Generated from protobuf field uint32 rf_chain = 9; - * @return int - */ - public function getRfChain() - { - return $this->rf_chain; - } - - /** - * RF chain. - * - * Generated from protobuf field uint32 rf_chain = 9; - * @param int $var - * @return $this - */ - public function setRfChain($var) - { - GPBUtil::checkUint32($var); - $this->rf_chain = $var; - - return $this; - } - - /** - * Board. - * - * Generated from protobuf field uint32 board = 10; - * @return int - */ - public function getBoard() - { - return $this->board; - } - - /** - * Board. - * - * Generated from protobuf field uint32 board = 10; - * @param int $var - * @return $this - */ - public function setBoard($var) - { - GPBUtil::checkUint32($var); - $this->board = $var; - - return $this; - } - - /** - * Antenna. - * - * Generated from protobuf field uint32 antenna = 11; - * @return int - */ - public function getAntenna() - { - return $this->antenna; - } - - /** - * Antenna. - * - * Generated from protobuf field uint32 antenna = 11; - * @param int $var - * @return $this - */ - public function setAntenna($var) - { - GPBUtil::checkUint32($var); - $this->antenna = $var; - - return $this; - } - - /** - * Location. - * - * Generated from protobuf field .common.Location location = 12; - * @return \Chirpstack\Common\Location|null - */ - public function getLocation() - { - return $this->location; - } - - public function hasLocation() - { - return isset($this->location); - } - - public function clearLocation() - { - unset($this->location); - } - - /** - * Location. - * - * Generated from protobuf field .common.Location location = 12; - * @param \Chirpstack\Common\Location $var - * @return $this - */ - public function setLocation($var) - { - GPBUtil::checkMessage($var, \Chirpstack\Common\Location::class); - $this->location = $var; - - return $this; - } - - /** - * Gateway specific context. - * This value must be returned to the gateway on (Class-A) downlink. - * - * Generated from protobuf field bytes context = 13; - * @return string - */ - public function getContext() - { - return $this->context; - } - - /** - * Gateway specific context. - * This value must be returned to the gateway on (Class-A) downlink. - * - * Generated from protobuf field bytes context = 13; - * @param string $var - * @return $this - */ - public function setContext($var) - { - GPBUtil::checkString($var, False); - $this->context = $var; - - return $this; - } - - /** - * Additional gateway meta-data. - * - * Generated from protobuf field map metadata = 15; - * @return \Google\Protobuf\Internal\MapField - */ - public function getMetadata() - { - return $this->metadata; - } - - /** - * Additional gateway meta-data. - * - * Generated from protobuf field map metadata = 15; - * @param array|\Google\Protobuf\Internal\MapField $var - * @return $this - */ - public function setMetadata($var) - { - $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); - $this->metadata = $arr; - - return $this; - } - - /** - * CRC status. - * - * Generated from protobuf field .gw.CRCStatus crc_status = 16; - * @return int - */ - public function getCrcStatus() - { - return $this->crc_status; - } - - /** - * CRC status. - * - * Generated from protobuf field .gw.CRCStatus crc_status = 16; - * @param int $var - * @return $this - */ - public function setCrcStatus($var) - { - GPBUtil::checkEnum($var, \Chirpstack\Gateway\CRCStatus::class); - $this->crc_status = $var; - - return $this; - } - -} - diff --git a/api/php/generated/Chirpstack/Gateway/UplinkRxInfoLegacy.php b/api/php/generated/Chirpstack/Gateway/UplinkRxInfoLegacy.php deleted file mode 100644 index dcb3315a..00000000 --- a/api/php/generated/Chirpstack/Gateway/UplinkRxInfoLegacy.php +++ /dev/null @@ -1,654 +0,0 @@ -gw.UplinkRxInfoLegacy - */ -class UplinkRxInfoLegacy extends \Google\Protobuf\Internal\Message -{ - /** - * Gateway ID. - * - * Generated from protobuf field bytes gateway_id = 1; - */ - protected $gateway_id = ''; - /** - * RX time (only set when the gateway has a GPS module). - * - * Generated from protobuf field .google.protobuf.Timestamp time = 2; - */ - protected $time = null; - /** - * RX time since GPS epoch (only set when the gateway has a GPS module). - * - * Generated from protobuf field .google.protobuf.Duration time_since_gps_epoch = 3; - */ - protected $time_since_gps_epoch = null; - /** - * RSSI. - * - * Generated from protobuf field int32 rssi = 5; - */ - protected $rssi = 0; - /** - * LoRa SNR. - * - * Generated from protobuf field double lora_snr = 6; - */ - protected $lora_snr = 0.0; - /** - * Channel. - * - * Generated from protobuf field uint32 channel = 7; - */ - protected $channel = 0; - /** - * RF Chain. - * - * Generated from protobuf field uint32 rf_chain = 8; - */ - protected $rf_chain = 0; - /** - * Board. - * - * Generated from protobuf field uint32 board = 9; - */ - protected $board = 0; - /** - * Antenna. - * - * Generated from protobuf field uint32 antenna = 10; - */ - protected $antenna = 0; - /** - * Location. - * - * Generated from protobuf field .common.Location location = 11; - */ - protected $location = null; - /** - * Fine-timestamp type. - * - * Generated from protobuf field .gw.FineTimestampType fine_timestamp_type = 12; - */ - protected $fine_timestamp_type = 0; - /** - * Gateway specific context. - * - * Generated from protobuf field bytes context = 15; - */ - protected $context = ''; - /** - * Uplink ID (UUID bytes). - * Unique and random ID which can be used to correlate the uplink across - * multiple logs. - * - * Generated from protobuf field bytes uplink_id = 16; - */ - protected $uplink_id = ''; - /** - * CRC status. - * - * Generated from protobuf field .gw.CRCStatus crc_status = 17; - */ - protected $crc_status = 0; - /** - * Optional meta-data map. - * - * Generated from protobuf field map metadata = 18; - */ - private $metadata; - protected $fine_timestamp; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $gateway_id - * Gateway ID. - * @type \Google\Protobuf\Timestamp $time - * RX time (only set when the gateway has a GPS module). - * @type \Google\Protobuf\Duration $time_since_gps_epoch - * RX time since GPS epoch (only set when the gateway has a GPS module). - * @type int $rssi - * RSSI. - * @type float $lora_snr - * LoRa SNR. - * @type int $channel - * Channel. - * @type int $rf_chain - * RF Chain. - * @type int $board - * Board. - * @type int $antenna - * Antenna. - * @type \Chirpstack\Common\Location $location - * Location. - * @type int $fine_timestamp_type - * Fine-timestamp type. - * @type \Chirpstack\Gateway\EncryptedFineTimestamp $encrypted_fine_timestamp - * Encrypted fine-timestamp data. - * @type \Chirpstack\Gateway\PlainFineTimestamp $plain_fine_timestamp - * Plain fine-timestamp data. - * @type string $context - * Gateway specific context. - * @type string $uplink_id - * Uplink ID (UUID bytes). - * Unique and random ID which can be used to correlate the uplink across - * multiple logs. - * @type int $crc_status - * CRC status. - * @type array|\Google\Protobuf\Internal\MapField $metadata - * Optional meta-data map. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Chirpstack\Gateway\Gw::initOnce(); - parent::__construct($data); - } - - /** - * Gateway ID. - * - * Generated from protobuf field bytes gateway_id = 1; - * @return string - */ - public function getGatewayId() - { - return $this->gateway_id; - } - - /** - * Gateway ID. - * - * Generated from protobuf field bytes gateway_id = 1; - * @param string $var - * @return $this - */ - public function setGatewayId($var) - { - GPBUtil::checkString($var, False); - $this->gateway_id = $var; - - return $this; - } - - /** - * RX time (only set when the gateway has a GPS module). - * - * Generated from protobuf field .google.protobuf.Timestamp time = 2; - * @return \Google\Protobuf\Timestamp|null - */ - public function getTime() - { - return $this->time; - } - - public function hasTime() - { - return isset($this->time); - } - - public function clearTime() - { - unset($this->time); - } - - /** - * RX time (only set when the gateway has a GPS module). - * - * Generated from protobuf field .google.protobuf.Timestamp time = 2; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->time = $var; - - return $this; - } - - /** - * RX time since GPS epoch (only set when the gateway has a GPS module). - * - * Generated from protobuf field .google.protobuf.Duration time_since_gps_epoch = 3; - * @return \Google\Protobuf\Duration|null - */ - public function getTimeSinceGpsEpoch() - { - return $this->time_since_gps_epoch; - } - - public function hasTimeSinceGpsEpoch() - { - return isset($this->time_since_gps_epoch); - } - - public function clearTimeSinceGpsEpoch() - { - unset($this->time_since_gps_epoch); - } - - /** - * RX time since GPS epoch (only set when the gateway has a GPS module). - * - * Generated from protobuf field .google.protobuf.Duration time_since_gps_epoch = 3; - * @param \Google\Protobuf\Duration $var - * @return $this - */ - public function setTimeSinceGpsEpoch($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Duration::class); - $this->time_since_gps_epoch = $var; - - return $this; - } - - /** - * RSSI. - * - * Generated from protobuf field int32 rssi = 5; - * @return int - */ - public function getRssi() - { - return $this->rssi; - } - - /** - * RSSI. - * - * Generated from protobuf field int32 rssi = 5; - * @param int $var - * @return $this - */ - public function setRssi($var) - { - GPBUtil::checkInt32($var); - $this->rssi = $var; - - return $this; - } - - /** - * LoRa SNR. - * - * Generated from protobuf field double lora_snr = 6; - * @return float - */ - public function getLoraSnr() - { - return $this->lora_snr; - } - - /** - * LoRa SNR. - * - * Generated from protobuf field double lora_snr = 6; - * @param float $var - * @return $this - */ - public function setLoraSnr($var) - { - GPBUtil::checkDouble($var); - $this->lora_snr = $var; - - return $this; - } - - /** - * Channel. - * - * Generated from protobuf field uint32 channel = 7; - * @return int - */ - public function getChannel() - { - return $this->channel; - } - - /** - * Channel. - * - * Generated from protobuf field uint32 channel = 7; - * @param int $var - * @return $this - */ - public function setChannel($var) - { - GPBUtil::checkUint32($var); - $this->channel = $var; - - return $this; - } - - /** - * RF Chain. - * - * Generated from protobuf field uint32 rf_chain = 8; - * @return int - */ - public function getRfChain() - { - return $this->rf_chain; - } - - /** - * RF Chain. - * - * Generated from protobuf field uint32 rf_chain = 8; - * @param int $var - * @return $this - */ - public function setRfChain($var) - { - GPBUtil::checkUint32($var); - $this->rf_chain = $var; - - return $this; - } - - /** - * Board. - * - * Generated from protobuf field uint32 board = 9; - * @return int - */ - public function getBoard() - { - return $this->board; - } - - /** - * Board. - * - * Generated from protobuf field uint32 board = 9; - * @param int $var - * @return $this - */ - public function setBoard($var) - { - GPBUtil::checkUint32($var); - $this->board = $var; - - return $this; - } - - /** - * Antenna. - * - * Generated from protobuf field uint32 antenna = 10; - * @return int - */ - public function getAntenna() - { - return $this->antenna; - } - - /** - * Antenna. - * - * Generated from protobuf field uint32 antenna = 10; - * @param int $var - * @return $this - */ - public function setAntenna($var) - { - GPBUtil::checkUint32($var); - $this->antenna = $var; - - return $this; - } - - /** - * Location. - * - * Generated from protobuf field .common.Location location = 11; - * @return \Chirpstack\Common\Location|null - */ - public function getLocation() - { - return $this->location; - } - - public function hasLocation() - { - return isset($this->location); - } - - public function clearLocation() - { - unset($this->location); - } - - /** - * Location. - * - * Generated from protobuf field .common.Location location = 11; - * @param \Chirpstack\Common\Location $var - * @return $this - */ - public function setLocation($var) - { - GPBUtil::checkMessage($var, \Chirpstack\Common\Location::class); - $this->location = $var; - - return $this; - } - - /** - * Fine-timestamp type. - * - * Generated from protobuf field .gw.FineTimestampType fine_timestamp_type = 12; - * @return int - */ - public function getFineTimestampType() - { - return $this->fine_timestamp_type; - } - - /** - * Fine-timestamp type. - * - * Generated from protobuf field .gw.FineTimestampType fine_timestamp_type = 12; - * @param int $var - * @return $this - */ - public function setFineTimestampType($var) - { - GPBUtil::checkEnum($var, \Chirpstack\Gateway\FineTimestampType::class); - $this->fine_timestamp_type = $var; - - return $this; - } - - /** - * Encrypted fine-timestamp data. - * - * Generated from protobuf field .gw.EncryptedFineTimestamp encrypted_fine_timestamp = 13; - * @return \Chirpstack\Gateway\EncryptedFineTimestamp|null - */ - public function getEncryptedFineTimestamp() - { - return $this->readOneof(13); - } - - public function hasEncryptedFineTimestamp() - { - return $this->hasOneof(13); - } - - /** - * Encrypted fine-timestamp data. - * - * Generated from protobuf field .gw.EncryptedFineTimestamp encrypted_fine_timestamp = 13; - * @param \Chirpstack\Gateway\EncryptedFineTimestamp $var - * @return $this - */ - public function setEncryptedFineTimestamp($var) - { - GPBUtil::checkMessage($var, \Chirpstack\Gateway\EncryptedFineTimestamp::class); - $this->writeOneof(13, $var); - - return $this; - } - - /** - * Plain fine-timestamp data. - * - * Generated from protobuf field .gw.PlainFineTimestamp plain_fine_timestamp = 14; - * @return \Chirpstack\Gateway\PlainFineTimestamp|null - */ - public function getPlainFineTimestamp() - { - return $this->readOneof(14); - } - - public function hasPlainFineTimestamp() - { - return $this->hasOneof(14); - } - - /** - * Plain fine-timestamp data. - * - * Generated from protobuf field .gw.PlainFineTimestamp plain_fine_timestamp = 14; - * @param \Chirpstack\Gateway\PlainFineTimestamp $var - * @return $this - */ - public function setPlainFineTimestamp($var) - { - GPBUtil::checkMessage($var, \Chirpstack\Gateway\PlainFineTimestamp::class); - $this->writeOneof(14, $var); - - return $this; - } - - /** - * Gateway specific context. - * - * Generated from protobuf field bytes context = 15; - * @return string - */ - public function getContext() - { - return $this->context; - } - - /** - * Gateway specific context. - * - * Generated from protobuf field bytes context = 15; - * @param string $var - * @return $this - */ - public function setContext($var) - { - GPBUtil::checkString($var, False); - $this->context = $var; - - return $this; - } - - /** - * Uplink ID (UUID bytes). - * Unique and random ID which can be used to correlate the uplink across - * multiple logs. - * - * Generated from protobuf field bytes uplink_id = 16; - * @return string - */ - public function getUplinkId() - { - return $this->uplink_id; - } - - /** - * Uplink ID (UUID bytes). - * Unique and random ID which can be used to correlate the uplink across - * multiple logs. - * - * Generated from protobuf field bytes uplink_id = 16; - * @param string $var - * @return $this - */ - public function setUplinkId($var) - { - GPBUtil::checkString($var, False); - $this->uplink_id = $var; - - return $this; - } - - /** - * CRC status. - * - * Generated from protobuf field .gw.CRCStatus crc_status = 17; - * @return int - */ - public function getCrcStatus() - { - return $this->crc_status; - } - - /** - * CRC status. - * - * Generated from protobuf field .gw.CRCStatus crc_status = 17; - * @param int $var - * @return $this - */ - public function setCrcStatus($var) - { - GPBUtil::checkEnum($var, \Chirpstack\Gateway\CRCStatus::class); - $this->crc_status = $var; - - return $this; - } - - /** - * Optional meta-data map. - * - * Generated from protobuf field map metadata = 18; - * @return \Google\Protobuf\Internal\MapField - */ - public function getMetadata() - { - return $this->metadata; - } - - /** - * Optional meta-data map. - * - * Generated from protobuf field map metadata = 18; - * @param array|\Google\Protobuf\Internal\MapField $var - * @return $this - */ - public function setMetadata($var) - { - $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); - $this->metadata = $arr; - - return $this; - } - - /** - * @return string - */ - public function getFineTimestamp() - { - return $this->whichOneof("fine_timestamp"); - } - -} - diff --git a/api/php/generated/Chirpstack/Gateway/UplinkTxInfo.php b/api/php/generated/Chirpstack/Gateway/UplinkTxInfo.php deleted file mode 100644 index 76029cbc..00000000 --- a/api/php/generated/Chirpstack/Gateway/UplinkTxInfo.php +++ /dev/null @@ -1,109 +0,0 @@ -gw.UplinkTxInfo - */ -class UplinkTxInfo extends \Google\Protobuf\Internal\Message -{ - /** - * Frequency (Hz). - * - * Generated from protobuf field uint32 frequency = 1; - */ - protected $frequency = 0; - /** - * Modulation. - * - * Generated from protobuf field .gw.Modulation modulation = 2; - */ - protected $modulation = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $frequency - * Frequency (Hz). - * @type \Chirpstack\Gateway\Modulation $modulation - * Modulation. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Chirpstack\Gateway\Gw::initOnce(); - parent::__construct($data); - } - - /** - * Frequency (Hz). - * - * Generated from protobuf field uint32 frequency = 1; - * @return int - */ - public function getFrequency() - { - return $this->frequency; - } - - /** - * Frequency (Hz). - * - * Generated from protobuf field uint32 frequency = 1; - * @param int $var - * @return $this - */ - public function setFrequency($var) - { - GPBUtil::checkUint32($var); - $this->frequency = $var; - - return $this; - } - - /** - * Modulation. - * - * Generated from protobuf field .gw.Modulation modulation = 2; - * @return \Chirpstack\Gateway\Modulation|null - */ - public function getModulation() - { - return $this->modulation; - } - - public function hasModulation() - { - return isset($this->modulation); - } - - public function clearModulation() - { - unset($this->modulation); - } - - /** - * Modulation. - * - * Generated from protobuf field .gw.Modulation modulation = 2; - * @param \Chirpstack\Gateway\Modulation $var - * @return $this - */ - public function setModulation($var) - { - GPBUtil::checkMessage($var, \Chirpstack\Gateway\Modulation::class); - $this->modulation = $var; - - return $this; - } - -} - diff --git a/api/php/generated/Chirpstack/Gateway/UplinkTxInfoLegacy.php b/api/php/generated/Chirpstack/Gateway/UplinkTxInfoLegacy.php deleted file mode 100644 index 2bed27f7..00000000 --- a/api/php/generated/Chirpstack/Gateway/UplinkTxInfoLegacy.php +++ /dev/null @@ -1,207 +0,0 @@ -gw.UplinkTxInfoLegacy - */ -class UplinkTxInfoLegacy extends \Google\Protobuf\Internal\Message -{ - /** - * Frequency (Hz). - * - * Generated from protobuf field uint32 frequency = 1; - */ - protected $frequency = 0; - /** - * Modulation. - * - * Generated from protobuf field .common.Modulation modulation = 2; - */ - protected $modulation = 0; - protected $modulation_info; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $frequency - * Frequency (Hz). - * @type int $modulation - * Modulation. - * @type \Chirpstack\Gateway\LoraModulationInfo $lora_modulation_info - * LoRa modulation information. - * @type \Chirpstack\Gateway\FskModulationInfo $fsk_modulation_info - * FSK modulation information. - * @type \Chirpstack\Gateway\LrFhssModulationInfo $lr_fhss_modulation_info - * LR-FHSS modulation information. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Chirpstack\Gateway\Gw::initOnce(); - parent::__construct($data); - } - - /** - * Frequency (Hz). - * - * Generated from protobuf field uint32 frequency = 1; - * @return int - */ - public function getFrequency() - { - return $this->frequency; - } - - /** - * Frequency (Hz). - * - * Generated from protobuf field uint32 frequency = 1; - * @param int $var - * @return $this - */ - public function setFrequency($var) - { - GPBUtil::checkUint32($var); - $this->frequency = $var; - - return $this; - } - - /** - * Modulation. - * - * Generated from protobuf field .common.Modulation modulation = 2; - * @return int - */ - public function getModulation() - { - return $this->modulation; - } - - /** - * Modulation. - * - * Generated from protobuf field .common.Modulation modulation = 2; - * @param int $var - * @return $this - */ - public function setModulation($var) - { - GPBUtil::checkEnum($var, \Chirpstack\Common\Modulation::class); - $this->modulation = $var; - - return $this; - } - - /** - * LoRa modulation information. - * - * Generated from protobuf field .gw.LoraModulationInfo lora_modulation_info = 3; - * @return \Chirpstack\Gateway\LoraModulationInfo|null - */ - public function getLoraModulationInfo() - { - return $this->readOneof(3); - } - - public function hasLoraModulationInfo() - { - return $this->hasOneof(3); - } - - /** - * LoRa modulation information. - * - * Generated from protobuf field .gw.LoraModulationInfo lora_modulation_info = 3; - * @param \Chirpstack\Gateway\LoraModulationInfo $var - * @return $this - */ - public function setLoraModulationInfo($var) - { - GPBUtil::checkMessage($var, \Chirpstack\Gateway\LoraModulationInfo::class); - $this->writeOneof(3, $var); - - return $this; - } - - /** - * FSK modulation information. - * - * Generated from protobuf field .gw.FskModulationInfo fsk_modulation_info = 4; - * @return \Chirpstack\Gateway\FskModulationInfo|null - */ - public function getFskModulationInfo() - { - return $this->readOneof(4); - } - - public function hasFskModulationInfo() - { - return $this->hasOneof(4); - } - - /** - * FSK modulation information. - * - * Generated from protobuf field .gw.FskModulationInfo fsk_modulation_info = 4; - * @param \Chirpstack\Gateway\FskModulationInfo $var - * @return $this - */ - public function setFskModulationInfo($var) - { - GPBUtil::checkMessage($var, \Chirpstack\Gateway\FskModulationInfo::class); - $this->writeOneof(4, $var); - - return $this; - } - - /** - * LR-FHSS modulation information. - * - * Generated from protobuf field .gw.LrFhssModulationInfo lr_fhss_modulation_info = 5; - * @return \Chirpstack\Gateway\LrFhssModulationInfo|null - */ - public function getLrFhssModulationInfo() - { - return $this->readOneof(5); - } - - public function hasLrFhssModulationInfo() - { - return $this->hasOneof(5); - } - - /** - * LR-FHSS modulation information. - * - * Generated from protobuf field .gw.LrFhssModulationInfo lr_fhss_modulation_info = 5; - * @param \Chirpstack\Gateway\LrFhssModulationInfo $var - * @return $this - */ - public function setLrFhssModulationInfo($var) - { - GPBUtil::checkMessage($var, \Chirpstack\Gateway\LrFhssModulationInfo::class); - $this->writeOneof(5, $var); - - return $this; - } - - /** - * @return string - */ - public function getModulationInfo() - { - return $this->whichOneof("modulation_info"); - } - -} - diff --git a/api/php/generated/Chirpstack/Integration/AckEvent.php b/api/php/generated/Chirpstack/Integration/AckEvent.php deleted file mode 100644 index de9cfbe2..00000000 --- a/api/php/generated/Chirpstack/Integration/AckEvent.php +++ /dev/null @@ -1,258 +0,0 @@ -integration.AckEvent - */ -class AckEvent extends \Google\Protobuf\Internal\Message -{ - /** - * Deduplication ID (UUID). - * - * Generated from protobuf field string deduplication_id = 1; - */ - protected $deduplication_id = ''; - /** - * Timestamp. - * - * Generated from protobuf field .google.protobuf.Timestamp time = 2; - */ - protected $time = null; - /** - * Device info. - * - * Generated from protobuf field .integration.DeviceInfo device_info = 3; - */ - protected $device_info = null; - /** - * Downlink queue item ID (UUID). - * - * Generated from protobuf field string queue_item_id = 4; - */ - protected $queue_item_id = ''; - /** - * Frame was acknowledged. - * - * Generated from protobuf field bool acknowledged = 5; - */ - protected $acknowledged = false; - /** - * Downlink frame counter to which the acknowledgement relates. - * - * Generated from protobuf field uint32 f_cnt_down = 6; - */ - protected $f_cnt_down = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $deduplication_id - * Deduplication ID (UUID). - * @type \Google\Protobuf\Timestamp $time - * Timestamp. - * @type \Chirpstack\Integration\DeviceInfo $device_info - * Device info. - * @type string $queue_item_id - * Downlink queue item ID (UUID). - * @type bool $acknowledged - * Frame was acknowledged. - * @type int $f_cnt_down - * Downlink frame counter to which the acknowledgement relates. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Chirpstack\Integration\Integration::initOnce(); - parent::__construct($data); - } - - /** - * Deduplication ID (UUID). - * - * Generated from protobuf field string deduplication_id = 1; - * @return string - */ - public function getDeduplicationId() - { - return $this->deduplication_id; - } - - /** - * Deduplication ID (UUID). - * - * Generated from protobuf field string deduplication_id = 1; - * @param string $var - * @return $this - */ - public function setDeduplicationId($var) - { - GPBUtil::checkString($var, True); - $this->deduplication_id = $var; - - return $this; - } - - /** - * Timestamp. - * - * Generated from protobuf field .google.protobuf.Timestamp time = 2; - * @return \Google\Protobuf\Timestamp|null - */ - public function getTime() - { - return $this->time; - } - - public function hasTime() - { - return isset($this->time); - } - - public function clearTime() - { - unset($this->time); - } - - /** - * Timestamp. - * - * Generated from protobuf field .google.protobuf.Timestamp time = 2; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->time = $var; - - return $this; - } - - /** - * Device info. - * - * Generated from protobuf field .integration.DeviceInfo device_info = 3; - * @return \Chirpstack\Integration\DeviceInfo|null - */ - public function getDeviceInfo() - { - return $this->device_info; - } - - public function hasDeviceInfo() - { - return isset($this->device_info); - } - - public function clearDeviceInfo() - { - unset($this->device_info); - } - - /** - * Device info. - * - * Generated from protobuf field .integration.DeviceInfo device_info = 3; - * @param \Chirpstack\Integration\DeviceInfo $var - * @return $this - */ - public function setDeviceInfo($var) - { - GPBUtil::checkMessage($var, \Chirpstack\Integration\DeviceInfo::class); - $this->device_info = $var; - - return $this; - } - - /** - * Downlink queue item ID (UUID). - * - * Generated from protobuf field string queue_item_id = 4; - * @return string - */ - public function getQueueItemId() - { - return $this->queue_item_id; - } - - /** - * Downlink queue item ID (UUID). - * - * Generated from protobuf field string queue_item_id = 4; - * @param string $var - * @return $this - */ - public function setQueueItemId($var) - { - GPBUtil::checkString($var, True); - $this->queue_item_id = $var; - - return $this; - } - - /** - * Frame was acknowledged. - * - * Generated from protobuf field bool acknowledged = 5; - * @return bool - */ - public function getAcknowledged() - { - return $this->acknowledged; - } - - /** - * Frame was acknowledged. - * - * Generated from protobuf field bool acknowledged = 5; - * @param bool $var - * @return $this - */ - public function setAcknowledged($var) - { - GPBUtil::checkBool($var); - $this->acknowledged = $var; - - return $this; - } - - /** - * Downlink frame counter to which the acknowledgement relates. - * - * Generated from protobuf field uint32 f_cnt_down = 6; - * @return int - */ - public function getFCntDown() - { - return $this->f_cnt_down; - } - - /** - * Downlink frame counter to which the acknowledgement relates. - * - * Generated from protobuf field uint32 f_cnt_down = 6; - * @param int $var - * @return $this - */ - public function setFCntDown($var) - { - GPBUtil::checkUint32($var); - $this->f_cnt_down = $var; - - return $this; - } - -} - diff --git a/api/php/generated/Chirpstack/Integration/DeviceInfo.php b/api/php/generated/Chirpstack/Integration/DeviceInfo.php deleted file mode 100644 index 2a5e6eb0..00000000 --- a/api/php/generated/Chirpstack/Integration/DeviceInfo.php +++ /dev/null @@ -1,373 +0,0 @@ -integration.DeviceInfo - */ -class DeviceInfo extends \Google\Protobuf\Internal\Message -{ - /** - * Tenant ID (UUID). - * - * Generated from protobuf field string tenant_id = 1; - */ - protected $tenant_id = ''; - /** - * Tenant name. - * - * Generated from protobuf field string tenant_name = 2; - */ - protected $tenant_name = ''; - /** - * Application ID (UUID). - * - * Generated from protobuf field string application_id = 3; - */ - protected $application_id = ''; - /** - * Application name. - * - * Generated from protobuf field string application_name = 4; - */ - protected $application_name = ''; - /** - * Device-profile ID (UUID). - * - * Generated from protobuf field string device_profile_id = 5; - */ - protected $device_profile_id = ''; - /** - * Device-profile name. - * - * Generated from protobuf field string device_profile_name = 6; - */ - protected $device_profile_name = ''; - /** - * Device name. - * - * Generated from protobuf field string device_name = 7; - */ - protected $device_name = ''; - /** - * Device EUI. - * - * Generated from protobuf field string dev_eui = 8; - */ - protected $dev_eui = ''; - /** - * Device class. - * - * Generated from protobuf field .common.DeviceClass device_class_enabled = 10; - */ - protected $device_class_enabled = 0; - /** - * Device-profile and device tags. - * - * Generated from protobuf field map tags = 9; - */ - private $tags; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $tenant_id - * Tenant ID (UUID). - * @type string $tenant_name - * Tenant name. - * @type string $application_id - * Application ID (UUID). - * @type string $application_name - * Application name. - * @type string $device_profile_id - * Device-profile ID (UUID). - * @type string $device_profile_name - * Device-profile name. - * @type string $device_name - * Device name. - * @type string $dev_eui - * Device EUI. - * @type int $device_class_enabled - * Device class. - * @type array|\Google\Protobuf\Internal\MapField $tags - * Device-profile and device tags. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Chirpstack\Integration\Integration::initOnce(); - parent::__construct($data); - } - - /** - * Tenant ID (UUID). - * - * Generated from protobuf field string tenant_id = 1; - * @return string - */ - public function getTenantId() - { - return $this->tenant_id; - } - - /** - * Tenant ID (UUID). - * - * Generated from protobuf field string tenant_id = 1; - * @param string $var - * @return $this - */ - public function setTenantId($var) - { - GPBUtil::checkString($var, True); - $this->tenant_id = $var; - - return $this; - } - - /** - * Tenant name. - * - * Generated from protobuf field string tenant_name = 2; - * @return string - */ - public function getTenantName() - { - return $this->tenant_name; - } - - /** - * Tenant name. - * - * Generated from protobuf field string tenant_name = 2; - * @param string $var - * @return $this - */ - public function setTenantName($var) - { - GPBUtil::checkString($var, True); - $this->tenant_name = $var; - - return $this; - } - - /** - * Application ID (UUID). - * - * Generated from protobuf field string application_id = 3; - * @return string - */ - public function getApplicationId() - { - return $this->application_id; - } - - /** - * Application ID (UUID). - * - * Generated from protobuf field string application_id = 3; - * @param string $var - * @return $this - */ - public function setApplicationId($var) - { - GPBUtil::checkString($var, True); - $this->application_id = $var; - - return $this; - } - - /** - * Application name. - * - * Generated from protobuf field string application_name = 4; - * @return string - */ - public function getApplicationName() - { - return $this->application_name; - } - - /** - * Application name. - * - * Generated from protobuf field string application_name = 4; - * @param string $var - * @return $this - */ - public function setApplicationName($var) - { - GPBUtil::checkString($var, True); - $this->application_name = $var; - - return $this; - } - - /** - * Device-profile ID (UUID). - * - * Generated from protobuf field string device_profile_id = 5; - * @return string - */ - public function getDeviceProfileId() - { - return $this->device_profile_id; - } - - /** - * Device-profile ID (UUID). - * - * Generated from protobuf field string device_profile_id = 5; - * @param string $var - * @return $this - */ - public function setDeviceProfileId($var) - { - GPBUtil::checkString($var, True); - $this->device_profile_id = $var; - - return $this; - } - - /** - * Device-profile name. - * - * Generated from protobuf field string device_profile_name = 6; - * @return string - */ - public function getDeviceProfileName() - { - return $this->device_profile_name; - } - - /** - * Device-profile name. - * - * Generated from protobuf field string device_profile_name = 6; - * @param string $var - * @return $this - */ - public function setDeviceProfileName($var) - { - GPBUtil::checkString($var, True); - $this->device_profile_name = $var; - - return $this; - } - - /** - * Device name. - * - * Generated from protobuf field string device_name = 7; - * @return string - */ - public function getDeviceName() - { - return $this->device_name; - } - - /** - * Device name. - * - * Generated from protobuf field string device_name = 7; - * @param string $var - * @return $this - */ - public function setDeviceName($var) - { - GPBUtil::checkString($var, True); - $this->device_name = $var; - - return $this; - } - - /** - * Device EUI. - * - * Generated from protobuf field string dev_eui = 8; - * @return string - */ - public function getDevEui() - { - return $this->dev_eui; - } - - /** - * Device EUI. - * - * Generated from protobuf field string dev_eui = 8; - * @param string $var - * @return $this - */ - public function setDevEui($var) - { - GPBUtil::checkString($var, True); - $this->dev_eui = $var; - - return $this; - } - - /** - * Device class. - * - * Generated from protobuf field .common.DeviceClass device_class_enabled = 10; - * @return int - */ - public function getDeviceClassEnabled() - { - return $this->device_class_enabled; - } - - /** - * Device class. - * - * Generated from protobuf field .common.DeviceClass device_class_enabled = 10; - * @param int $var - * @return $this - */ - public function setDeviceClassEnabled($var) - { - GPBUtil::checkEnum($var, \Chirpstack\Common\DeviceClass::class); - $this->device_class_enabled = $var; - - return $this; - } - - /** - * Device-profile and device tags. - * - * Generated from protobuf field map tags = 9; - * @return \Google\Protobuf\Internal\MapField - */ - public function getTags() - { - return $this->tags; - } - - /** - * Device-profile and device tags. - * - * Generated from protobuf field map tags = 9; - * @param array|\Google\Protobuf\Internal\MapField $var - * @return $this - */ - public function setTags($var) - { - $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); - $this->tags = $arr; - - return $this; - } - -} - diff --git a/api/php/generated/Chirpstack/Integration/DownlinkCommand.php b/api/php/generated/Chirpstack/Integration/DownlinkCommand.php deleted file mode 100644 index a7266be7..00000000 --- a/api/php/generated/Chirpstack/Integration/DownlinkCommand.php +++ /dev/null @@ -1,260 +0,0 @@ -integration.DownlinkCommand - */ -class DownlinkCommand extends \Google\Protobuf\Internal\Message -{ - /** - * ID (UUID). - * If left blank, a random UUID will be generated. - * - * Generated from protobuf field string id = 1; - */ - protected $id = ''; - /** - * Device EUI (EUI64). - * - * Generated from protobuf field string dev_eui = 2; - */ - protected $dev_eui = ''; - /** - * Confirmed. - * - * Generated from protobuf field bool confirmed = 3; - */ - protected $confirmed = false; - /** - * FPort (must be > 0). - * - * Generated from protobuf field uint32 f_port = 4; - */ - protected $f_port = 0; - /** - * Data. - * Or use the json_object field when a codec has been configured. - * - * Generated from protobuf field bytes data = 5; - */ - protected $data = ''; - /** - * Only use this when a codec has been configured that can encode this - * object to bytes. - * - * Generated from protobuf field .google.protobuf.Struct object = 6; - */ - protected $object = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $id - * ID (UUID). - * If left blank, a random UUID will be generated. - * @type string $dev_eui - * Device EUI (EUI64). - * @type bool $confirmed - * Confirmed. - * @type int $f_port - * FPort (must be > 0). - * @type string $data - * Data. - * Or use the json_object field when a codec has been configured. - * @type \Google\Protobuf\Struct $object - * Only use this when a codec has been configured that can encode this - * object to bytes. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Chirpstack\Integration\Integration::initOnce(); - parent::__construct($data); - } - - /** - * ID (UUID). - * If left blank, a random UUID will be generated. - * - * Generated from protobuf field string id = 1; - * @return string - */ - public function getId() - { - return $this->id; - } - - /** - * ID (UUID). - * If left blank, a random UUID will be generated. - * - * Generated from protobuf field string id = 1; - * @param string $var - * @return $this - */ - public function setId($var) - { - GPBUtil::checkString($var, True); - $this->id = $var; - - return $this; - } - - /** - * Device EUI (EUI64). - * - * Generated from protobuf field string dev_eui = 2; - * @return string - */ - public function getDevEui() - { - return $this->dev_eui; - } - - /** - * Device EUI (EUI64). - * - * Generated from protobuf field string dev_eui = 2; - * @param string $var - * @return $this - */ - public function setDevEui($var) - { - GPBUtil::checkString($var, True); - $this->dev_eui = $var; - - return $this; - } - - /** - * Confirmed. - * - * Generated from protobuf field bool confirmed = 3; - * @return bool - */ - public function getConfirmed() - { - return $this->confirmed; - } - - /** - * Confirmed. - * - * Generated from protobuf field bool confirmed = 3; - * @param bool $var - * @return $this - */ - public function setConfirmed($var) - { - GPBUtil::checkBool($var); - $this->confirmed = $var; - - return $this; - } - - /** - * FPort (must be > 0). - * - * Generated from protobuf field uint32 f_port = 4; - * @return int - */ - public function getFPort() - { - return $this->f_port; - } - - /** - * FPort (must be > 0). - * - * Generated from protobuf field uint32 f_port = 4; - * @param int $var - * @return $this - */ - public function setFPort($var) - { - GPBUtil::checkUint32($var); - $this->f_port = $var; - - return $this; - } - - /** - * Data. - * Or use the json_object field when a codec has been configured. - * - * Generated from protobuf field bytes data = 5; - * @return string - */ - public function getData() - { - return $this->data; - } - - /** - * Data. - * Or use the json_object field when a codec has been configured. - * - * Generated from protobuf field bytes data = 5; - * @param string $var - * @return $this - */ - public function setData($var) - { - GPBUtil::checkString($var, False); - $this->data = $var; - - return $this; - } - - /** - * Only use this when a codec has been configured that can encode this - * object to bytes. - * - * Generated from protobuf field .google.protobuf.Struct object = 6; - * @return \Google\Protobuf\Struct|null - */ - public function getObject() - { - return $this->object; - } - - public function hasObject() - { - return isset($this->object); - } - - public function clearObject() - { - unset($this->object); - } - - /** - * Only use this when a codec has been configured that can encode this - * object to bytes. - * - * Generated from protobuf field .google.protobuf.Struct object = 6; - * @param \Google\Protobuf\Struct $var - * @return $this - */ - public function setObject($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Struct::class); - $this->object = $var; - - return $this; - } - -} - diff --git a/api/php/generated/Chirpstack/Integration/IntegrationEvent.php b/api/php/generated/Chirpstack/Integration/IntegrationEvent.php deleted file mode 100644 index 1d26fed6..00000000 --- a/api/php/generated/Chirpstack/Integration/IntegrationEvent.php +++ /dev/null @@ -1,269 +0,0 @@ -integration.IntegrationEvent - */ -class IntegrationEvent extends \Google\Protobuf\Internal\Message -{ - /** - * Deduplication ID (UUID). - * - * Generated from protobuf field string deduplication_id = 1; - */ - protected $deduplication_id = ''; - /** - * Timestamp. - * - * Generated from protobuf field .google.protobuf.Timestamp time = 2; - */ - protected $time = null; - /** - * Device info. - * - * Generated from protobuf field .integration.DeviceInfo device_info = 3; - */ - protected $device_info = null; - /** - * Integration name. - * - * Generated from protobuf field string integration_name = 4; - */ - protected $integration_name = ''; - /** - * Event type. - * - * Generated from protobuf field string event_type = 5; - */ - protected $event_type = ''; - /** - * Struct containing the event object. - * - * Generated from protobuf field .google.protobuf.Struct object = 6; - */ - protected $object = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $deduplication_id - * Deduplication ID (UUID). - * @type \Google\Protobuf\Timestamp $time - * Timestamp. - * @type \Chirpstack\Integration\DeviceInfo $device_info - * Device info. - * @type string $integration_name - * Integration name. - * @type string $event_type - * Event type. - * @type \Google\Protobuf\Struct $object - * Struct containing the event object. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Chirpstack\Integration\Integration::initOnce(); - parent::__construct($data); - } - - /** - * Deduplication ID (UUID). - * - * Generated from protobuf field string deduplication_id = 1; - * @return string - */ - public function getDeduplicationId() - { - return $this->deduplication_id; - } - - /** - * Deduplication ID (UUID). - * - * Generated from protobuf field string deduplication_id = 1; - * @param string $var - * @return $this - */ - public function setDeduplicationId($var) - { - GPBUtil::checkString($var, True); - $this->deduplication_id = $var; - - return $this; - } - - /** - * Timestamp. - * - * Generated from protobuf field .google.protobuf.Timestamp time = 2; - * @return \Google\Protobuf\Timestamp|null - */ - public function getTime() - { - return $this->time; - } - - public function hasTime() - { - return isset($this->time); - } - - public function clearTime() - { - unset($this->time); - } - - /** - * Timestamp. - * - * Generated from protobuf field .google.protobuf.Timestamp time = 2; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->time = $var; - - return $this; - } - - /** - * Device info. - * - * Generated from protobuf field .integration.DeviceInfo device_info = 3; - * @return \Chirpstack\Integration\DeviceInfo|null - */ - public function getDeviceInfo() - { - return $this->device_info; - } - - public function hasDeviceInfo() - { - return isset($this->device_info); - } - - public function clearDeviceInfo() - { - unset($this->device_info); - } - - /** - * Device info. - * - * Generated from protobuf field .integration.DeviceInfo device_info = 3; - * @param \Chirpstack\Integration\DeviceInfo $var - * @return $this - */ - public function setDeviceInfo($var) - { - GPBUtil::checkMessage($var, \Chirpstack\Integration\DeviceInfo::class); - $this->device_info = $var; - - return $this; - } - - /** - * Integration name. - * - * Generated from protobuf field string integration_name = 4; - * @return string - */ - public function getIntegrationName() - { - return $this->integration_name; - } - - /** - * Integration name. - * - * Generated from protobuf field string integration_name = 4; - * @param string $var - * @return $this - */ - public function setIntegrationName($var) - { - GPBUtil::checkString($var, True); - $this->integration_name = $var; - - return $this; - } - - /** - * Event type. - * - * Generated from protobuf field string event_type = 5; - * @return string - */ - public function getEventType() - { - return $this->event_type; - } - - /** - * Event type. - * - * Generated from protobuf field string event_type = 5; - * @param string $var - * @return $this - */ - public function setEventType($var) - { - GPBUtil::checkString($var, True); - $this->event_type = $var; - - return $this; - } - - /** - * Struct containing the event object. - * - * Generated from protobuf field .google.protobuf.Struct object = 6; - * @return \Google\Protobuf\Struct|null - */ - public function getObject() - { - return $this->object; - } - - public function hasObject() - { - return isset($this->object); - } - - public function clearObject() - { - unset($this->object); - } - - /** - * Struct containing the event object. - * - * Generated from protobuf field .google.protobuf.Struct object = 6; - * @param \Google\Protobuf\Struct $var - * @return $this - */ - public function setObject($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Struct::class); - $this->object = $var; - - return $this; - } - -} - diff --git a/api/php/generated/Chirpstack/Integration/JoinEvent.php b/api/php/generated/Chirpstack/Integration/JoinEvent.php deleted file mode 100644 index 195f1611..00000000 --- a/api/php/generated/Chirpstack/Integration/JoinEvent.php +++ /dev/null @@ -1,290 +0,0 @@ -integration.JoinEvent - */ -class JoinEvent extends \Google\Protobuf\Internal\Message -{ - /** - * Deduplication ID (UUID). - * - * Generated from protobuf field string deduplication_id = 1; - */ - protected $deduplication_id = ''; - /** - * Timestamp. - * - * Generated from protobuf field .google.protobuf.Timestamp time = 2; - */ - protected $time = null; - /** - * Device info. - * - * Generated from protobuf field .integration.DeviceInfo device_info = 3; - */ - protected $device_info = null; - /** - * Device address. - * - * Generated from protobuf field string dev_addr = 4; - */ - protected $dev_addr = ''; - /** - * Relay info. - * - * Generated from protobuf field .integration.UplinkRelayRxInfo relay_rx_info = 5; - */ - protected $relay_rx_info = null; - /** - * Join-Server context. - * A non-empty value indicatest that ChirpStack does not have access to - * the AppSKey and that the encryption / decryption of the payloads is - * the responsibility of the end-application. - * - * Generated from protobuf field .common.JoinServerContext join_server_context = 6; - */ - protected $join_server_context = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $deduplication_id - * Deduplication ID (UUID). - * @type \Google\Protobuf\Timestamp $time - * Timestamp. - * @type \Chirpstack\Integration\DeviceInfo $device_info - * Device info. - * @type string $dev_addr - * Device address. - * @type \Chirpstack\Integration\UplinkRelayRxInfo $relay_rx_info - * Relay info. - * @type \Chirpstack\Common\JoinServerContext $join_server_context - * Join-Server context. - * A non-empty value indicatest that ChirpStack does not have access to - * the AppSKey and that the encryption / decryption of the payloads is - * the responsibility of the end-application. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Chirpstack\Integration\Integration::initOnce(); - parent::__construct($data); - } - - /** - * Deduplication ID (UUID). - * - * Generated from protobuf field string deduplication_id = 1; - * @return string - */ - public function getDeduplicationId() - { - return $this->deduplication_id; - } - - /** - * Deduplication ID (UUID). - * - * Generated from protobuf field string deduplication_id = 1; - * @param string $var - * @return $this - */ - public function setDeduplicationId($var) - { - GPBUtil::checkString($var, True); - $this->deduplication_id = $var; - - return $this; - } - - /** - * Timestamp. - * - * Generated from protobuf field .google.protobuf.Timestamp time = 2; - * @return \Google\Protobuf\Timestamp|null - */ - public function getTime() - { - return $this->time; - } - - public function hasTime() - { - return isset($this->time); - } - - public function clearTime() - { - unset($this->time); - } - - /** - * Timestamp. - * - * Generated from protobuf field .google.protobuf.Timestamp time = 2; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->time = $var; - - return $this; - } - - /** - * Device info. - * - * Generated from protobuf field .integration.DeviceInfo device_info = 3; - * @return \Chirpstack\Integration\DeviceInfo|null - */ - public function getDeviceInfo() - { - return $this->device_info; - } - - public function hasDeviceInfo() - { - return isset($this->device_info); - } - - public function clearDeviceInfo() - { - unset($this->device_info); - } - - /** - * Device info. - * - * Generated from protobuf field .integration.DeviceInfo device_info = 3; - * @param \Chirpstack\Integration\DeviceInfo $var - * @return $this - */ - public function setDeviceInfo($var) - { - GPBUtil::checkMessage($var, \Chirpstack\Integration\DeviceInfo::class); - $this->device_info = $var; - - return $this; - } - - /** - * Device address. - * - * Generated from protobuf field string dev_addr = 4; - * @return string - */ - public function getDevAddr() - { - return $this->dev_addr; - } - - /** - * Device address. - * - * Generated from protobuf field string dev_addr = 4; - * @param string $var - * @return $this - */ - public function setDevAddr($var) - { - GPBUtil::checkString($var, True); - $this->dev_addr = $var; - - return $this; - } - - /** - * Relay info. - * - * Generated from protobuf field .integration.UplinkRelayRxInfo relay_rx_info = 5; - * @return \Chirpstack\Integration\UplinkRelayRxInfo|null - */ - public function getRelayRxInfo() - { - return $this->relay_rx_info; - } - - public function hasRelayRxInfo() - { - return isset($this->relay_rx_info); - } - - public function clearRelayRxInfo() - { - unset($this->relay_rx_info); - } - - /** - * Relay info. - * - * Generated from protobuf field .integration.UplinkRelayRxInfo relay_rx_info = 5; - * @param \Chirpstack\Integration\UplinkRelayRxInfo $var - * @return $this - */ - public function setRelayRxInfo($var) - { - GPBUtil::checkMessage($var, \Chirpstack\Integration\UplinkRelayRxInfo::class); - $this->relay_rx_info = $var; - - return $this; - } - - /** - * Join-Server context. - * A non-empty value indicatest that ChirpStack does not have access to - * the AppSKey and that the encryption / decryption of the payloads is - * the responsibility of the end-application. - * - * Generated from protobuf field .common.JoinServerContext join_server_context = 6; - * @return \Chirpstack\Common\JoinServerContext|null - */ - public function getJoinServerContext() - { - return $this->join_server_context; - } - - public function hasJoinServerContext() - { - return isset($this->join_server_context); - } - - public function clearJoinServerContext() - { - unset($this->join_server_context); - } - - /** - * Join-Server context. - * A non-empty value indicatest that ChirpStack does not have access to - * the AppSKey and that the encryption / decryption of the payloads is - * the responsibility of the end-application. - * - * Generated from protobuf field .common.JoinServerContext join_server_context = 6; - * @param \Chirpstack\Common\JoinServerContext $var - * @return $this - */ - public function setJoinServerContext($var) - { - GPBUtil::checkMessage($var, \Chirpstack\Common\JoinServerContext::class); - $this->join_server_context = $var; - - return $this; - } - -} - diff --git a/api/php/generated/Chirpstack/Integration/LocationEvent.php b/api/php/generated/Chirpstack/Integration/LocationEvent.php deleted file mode 100644 index ba97c76c..00000000 --- a/api/php/generated/Chirpstack/Integration/LocationEvent.php +++ /dev/null @@ -1,199 +0,0 @@ -integration.LocationEvent - */ -class LocationEvent extends \Google\Protobuf\Internal\Message -{ - /** - * Deduplication ID (UUID). - * - * Generated from protobuf field string deduplication_id = 1; - */ - protected $deduplication_id = ''; - /** - * Timestamp. - * - * Generated from protobuf field .google.protobuf.Timestamp time = 2; - */ - protected $time = null; - /** - * Device info. - * - * Generated from protobuf field .integration.DeviceInfo device_info = 3; - */ - protected $device_info = null; - /** - * Location. - * - * Generated from protobuf field .common.Location location = 4; - */ - protected $location = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $deduplication_id - * Deduplication ID (UUID). - * @type \Google\Protobuf\Timestamp $time - * Timestamp. - * @type \Chirpstack\Integration\DeviceInfo $device_info - * Device info. - * @type \Chirpstack\Common\Location $location - * Location. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Chirpstack\Integration\Integration::initOnce(); - parent::__construct($data); - } - - /** - * Deduplication ID (UUID). - * - * Generated from protobuf field string deduplication_id = 1; - * @return string - */ - public function getDeduplicationId() - { - return $this->deduplication_id; - } - - /** - * Deduplication ID (UUID). - * - * Generated from protobuf field string deduplication_id = 1; - * @param string $var - * @return $this - */ - public function setDeduplicationId($var) - { - GPBUtil::checkString($var, True); - $this->deduplication_id = $var; - - return $this; - } - - /** - * Timestamp. - * - * Generated from protobuf field .google.protobuf.Timestamp time = 2; - * @return \Google\Protobuf\Timestamp|null - */ - public function getTime() - { - return $this->time; - } - - public function hasTime() - { - return isset($this->time); - } - - public function clearTime() - { - unset($this->time); - } - - /** - * Timestamp. - * - * Generated from protobuf field .google.protobuf.Timestamp time = 2; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->time = $var; - - return $this; - } - - /** - * Device info. - * - * Generated from protobuf field .integration.DeviceInfo device_info = 3; - * @return \Chirpstack\Integration\DeviceInfo|null - */ - public function getDeviceInfo() - { - return $this->device_info; - } - - public function hasDeviceInfo() - { - return isset($this->device_info); - } - - public function clearDeviceInfo() - { - unset($this->device_info); - } - - /** - * Device info. - * - * Generated from protobuf field .integration.DeviceInfo device_info = 3; - * @param \Chirpstack\Integration\DeviceInfo $var - * @return $this - */ - public function setDeviceInfo($var) - { - GPBUtil::checkMessage($var, \Chirpstack\Integration\DeviceInfo::class); - $this->device_info = $var; - - return $this; - } - - /** - * Location. - * - * Generated from protobuf field .common.Location location = 4; - * @return \Chirpstack\Common\Location|null - */ - public function getLocation() - { - return $this->location; - } - - public function hasLocation() - { - return isset($this->location); - } - - public function clearLocation() - { - unset($this->location); - } - - /** - * Location. - * - * Generated from protobuf field .common.Location location = 4; - * @param \Chirpstack\Common\Location $var - * @return $this - */ - public function setLocation($var) - { - GPBUtil::checkMessage($var, \Chirpstack\Common\Location::class); - $this->location = $var; - - return $this; - } - -} - diff --git a/api/php/generated/Chirpstack/Integration/LogCode.php b/api/php/generated/Chirpstack/Integration/LogCode.php deleted file mode 100644 index f7a61c0d..00000000 --- a/api/php/generated/Chirpstack/Integration/LogCode.php +++ /dev/null @@ -1,116 +0,0 @@ -integration.LogCode - */ -class LogCode -{ - /** - * Unknown type. - * - * Generated from protobuf enum UNKNOWN = 0; - */ - const UNKNOWN = 0; - /** - * Error related to the downlink payload size. - * Usually seen when the payload exceeded the maximum allowed payload size. - * - * Generated from protobuf enum DOWNLINK_PAYLOAD_SIZE = 1; - */ - const DOWNLINK_PAYLOAD_SIZE = 1; - /** - * Uplink codec error. - * - * Generated from protobuf enum UPLINK_CODEC = 2; - */ - const UPLINK_CODEC = 2; - /** - * Downlink codec error. - * - * Generated from protobuf enum DOWNLINK_CODEC = 3; - */ - const DOWNLINK_CODEC = 3; - /** - * OTAA error. - * - * Generated from protobuf enum OTAA = 4; - */ - const OTAA = 4; - /** - * Uplink frame-counter was reset. - * - * Generated from protobuf enum UPLINK_F_CNT_RESET = 5; - */ - const UPLINK_F_CNT_RESET = 5; - /** - * Uplink MIC error. - * - * Generated from protobuf enum UPLINK_MIC = 6; - */ - const UPLINK_MIC = 6; - /** - * Uplink frame-counter retransmission. - * - * Generated from protobuf enum UPLINK_F_CNT_RETRANSMISSION = 7; - */ - const UPLINK_F_CNT_RETRANSMISSION = 7; - /** - * Downlink gateway error. - * - * Generated from protobuf enum DOWNLINK_GATEWAY = 8; - */ - const DOWNLINK_GATEWAY = 8; - /** - * Relay new end-device. - * - * Generated from protobuf enum RELAY_NEW_END_DEVICE = 9; - */ - const RELAY_NEW_END_DEVICE = 9; - /** - * Downlink frame-counter. - * - * Generated from protobuf enum F_CNT_DOWN = 10; - */ - const F_CNT_DOWN = 10; - - private static $valueToName = [ - self::UNKNOWN => 'UNKNOWN', - self::DOWNLINK_PAYLOAD_SIZE => 'DOWNLINK_PAYLOAD_SIZE', - self::UPLINK_CODEC => 'UPLINK_CODEC', - self::DOWNLINK_CODEC => 'DOWNLINK_CODEC', - self::OTAA => 'OTAA', - self::UPLINK_F_CNT_RESET => 'UPLINK_F_CNT_RESET', - self::UPLINK_MIC => 'UPLINK_MIC', - self::UPLINK_F_CNT_RETRANSMISSION => 'UPLINK_F_CNT_RETRANSMISSION', - self::DOWNLINK_GATEWAY => 'DOWNLINK_GATEWAY', - self::RELAY_NEW_END_DEVICE => 'RELAY_NEW_END_DEVICE', - self::F_CNT_DOWN => 'F_CNT_DOWN', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - diff --git a/api/php/generated/Chirpstack/Integration/LogEvent.php b/api/php/generated/Chirpstack/Integration/LogEvent.php deleted file mode 100644 index ce3f5630..00000000 --- a/api/php/generated/Chirpstack/Integration/LogEvent.php +++ /dev/null @@ -1,257 +0,0 @@ -integration.LogEvent - */ -class LogEvent extends \Google\Protobuf\Internal\Message -{ - /** - * Timestamp. - * - * Generated from protobuf field .google.protobuf.Timestamp time = 1; - */ - protected $time = null; - /** - * Device info. - * - * Generated from protobuf field .integration.DeviceInfo device_info = 2; - */ - protected $device_info = null; - /** - * Log level. - * - * Generated from protobuf field .integration.LogLevel level = 3; - */ - protected $level = 0; - /** - * Log code. - * - * Generated from protobuf field .integration.LogCode code = 4; - */ - protected $code = 0; - /** - * Description message. - * - * Generated from protobuf field string description = 5; - */ - protected $description = ''; - /** - * Context map. - * - * Generated from protobuf field map context = 6; - */ - private $context; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Protobuf\Timestamp $time - * Timestamp. - * @type \Chirpstack\Integration\DeviceInfo $device_info - * Device info. - * @type int $level - * Log level. - * @type int $code - * Log code. - * @type string $description - * Description message. - * @type array|\Google\Protobuf\Internal\MapField $context - * Context map. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Chirpstack\Integration\Integration::initOnce(); - parent::__construct($data); - } - - /** - * Timestamp. - * - * Generated from protobuf field .google.protobuf.Timestamp time = 1; - * @return \Google\Protobuf\Timestamp|null - */ - public function getTime() - { - return $this->time; - } - - public function hasTime() - { - return isset($this->time); - } - - public function clearTime() - { - unset($this->time); - } - - /** - * Timestamp. - * - * Generated from protobuf field .google.protobuf.Timestamp time = 1; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->time = $var; - - return $this; - } - - /** - * Device info. - * - * Generated from protobuf field .integration.DeviceInfo device_info = 2; - * @return \Chirpstack\Integration\DeviceInfo|null - */ - public function getDeviceInfo() - { - return $this->device_info; - } - - public function hasDeviceInfo() - { - return isset($this->device_info); - } - - public function clearDeviceInfo() - { - unset($this->device_info); - } - - /** - * Device info. - * - * Generated from protobuf field .integration.DeviceInfo device_info = 2; - * @param \Chirpstack\Integration\DeviceInfo $var - * @return $this - */ - public function setDeviceInfo($var) - { - GPBUtil::checkMessage($var, \Chirpstack\Integration\DeviceInfo::class); - $this->device_info = $var; - - return $this; - } - - /** - * Log level. - * - * Generated from protobuf field .integration.LogLevel level = 3; - * @return int - */ - public function getLevel() - { - return $this->level; - } - - /** - * Log level. - * - * Generated from protobuf field .integration.LogLevel level = 3; - * @param int $var - * @return $this - */ - public function setLevel($var) - { - GPBUtil::checkEnum($var, \Chirpstack\Integration\LogLevel::class); - $this->level = $var; - - return $this; - } - - /** - * Log code. - * - * Generated from protobuf field .integration.LogCode code = 4; - * @return int - */ - public function getCode() - { - return $this->code; - } - - /** - * Log code. - * - * Generated from protobuf field .integration.LogCode code = 4; - * @param int $var - * @return $this - */ - public function setCode($var) - { - GPBUtil::checkEnum($var, \Chirpstack\Integration\LogCode::class); - $this->code = $var; - - return $this; - } - - /** - * Description message. - * - * Generated from protobuf field string description = 5; - * @return string - */ - public function getDescription() - { - return $this->description; - } - - /** - * Description message. - * - * Generated from protobuf field string description = 5; - * @param string $var - * @return $this - */ - public function setDescription($var) - { - GPBUtil::checkString($var, True); - $this->description = $var; - - return $this; - } - - /** - * Context map. - * - * Generated from protobuf field map context = 6; - * @return \Google\Protobuf\Internal\MapField - */ - public function getContext() - { - return $this->context; - } - - /** - * Context map. - * - * Generated from protobuf field map context = 6; - * @param array|\Google\Protobuf\Internal\MapField $var - * @return $this - */ - public function setContext($var) - { - $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); - $this->context = $arr; - - return $this; - } - -} - diff --git a/api/php/generated/Chirpstack/Integration/LogLevel.php b/api/php/generated/Chirpstack/Integration/LogLevel.php deleted file mode 100644 index 4d165529..00000000 --- a/api/php/generated/Chirpstack/Integration/LogLevel.php +++ /dev/null @@ -1,59 +0,0 @@ -integration.LogLevel - */ -class LogLevel -{ - /** - * Info. - * - * Generated from protobuf enum INFO = 0; - */ - const INFO = 0; - /** - * Warning. - * - * Generated from protobuf enum WARNING = 1; - */ - const WARNING = 1; - /** - * Error. - * - * Generated from protobuf enum ERROR = 2; - */ - const ERROR = 2; - - private static $valueToName = [ - self::INFO => 'INFO', - self::WARNING => 'WARNING', - self::ERROR => 'ERROR', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - diff --git a/api/php/generated/Chirpstack/Integration/StatusEvent.php b/api/php/generated/Chirpstack/Integration/StatusEvent.php deleted file mode 100644 index e750c4be..00000000 --- a/api/php/generated/Chirpstack/Integration/StatusEvent.php +++ /dev/null @@ -1,296 +0,0 @@ -integration.StatusEvent - */ -class StatusEvent extends \Google\Protobuf\Internal\Message -{ - /** - * Deduplication ID (UUID). - * - * Generated from protobuf field string deduplication_id = 1; - */ - protected $deduplication_id = ''; - /** - * Timestamp. - * - * Generated from protobuf field .google.protobuf.Timestamp time = 2; - */ - protected $time = null; - /** - * Device info. - * - * Generated from protobuf field .integration.DeviceInfo device_info = 3; - */ - protected $device_info = null; - /** - * The demodulation signal-to-noise ratio in dB for the last successfully - * received device-status request by the Network Server. - * - * Generated from protobuf field int32 margin = 5; - */ - protected $margin = 0; - /** - * Device is connected to an external power source. - * - * Generated from protobuf field bool external_power_source = 6; - */ - protected $external_power_source = false; - /** - * Battery level is not available. - * - * Generated from protobuf field bool battery_level_unavailable = 7; - */ - protected $battery_level_unavailable = false; - /** - * Battery level. - * - * Generated from protobuf field float battery_level = 8; - */ - protected $battery_level = 0.0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $deduplication_id - * Deduplication ID (UUID). - * @type \Google\Protobuf\Timestamp $time - * Timestamp. - * @type \Chirpstack\Integration\DeviceInfo $device_info - * Device info. - * @type int $margin - * The demodulation signal-to-noise ratio in dB for the last successfully - * received device-status request by the Network Server. - * @type bool $external_power_source - * Device is connected to an external power source. - * @type bool $battery_level_unavailable - * Battery level is not available. - * @type float $battery_level - * Battery level. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Chirpstack\Integration\Integration::initOnce(); - parent::__construct($data); - } - - /** - * Deduplication ID (UUID). - * - * Generated from protobuf field string deduplication_id = 1; - * @return string - */ - public function getDeduplicationId() - { - return $this->deduplication_id; - } - - /** - * Deduplication ID (UUID). - * - * Generated from protobuf field string deduplication_id = 1; - * @param string $var - * @return $this - */ - public function setDeduplicationId($var) - { - GPBUtil::checkString($var, True); - $this->deduplication_id = $var; - - return $this; - } - - /** - * Timestamp. - * - * Generated from protobuf field .google.protobuf.Timestamp time = 2; - * @return \Google\Protobuf\Timestamp|null - */ - public function getTime() - { - return $this->time; - } - - public function hasTime() - { - return isset($this->time); - } - - public function clearTime() - { - unset($this->time); - } - - /** - * Timestamp. - * - * Generated from protobuf field .google.protobuf.Timestamp time = 2; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->time = $var; - - return $this; - } - - /** - * Device info. - * - * Generated from protobuf field .integration.DeviceInfo device_info = 3; - * @return \Chirpstack\Integration\DeviceInfo|null - */ - public function getDeviceInfo() - { - return $this->device_info; - } - - public function hasDeviceInfo() - { - return isset($this->device_info); - } - - public function clearDeviceInfo() - { - unset($this->device_info); - } - - /** - * Device info. - * - * Generated from protobuf field .integration.DeviceInfo device_info = 3; - * @param \Chirpstack\Integration\DeviceInfo $var - * @return $this - */ - public function setDeviceInfo($var) - { - GPBUtil::checkMessage($var, \Chirpstack\Integration\DeviceInfo::class); - $this->device_info = $var; - - return $this; - } - - /** - * The demodulation signal-to-noise ratio in dB for the last successfully - * received device-status request by the Network Server. - * - * Generated from protobuf field int32 margin = 5; - * @return int - */ - public function getMargin() - { - return $this->margin; - } - - /** - * The demodulation signal-to-noise ratio in dB for the last successfully - * received device-status request by the Network Server. - * - * Generated from protobuf field int32 margin = 5; - * @param int $var - * @return $this - */ - public function setMargin($var) - { - GPBUtil::checkInt32($var); - $this->margin = $var; - - return $this; - } - - /** - * Device is connected to an external power source. - * - * Generated from protobuf field bool external_power_source = 6; - * @return bool - */ - public function getExternalPowerSource() - { - return $this->external_power_source; - } - - /** - * Device is connected to an external power source. - * - * Generated from protobuf field bool external_power_source = 6; - * @param bool $var - * @return $this - */ - public function setExternalPowerSource($var) - { - GPBUtil::checkBool($var); - $this->external_power_source = $var; - - return $this; - } - - /** - * Battery level is not available. - * - * Generated from protobuf field bool battery_level_unavailable = 7; - * @return bool - */ - public function getBatteryLevelUnavailable() - { - return $this->battery_level_unavailable; - } - - /** - * Battery level is not available. - * - * Generated from protobuf field bool battery_level_unavailable = 7; - * @param bool $var - * @return $this - */ - public function setBatteryLevelUnavailable($var) - { - GPBUtil::checkBool($var); - $this->battery_level_unavailable = $var; - - return $this; - } - - /** - * Battery level. - * - * Generated from protobuf field float battery_level = 8; - * @return float - */ - public function getBatteryLevel() - { - return $this->battery_level; - } - - /** - * Battery level. - * - * Generated from protobuf field float battery_level = 8; - * @param float $var - * @return $this - */ - public function setBatteryLevel($var) - { - GPBUtil::checkFloat($var); - $this->battery_level = $var; - - return $this; - } - -} - diff --git a/api/php/generated/Chirpstack/Integration/TxAckEvent.php b/api/php/generated/Chirpstack/Integration/TxAckEvent.php deleted file mode 100644 index 017f52e3..00000000 --- a/api/php/generated/Chirpstack/Integration/TxAckEvent.php +++ /dev/null @@ -1,303 +0,0 @@ -integration.TxAckEvent - */ -class TxAckEvent extends \Google\Protobuf\Internal\Message -{ - /** - * Downlink ID. - * - * Generated from protobuf field uint32 downlink_id = 1; - */ - protected $downlink_id = 0; - /** - * Timestamp. - * - * Generated from protobuf field .google.protobuf.Timestamp time = 2; - */ - protected $time = null; - /** - * Device info. - * - * Generated from protobuf field .integration.DeviceInfo device_info = 3; - */ - protected $device_info = null; - /** - * Downlink queue item ID (UUID). - * - * Generated from protobuf field string queue_item_id = 4; - */ - protected $queue_item_id = ''; - /** - * Downlink frame-counter. - * - * Generated from protobuf field uint32 f_cnt_down = 5; - */ - protected $f_cnt_down = 0; - /** - * Gateway ID. - * - * Generated from protobuf field string gateway_id = 6; - */ - protected $gateway_id = ''; - /** - * TX info. - * - * Generated from protobuf field .gw.DownlinkTxInfo tx_info = 7; - */ - protected $tx_info = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $downlink_id - * Downlink ID. - * @type \Google\Protobuf\Timestamp $time - * Timestamp. - * @type \Chirpstack\Integration\DeviceInfo $device_info - * Device info. - * @type string $queue_item_id - * Downlink queue item ID (UUID). - * @type int $f_cnt_down - * Downlink frame-counter. - * @type string $gateway_id - * Gateway ID. - * @type \Chirpstack\Gateway\DownlinkTxInfo $tx_info - * TX info. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Chirpstack\Integration\Integration::initOnce(); - parent::__construct($data); - } - - /** - * Downlink ID. - * - * Generated from protobuf field uint32 downlink_id = 1; - * @return int - */ - public function getDownlinkId() - { - return $this->downlink_id; - } - - /** - * Downlink ID. - * - * Generated from protobuf field uint32 downlink_id = 1; - * @param int $var - * @return $this - */ - public function setDownlinkId($var) - { - GPBUtil::checkUint32($var); - $this->downlink_id = $var; - - return $this; - } - - /** - * Timestamp. - * - * Generated from protobuf field .google.protobuf.Timestamp time = 2; - * @return \Google\Protobuf\Timestamp|null - */ - public function getTime() - { - return $this->time; - } - - public function hasTime() - { - return isset($this->time); - } - - public function clearTime() - { - unset($this->time); - } - - /** - * Timestamp. - * - * Generated from protobuf field .google.protobuf.Timestamp time = 2; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->time = $var; - - return $this; - } - - /** - * Device info. - * - * Generated from protobuf field .integration.DeviceInfo device_info = 3; - * @return \Chirpstack\Integration\DeviceInfo|null - */ - public function getDeviceInfo() - { - return $this->device_info; - } - - public function hasDeviceInfo() - { - return isset($this->device_info); - } - - public function clearDeviceInfo() - { - unset($this->device_info); - } - - /** - * Device info. - * - * Generated from protobuf field .integration.DeviceInfo device_info = 3; - * @param \Chirpstack\Integration\DeviceInfo $var - * @return $this - */ - public function setDeviceInfo($var) - { - GPBUtil::checkMessage($var, \Chirpstack\Integration\DeviceInfo::class); - $this->device_info = $var; - - return $this; - } - - /** - * Downlink queue item ID (UUID). - * - * Generated from protobuf field string queue_item_id = 4; - * @return string - */ - public function getQueueItemId() - { - return $this->queue_item_id; - } - - /** - * Downlink queue item ID (UUID). - * - * Generated from protobuf field string queue_item_id = 4; - * @param string $var - * @return $this - */ - public function setQueueItemId($var) - { - GPBUtil::checkString($var, True); - $this->queue_item_id = $var; - - return $this; - } - - /** - * Downlink frame-counter. - * - * Generated from protobuf field uint32 f_cnt_down = 5; - * @return int - */ - public function getFCntDown() - { - return $this->f_cnt_down; - } - - /** - * Downlink frame-counter. - * - * Generated from protobuf field uint32 f_cnt_down = 5; - * @param int $var - * @return $this - */ - public function setFCntDown($var) - { - GPBUtil::checkUint32($var); - $this->f_cnt_down = $var; - - return $this; - } - - /** - * Gateway ID. - * - * Generated from protobuf field string gateway_id = 6; - * @return string - */ - public function getGatewayId() - { - return $this->gateway_id; - } - - /** - * Gateway ID. - * - * Generated from protobuf field string gateway_id = 6; - * @param string $var - * @return $this - */ - public function setGatewayId($var) - { - GPBUtil::checkString($var, True); - $this->gateway_id = $var; - - return $this; - } - - /** - * TX info. - * - * Generated from protobuf field .gw.DownlinkTxInfo tx_info = 7; - * @return \Chirpstack\Gateway\DownlinkTxInfo|null - */ - public function getTxInfo() - { - return $this->tx_info; - } - - public function hasTxInfo() - { - return isset($this->tx_info); - } - - public function clearTxInfo() - { - unset($this->tx_info); - } - - /** - * TX info. - * - * Generated from protobuf field .gw.DownlinkTxInfo tx_info = 7; - * @param \Chirpstack\Gateway\DownlinkTxInfo $var - * @return $this - */ - public function setTxInfo($var) - { - GPBUtil::checkMessage($var, \Chirpstack\Gateway\DownlinkTxInfo::class); - $this->tx_info = $var; - - return $this; - } - -} - diff --git a/api/php/generated/Chirpstack/Integration/UplinkEvent.php b/api/php/generated/Chirpstack/Integration/UplinkEvent.php deleted file mode 100644 index 5d15f058..00000000 --- a/api/php/generated/Chirpstack/Integration/UplinkEvent.php +++ /dev/null @@ -1,619 +0,0 @@ -integration.UplinkEvent - */ -class UplinkEvent extends \Google\Protobuf\Internal\Message -{ - /** - * Deduplication ID (UUID). - * - * Generated from protobuf field string deduplication_id = 1; - */ - protected $deduplication_id = ''; - /** - * Timestamp. - * - * Generated from protobuf field .google.protobuf.Timestamp time = 2; - */ - protected $time = null; - /** - * Device information. - * - * Generated from protobuf field .integration.DeviceInfo device_info = 3; - */ - protected $device_info = null; - /** - * Device address. - * - * Generated from protobuf field string dev_addr = 4; - */ - protected $dev_addr = ''; - /** - * Device has ADR bit set. - * - * Generated from protobuf field bool adr = 5; - */ - protected $adr = false; - /** - * Data-rate. - * - * Generated from protobuf field uint32 dr = 6; - */ - protected $dr = 0; - /** - * Frame counter. - * - * Generated from protobuf field uint32 f_cnt = 7; - */ - protected $f_cnt = 0; - /** - * Frame port. - * - * Generated from protobuf field uint32 f_port = 8; - */ - protected $f_port = 0; - /** - * Uplink was of type confirmed. - * - * Generated from protobuf field bool confirmed = 9; - */ - protected $confirmed = false; - /** - * FRMPayload data. - * - * Generated from protobuf field bytes data = 10; - */ - protected $data = ''; - /** - * Note that this is only set when a codec is configured in the Device - * Profile. - * - * Generated from protobuf field .google.protobuf.Struct object = 11; - */ - protected $object = null; - /** - * Receiving gateway RX info. - * - * Generated from protobuf field repeated .gw.UplinkRxInfo rx_info = 12; - */ - private $rx_info; - /** - * TX info. - * - * Generated from protobuf field .gw.UplinkTxInfo tx_info = 13; - */ - protected $tx_info = null; - /** - * Relay info. - * - * Generated from protobuf field .integration.UplinkRelayRxInfo relay_rx_info = 14; - */ - protected $relay_rx_info = null; - /** - * Join-Server context. - * A non-empty value indicatest that ChirpStack does not have access to - * the AppSKey and that the encryption / decryption of the payloads is - * the responsibility of the end-application. - * - * Generated from protobuf field .common.JoinServerContext join_server_context = 15; - */ - protected $join_server_context = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $deduplication_id - * Deduplication ID (UUID). - * @type \Google\Protobuf\Timestamp $time - * Timestamp. - * @type \Chirpstack\Integration\DeviceInfo $device_info - * Device information. - * @type string $dev_addr - * Device address. - * @type bool $adr - * Device has ADR bit set. - * @type int $dr - * Data-rate. - * @type int $f_cnt - * Frame counter. - * @type int $f_port - * Frame port. - * @type bool $confirmed - * Uplink was of type confirmed. - * @type string $data - * FRMPayload data. - * @type \Google\Protobuf\Struct $object - * Note that this is only set when a codec is configured in the Device - * Profile. - * @type array<\Chirpstack\Gateway\UplinkRxInfo>|\Google\Protobuf\Internal\RepeatedField $rx_info - * Receiving gateway RX info. - * @type \Chirpstack\Gateway\UplinkTxInfo $tx_info - * TX info. - * @type \Chirpstack\Integration\UplinkRelayRxInfo $relay_rx_info - * Relay info. - * @type \Chirpstack\Common\JoinServerContext $join_server_context - * Join-Server context. - * A non-empty value indicatest that ChirpStack does not have access to - * the AppSKey and that the encryption / decryption of the payloads is - * the responsibility of the end-application. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Chirpstack\Integration\Integration::initOnce(); - parent::__construct($data); - } - - /** - * Deduplication ID (UUID). - * - * Generated from protobuf field string deduplication_id = 1; - * @return string - */ - public function getDeduplicationId() - { - return $this->deduplication_id; - } - - /** - * Deduplication ID (UUID). - * - * Generated from protobuf field string deduplication_id = 1; - * @param string $var - * @return $this - */ - public function setDeduplicationId($var) - { - GPBUtil::checkString($var, True); - $this->deduplication_id = $var; - - return $this; - } - - /** - * Timestamp. - * - * Generated from protobuf field .google.protobuf.Timestamp time = 2; - * @return \Google\Protobuf\Timestamp|null - */ - public function getTime() - { - return $this->time; - } - - public function hasTime() - { - return isset($this->time); - } - - public function clearTime() - { - unset($this->time); - } - - /** - * Timestamp. - * - * Generated from protobuf field .google.protobuf.Timestamp time = 2; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->time = $var; - - return $this; - } - - /** - * Device information. - * - * Generated from protobuf field .integration.DeviceInfo device_info = 3; - * @return \Chirpstack\Integration\DeviceInfo|null - */ - public function getDeviceInfo() - { - return $this->device_info; - } - - public function hasDeviceInfo() - { - return isset($this->device_info); - } - - public function clearDeviceInfo() - { - unset($this->device_info); - } - - /** - * Device information. - * - * Generated from protobuf field .integration.DeviceInfo device_info = 3; - * @param \Chirpstack\Integration\DeviceInfo $var - * @return $this - */ - public function setDeviceInfo($var) - { - GPBUtil::checkMessage($var, \Chirpstack\Integration\DeviceInfo::class); - $this->device_info = $var; - - return $this; - } - - /** - * Device address. - * - * Generated from protobuf field string dev_addr = 4; - * @return string - */ - public function getDevAddr() - { - return $this->dev_addr; - } - - /** - * Device address. - * - * Generated from protobuf field string dev_addr = 4; - * @param string $var - * @return $this - */ - public function setDevAddr($var) - { - GPBUtil::checkString($var, True); - $this->dev_addr = $var; - - return $this; - } - - /** - * Device has ADR bit set. - * - * Generated from protobuf field bool adr = 5; - * @return bool - */ - public function getAdr() - { - return $this->adr; - } - - /** - * Device has ADR bit set. - * - * Generated from protobuf field bool adr = 5; - * @param bool $var - * @return $this - */ - public function setAdr($var) - { - GPBUtil::checkBool($var); - $this->adr = $var; - - return $this; - } - - /** - * Data-rate. - * - * Generated from protobuf field uint32 dr = 6; - * @return int - */ - public function getDr() - { - return $this->dr; - } - - /** - * Data-rate. - * - * Generated from protobuf field uint32 dr = 6; - * @param int $var - * @return $this - */ - public function setDr($var) - { - GPBUtil::checkUint32($var); - $this->dr = $var; - - return $this; - } - - /** - * Frame counter. - * - * Generated from protobuf field uint32 f_cnt = 7; - * @return int - */ - public function getFCnt() - { - return $this->f_cnt; - } - - /** - * Frame counter. - * - * Generated from protobuf field uint32 f_cnt = 7; - * @param int $var - * @return $this - */ - public function setFCnt($var) - { - GPBUtil::checkUint32($var); - $this->f_cnt = $var; - - return $this; - } - - /** - * Frame port. - * - * Generated from protobuf field uint32 f_port = 8; - * @return int - */ - public function getFPort() - { - return $this->f_port; - } - - /** - * Frame port. - * - * Generated from protobuf field uint32 f_port = 8; - * @param int $var - * @return $this - */ - public function setFPort($var) - { - GPBUtil::checkUint32($var); - $this->f_port = $var; - - return $this; - } - - /** - * Uplink was of type confirmed. - * - * Generated from protobuf field bool confirmed = 9; - * @return bool - */ - public function getConfirmed() - { - return $this->confirmed; - } - - /** - * Uplink was of type confirmed. - * - * Generated from protobuf field bool confirmed = 9; - * @param bool $var - * @return $this - */ - public function setConfirmed($var) - { - GPBUtil::checkBool($var); - $this->confirmed = $var; - - return $this; - } - - /** - * FRMPayload data. - * - * Generated from protobuf field bytes data = 10; - * @return string - */ - public function getData() - { - return $this->data; - } - - /** - * FRMPayload data. - * - * Generated from protobuf field bytes data = 10; - * @param string $var - * @return $this - */ - public function setData($var) - { - GPBUtil::checkString($var, False); - $this->data = $var; - - return $this; - } - - /** - * Note that this is only set when a codec is configured in the Device - * Profile. - * - * Generated from protobuf field .google.protobuf.Struct object = 11; - * @return \Google\Protobuf\Struct|null - */ - public function getObject() - { - return $this->object; - } - - public function hasObject() - { - return isset($this->object); - } - - public function clearObject() - { - unset($this->object); - } - - /** - * Note that this is only set when a codec is configured in the Device - * Profile. - * - * Generated from protobuf field .google.protobuf.Struct object = 11; - * @param \Google\Protobuf\Struct $var - * @return $this - */ - public function setObject($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Struct::class); - $this->object = $var; - - return $this; - } - - /** - * Receiving gateway RX info. - * - * Generated from protobuf field repeated .gw.UplinkRxInfo rx_info = 12; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getRxInfo() - { - return $this->rx_info; - } - - /** - * Receiving gateway RX info. - * - * Generated from protobuf field repeated .gw.UplinkRxInfo rx_info = 12; - * @param array<\Chirpstack\Gateway\UplinkRxInfo>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setRxInfo($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Chirpstack\Gateway\UplinkRxInfo::class); - $this->rx_info = $arr; - - return $this; - } - - /** - * TX info. - * - * Generated from protobuf field .gw.UplinkTxInfo tx_info = 13; - * @return \Chirpstack\Gateway\UplinkTxInfo|null - */ - public function getTxInfo() - { - return $this->tx_info; - } - - public function hasTxInfo() - { - return isset($this->tx_info); - } - - public function clearTxInfo() - { - unset($this->tx_info); - } - - /** - * TX info. - * - * Generated from protobuf field .gw.UplinkTxInfo tx_info = 13; - * @param \Chirpstack\Gateway\UplinkTxInfo $var - * @return $this - */ - public function setTxInfo($var) - { - GPBUtil::checkMessage($var, \Chirpstack\Gateway\UplinkTxInfo::class); - $this->tx_info = $var; - - return $this; - } - - /** - * Relay info. - * - * Generated from protobuf field .integration.UplinkRelayRxInfo relay_rx_info = 14; - * @return \Chirpstack\Integration\UplinkRelayRxInfo|null - */ - public function getRelayRxInfo() - { - return $this->relay_rx_info; - } - - public function hasRelayRxInfo() - { - return isset($this->relay_rx_info); - } - - public function clearRelayRxInfo() - { - unset($this->relay_rx_info); - } - - /** - * Relay info. - * - * Generated from protobuf field .integration.UplinkRelayRxInfo relay_rx_info = 14; - * @param \Chirpstack\Integration\UplinkRelayRxInfo $var - * @return $this - */ - public function setRelayRxInfo($var) - { - GPBUtil::checkMessage($var, \Chirpstack\Integration\UplinkRelayRxInfo::class); - $this->relay_rx_info = $var; - - return $this; - } - - /** - * Join-Server context. - * A non-empty value indicatest that ChirpStack does not have access to - * the AppSKey and that the encryption / decryption of the payloads is - * the responsibility of the end-application. - * - * Generated from protobuf field .common.JoinServerContext join_server_context = 15; - * @return \Chirpstack\Common\JoinServerContext|null - */ - public function getJoinServerContext() - { - return $this->join_server_context; - } - - public function hasJoinServerContext() - { - return isset($this->join_server_context); - } - - public function clearJoinServerContext() - { - unset($this->join_server_context); - } - - /** - * Join-Server context. - * A non-empty value indicatest that ChirpStack does not have access to - * the AppSKey and that the encryption / decryption of the payloads is - * the responsibility of the end-application. - * - * Generated from protobuf field .common.JoinServerContext join_server_context = 15; - * @param \Chirpstack\Common\JoinServerContext $var - * @return $this - */ - public function setJoinServerContext($var) - { - GPBUtil::checkMessage($var, \Chirpstack\Common\JoinServerContext::class); - $this->join_server_context = $var; - - return $this; - } - -} - diff --git a/api/php/generated/Chirpstack/Integration/UplinkRelayRxInfo.php b/api/php/generated/Chirpstack/Integration/UplinkRelayRxInfo.php deleted file mode 100644 index 21385d8d..00000000 --- a/api/php/generated/Chirpstack/Integration/UplinkRelayRxInfo.php +++ /dev/null @@ -1,237 +0,0 @@ -integration.UplinkRelayRxInfo - */ -class UplinkRelayRxInfo extends \Google\Protobuf\Internal\Message -{ - /** - * Relay DevEUI. - * - * Generated from protobuf field string dev_eui = 1; - */ - protected $dev_eui = ''; - /** - * Frequency. - * - * Generated from protobuf field uint32 frequency = 2; - */ - protected $frequency = 0; - /** - * Data-rate. - * - * Generated from protobuf field uint32 dr = 3; - */ - protected $dr = 0; - /** - * SNR. - * - * Generated from protobuf field int32 snr = 4; - */ - protected $snr = 0; - /** - * RSSI. - * - * Generated from protobuf field int32 rssi = 5; - */ - protected $rssi = 0; - /** - * WOR channel. - * - * Generated from protobuf field uint32 wor_channel = 6; - */ - protected $wor_channel = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $dev_eui - * Relay DevEUI. - * @type int $frequency - * Frequency. - * @type int $dr - * Data-rate. - * @type int $snr - * SNR. - * @type int $rssi - * RSSI. - * @type int $wor_channel - * WOR channel. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Chirpstack\Integration\Integration::initOnce(); - parent::__construct($data); - } - - /** - * Relay DevEUI. - * - * Generated from protobuf field string dev_eui = 1; - * @return string - */ - public function getDevEui() - { - return $this->dev_eui; - } - - /** - * Relay DevEUI. - * - * Generated from protobuf field string dev_eui = 1; - * @param string $var - * @return $this - */ - public function setDevEui($var) - { - GPBUtil::checkString($var, True); - $this->dev_eui = $var; - - return $this; - } - - /** - * Frequency. - * - * Generated from protobuf field uint32 frequency = 2; - * @return int - */ - public function getFrequency() - { - return $this->frequency; - } - - /** - * Frequency. - * - * Generated from protobuf field uint32 frequency = 2; - * @param int $var - * @return $this - */ - public function setFrequency($var) - { - GPBUtil::checkUint32($var); - $this->frequency = $var; - - return $this; - } - - /** - * Data-rate. - * - * Generated from protobuf field uint32 dr = 3; - * @return int - */ - public function getDr() - { - return $this->dr; - } - - /** - * Data-rate. - * - * Generated from protobuf field uint32 dr = 3; - * @param int $var - * @return $this - */ - public function setDr($var) - { - GPBUtil::checkUint32($var); - $this->dr = $var; - - return $this; - } - - /** - * SNR. - * - * Generated from protobuf field int32 snr = 4; - * @return int - */ - public function getSnr() - { - return $this->snr; - } - - /** - * SNR. - * - * Generated from protobuf field int32 snr = 4; - * @param int $var - * @return $this - */ - public function setSnr($var) - { - GPBUtil::checkInt32($var); - $this->snr = $var; - - return $this; - } - - /** - * RSSI. - * - * Generated from protobuf field int32 rssi = 5; - * @return int - */ - public function getRssi() - { - return $this->rssi; - } - - /** - * RSSI. - * - * Generated from protobuf field int32 rssi = 5; - * @param int $var - * @return $this - */ - public function setRssi($var) - { - GPBUtil::checkInt32($var); - $this->rssi = $var; - - return $this; - } - - /** - * WOR channel. - * - * Generated from protobuf field uint32 wor_channel = 6; - * @return int - */ - public function getWorChannel() - { - return $this->wor_channel; - } - - /** - * WOR channel. - * - * Generated from protobuf field uint32 wor_channel = 6; - * @param int $var - * @return $this - */ - public function setWorChannel($var) - { - GPBUtil::checkUint32($var); - $this->wor_channel = $var; - - return $this; - } - -} - diff --git a/api/php/generated/Chirpstack/Stream/ApiRequestLog.php b/api/php/generated/Chirpstack/Stream/ApiRequestLog.php deleted file mode 100644 index 4ef3d70d..00000000 --- a/api/php/generated/Chirpstack/Stream/ApiRequestLog.php +++ /dev/null @@ -1,133 +0,0 @@ -stream.ApiRequestLog - */ -class ApiRequestLog extends \Google\Protobuf\Internal\Message -{ - /** - * API service name. - * - * Generated from protobuf field string service = 1; - */ - protected $service = ''; - /** - * API method name. - * - * Generated from protobuf field string method = 2; - */ - protected $method = ''; - /** - * Metadata. - * - * Generated from protobuf field map metadata = 3; - */ - private $metadata; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $service - * API service name. - * @type string $method - * API method name. - * @type array|\Google\Protobuf\Internal\MapField $metadata - * Metadata. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Chirpstack\Stream\ApiRequest::initOnce(); - parent::__construct($data); - } - - /** - * API service name. - * - * Generated from protobuf field string service = 1; - * @return string - */ - public function getService() - { - return $this->service; - } - - /** - * API service name. - * - * Generated from protobuf field string service = 1; - * @param string $var - * @return $this - */ - public function setService($var) - { - GPBUtil::checkString($var, True); - $this->service = $var; - - return $this; - } - - /** - * API method name. - * - * Generated from protobuf field string method = 2; - * @return string - */ - public function getMethod() - { - return $this->method; - } - - /** - * API method name. - * - * Generated from protobuf field string method = 2; - * @param string $var - * @return $this - */ - public function setMethod($var) - { - GPBUtil::checkString($var, True); - $this->method = $var; - - return $this; - } - - /** - * Metadata. - * - * Generated from protobuf field map metadata = 3; - * @return \Google\Protobuf\Internal\MapField - */ - public function getMetadata() - { - return $this->metadata; - } - - /** - * Metadata. - * - * Generated from protobuf field map metadata = 3; - * @param array|\Google\Protobuf\Internal\MapField $var - * @return $this - */ - public function setMetadata($var) - { - $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); - $this->metadata = $arr; - - return $this; - } - -} - diff --git a/api/php/generated/Chirpstack/Stream/BackendInterfacesRequest.php b/api/php/generated/Chirpstack/Stream/BackendInterfacesRequest.php deleted file mode 100644 index 887450c6..00000000 --- a/api/php/generated/Chirpstack/Stream/BackendInterfacesRequest.php +++ /dev/null @@ -1,347 +0,0 @@ -stream.BackendInterfacesRequest - */ -class BackendInterfacesRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Sender ID. - * - * Generated from protobuf field string sender_id = 1; - */ - protected $sender_id = ''; - /** - * Receiver ID. - * - * Generated from protobuf field string receiver_id = 2; - */ - protected $receiver_id = ''; - /** - * Timestamp. - * - * Generated from protobuf field .google.protobuf.Timestamp time = 3; - */ - protected $time = null; - /** - * Transaction ID. - * - * Generated from protobuf field uint32 transaction_id = 4; - */ - protected $transaction_id = 0; - /** - * Message-type. - * - * Generated from protobuf field string message_type = 5; - */ - protected $message_type = ''; - /** - * Result code. - * - * Generated from protobuf field string result_code = 6; - */ - protected $result_code = ''; - /** - * Request body. - * - * Generated from protobuf field string request_body = 7; - */ - protected $request_body = ''; - /** - * Request error. - * - * Generated from protobuf field string request_error = 8; - */ - protected $request_error = ''; - /** - * Response body. - * - * Generated from protobuf field string response_body = 9; - */ - protected $response_body = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $sender_id - * Sender ID. - * @type string $receiver_id - * Receiver ID. - * @type \Google\Protobuf\Timestamp $time - * Timestamp. - * @type int $transaction_id - * Transaction ID. - * @type string $message_type - * Message-type. - * @type string $result_code - * Result code. - * @type string $request_body - * Request body. - * @type string $request_error - * Request error. - * @type string $response_body - * Response body. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Chirpstack\Stream\BackendInterfaces::initOnce(); - parent::__construct($data); - } - - /** - * Sender ID. - * - * Generated from protobuf field string sender_id = 1; - * @return string - */ - public function getSenderId() - { - return $this->sender_id; - } - - /** - * Sender ID. - * - * Generated from protobuf field string sender_id = 1; - * @param string $var - * @return $this - */ - public function setSenderId($var) - { - GPBUtil::checkString($var, True); - $this->sender_id = $var; - - return $this; - } - - /** - * Receiver ID. - * - * Generated from protobuf field string receiver_id = 2; - * @return string - */ - public function getReceiverId() - { - return $this->receiver_id; - } - - /** - * Receiver ID. - * - * Generated from protobuf field string receiver_id = 2; - * @param string $var - * @return $this - */ - public function setReceiverId($var) - { - GPBUtil::checkString($var, True); - $this->receiver_id = $var; - - return $this; - } - - /** - * Timestamp. - * - * Generated from protobuf field .google.protobuf.Timestamp time = 3; - * @return \Google\Protobuf\Timestamp|null - */ - public function getTime() - { - return $this->time; - } - - public function hasTime() - { - return isset($this->time); - } - - public function clearTime() - { - unset($this->time); - } - - /** - * Timestamp. - * - * Generated from protobuf field .google.protobuf.Timestamp time = 3; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->time = $var; - - return $this; - } - - /** - * Transaction ID. - * - * Generated from protobuf field uint32 transaction_id = 4; - * @return int - */ - public function getTransactionId() - { - return $this->transaction_id; - } - - /** - * Transaction ID. - * - * Generated from protobuf field uint32 transaction_id = 4; - * @param int $var - * @return $this - */ - public function setTransactionId($var) - { - GPBUtil::checkUint32($var); - $this->transaction_id = $var; - - return $this; - } - - /** - * Message-type. - * - * Generated from protobuf field string message_type = 5; - * @return string - */ - public function getMessageType() - { - return $this->message_type; - } - - /** - * Message-type. - * - * Generated from protobuf field string message_type = 5; - * @param string $var - * @return $this - */ - public function setMessageType($var) - { - GPBUtil::checkString($var, True); - $this->message_type = $var; - - return $this; - } - - /** - * Result code. - * - * Generated from protobuf field string result_code = 6; - * @return string - */ - public function getResultCode() - { - return $this->result_code; - } - - /** - * Result code. - * - * Generated from protobuf field string result_code = 6; - * @param string $var - * @return $this - */ - public function setResultCode($var) - { - GPBUtil::checkString($var, True); - $this->result_code = $var; - - return $this; - } - - /** - * Request body. - * - * Generated from protobuf field string request_body = 7; - * @return string - */ - public function getRequestBody() - { - return $this->request_body; - } - - /** - * Request body. - * - * Generated from protobuf field string request_body = 7; - * @param string $var - * @return $this - */ - public function setRequestBody($var) - { - GPBUtil::checkString($var, True); - $this->request_body = $var; - - return $this; - } - - /** - * Request error. - * - * Generated from protobuf field string request_error = 8; - * @return string - */ - public function getRequestError() - { - return $this->request_error; - } - - /** - * Request error. - * - * Generated from protobuf field string request_error = 8; - * @param string $var - * @return $this - */ - public function setRequestError($var) - { - GPBUtil::checkString($var, True); - $this->request_error = $var; - - return $this; - } - - /** - * Response body. - * - * Generated from protobuf field string response_body = 9; - * @return string - */ - public function getResponseBody() - { - return $this->response_body; - } - - /** - * Response body. - * - * Generated from protobuf field string response_body = 9; - * @param string $var - * @return $this - */ - public function setResponseBody($var) - { - GPBUtil::checkString($var, True); - $this->response_body = $var; - - return $this; - } - -} - diff --git a/api/php/generated/Chirpstack/Stream/DownlinkFrameLog.php b/api/php/generated/Chirpstack/Stream/DownlinkFrameLog.php deleted file mode 100644 index 6a67a568..00000000 --- a/api/php/generated/Chirpstack/Stream/DownlinkFrameLog.php +++ /dev/null @@ -1,391 +0,0 @@ -stream.DownlinkFrameLog - */ -class DownlinkFrameLog extends \Google\Protobuf\Internal\Message -{ - /** - * Time. - * - * Generated from protobuf field .google.protobuf.Timestamp time = 1; - */ - protected $time = null; - /** - * PHYPayload. - * - * Generated from protobuf field bytes phy_payload = 2; - */ - protected $phy_payload = ''; - /** - * TX meta-data. - * - * Generated from protobuf field .gw.DownlinkTxInfo tx_info = 3; - */ - protected $tx_info = null; - /** - * Downlink ID. - * - * Generated from protobuf field uint32 downlink_id = 4; - */ - protected $downlink_id = 0; - /** - * Gateway ID (EUI64). - * - * Generated from protobuf field string gateway_id = 5; - */ - protected $gateway_id = ''; - /** - * Message type. - * - * Generated from protobuf field .common.MType m_type = 6; - */ - protected $m_type = 0; - /** - * Device address (optional). - * - * Generated from protobuf field string dev_addr = 7; - */ - protected $dev_addr = ''; - /** - * Device EUI (optional). - * - * Generated from protobuf field string dev_eui = 8; - */ - protected $dev_eui = ''; - /** - * Plaintext f_opts mac-commands. - * - * Generated from protobuf field bool plaintext_f_opts = 9; - */ - protected $plaintext_f_opts = false; - /** - * Plaintext frm_payload. - * - * Generated from protobuf field bool plaintext_frm_payload = 10; - */ - protected $plaintext_frm_payload = false; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Protobuf\Timestamp $time - * Time. - * @type string $phy_payload - * PHYPayload. - * @type \Chirpstack\Gateway\DownlinkTxInfo $tx_info - * TX meta-data. - * @type int $downlink_id - * Downlink ID. - * @type string $gateway_id - * Gateway ID (EUI64). - * @type int $m_type - * Message type. - * @type string $dev_addr - * Device address (optional). - * @type string $dev_eui - * Device EUI (optional). - * @type bool $plaintext_f_opts - * Plaintext f_opts mac-commands. - * @type bool $plaintext_frm_payload - * Plaintext frm_payload. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Chirpstack\Stream\Frame::initOnce(); - parent::__construct($data); - } - - /** - * Time. - * - * Generated from protobuf field .google.protobuf.Timestamp time = 1; - * @return \Google\Protobuf\Timestamp|null - */ - public function getTime() - { - return $this->time; - } - - public function hasTime() - { - return isset($this->time); - } - - public function clearTime() - { - unset($this->time); - } - - /** - * Time. - * - * Generated from protobuf field .google.protobuf.Timestamp time = 1; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->time = $var; - - return $this; - } - - /** - * PHYPayload. - * - * Generated from protobuf field bytes phy_payload = 2; - * @return string - */ - public function getPhyPayload() - { - return $this->phy_payload; - } - - /** - * PHYPayload. - * - * Generated from protobuf field bytes phy_payload = 2; - * @param string $var - * @return $this - */ - public function setPhyPayload($var) - { - GPBUtil::checkString($var, False); - $this->phy_payload = $var; - - return $this; - } - - /** - * TX meta-data. - * - * Generated from protobuf field .gw.DownlinkTxInfo tx_info = 3; - * @return \Chirpstack\Gateway\DownlinkTxInfo|null - */ - public function getTxInfo() - { - return $this->tx_info; - } - - public function hasTxInfo() - { - return isset($this->tx_info); - } - - public function clearTxInfo() - { - unset($this->tx_info); - } - - /** - * TX meta-data. - * - * Generated from protobuf field .gw.DownlinkTxInfo tx_info = 3; - * @param \Chirpstack\Gateway\DownlinkTxInfo $var - * @return $this - */ - public function setTxInfo($var) - { - GPBUtil::checkMessage($var, \Chirpstack\Gateway\DownlinkTxInfo::class); - $this->tx_info = $var; - - return $this; - } - - /** - * Downlink ID. - * - * Generated from protobuf field uint32 downlink_id = 4; - * @return int - */ - public function getDownlinkId() - { - return $this->downlink_id; - } - - /** - * Downlink ID. - * - * Generated from protobuf field uint32 downlink_id = 4; - * @param int $var - * @return $this - */ - public function setDownlinkId($var) - { - GPBUtil::checkUint32($var); - $this->downlink_id = $var; - - return $this; - } - - /** - * Gateway ID (EUI64). - * - * Generated from protobuf field string gateway_id = 5; - * @return string - */ - public function getGatewayId() - { - return $this->gateway_id; - } - - /** - * Gateway ID (EUI64). - * - * Generated from protobuf field string gateway_id = 5; - * @param string $var - * @return $this - */ - public function setGatewayId($var) - { - GPBUtil::checkString($var, True); - $this->gateway_id = $var; - - return $this; - } - - /** - * Message type. - * - * Generated from protobuf field .common.MType m_type = 6; - * @return int - */ - public function getMType() - { - return $this->m_type; - } - - /** - * Message type. - * - * Generated from protobuf field .common.MType m_type = 6; - * @param int $var - * @return $this - */ - public function setMType($var) - { - GPBUtil::checkEnum($var, \Chirpstack\Common\MType::class); - $this->m_type = $var; - - return $this; - } - - /** - * Device address (optional). - * - * Generated from protobuf field string dev_addr = 7; - * @return string - */ - public function getDevAddr() - { - return $this->dev_addr; - } - - /** - * Device address (optional). - * - * Generated from protobuf field string dev_addr = 7; - * @param string $var - * @return $this - */ - public function setDevAddr($var) - { - GPBUtil::checkString($var, True); - $this->dev_addr = $var; - - return $this; - } - - /** - * Device EUI (optional). - * - * Generated from protobuf field string dev_eui = 8; - * @return string - */ - public function getDevEui() - { - return $this->dev_eui; - } - - /** - * Device EUI (optional). - * - * Generated from protobuf field string dev_eui = 8; - * @param string $var - * @return $this - */ - public function setDevEui($var) - { - GPBUtil::checkString($var, True); - $this->dev_eui = $var; - - return $this; - } - - /** - * Plaintext f_opts mac-commands. - * - * Generated from protobuf field bool plaintext_f_opts = 9; - * @return bool - */ - public function getPlaintextFOpts() - { - return $this->plaintext_f_opts; - } - - /** - * Plaintext f_opts mac-commands. - * - * Generated from protobuf field bool plaintext_f_opts = 9; - * @param bool $var - * @return $this - */ - public function setPlaintextFOpts($var) - { - GPBUtil::checkBool($var); - $this->plaintext_f_opts = $var; - - return $this; - } - - /** - * Plaintext frm_payload. - * - * Generated from protobuf field bool plaintext_frm_payload = 10; - * @return bool - */ - public function getPlaintextFrmPayload() - { - return $this->plaintext_frm_payload; - } - - /** - * Plaintext frm_payload. - * - * Generated from protobuf field bool plaintext_frm_payload = 10; - * @param bool $var - * @return $this - */ - public function setPlaintextFrmPayload($var) - { - GPBUtil::checkBool($var); - $this->plaintext_frm_payload = $var; - - return $this; - } - -} - diff --git a/api/php/generated/Chirpstack/Stream/DownlinkMeta.php b/api/php/generated/Chirpstack/Stream/DownlinkMeta.php deleted file mode 100644 index 417f141e..00000000 --- a/api/php/generated/Chirpstack/Stream/DownlinkMeta.php +++ /dev/null @@ -1,313 +0,0 @@ -stream.DownlinkMeta - */ -class DownlinkMeta extends \Google\Protobuf\Internal\Message -{ - /** - * Device EUI (EUI64). - * - * Generated from protobuf field string dev_eui = 1; - */ - protected $dev_eui = ''; - /** - * Multicast Group ID (UUID). - * - * Generated from protobuf field string multicast_group_id = 2; - */ - protected $multicast_group_id = ''; - /** - * TX meta-data. - * - * Generated from protobuf field .gw.DownlinkTxInfo tx_info = 3; - */ - protected $tx_info = null; - /** - * PHYPayload byte count. - * - * Generated from protobuf field uint32 phy_payload_byte_count = 4; - */ - protected $phy_payload_byte_count = 0; - /** - * MAC-Command byte count. - * - * Generated from protobuf field uint32 mac_command_byte_count = 5; - */ - protected $mac_command_byte_count = 0; - /** - * Application payload byte count. - * - * Generated from protobuf field uint32 application_payload_byte_count = 6; - */ - protected $application_payload_byte_count = 0; - /** - * Message type. - * - * Generated from protobuf field .common.MType message_type = 7; - */ - protected $message_type = 0; - /** - * Gateway ID (EUI64). - * - * Generated from protobuf field string gateway_id = 8; - */ - protected $gateway_id = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $dev_eui - * Device EUI (EUI64). - * @type string $multicast_group_id - * Multicast Group ID (UUID). - * @type \Chirpstack\Gateway\DownlinkTxInfo $tx_info - * TX meta-data. - * @type int $phy_payload_byte_count - * PHYPayload byte count. - * @type int $mac_command_byte_count - * MAC-Command byte count. - * @type int $application_payload_byte_count - * Application payload byte count. - * @type int $message_type - * Message type. - * @type string $gateway_id - * Gateway ID (EUI64). - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Chirpstack\Stream\Meta::initOnce(); - parent::__construct($data); - } - - /** - * Device EUI (EUI64). - * - * Generated from protobuf field string dev_eui = 1; - * @return string - */ - public function getDevEui() - { - return $this->dev_eui; - } - - /** - * Device EUI (EUI64). - * - * Generated from protobuf field string dev_eui = 1; - * @param string $var - * @return $this - */ - public function setDevEui($var) - { - GPBUtil::checkString($var, True); - $this->dev_eui = $var; - - return $this; - } - - /** - * Multicast Group ID (UUID). - * - * Generated from protobuf field string multicast_group_id = 2; - * @return string - */ - public function getMulticastGroupId() - { - return $this->multicast_group_id; - } - - /** - * Multicast Group ID (UUID). - * - * Generated from protobuf field string multicast_group_id = 2; - * @param string $var - * @return $this - */ - public function setMulticastGroupId($var) - { - GPBUtil::checkString($var, True); - $this->multicast_group_id = $var; - - return $this; - } - - /** - * TX meta-data. - * - * Generated from protobuf field .gw.DownlinkTxInfo tx_info = 3; - * @return \Chirpstack\Gateway\DownlinkTxInfo|null - */ - public function getTxInfo() - { - return $this->tx_info; - } - - public function hasTxInfo() - { - return isset($this->tx_info); - } - - public function clearTxInfo() - { - unset($this->tx_info); - } - - /** - * TX meta-data. - * - * Generated from protobuf field .gw.DownlinkTxInfo tx_info = 3; - * @param \Chirpstack\Gateway\DownlinkTxInfo $var - * @return $this - */ - public function setTxInfo($var) - { - GPBUtil::checkMessage($var, \Chirpstack\Gateway\DownlinkTxInfo::class); - $this->tx_info = $var; - - return $this; - } - - /** - * PHYPayload byte count. - * - * Generated from protobuf field uint32 phy_payload_byte_count = 4; - * @return int - */ - public function getPhyPayloadByteCount() - { - return $this->phy_payload_byte_count; - } - - /** - * PHYPayload byte count. - * - * Generated from protobuf field uint32 phy_payload_byte_count = 4; - * @param int $var - * @return $this - */ - public function setPhyPayloadByteCount($var) - { - GPBUtil::checkUint32($var); - $this->phy_payload_byte_count = $var; - - return $this; - } - - /** - * MAC-Command byte count. - * - * Generated from protobuf field uint32 mac_command_byte_count = 5; - * @return int - */ - public function getMacCommandByteCount() - { - return $this->mac_command_byte_count; - } - - /** - * MAC-Command byte count. - * - * Generated from protobuf field uint32 mac_command_byte_count = 5; - * @param int $var - * @return $this - */ - public function setMacCommandByteCount($var) - { - GPBUtil::checkUint32($var); - $this->mac_command_byte_count = $var; - - return $this; - } - - /** - * Application payload byte count. - * - * Generated from protobuf field uint32 application_payload_byte_count = 6; - * @return int - */ - public function getApplicationPayloadByteCount() - { - return $this->application_payload_byte_count; - } - - /** - * Application payload byte count. - * - * Generated from protobuf field uint32 application_payload_byte_count = 6; - * @param int $var - * @return $this - */ - public function setApplicationPayloadByteCount($var) - { - GPBUtil::checkUint32($var); - $this->application_payload_byte_count = $var; - - return $this; - } - - /** - * Message type. - * - * Generated from protobuf field .common.MType message_type = 7; - * @return int - */ - public function getMessageType() - { - return $this->message_type; - } - - /** - * Message type. - * - * Generated from protobuf field .common.MType message_type = 7; - * @param int $var - * @return $this - */ - public function setMessageType($var) - { - GPBUtil::checkEnum($var, \Chirpstack\Common\MType::class); - $this->message_type = $var; - - return $this; - } - - /** - * Gateway ID (EUI64). - * - * Generated from protobuf field string gateway_id = 8; - * @return string - */ - public function getGatewayId() - { - return $this->gateway_id; - } - - /** - * Gateway ID (EUI64). - * - * Generated from protobuf field string gateway_id = 8; - * @param string $var - * @return $this - */ - public function setGatewayId($var) - { - GPBUtil::checkString($var, True); - $this->gateway_id = $var; - - return $this; - } - -} - diff --git a/api/php/generated/Chirpstack/Stream/UplinkFrameLog.php b/api/php/generated/Chirpstack/Stream/UplinkFrameLog.php deleted file mode 100644 index 28f3a743..00000000 --- a/api/php/generated/Chirpstack/Stream/UplinkFrameLog.php +++ /dev/null @@ -1,357 +0,0 @@ -stream.UplinkFrameLog - */ -class UplinkFrameLog extends \Google\Protobuf\Internal\Message -{ - /** - * PHYPayload. - * - * Generated from protobuf field bytes phy_payload = 1; - */ - protected $phy_payload = ''; - /** - * TX meta-data. - * - * Generated from protobuf field .gw.UplinkTxInfo tx_info = 2; - */ - protected $tx_info = null; - /** - * RX meta-data. - * - * Generated from protobuf field repeated .gw.UplinkRxInfo rx_info = 3; - */ - private $rx_info; - /** - * Message type. - * - * Generated from protobuf field .common.MType m_type = 4; - */ - protected $m_type = 0; - /** - * Device address (optional). - * - * Generated from protobuf field string dev_addr = 5; - */ - protected $dev_addr = ''; - /** - * Device EUI (optional). - * - * Generated from protobuf field string dev_eui = 6; - */ - protected $dev_eui = ''; - /** - * Time. - * - * Generated from protobuf field .google.protobuf.Timestamp time = 7; - */ - protected $time = null; - /** - * Plaintext f_opts mac-commands. - * - * Generated from protobuf field bool plaintext_f_opts = 8; - */ - protected $plaintext_f_opts = false; - /** - * Plaintext frm_payload. - * - * Generated from protobuf field bool plaintext_frm_payload = 9; - */ - protected $plaintext_frm_payload = false; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $phy_payload - * PHYPayload. - * @type \Chirpstack\Gateway\UplinkTxInfo $tx_info - * TX meta-data. - * @type array<\Chirpstack\Gateway\UplinkRxInfo>|\Google\Protobuf\Internal\RepeatedField $rx_info - * RX meta-data. - * @type int $m_type - * Message type. - * @type string $dev_addr - * Device address (optional). - * @type string $dev_eui - * Device EUI (optional). - * @type \Google\Protobuf\Timestamp $time - * Time. - * @type bool $plaintext_f_opts - * Plaintext f_opts mac-commands. - * @type bool $plaintext_frm_payload - * Plaintext frm_payload. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Chirpstack\Stream\Frame::initOnce(); - parent::__construct($data); - } - - /** - * PHYPayload. - * - * Generated from protobuf field bytes phy_payload = 1; - * @return string - */ - public function getPhyPayload() - { - return $this->phy_payload; - } - - /** - * PHYPayload. - * - * Generated from protobuf field bytes phy_payload = 1; - * @param string $var - * @return $this - */ - public function setPhyPayload($var) - { - GPBUtil::checkString($var, False); - $this->phy_payload = $var; - - return $this; - } - - /** - * TX meta-data. - * - * Generated from protobuf field .gw.UplinkTxInfo tx_info = 2; - * @return \Chirpstack\Gateway\UplinkTxInfo|null - */ - public function getTxInfo() - { - return $this->tx_info; - } - - public function hasTxInfo() - { - return isset($this->tx_info); - } - - public function clearTxInfo() - { - unset($this->tx_info); - } - - /** - * TX meta-data. - * - * Generated from protobuf field .gw.UplinkTxInfo tx_info = 2; - * @param \Chirpstack\Gateway\UplinkTxInfo $var - * @return $this - */ - public function setTxInfo($var) - { - GPBUtil::checkMessage($var, \Chirpstack\Gateway\UplinkTxInfo::class); - $this->tx_info = $var; - - return $this; - } - - /** - * RX meta-data. - * - * Generated from protobuf field repeated .gw.UplinkRxInfo rx_info = 3; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getRxInfo() - { - return $this->rx_info; - } - - /** - * RX meta-data. - * - * Generated from protobuf field repeated .gw.UplinkRxInfo rx_info = 3; - * @param array<\Chirpstack\Gateway\UplinkRxInfo>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setRxInfo($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Chirpstack\Gateway\UplinkRxInfo::class); - $this->rx_info = $arr; - - return $this; - } - - /** - * Message type. - * - * Generated from protobuf field .common.MType m_type = 4; - * @return int - */ - public function getMType() - { - return $this->m_type; - } - - /** - * Message type. - * - * Generated from protobuf field .common.MType m_type = 4; - * @param int $var - * @return $this - */ - public function setMType($var) - { - GPBUtil::checkEnum($var, \Chirpstack\Common\MType::class); - $this->m_type = $var; - - return $this; - } - - /** - * Device address (optional). - * - * Generated from protobuf field string dev_addr = 5; - * @return string - */ - public function getDevAddr() - { - return $this->dev_addr; - } - - /** - * Device address (optional). - * - * Generated from protobuf field string dev_addr = 5; - * @param string $var - * @return $this - */ - public function setDevAddr($var) - { - GPBUtil::checkString($var, True); - $this->dev_addr = $var; - - return $this; - } - - /** - * Device EUI (optional). - * - * Generated from protobuf field string dev_eui = 6; - * @return string - */ - public function getDevEui() - { - return $this->dev_eui; - } - - /** - * Device EUI (optional). - * - * Generated from protobuf field string dev_eui = 6; - * @param string $var - * @return $this - */ - public function setDevEui($var) - { - GPBUtil::checkString($var, True); - $this->dev_eui = $var; - - return $this; - } - - /** - * Time. - * - * Generated from protobuf field .google.protobuf.Timestamp time = 7; - * @return \Google\Protobuf\Timestamp|null - */ - public function getTime() - { - return $this->time; - } - - public function hasTime() - { - return isset($this->time); - } - - public function clearTime() - { - unset($this->time); - } - - /** - * Time. - * - * Generated from protobuf field .google.protobuf.Timestamp time = 7; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->time = $var; - - return $this; - } - - /** - * Plaintext f_opts mac-commands. - * - * Generated from protobuf field bool plaintext_f_opts = 8; - * @return bool - */ - public function getPlaintextFOpts() - { - return $this->plaintext_f_opts; - } - - /** - * Plaintext f_opts mac-commands. - * - * Generated from protobuf field bool plaintext_f_opts = 8; - * @param bool $var - * @return $this - */ - public function setPlaintextFOpts($var) - { - GPBUtil::checkBool($var); - $this->plaintext_f_opts = $var; - - return $this; - } - - /** - * Plaintext frm_payload. - * - * Generated from protobuf field bool plaintext_frm_payload = 9; - * @return bool - */ - public function getPlaintextFrmPayload() - { - return $this->plaintext_frm_payload; - } - - /** - * Plaintext frm_payload. - * - * Generated from protobuf field bool plaintext_frm_payload = 9; - * @param bool $var - * @return $this - */ - public function setPlaintextFrmPayload($var) - { - GPBUtil::checkBool($var); - $this->plaintext_frm_payload = $var; - - return $this; - } - -} - diff --git a/api/php/generated/Chirpstack/Stream/UplinkMeta.php b/api/php/generated/Chirpstack/Stream/UplinkMeta.php deleted file mode 100644 index 6511870c..00000000 --- a/api/php/generated/Chirpstack/Stream/UplinkMeta.php +++ /dev/null @@ -1,279 +0,0 @@ -stream.UplinkMeta - */ -class UplinkMeta extends \Google\Protobuf\Internal\Message -{ - /** - * Device EUI (EUI64). - * - * Generated from protobuf field string dev_eui = 1; - */ - protected $dev_eui = ''; - /** - * TX meta-data. - * - * Generated from protobuf field .gw.UplinkTxInfo tx_info = 2; - */ - protected $tx_info = null; - /** - * RX meta-data. - * - * Generated from protobuf field repeated .gw.UplinkRxInfo rx_info = 3; - */ - private $rx_info; - /** - * PHYPayload byte count. - * - * Generated from protobuf field uint32 phy_payload_byte_count = 4; - */ - protected $phy_payload_byte_count = 0; - /** - * MAC-Command byte count. - * - * Generated from protobuf field uint32 mac_command_byte_count = 5; - */ - protected $mac_command_byte_count = 0; - /** - * Application payload byte count. - * - * Generated from protobuf field uint32 application_payload_byte_count = 6; - */ - protected $application_payload_byte_count = 0; - /** - * Message type. - * - * Generated from protobuf field .common.MType message_type = 7; - */ - protected $message_type = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $dev_eui - * Device EUI (EUI64). - * @type \Chirpstack\Gateway\UplinkTxInfo $tx_info - * TX meta-data. - * @type array<\Chirpstack\Gateway\UplinkRxInfo>|\Google\Protobuf\Internal\RepeatedField $rx_info - * RX meta-data. - * @type int $phy_payload_byte_count - * PHYPayload byte count. - * @type int $mac_command_byte_count - * MAC-Command byte count. - * @type int $application_payload_byte_count - * Application payload byte count. - * @type int $message_type - * Message type. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Chirpstack\Stream\Meta::initOnce(); - parent::__construct($data); - } - - /** - * Device EUI (EUI64). - * - * Generated from protobuf field string dev_eui = 1; - * @return string - */ - public function getDevEui() - { - return $this->dev_eui; - } - - /** - * Device EUI (EUI64). - * - * Generated from protobuf field string dev_eui = 1; - * @param string $var - * @return $this - */ - public function setDevEui($var) - { - GPBUtil::checkString($var, True); - $this->dev_eui = $var; - - return $this; - } - - /** - * TX meta-data. - * - * Generated from protobuf field .gw.UplinkTxInfo tx_info = 2; - * @return \Chirpstack\Gateway\UplinkTxInfo|null - */ - public function getTxInfo() - { - return $this->tx_info; - } - - public function hasTxInfo() - { - return isset($this->tx_info); - } - - public function clearTxInfo() - { - unset($this->tx_info); - } - - /** - * TX meta-data. - * - * Generated from protobuf field .gw.UplinkTxInfo tx_info = 2; - * @param \Chirpstack\Gateway\UplinkTxInfo $var - * @return $this - */ - public function setTxInfo($var) - { - GPBUtil::checkMessage($var, \Chirpstack\Gateway\UplinkTxInfo::class); - $this->tx_info = $var; - - return $this; - } - - /** - * RX meta-data. - * - * Generated from protobuf field repeated .gw.UplinkRxInfo rx_info = 3; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getRxInfo() - { - return $this->rx_info; - } - - /** - * RX meta-data. - * - * Generated from protobuf field repeated .gw.UplinkRxInfo rx_info = 3; - * @param array<\Chirpstack\Gateway\UplinkRxInfo>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setRxInfo($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Chirpstack\Gateway\UplinkRxInfo::class); - $this->rx_info = $arr; - - return $this; - } - - /** - * PHYPayload byte count. - * - * Generated from protobuf field uint32 phy_payload_byte_count = 4; - * @return int - */ - public function getPhyPayloadByteCount() - { - return $this->phy_payload_byte_count; - } - - /** - * PHYPayload byte count. - * - * Generated from protobuf field uint32 phy_payload_byte_count = 4; - * @param int $var - * @return $this - */ - public function setPhyPayloadByteCount($var) - { - GPBUtil::checkUint32($var); - $this->phy_payload_byte_count = $var; - - return $this; - } - - /** - * MAC-Command byte count. - * - * Generated from protobuf field uint32 mac_command_byte_count = 5; - * @return int - */ - public function getMacCommandByteCount() - { - return $this->mac_command_byte_count; - } - - /** - * MAC-Command byte count. - * - * Generated from protobuf field uint32 mac_command_byte_count = 5; - * @param int $var - * @return $this - */ - public function setMacCommandByteCount($var) - { - GPBUtil::checkUint32($var); - $this->mac_command_byte_count = $var; - - return $this; - } - - /** - * Application payload byte count. - * - * Generated from protobuf field uint32 application_payload_byte_count = 6; - * @return int - */ - public function getApplicationPayloadByteCount() - { - return $this->application_payload_byte_count; - } - - /** - * Application payload byte count. - * - * Generated from protobuf field uint32 application_payload_byte_count = 6; - * @param int $var - * @return $this - */ - public function setApplicationPayloadByteCount($var) - { - GPBUtil::checkUint32($var); - $this->application_payload_byte_count = $var; - - return $this; - } - - /** - * Message type. - * - * Generated from protobuf field .common.MType message_type = 7; - * @return int - */ - public function getMessageType() - { - return $this->message_type; - } - - /** - * Message type. - * - * Generated from protobuf field .common.MType message_type = 7; - * @param int $var - * @return $this - */ - public function setMessageType($var) - { - GPBUtil::checkEnum($var, \Chirpstack\Common\MType::class); - $this->message_type = $var; - - return $this; - } - -} - diff --git a/api/php/generated/GPBMetadata/Chirpstack/Api/Application.php b/api/php/generated/GPBMetadata/Chirpstack/Api/Application.php deleted file mode 100644 index 07501e655305c7ac91092c480c749e5ae431ae91..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 15995 zcmcIrTXWmS6%Hj^mR6Qbt!3w;C#Eiz6ib#OQn^(P1|lH}F$Ew1 zXjxAE(uYnS+sU+j=}f2hX*<()rtM7Imrnbb*G_*xJN+R&djlbI7a(QDFBWmmp8d`_ z-(C-J=N)(3MOSk3rfqsgU{-URd%0lS%(`Lz8 zN;x+-yI8&qO?{`~Rm`cJ;aU@h>(;G`5m=60pcW9ajUCf>jf$C@U!7hy1EXpL#>ULH z<+*-fR32>SuuUobiSVrA?3SjT%wv4)O zLi={zt%hA8KyswPid`|suIHFdqI=bKz`47*jd{nZ)y<7n;xG8Rv1kXTXB+j6S<|n0 zmK!+UDyU9P)yyD_5_vLqop(#jSzEa=hH+}D4dmTi;5E!>@41|31`W@?O>q+g&%(bp zqH*HrAVwQS+jdA49NV9oYWmbPA!``ARkk1vfwAKrpe+EJ+i`## zhUq>qW-N4!xOolzZ5N%EQU&+I$ zp&qN6N##;w1Nb;PLb#aep}$U|!75KML^RV&AC91bz_blJ(4o~4`e+Ot35=SbIhyMo z8=TA*0AnH2L!k`9IXm$7vM-~7@CP15y^qX2-t!PT`q-#9c-K=sZ>F@Lr_jlWnI+2) z76Wrl9*DFrL z7JZDNKF{xp~7;Z8N*I+#&lbygliiV9Q-^d81<63(Qos6gpOISlk z9$7Y18lF5wdyMEk0GV(k@)&yS-jPUq(Y^Ln3Y}O80yiSV3J>rkI<{>ZRnzl%d@fV8 zEzJuHOoz@k_!8>5qf@Z=C}G{+y}EW+kvLO|25x{d{ZG`u>S)UpM1e4nwT z*=iA;XG6FJl1R;UGzcAtjPa>}g}kMO_8K}1!?)$Bu%if&HjlEhMm$qp^bU@&5vTyr zg{e2tc{UOirc}OszlZR3tKN7ryV(gj(j?I=gM8_NabDfzqZ6bJpX^s)VPo?+JaJ(w zwd;6QShUE(cLAM--3CwrMw9M3u$|h|X@fp0zK#Z5&#YKJSqG27qv6R>K3W*cRUw5b z|JY+-DN*dFiegwX#rK&E!weHRk4!r=Ksz{vjyqn>u&t+bKxYtr3iHlpqw)ymok8+j zdk^Ip$0WfK{1}(tnX82@5S zs{Ff$M$6kUbNJJa;Z-|fA!G|^2FYg})ILC0ShnPLM1WtFCF~q!m%O0{Zb9hfLSa?q z);hWz)0Sthdr06bOI|#x?hW5XS6B+;4XfO}hfXc;&6o zE>=VM3OW~+?^w3Zb$qxZpbHfP)eMLpR2_q^PW=>aMB@3rMOUac34u=6s($NlQOOqVMnL1nH+aj>F_e z<^wV6VpuL~#>cTtBrK{Z&c?C4W%4+dwId#~aV(PxJl%R2j^j9^Dkr~}LZ{{{?rLMR z)aYm<7u~UwJBYR&JMf_5nN_k;gG((SQr+acJUAx9eaNR~C2}zV&jQD_Dr_sqj_cuk zE(6vK$fUxk%E_Ok&`5FDFWDWf z!HFb*jh1KD$PSxbNx|%ERA8p}$wfl*TIwts@l9Y$pf{y_yH75$C@~Drrc>yEwu~;a zb-oR#@a|>VBF~NiZEdvI(K%SB+nx(ssz^OR=jF{f7rMd#F0lzg38O1>uxVjSy3(A= ztM8;xw)hlod-y6l-8dW~K!z)hZNr!+$2LFk#7Tbu!-0xki~HMb@Y92zrlXB(Jj+Tr zB1Jc4>ApmF5o%wwx6xISz(nh+P<<1!e>3f`s_c!sy9 zf9k_(K*o4K8Tsr|4{mI>tS4;7*B+n?Y~Z(I5LwF0hWlwc+*_MyH|bql>tkU_6@W#$ zB(%5UneGMvc*90X)Ovwex3savo`n=!orw&QRfGm~QT zgA{tTb6Y%Oa99su6Ig+6*gZEsfsT0rI-SC4biBN<_;9|YPp=f$X45@TT|mnp>9ce1FV4)B(!J#O(#l#QojwYMvtz{%N_y#GDcy%p!`ABK^|d*@G`B`9=+o<^^fA)S>f+K$ zS!bQ4`-z$5_sV5`eraX8xRf5i1L)}D{c^dSM)`Nph`1ta-emTn9_Zl(d=#bD0XY0z zE&*KlNl?On%K#4kTSyVzBRxm>SF^H zU!a4JFW1eg2B%W?qDsuzp`HKszy9}S&!{#6759BrcYi9C$Dg2HSZ6USR+1IBy#sa! z*DB-IFH-9nJlbY`;&ZF|4BM!WjZp3eUv%4h8Evap(mJv>PCMARmenLZM2b8G=#4m} zqdqo@d53%r?z}_pQC{WIC+G;N+~D&x?&Qx%%tQq$%aYbEW7}7moQLcV1^EWPDFK-X43oGq zqPGHLag)jfwuHE44<&Bj1%zy5$Pr3qNeFq+@&^mrZ&RZ9FJ{mPnemH}SxzEPg0@2Q zxv0%b^4T%zEIPASHwp26#@;QEK*1V?3gnUq1}DCjBtrUY~>2?bD0V#>%S z!NOyzlnbmXLh_hq4=tuY0P*o>aBu;WycVDs?ipDVn-gIg%Ja?5H`n59~+kc4rSQs7-} zPC|i>IlQx1WyMOu;9sTC8K9mNZ8(w2qyp+yG26|?7;AqnB3u(b|F+6pPs zM%XF?gG08;qylQlR=LvivNZ%7VXLgCeQcE}2)th_TSK%Yv`x0k@NmG4tuloqzz1e) z2onDxoLgn}p?z$XDI_60l>I@i;*LX2VBBxeo$RmK>?(uPNste`BZ$Dn@GATnHpjM=v^WJ6 z(j;^b>5{sj%}AEij`sq_u0QU>hYS!*I3b*Zoj^OvoLJ%8L;@l^dCMA$*LbyeDB8F1 zEeYD#4FE?-{xc=s?Nrwe z@hg#omRcxVSmYud6T-JO$@6!*q`_SV$+W`ol7A1V4asTvx-9`ZG*IGD|MqRJ=P zMe5QFE=pXAXKkT2%-OTc+nuQ zFz&l(kgFu2Em5K@YYP&hbj*F1)TYPT$(_v3u=yc34RS=yn+CaDAP#RDRBD{+v($sP z@g0c=u~d(u#w65?zVhyPsN+-waMj$+L!CX;P{WGN?;2upGg8Y{l5q0?=btaYKZScz zws~l+s`7hMxiAUb63za7O*Yy(=C4J{@PxRq9G(Q?wjm751g#PQFWh#tD{z|Lr9f}t z*Sn=D1&2xa82MUz;Ng=C1wIugdHAx26Fw-yj54MvK+1(lAbIHW2MpbRQfRExQaZlL z7g_dYbB9&@?CV{&;+$BZoS2qYz+$Ja9eBH7f|U9B+XU0_y1dkL@hMS*V7mBX+RrJ9I`4IcRJ=y5j o$I;KUiFmV*ewO>%weXwXSJinternalAddGeneratedFile( - ' -3 -api/device.protoapigoogle/api/annotations.protogoogle/protobuf/timestamp.protogoogle/protobuf/struct.protogoogle/protobuf/empty.proto" -Device -dev_eui (  -name (  - description (  -application_id (  -device_profile_id (  -skip_fcnt_check ( - is_disabled (- - variables ( 2.api.Device.VariablesEntry# -tags ( 2.api.Device.TagsEntry -join_eui - ( 0 -VariablesEntry -key (  -value ( :8+ - TagsEntry -key (  -value ( :8"T - DeviceStatus -margin ( -external_power_source ( - battery_level (" -DeviceListItem -dev_eui ( . - -created_at ( 2.google.protobuf.Timestamp. - -updated_at ( 2.google.protobuf.Timestamp0 - last_seen_at ( 2.google.protobuf.Timestamp -name (  - description (  -device_profile_id (  -device_profile_name ( ( - device_status ( 2.api.DeviceStatus"? - -DeviceKeys -dev_eui (  -nwk_key (  -app_key ( "2 -CreateDeviceRequest -device ( 2 .api.Device"# -GetDeviceRequest -dev_eui ( " -GetDeviceResponse -device ( 2 .api.Device. - -created_at ( 2.google.protobuf.Timestamp. - -updated_at ( 2.google.protobuf.Timestamp0 - last_seen_at ( 2.google.protobuf.Timestamp( - device_status ( 2.api.DeviceStatus* - class_enabled (2.common.DeviceClass"2 -UpdateDeviceRequest -device ( 2 .api.Device"& -DeleteDeviceRequest -dev_eui ( "w -ListDevicesRequest -limit (  -offset (  -search (  -application_id (  -multicast_group_id ( "O -ListDevicesResponse - total_count ( # -result ( 2.api.DeviceListItem"? -CreateDeviceKeysRequest$ - device_keys ( 2.api.DeviceKeys"\' -GetDeviceKeysRequest -dev_eui ( " -GetDeviceKeysResponse$ - device_keys ( 2.api.DeviceKeys. - -created_at ( 2.google.protobuf.Timestamp. - -updated_at ( 2.google.protobuf.Timestamp"? -UpdateDeviceKeysRequest$ - device_keys ( 2.api.DeviceKeys"* -DeleteDeviceKeysRequest -dev_eui ( " -DeviceActivation -dev_eui (  -dev_addr (  - app_s_key (  - nwk_s_enc_key (  -s_nwk_s_int_key (  -f_nwk_s_int_key (  -f_cnt_up (  - n_f_cnt_down (  - a_f_cnt_down - ( "I -ActivateDeviceRequest0 -device_activation ( 2.api.DeviceActivation"* -DeactivateDeviceRequest -dev_eui ( "- -GetDeviceActivationRequest -dev_eui ( " -GetDeviceActivationResponse0 -device_activation ( 2.api.DeviceActivation6 -join_server_context ( 2.common.JoinServerContext"* -GetRandomDevAddrRequest -dev_eui ( ", -GetRandomDevAddrResponse -dev_addr ( " -GetDeviceMetricsRequest -dev_eui ( ) -start ( 2.google.protobuf.Timestamp\' -end ( 2.google.protobuf.Timestamp( - aggregation (2.common.Aggregation" -GetDeviceMetricsResponse; -metrics ( 2*.api.GetDeviceMetricsResponse.MetricsEntry9 -states ( 2).api.GetDeviceMetricsResponse.StatesEntry> - MetricsEntry -key (  -value ( 2.common.Metric:8? - StatesEntry -key (  -value ( 2.api.DeviceState:8"* - DeviceState -name (  -value ( " -GetDeviceLinkMetricsRequest -dev_eui ( ) -start ( 2.google.protobuf.Timestamp\' -end ( 2.google.protobuf.Timestamp( - aggregation (2.common.Aggregation" -GetDeviceLinkMetricsResponse" - -rx_packets ( 2.common.Metric -gw_rssi ( 2.common.Metric -gw_snr ( 2.common.Metric+ -rx_packets_per_freq ( 2.common.Metric) -rx_packets_per_dr ( 2.common.Metric -errors ( 2.common.Metric" -DeviceQueueItem - -id (  -dev_eui (  - confirmed ( -f_port (  -data ( \' -object ( 2.google.protobuf.Struct - -is_pending ( - -f_cnt_down (  - is_encrypted ("I -EnqueueDeviceQueueItemRequest( - -queue_item ( 2.api.DeviceQueueItem", -EnqueueDeviceQueueItemResponse - -id ( "* -FlushDeviceQueueRequest -dev_eui ( "A -GetDeviceQueueItemsRequest -dev_eui (  - -count_only ("X -GetDeviceQueueItemsResponse - total_count ( $ -result ( 2.api.DeviceQueueItem"( -FlushDevNoncesRequest -dev_eui ( "/ -GetDeviceNextFCntDownRequest -dev_eui ( "3 -GetDeviceNextFCntDownResponse - -f_cnt_down ( 2 - DeviceServiceS -Create.api.CreateDeviceRequest.google.protobuf.Empty"" /api/devices:*T -Get.api.GetDeviceRequest.api.GetDeviceResponse"/api/devices/{dev_eui}d -Update.api.UpdateDeviceRequest.google.protobuf.Empty"("/api/devices/{device.dev_eui}:*Z -Delete.api.DeleteDeviceRequest.google.protobuf.Empty"*/api/devices/{dev_eui}O -List.api.ListDevicesRequest.api.ListDevicesResponse" /api/devicesv - -CreateKeys.api.CreateDeviceKeysRequest.google.protobuf.Empty"2,"\'/api/devices/{device_keys.dev_eui}/keys:*e -GetKeys.api.GetDeviceKeysRequest.api.GetDeviceKeysResponse"#/api/devices/{dev_eui}/keysv - -UpdateKeys.api.UpdateDeviceKeysRequest.google.protobuf.Empty"2,\'/api/devices/{device_keys.dev_eui}/keys:*g - -DeleteKeys.api.DeleteDeviceKeysRequest.google.protobuf.Empty"#*/api/devices/{dev_eui}/keyso -FlushDevNonces.api.FlushDevNoncesRequest.google.protobuf.Empty")#*!/api/devices/{dev_eui}/dev-nonces| -Activate.api.ActivateDeviceRequest.google.protobuf.Empty"<6"1/api/devices/{device_activation.dev_eui}/activate:*m - -Deactivate.api.DeactivateDeviceRequest.google.protobuf.Empty")#*!/api/devices/{dev_eui}/activation} - GetActivation.api.GetDeviceActivationRequest .api.GetDeviceActivationResponse")#!/api/devices/{dev_eui}/activation -GetRandomDevAddr.api.GetRandomDevAddrRequest.api.GetRandomDevAddrResponse"2,"*/api/devices/{dev_eui}/get-random-dev-addrq - -GetMetrics.api.GetDeviceMetricsRequest.api.GetDeviceMetricsResponse"& /api/devices/{dev_eui}/metrics -GetLinkMetrics .api.GetDeviceLinkMetricsRequest!.api.GetDeviceLinkMetricsResponse"+%#/api/devices/{dev_eui}/link-metrics -Enqueue".api.EnqueueDeviceQueueItemRequest#.api.EnqueueDeviceQueueItemResponse"2,"\'/api/devices/{queue_item.dev_eui}/queue:*h - -FlushQueue.api.FlushDeviceQueueRequest.google.protobuf.Empty"$*/api/devices/{dev_eui}/queues -GetQueue.api.GetDeviceQueueItemsRequest .api.GetDeviceQueueItemsResponse"$/api/devices/{dev_eui}/queue -GetNextFCntDown!.api.GetDeviceNextFCntDownRequest".api.GetDeviceNextFCntDownResponse"5/"*/api/devices/{dev_eui}/get-next-f-cnt-down:*B -io.chirpstack.apiB DeviceProtoPZ.github.com/chirpstack/chirpstack/api/go/v4/apiChirpstack.ApiChirpstack\\ApiGPBMetadata\\Chirpstack\\Apibproto3' - , true); - - static::$is_initialized = true; - } -} - diff --git a/api/php/generated/GPBMetadata/Chirpstack/Api/DeviceProfile.php b/api/php/generated/GPBMetadata/Chirpstack/Api/DeviceProfile.php deleted file mode 100644 index 4151698819926238b7b64903bc6a3dc7e824b278..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 5287 zcmcIo+fw7m84l*K&<2kYhY@BLgqZ_)76YD{tt~c_DPub<8L%k>o0=_eb;(lOD9Dml zYLO*dbCaq(L2mK{dyyx|Gvqecx!KAS^t9Fpw~eZH11(E!WWmL(MVR z*0v^P3hZOg1rJ|qjU(4>+pGavxeE?AjvdZ?N4Fbg78t(eao0Zs=)pmo@m{FJ&enFM zR*17&+LpBO;9$te*BbXj7T2z6KI5V9e2I1o0q=Xi8u3U))r^3?k5txiS7|&W$&PN&8|DWBHHj#ti#pYfuO&tKoGgGO>gm4T38)VRgbY*2u+n7! zv1f>=M*u}7Y2EaxZns_E;#VDE{wHYL9$E7ATiex5YPcpds2@5ait04VoX!09P-a2{MvcuqteiyQkQP-h5l;sUH9F+iIT6stwgr03V*HGC|dN;bQ zCV?=gWJxA!Dx$JN;of(B%q(J-$XpP5p6l~~LUris9LfaudfV7rXj4tyK{3<^NC7({ zC>8#?Ay?C=V~s3#37+M&X<)mYI!$`5&LbWCAEukWs@%=p0$0=pr1#VsJ++HS0N3=U zNB!^jsmW~pR$apF6*Ax3_Nm)y1&pi9NP^6iqyh!?4{>ji%y#!ssfxQfGQstBpsr}+ zTgk#BJkx$-Y-NfpbpTAS)6SFmMMdD8gXqA0q_nVI%}j>}hC5cB$J)+9n%4QdHKq)v-8jhQ>AHG=RCS=I)1r0MUNLr9^#>P?!W# z>hE03!9E~`#*v>P@+n!9NEnt@>y{4Vb`ZBio=9BVcAL6Q2W*Xt%_AH-a&#&#G-chk zM+n}%*VMTGd-s?c$L;^Tsd0GWUQ^@97l;%c#M<$_ThfEH?gTxnOnF^U7?gRr&>v5)JA&uD>;}K%AZ%8t>rF6%t z9I{z5aSersLpD`d{7}GKpk@D=AWH*H?ZgWBF=w5D37&`Br_aRwm+Bn7NER}Ac}X$GGyUf#zZ~QrG5N(1PZjQ&{6iB{%ysO; zLlaXB@KF>)PVVeiBvZoB4Me%lVA2O%$&pkvzTq||z6mg6k_811Yk(!YO;$%r3Ou;& zviNyrpOA+~j1RDPHO4Mx*&oMzuvi&E{fdQqtZ(=3@T9-h}uE-xzSgfc@WkBXN^mGn56GF}x$^aKsX|M& z>P5YFa#AU$#|wX(B#Q$za1Ngz@Q9( zySUr`cHN0uVsJ2)Qy3YCPNm3O_;AmXdOk%x!_-L01}a%qRz@k={lPNdD>r0HHk!z( zySq+id1(IO_kZ>UYT3zbjn-lgJ^_JJ;hssRWLt{#-rb|_)Ejx1yT?05CPdjPYZ#}Y z{?P4i8F`?i=uspep^wYT$m3G}G)CqHbG$7C${q2_JRfb$0CTrlWuK$sC(7o?;OeHo z)B9Qv4*vpnSZ?0vJ){Xuhsr=UUlXZ=0C(GV|oKP58pN2>UHo**};@cre*v)=p7XYvIs_F#7BV;Lglqt<)!o{;|l D`ZZ$H diff --git a/api/php/generated/GPBMetadata/Chirpstack/Api/DeviceProfileTemplate.php b/api/php/generated/GPBMetadata/Chirpstack/Api/DeviceProfileTemplate.php deleted file mode 100644 index c8966109..00000000 --- a/api/php/generated/GPBMetadata/Chirpstack/Api/DeviceProfileTemplate.php +++ /dev/null @@ -1,116 +0,0 @@ -internalAddGeneratedFile( - ' - -!api/device_profile_template.protoapigoogle/protobuf/timestamp.protogoogle/protobuf/empty.protocommon/common.protoapi/device_profile.proto" -DeviceProfileTemplate - -id (  -name (  - description (  -vendor (  -firmware (  -region (2.common.Region\' - mac_version (2.common.MacVersion6 -reg_params_revision (2.common.RegParamsRevision -adr_algorithm_id ( 0 -payload_codec_runtime - (2.api.CodecRuntime -payload_codec_script (  -flush_queue_on_activate ( -uplink_interval ( " -device_status_req_interval (  - supports_otaa ( -supports_class_b ( -supports_class_c ( -class_b_timeout (  -class_b_ping_slot_nb_k (  -class_b_ping_slot_dr (  -class_b_ping_slot_freq (  -class_c_timeout (  - abp_rx1_delay (  -abp_rx1_dr_offset (  - -abp_rx2_dr (  - abp_rx2_freq ( 2 -tags ( 2$.api.DeviceProfileTemplate.TagsEntryB - measurements ( 2,.api.DeviceProfileTemplate.MeasurementsEntry -auto_detect_measurements (+ - TagsEntry -key (  -value ( :8E -MeasurementsEntry -key (  -value ( 2.api.Measurement:8" -DeviceProfileTemplateListItem - -id ( . - -created_at ( 2.google.protobuf.Timestamp. - -updated_at ( 2.google.protobuf.Timestamp -name (  -vendor (  -firmware (  -region (2.common.Region\' - mac_version (2.common.MacVersion6 -reg_params_revision (2.common.RegParamsRevision - supports_otaa - ( -supports_class_b ( -supports_class_c ("a -"CreateDeviceProfileTemplateRequest; -device_profile_template ( 2.api.DeviceProfileTemplate"- -GetDeviceProfileTemplateRequest - -id ( " - GetDeviceProfileTemplateResponse; -device_profile_template ( 2.api.DeviceProfileTemplate. - -created_at ( 2.google.protobuf.Timestamp. - -updated_at ( 2.google.protobuf.Timestamp"a -"UpdateDeviceProfileTemplateRequest; -device_profile_template ( 2.api.DeviceProfileTemplate"0 -"DeleteDeviceProfileTemplateRequest - -id ( "B -!ListDeviceProfileTemplatesRequest -limit (  -offset ( "m -"ListDeviceProfileTemplatesResponse - total_count ( 2 -result ( 2".api.DeviceProfileTemplateListItem2 -DeviceProfileTemplateServices -Create\'.api.CreateDeviceProfileTemplateRequest.google.protobuf.Empty"(""/api/device-profile-templates:*~ -Get$.api.GetDeviceProfileTemplateRequest%.api.GetDeviceProfileTemplateResponse"*$"/api/device-profile-templates/{id} -Update\'.api.UpdateDeviceProfileTemplateRequest.google.protobuf.Empty"E?:/api/device-profile-templates/{device_profile_template.id}:*u -Delete\'.api.DeleteDeviceProfileTemplateRequest.google.protobuf.Empty"*$*"/api/device-profile-templates/{id}~ -List&.api.ListDeviceProfileTemplatesRequest\'.api.ListDeviceProfileTemplatesResponse"%/api/device-profile-templatesB -io.chirpstack.apiBDeviceProfileTemplateProtoPZ.github.com/chirpstack/chirpstack/api/go/v4/apiChirpstack.ApiChirpstack\\ApiGPBMetadata\\Chirpstack\\Apibproto3' - , true); - - static::$is_initialized = true; - } -} - diff --git a/api/php/generated/GPBMetadata/Chirpstack/Api/Gateway.php b/api/php/generated/GPBMetadata/Chirpstack/Api/Gateway.php deleted file mode 100644 index f74186d0c44663cc65897aed21239b55c036b668..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 5942 zcmd5=Pj4Gl5XVmIG~*;qUP5t}0?QH+C)73sDv(QoG;yO!B`GCvD3+|v`q^2!-d%Q| zX+z0{69|a|oRK&p#D$MgBraSLUjT9DGcfPZ+PmwGT_GgMCCPj9-pu@F<~OtN^*8+^ zAD+{9sY?Ts(YAhgtg|Dk`+>(i%X9R@ey2kN-ST?A?a-jA>pT1U-u{8!*tv1=EFKNL zeqhnMZu)kui&xw;kE`M|fNS<>=$jVRcW+&Ln=-R)GPAjTWCwo8OzUoQ%eSupSdJNn z`mQ_+4?xEszklf1mX2Z!f34bK%XV#Mn~wbn8hKUkm`+IX?5J#~?^?|ET%8}-cP(08 z*X5mDcGdULsjGT(*Ymm#ZQkO3qL0lRE~9~KI?Wv#T7m5|FSv!G^?H}G0Xlr8ysp&p z>+FtRmNwSwBSv1;S6VM93y2N;?vx6U5}&SxnaFN^l5lS z*1>^W2R4R)nLYm>oJE5gJ)a#v!qHevx4mA^bDQ#4_E8ap${V(Ve5>6aAbcH@tUSPk zBeVt&%dj|-U1SQEv}d{^j5U#P7{(fl{FOPVJ((7u+#|KQgjtQY*5og_Xgtirw8}+7 z08~o1>~<-q=gKo=7S8azF6G64OHgd9guw`vro^HF=N!)xF)N+HmEz_?Rq42?*2yBw zFzT8v<2Rob$5!DCGrM7_pikkE3srQmsw}A<;6}q`!7;f6=X$D?O4CA8OGrj_CZ#XH zJkL*FKA7Jhn@;H*>YCGDfSKWyMVPuvkClIOa2Cb-%E5a6wVYOix#X=A4jA7}!Fgr* zO*>>a80{q;mQW_)m4HU@N+eV8axiB|9A1uG7QC+kU{3fnU^a~qU5(=u*;U0-QDPFY zDiTsaITyA}h6wZfwW>@bnIf2H)j?eml<)gUY*L=1J6`@pm_@#0t&mceYnYjMLWi?F zhO`7II={IXcjH~Yp}hp>({4-((PdcP7H+CI-KHP)ktxViFs)Kv=6kY3-x4$2d*8+d(xz&6G^u$)w?0)!>Uu;Dl@%j>(5?o}uRG{mb=Hz%j%cv3{A zWL$;jTEyhanQh0WF5BjH*g-QGjhxHE;j0{!C!be#F2FhFge?oNR?KxCruhn|GRY;l zV3|@v(g|h@z3gIMJnqzS@Lo{_SiWWrur$sC9cGbY_>H5@dw=p6#~1 zdvVdsSYt_FK<&4wV;-l7EI~K2pJPb|T#}QFs6gZQ96T{{UYT5mIVp{K&6|lbR<^ge z#{XecxCtfBdT}cUyfA^b6SxUlGCqKnjN24UnS8vS;^P&;$8mE8r2JzZma{gp2C|U= z4yN5P<5;p~%Ykf6Lro1#vSi1}r(5>qk!<3?L`txLe2No0b~(3WcX`GZkvwLM2CT?- zAIB_eT92Hv##^u=+ke(Ii4-`kbUx3)Z2a)Q7O&Ay0v@xuOiXxmW;R}hSylXE+{8%) z_8RXuZnxfTH1-xA!$w%x-@AEZud$FLMVQ{deqH>N-~6ix^U+EC`milZ-h+aiJBiHM ztRYmpFfwn84^gA^*>8V-lPAVpE%rSa)^i)=4oo4>5cScN9#FL>L?a zOWas{pg0Nh;)Hw%1(_1cK zN-K+A6&Af@)Ux5_0jzbEX%#*!syUS01Hg{Nv8mWxIrj7GW#o_}_B{J}f9Dcngn?89m z(ix|u$fAqco63qS!ivk}<)jq>pA;%8`@`CU!E4A#?Sa@6wRayDc_PNOhALPi>ybG! zSQ*>OpjBbe)8yhfgUI*z{W{tSh`fAsBT{}Eb=?t4548PpN+Zt|D%DX;qMZRkoHH(^b diff --git a/api/php/generated/GPBMetadata/Chirpstack/Api/Internal.php b/api/php/generated/GPBMetadata/Chirpstack/Api/Internal.php deleted file mode 100644 index 699d075d6228e1cfa788a5f4be542631612a7125..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 5164 zcmcgw-E!O17RE`N#4C~0ZihB?OA(@H8cxA(0~e4|I?Yc*heC3iz&Ue{XFRgB?d%g- z5?fno4b!LKB^cg-3$9_f;ca`DhLpR4 z`gVV8iz8~sJQ9%?1$I9j3@Ep~XcV)6^0sYn@7Z7M9ojqFPY&Ng(IiT_M>lLYW*rs^ z%0oA3D{+9(9nmCqJ!$}43ZXGcmC&KlPyN_aaAHWOTB(a|uVfYqo{EO3m zz&soI1peG&Nson0FgIY|pqUTsfg2e#?u(>88wRE&IJ3!c*A z?Y7OSNO^c)*)0{k%>U~agLK-uLx!Og?kL{an7B33@=96MyEBT#_#C2z+-yaoQ51Id z&tDV8w06HtD4#B+GVtCf8CV|qejeV(h_SUiATm6+;U@=36aPr zM=V^OMalxX40S<6HxxY-xgeRG_o2DPDb|oy_l$m>V#3G`n8zD?$8@YzFRm}P@wu&; zoO`fR7E0nMOlZj#3oeT2n1?eW(n#E*oX;bheaAN z7Yzmp6-uu~&gJATG)tO|xlLFUk#K{a7o}l#!F8D9G)V(_!R*>8$A76oLn7o*Me!*M zk4YOFfeN7CbG44e^;TOaSSJe;+|KJj@~1I26sq`Tre4io%9%`Kz2vjZ;sUt}%b04P zo-mJ^j9*j-t8fVqhIrj`cWh4PN}u zzD1b*|8wnf-Pwm_Y)JzwglE`06&kL>1&LS#pt=H(3?8`!^BRT;;!?)AnV(Gp>uf`F zH;DRfa6nz|9c6YR01`zohUWN?p`0z?L&j>>c?c_IEylR+?L5ylWy4iv!zo^bf%AI} zNR=#W?U;pG<)Iac7ja#BGvz|lNt0mHwWmr{RUf$m4L6Q)VBoZfLRpnEZFPcaE7FyO zOj}(_m^9;0kEU#OUeQs#p)2MEMZ|*4QjehP(? z6i6`kQXXiy5p+nC0=G{C)xhcm9YSK13dNYmP&0DsGcL_k(04{Kr|&0!%XJ^ZwUU!h zi^YXt@gkp2AS-9D>C?^~XibweS;+gSYVp{5iT3LJ`fowABr;v`d$77o#kOi8$w4|A zxqO_}T&V|XJASLdwJH2YH-gN?W#)vIS}S6gg(bSIS&KY?1)m#E-4O2RVyxPu^|!bA zmTcKOq2Oa#EFnFiyq8cK8Z{CcR;vw5B~I*E*+jDl2KK}aQk?~BW9Gw}(^fw1>TY?C zAb8Ni7*zNtL5RYDh2dMS8D zhZvMe*Tdn&H3_SAGMqG<+#+NmoPR;1Oev-2rkpKOtx8T~z0o$yoR*Qj%{SY6o)G6I zTtYBujw~j{_2~Nn1$SUM#rYE+_q-z)n|zQUAf(s2 z$!lx2^pTuu{KY+7GXi(4nyf_-&5Fc(W-F6ZN^NQU#d^=@YC0LV_1=KX^)mFvt8zYB zxMi-Wm#AL97vt#ZB|#*lkepN&c^j@*PbVtm;IdAKauJDjXA`W7r&SKD#eeWGv?&IQ6Ocit+?gl+Q#&5q26$(!G5B$2u%$uV4q1%LNRJ>7we+jVyQ6vuYON?;r*#S~0t!q0WW zGor7ncw}r@iqU|7xb)#z(7a&m#>}-Dr|CQ8q!T;VcB_W2j^BG@WQT=Fgb} zSF+SdgDidri(bQLy=44KA~&?d2b~DueK?nc)VWu(p93#IN{8}V*<;Sz%XIjONM#WES^0+@2%d6kNoqtk! XSAUTze84*Mh3HN zMMzcEOQjwv_0nE?Z~v5Dd#)-~z4f2y%-i+i#k(e;mW$chH}8G#eQ&;J&y$awmIK$N zb!t&pWwb8U_9fP$lH=OU)@(zn`Hcp3CCxS+-Jot!l2$gQmzz7%>dMB>HNMreeOIFu zNp=tKU1e%@xuv^~$5d^%y6EVS0W?GP zJn2Q-$GUI<2O#l3$FCW>CUI--U%H`tif-vlR}KA3j(I_9sD?+mi*DP7Z)r@oElF(H zv@|+@TMB#%+Z&F}b6k+B>$crAXmv}Z%~P&!Sd6-sYE)OKr@6YrYVO#9W_tMwcX)GT*fxBW~f~F#50BS*j2nFH?2VvTRWW+wv-v zqnwUhByEh++R-@^Of{V|?B#$~O^5Bj!`2RJmu=Iut!nU*ycJ2f_f!u{zF4nE6<*^# zHy_nRROlA`GYeNzn~n7ISNYi{(pkd(<8+o-JMW++^HawSsK_jQInJA%V=e_B!J_%*rB$f}ORI~IvjxK%%{&%mHdo1DAcIsTk2XNzHs z*SJb9z>ujaYQ65}25`gsFv=IKx4Vj`?9%<*V8<$t5Uvj4>KF_(6wP9}^Zap)+yTHt zsIYy9=7#xNwmezn)hWi)*x|25Dm*6O#!E2VaOoF5wY2@*2rfyG!^5f66i2t3if7nN zaj2`?_1q|0%)msqg;i5_b6I@91e3vgP4ToAt^0=XgV4sfLAHD?0orzCDL~49W?&+Y z{kiV34Mxov6-BNjE)`;?s0;}iDd&p;;Q^VvBZ|>UAl%+}xFQAif~em1ZK?%@!{mrk z!B{t?aT)}F=`_fnz|=BAkEi)su;DRs7cQ7>bqo|1yKkgCo=`lw0Mp6NJco-1a^7xV zc@A>xlqE;)Xmk0O3|vVt3_YF-pQ!u)$&)DNr^st^TBial--f9bYEVX#opshogS_a= zxS`kPke^aRH+6>0jgc%2+Kq-sgGR+?kE*WL3KgSUNwDo?1*Q^%giMUX2;*bIP&C`; ziXb#fC<0d>k2erM6#cx(rxLoReWK(|khl=9&^=wFJ9a#ob}o4!X1pJT)CGdbrL0c( z6zc1NCdxZ-^EEZ?JsS92b8YiK@VX7x#Ju3A_pQ2r7Mxr?9pzj84CVr;q2IG% zP4ZlW$#~MQeCkt_uwKQCq+Q^{CTS>+?J{hVF)@6^H!2(|qw*WLxoUC2@Q?Ls6sk?% zeE>95bS|Nxl1wM`M6^+U2y-X74jV8+jIAdx!0ejgd#!}z+h}^^FF%2q?ruj|@3Q+P z%%<)R;ogA(Q3Q`yL7a@9RVWmJ#Ph%rIs!w>&lk71mF0`?k?3LRVy5sArsMYUxkiRz zU}g3B;v2qi6wa@2Z7Vw)FIF#R%72W)zmoJxMU##xo7YMJCDUcTQbKNIbFPm{ES@wL z0(}V5ILS6_?KOn^On#gKm%H>S&aUFI^NgK`uf?hUhLelK=atw%ZeS@-m`15Je1xFN zh5IR>Qjw7F`B4-nIY4n8QFNbdd>an6d;m4oD6CTmiJThJ(oY$ZTwL$#({@_;h`~PlmgVJ%~l6u*KmcgaSAshny3-o(b-v9sr diff --git a/api/php/generated/GPBMetadata/Chirpstack/Api/Relay.php b/api/php/generated/GPBMetadata/Chirpstack/Api/Relay.php deleted file mode 100644 index 89e9943d..00000000 --- a/api/php/generated/GPBMetadata/Chirpstack/Api/Relay.php +++ /dev/null @@ -1,65 +0,0 @@ -internalAddGeneratedFile( - ' - - -api/relay.protoapigoogle/protobuf/timestamp.protogoogle/protobuf/empty.proto". - RelayListItem -dev_eui (  -name ( "J -ListRelaysRequest -limit (  -offset (  -application_id ( "M -ListRelaysResponse - total_count ( " -result ( 2.api.RelayListItem"F -AddRelayDeviceRequest - relay_dev_eui (  -device_dev_eui ( "I -RemoveRelayDeviceRequest - relay_dev_eui (  -device_dev_eui ( "O -ListRelayDevicesRequest -limit (  -offset (  - relay_dev_eui ( "d -RelayDeviceListItem -dev_eui ( . - -created_at ( 2.google.protobuf.Timestamp -name ( "Y -ListRelayDevicesResponse - total_count ( ( -result ( 2.api.RelayDeviceListItem2 - RelayServiceL -List.api.ListRelaysRequest.api.ListRelaysResponse"  /api/relayso - AddDevice.api.AddRelayDeviceRequest.google.protobuf.Empty".("#/api/relays/{relay_dev_eui}/devices:*| - RemoveDevice.api.RemoveRelayDeviceRequest.google.protobuf.Empty"5/*-/api/relays/{relay_dev_eui}/devices/{dev_eui}w - ListDevices.api.ListRelayDevicesRequest.api.ListRelayDevicesResponse"+%#/api/relays/{relay_dev_eui}/devicesB -io.chirpstack.apiB -RelayProtoPZ.github.com/chirpstack/chirpstack/api/go/v4/apiChirpstack.ApiChirpstack\\ApiGPBMetadata\\Chirpstack\\Apibproto3' - , true); - - static::$is_initialized = true; - } -} - diff --git a/api/php/generated/GPBMetadata/Chirpstack/Api/Tenant.php b/api/php/generated/GPBMetadata/Chirpstack/Api/Tenant.php deleted file mode 100644 index 669b7151..00000000 --- a/api/php/generated/GPBMetadata/Chirpstack/Api/Tenant.php +++ /dev/null @@ -1,139 +0,0 @@ -internalAddGeneratedFile( - ' - -api/tenant.protoapigoogle/protobuf/timestamp.protogoogle/protobuf/empty.proto" -Tenant - -id (  -name (  - description (  -can_have_gateways ( -max_gateway_count (  -max_device_count (  -private_gateways_up ( -private_gateways_down (# -tags ( 2.api.Tenant.TagsEntry+ - TagsEntry -key (  -value ( :8" -TenantListItem - -id ( . - -created_at ( 2.google.protobuf.Timestamp. - -updated_at ( 2.google.protobuf.Timestamp -name (  -can_have_gateways ( -private_gateways_up ( -private_gateways_down ( -max_gateway_count (  -max_device_count ( "2 -CreateTenantRequest -tenant ( 2 .api.Tenant"" -CreateTenantResponse - -id ( " -GetTenantRequest - -id ( " -GetTenantResponse -tenant ( 2 .api.Tenant. - -created_at ( 2.google.protobuf.Timestamp. - -updated_at ( 2.google.protobuf.Timestamp"2 -UpdateTenantRequest -tenant ( 2 .api.Tenant"! -DeleteTenantRequest - -id ( "T -ListTenantsRequest -limit (  -offset (  -search (  -user_id ( "O -ListTenantsResponse - total_count ( # -result ( 2.api.TenantListItem" - -TenantUser - tenant_id (  -user_id (  -is_admin ( -is_device_admin ( -is_gateway_admin ( -email ( " -TenantUserListItem - tenant_id (  -user_id ( . - -created_at ( 2.google.protobuf.Timestamp. - -updated_at ( 2.google.protobuf.Timestamp -email (  -is_admin ( -is_device_admin ( -is_gateway_admin ("< -AddTenantUserRequest$ - tenant_user ( 2.api.TenantUser": -GetTenantUserRequest - tenant_id (  -user_id ( " -GetTenantUserResponse$ - tenant_user ( 2.api.TenantUser. - -created_at ( 2.google.protobuf.Timestamp. - -updated_at ( 2.google.protobuf.Timestamp"? -UpdateTenantUserRequest$ - tenant_user ( 2.api.TenantUser"= -DeleteTenantUserRequest - tenant_id (  -user_id ( "J -ListTenantUsersRequest - tenant_id (  -limit (  -offset ( "W -ListTenantUsersResponse - total_count ( \' -result ( 2.api.TenantUserListItem2 - TenantServiceV -Create.api.CreateTenantRequest.api.CreateTenantResponse"" /api/tenants:*O -Get.api.GetTenantRequest.api.GetTenantResponse"/api/tenants/{id}_ -Update.api.UpdateTenantRequest.google.protobuf.Empty"#/api/tenants/{tenant.id}:*U -Delete.api.DeleteTenantRequest.google.protobuf.Empty"*/api/tenants/{id}O -List.api.ListTenantsRequest.api.ListTenantsResponse" /api/tenantss -AddUser.api.AddTenantUserRequest.google.protobuf.Empty"5/"*/api/tenants/{tenant_user.tenant_id}/users:*r -GetUser.api.GetTenantUserRequest.api.GetTenantUserResponse"0*(/api/tenants/{tenant_id}/users/{user_id} - -UpdateUser.api.UpdateTenantUserRequest.google.protobuf.Empty"KE@/api/tenants/{tenant_user.tenant_id}/users/{tenant_user.user_id}:*t - -DeleteUser.api.DeleteTenantUserRequest.google.protobuf.Empty"0**(/api/tenants/{tenant_id}/users/{user_id}n - ListUsers.api.ListTenantUsersRequest.api.ListTenantUsersResponse"& /api/tenants/{tenant_id}/usersB -io.chirpstack.apiB TenantProtoPZ.github.com/chirpstack/chirpstack/api/go/v4/apiChirpstack.ApiChirpstack\\ApiGPBMetadata\\Chirpstack\\Apibproto3' - , true); - - static::$is_initialized = true; - } -} - diff --git a/api/php/generated/GPBMetadata/Chirpstack/Api/User.php b/api/php/generated/GPBMetadata/Chirpstack/Api/User.php deleted file mode 100644 index d2b500ef..00000000 --- a/api/php/generated/GPBMetadata/Chirpstack/Api/User.php +++ /dev/null @@ -1,92 +0,0 @@ -internalAddGeneratedFile( - ' - -api/user.protoapigoogle/protobuf/timestamp.protogoogle/protobuf/empty.proto"T -User - -id (  -is_admin ( - is_active ( -email (  -note ( " - UserListItem - -id ( . - -created_at ( 2.google.protobuf.Timestamp. - -updated_at ( 2.google.protobuf.Timestamp -email (  -is_admin ( - is_active ("d - -UserTenant - tenant_id (  -is_admin ( -is_device_admin ( -is_gateway_admin ("` -CreateUserRequest -user ( 2 .api.User -password (  -tenants ( 2.api.UserTenant" -CreateUserResponse - -id ( " -GetUserRequest - -id ( " -GetUserResponse -user ( 2 .api.User. - -created_at ( 2.google.protobuf.Timestamp. - -updated_at ( 2.google.protobuf.Timestamp", -UpdateUserRequest -user ( 2 .api.User" -DeleteUserRequest - -id ( "1 -ListUsersRequest -limit (  -offset ( "K -ListUsersResponse - total_count ( ! -result ( 2.api.UserListItem"> -UpdateUserPasswordRequest -user_id (  -password ( 2 - UserServiceP -Create.api.CreateUserRequest.api.CreateUserResponse"" -/api/users:*I -Get.api.GetUserRequest.api.GetUserResponse"/api/users/{id}Y -Update.api.UpdateUserRequest.google.protobuf.Empty"/api/users/{user.id}:*Q -Delete.api.DeleteUserRequest.google.protobuf.Empty"*/api/users/{id}I -List.api.ListUsersRequest.api.ListUsersResponse"  -/api/usersr -UpdatePassword.api.UpdateUserPasswordRequest.google.protobuf.Empty"(""/api/users/{user_id}/password:*B -io.chirpstack.apiB UserProtoPZ.github.com/chirpstack/chirpstack/api/go/v4/apiChirpstack.ApiChirpstack\\ApiGPBMetadata\\Chirpstack\\Apibproto3' - , true); - - static::$is_initialized = true; - } -} - diff --git a/api/php/generated/GPBMetadata/Chirpstack/Common/Common.php b/api/php/generated/GPBMetadata/Chirpstack/Common/Common.php deleted file mode 100644 index 6bc1463643ae1fa00ec2217bd5b310a956ab0eb7..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 2249 zcmZ`*-A?0H5N<*eV8V|vg3?NrT)JAa5e@m<1+t};NlfsP*s1L-+A5M|oI|iMwq-l0 zbVaXvU8xVy7uegrMIWP2(m8g>A8l@Y&iI=%-^@41lka};ZanygYZ8a}Mo9YH)dLsa z5YF@6&^29~yBc0!6Q48PJI}I-U*Ncg%t^Aw2@O&E8eIc-=$oWQ5qGY05I+i$KY(N0 zk-#%d!ZkamZ4w%NBQ$#T8_V~C&@gX%^~mcjfN2{+z{Okm2ps;r;gxNf90Egpys!e@ za;(rYZ0i>!dcs{Bc0kbeIre(!n4#r59CeT#ljL4;@tG9+!gDdP6Ry{E-GNPd9hxiV z*%O_R_>N)s8YD1%%L`qdSZcW@R^D}329|7Gg~LACNpOi=g57{++jR!9DH)j%WY{CnLS%UfnYcN2 zQn+6$Zx`aT3r`2DQR~p-4bvR@hWW6QMr3lg1lbGnAUOBLc0EF)-I80~Hm-;r5m;u| zVbLIgeoG#9X!w=gKN66^2JT$WkEYcu6UFv0KWwNO-tCLNYS)(2o%5k~K zEYYPX9ld$YEYqceOsWh}w5Ybr)nbv!=Ko4Sx~)B6gD|l2P8KCy5q|6ns)m%;Asbov zdR^#fnC9oO*_GLhh}IMj8^dDe!TM;gGY^DHh8kO37J62}8{w${1+I zP{BT!F;tmM{`Ul|&0Ty{vnyRlwAfKYHajXt2gpR_ZDN+FKvR%WS5VbtP7ed>Vl+KibcJQHzAR)LbicAnWRofWE8K(tEx@~qrsyMm2JGKGs)9G6R=^q z1#>)V3x;Q%X5#@HO}tLxrxJd_Z-!U&yKyikPC_}1V>_~wj>Lzo2}LqAmBg*47zn(iFd_jI z07WUCOf#KnyXbVf>Z*%&rmJ?}ZPuOc`v|BBlgpfY%5s)%x~69KawmgMhuJyJ>|1(|+4)?qRL|Awtz5Zu z(0UV>I_ALE*iNoH-0lwZd>w$H_L*a;8q4iB_70h=wpCX>E}rVP<+!SLcD#?94b{u1 z09sFVoZS8pegQfBXAMqzx|YLPF8+5wU0vK+ zvoq3aBqXwQT(OppK5*5(^*z>>28af<<@Z?n0(IBi=?l3N-v3nhOupN02Ntd%y0!wF zkcHlc|2~662v*WucewdRm-}y<0}cJR?fPm8>}}p1pV0Pn@y35RKJM@Xi&6QHF@Qs} zJ?L@ur60jU&$QL-d@iYNn9pxW_h7!`oMjjIv|BW-;+##)dKZ>^ zw$eFuoa`c>ndJiQ3ceYiyq5&9R2%OR!qbs|KL^s0)zgi$)&=cZWnERfl-3~LvDwcD z%+M~gF_f9YBSSw>AUlWe(gi7x_ZPvGAMGMNf^||&8BNBU)-kVD^ uRVS8Rqxw_W z@Km2zdA%vtV0G-2av73gb4)XYJYk4LAx#D!8A1Lo2GXQMN!p2Ow1;}zJ@w3*g^Xj_ zOl|8%SLvu4(gZhdO2QG%Y%_)UQ|WQPa3jX0Hy|F2aF3@8Njg9gr#Er7bQf-0W>2;C zuQ}Y%0q5v!ymuT)D^dnlXwUvhk7bv*chj(Bn2Kg=*=78_BJaW41k$7*po@G|C~bDG zbLpNUD3i#TPAe3Ue-nfC>J$*-`8Q09;sWWcovMbxddiql0tJ2532|ep6E?KAu|P2#u1`{0 zh2@UbRTaI>z9;BuV5&<#*N|cM5dX!lO)4R&(wsw1m|S@t6TNnOSd7dnMOzNDq*n1 z$?Nuof;bGG zMe+Eah1@*qcb6a@Hdo$H0Lq4IUrL9N4M{_MDFIlsNiN~t2??!>hS00Q?1~TVKwL<( zsJPS>;+j{B`xx$woo+-u*)*5O!vG#+#3My>V7L-49Xm;A>FUg-`*3S)S4u7hPBz1r zZOt?YVRGOIYrF@U_Q1VVv`ekW@Nywqvl54$L^4V^R-_@0R}*RB2-Ho|*{wGJ&EJ2u}~-bVtM^j9=M z(Dj`N5Tu1h&h@DB*D**(ZAkIfW?e5~;Fb%;+h#B#y#q@_`LNw?=Z!@v| zk8eaApK-WtNbzw5b~_vA42UaK zOlS>5MFJ$c43l_*qiT}G3mBp?!YQN#-qOCMxR(|~{-a1K63B1>Y~i5vDP%{{F1k9K z;`?9_8|J5nP)t%Wm$rFe$ETVvr zqF5vRjbrV#F(dzK0oF_A(3q&OrqNWS>LQ!-XlI#2CRk)~tOz3mhl0W=Z@97uBM;1~ zH?Jtd$V~~4KBm;4*ZXe?`3RGJkB3Cc;9G@{NY7wH@Ap|7YYNu8B)C&?z$-_=L5RL# z{$Mnv#b;2>`aFitUTd?S8eJ#&=O(Qy(O_i7W4INtdt^7FBF{wojTdEN|H#4+&^Sfy zO;(Y6DM*AAkpD{2-B*{#s%dp4T2Z)~IARgmK3s2$qPRmJ=VSUGo*(KOh3U-e-Mk6Qo_sIq%8bIH z5R6Q>?1}UmMxiMplF4U~4r%g&xzm*iZ6>q`Nt)bD zo7an>m%jA~`$+UQKOAUnzr zM}`SrVq0ekQ%1Y*IQUy$@@n>fARiopO4h z-htcW-BQtn@#s->awDx_p$_KHPvF*A$JARYlD!Qwf24^QtPJ9Y2onSn=A9bbkA$4m z-pz<2LbCib?C4E74D~95#-^{dut%ijNkC7Lx5rza)MA_8O35$a=9Ck^o_IvZiH=od z(1-kA4DJN5>-Vv$EnhILN$qXNeRb@K3&q1f7s4+S2O~pq#8N~WJY{oSZ0B-ZC8Z)H zm~pP#rqO3u?+bd$lW(p(6P8-R0^WYvEI?-b9c9_GdMfhoVz4=F3&%1IhkXydqiSNu z7}YcfE=Ouo62F;kdwL_r@CU+)-&y%3Y&6xO=(bf%dx&)|v&-jbl2<&()alAJMQP^u3jZPNF9Bz@gMs&K;1)dcJ!tz|Cj7=FK zI|0k}N~L;GD`##Xl`qw6{5dB70fWFHb55T#)pk#q>P{^)sjT8DFalAqqTlrp;bm5d znWtV8rO%d%A0`%f1m!h z`2*!)W;u9%lv(kfKf*cG+>4|9>H*&l!apBn65*duGRgZ-L+QMzUREJ-aCnHHu6JAI z>PtL(92QIE>h4QCI*P^|QzYw3?e`7kz!!rSF;LyZ_{aU@rt-Azs zI4OqyS!vblN)=Czw#Dt~S9!OIYRpUPkSW%y)q@uY^_tSyEq+#Rp`jyh_sYA)dJRpE z(pz6Cm1g;Kv^h!rN@>);EH}~W=vy+uQLS1>5hb*J8sPJz@=;l-9964me+kkDwN|-V z+pQ|)X0zVRfV2TOOGmAjO7Uf}T2|^`l$(`m{mV>Z?=P4~=w@CEKKtiYOGifC^S`F> zkMNDyPu}n9?&;u!K6Px5W``ef;da;DK7WXRWbpSnY4n!_K0E&_{PNiU`-1<>-3@s+AzpYw{D_L#-LrjmNP$XF{9=1|W_RYBnQvx4{MbEo;i|Gr zY~pE@7)p1n&_klQoyI|J9Wh?i58N<*nP+Df%jYhOWC-x+#3DJrH- zNgvNJ9XlWTo#Q6~*xG>juBH=ZcmLi)LN!C9TBm$ydah43{isu$>E8j+EzS3p&>DOJ z3Vz&S*D`elRVaR4Gkw*xO=@bE`8gVYSLtb%Pf-7~Y;S1m%s4dEqzzjq*&B*DlgVCl z9d!1t(%E&KzC}9w%zyNqo8{S>)u|9)_e_^M-ad*Ji+w_;sIisojo?~#oY_;d!p36p zl#zE8>J3Twc17_B9eVa1ZZ|vN+4NWE47|$DVBpvt@l`C&yqXdZdjzyQ9CM zw+Kkv#6VJQ;J$=z3mw<#pDXeRy!{bN9fo(wFsAU{$IQ!40b%f5hi|vxQYg(%r<|M& zZSN%eqkMlPl5yv9p9eY5Qxk)nrxTw7fj1Tfd~Ued&HNMvsE}h*CpEk0$mbzJiLKdG zHH~yciDVP<1|)+emiFl=U%UY8n(Jcr@)}{nOME>IQh1$fEc2ahIB)QKRJ62*ATXsE z-?|7J3tL=og>T~Z!6si^<%{QF6&F=9G}Cdu@D6MSQoPty^r34JBMrE_Uf9TC$zy`$ zD%^rHt4BEx%T(+8>4dVBO%|@?LI?+P43S(LWvVvy#yf98V){o;!qO2L2N0zocC1;$ z0Gwj07QZQMNJ=!VP|*dp9Lk9;;Hwm#;_reuJq;c+xm>=NJh(hR_u zyavmj@0%R67>mlt@l^d#vu$Ff8CI#x4@-~~w^omdO=XORL5$&CoW#XhbRP4B-(C`n7bUbj58!IDdJyo}9 znuRnaufs}DbsdlLh^AO3>WU*o}+a#%h=ctm7Sga#rheppDPEkxdfl*eMJPR?5Af^W`2aXRMj!^Ts` zv{j#Y#{>iBASayA^f|7)JxR<@P^85r%0eLXJOT-}`u~aKDF9eZlZBTAfF(h)@B#q7 zi$J`jAH6F7w;+XeIYgSGWWcyer1K`MVS~4w5wc4kGgIU>CN|Gy)o@03P>jDs0NN*0 z4;YW(CZmK2x2EKOs|?RDe%?%GdP>H%zG$J$EWx=~XVt)pGg**X!BhhCMLlG`jzWCT z>5KSG9AWJ8kNAYOlNa#GHHcZ{7zvKGm-WKdT(RNpdu&tAz_RWbgokLou(>Ey#yv)u zMlki@;1qP8+psz*$Q8~EnMGahUM?s~(Fby{7XJU2t>Cu^BwIM+4Sj*tf6vOutpm;L zo5Jmwdw+ zs5cJksIU!N75ueVt3OcpOON*&rHb0BJ*lF)1Z$7>`9`@>sg|WEa@zV-Sgb9{cz2^+ zDoM-o1&{;z`)aw~R-4sUwJpWaV+htC*2>a~d>Jk-$hDiLdh21W)v7h>(yF`(()60$ zQoDLkdMw3p=-O;n_ezh|di6l9)+=hI`f06Pl@ja%aU;``;NJHU9Q&P|K7BXlG}jCh z(7kYy@>kq`tt!GvUWt_;ni=>#p#J$L;IWC(SMKA`Cqs&wM;`N%6#c2G0Qg0QSeGz5oCK diff --git a/api/php/generated/GPBMetadata/Chirpstack/Stream/ApiRequest.php b/api/php/generated/GPBMetadata/Chirpstack/Stream/ApiRequest.php deleted file mode 100644 index 01d0b3e8..00000000 --- a/api/php/generated/GPBMetadata/Chirpstack/Stream/ApiRequest.php +++ /dev/null @@ -1,37 +0,0 @@ -internalAddGeneratedFile( - ' - -stream/api_request.protostreamcommon/common.proto gw/gw.proto" - ApiRequestLog -service (  -method ( 5 -metadata ( 2#.stream.ApiRequestLog.MetadataEntry/ - MetadataEntry -key (  -value ( :8B -io.chirpstack.api.streamBApiRequestProtoPZ1github.com/chirpstack/chirpstack/api/go/v4/streamChirpstack.StreamChirpstack\\StreamGPBMetadata\\Chirpstack\\Streambproto3' - , true); - - static::$is_initialized = true; - } -} - diff --git a/api/php/generated/GPBMetadata/Chirpstack/Stream/BackendInterfaces.php b/api/php/generated/GPBMetadata/Chirpstack/Stream/BackendInterfaces.php deleted file mode 100644 index 3f384039..00000000 --- a/api/php/generated/GPBMetadata/Chirpstack/Stream/BackendInterfaces.php +++ /dev/null @@ -1,38 +0,0 @@ -internalAddGeneratedFile( - ' - -stream/backend_interfaces.protostream" -BackendInterfacesRequest - sender_id (  - receiver_id ( ( -time ( 2.google.protobuf.Timestamp -transaction_id (  - message_type (  - result_code (  - request_body (  - request_error (  - response_body ( B -io.chirpstack.api.streamBBackendInterfacesProtoPZ1github.com/chirpstack/chirpstack/api/go/v4/streamChirpstack.StreamChirpstack\\StreamGPBMetadata\\Chirpstack\\Streambproto3' - , true); - - static::$is_initialized = true; - } -} - diff --git a/api/php/generated/GPBMetadata/Chirpstack/Stream/Frame.php b/api/php/generated/GPBMetadata/Chirpstack/Stream/Frame.php deleted file mode 100644 index 0bdd32c7..00000000 --- a/api/php/generated/GPBMetadata/Chirpstack/Stream/Frame.php +++ /dev/null @@ -1,54 +0,0 @@ -internalAddGeneratedFile( - ' - -stream/frame.protostreamcommon/common.proto gw/gw.proto" -UplinkFrameLog - phy_payload ( ! -tx_info ( 2.gw.UplinkTxInfo! -rx_info ( 2.gw.UplinkRxInfo -m_type (2 .common.MType -dev_addr (  -dev_eui ( ( -time ( 2.google.protobuf.Timestamp -plaintext_f_opts ( -plaintext_frm_payload (" -DownlinkFrameLog( -time ( 2.google.protobuf.Timestamp - phy_payload ( # -tx_info ( 2.gw.DownlinkTxInfo - downlink_id (  - -gateway_id (  -m_type (2 .common.MType -dev_addr (  -dev_eui (  -plaintext_f_opts ( -plaintext_frm_payload - (B -io.chirpstack.api.streamB -FrameProtoPZ1github.com/chirpstack/chirpstack/api/go/v4/streamChirpstack.StreamChirpstack\\StreamGPBMetadata\\Chirpstack\\Streambproto3' - , true); - - static::$is_initialized = true; - } -} - diff --git a/api/php/generated/GPBMetadata/Chirpstack/Stream/Meta.php b/api/php/generated/GPBMetadata/Chirpstack/Stream/Meta.php deleted file mode 100644 index abc36526..00000000 --- a/api/php/generated/GPBMetadata/Chirpstack/Stream/Meta.php +++ /dev/null @@ -1,48 +0,0 @@ -internalAddGeneratedFile( - ' - -stream/meta.protostream gw/gw.proto" - -UplinkMeta -dev_eui ( ! -tx_info ( 2.gw.UplinkTxInfo! -rx_info ( 2.gw.UplinkRxInfo -phy_payload_byte_count (  -mac_command_byte_count ( & -application_payload_byte_count ( # - message_type (2 .common.MType" - DownlinkMeta -dev_eui (  -multicast_group_id ( # -tx_info ( 2.gw.DownlinkTxInfo -phy_payload_byte_count (  -mac_command_byte_count ( & -application_payload_byte_count ( # - message_type (2 .common.MType - -gateway_id ( B -io.chirpstack.api.streamB MetaProtoPZ1github.com/chirpstack/chirpstack/api/go/v4/streamChirpstack.StreamChirpstack\\StreamGPBMetadata\\Chirpstack\\Streambproto3' - , true); - - static::$is_initialized = true; - } -} - diff --git a/api/php/generated/GPBMetadata/Google/Api/Annotations.php b/api/php/generated/GPBMetadata/Google/Api/Annotations.php deleted file mode 100644 index 7bec22e3..00000000 --- a/api/php/generated/GPBMetadata/Google/Api/Annotations.php +++ /dev/null @@ -1,29 +0,0 @@ -internalAddGeneratedFile( - ' - -google/api/annotations.proto -google.api google/protobuf/descriptor.protoBn -com.google.apiBAnnotationsProtoPZAgoogle.golang.org/genproto/googleapis/api/annotations;annotationsGAPIbproto3' - , true); - - static::$is_initialized = true; - } -} - diff --git a/api/php/generated/GPBMetadata/Google/Api/Http.php b/api/php/generated/GPBMetadata/Google/Api/Http.php deleted file mode 100644 index a1e0edca44bbbd241ebf6bfeaccf4675b4c39f0d..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1057 zcmZ`&O>Yx15G8GzCesf}pweCtrmfVi1c@lOgn|+ZX%El{^@Jit&hBJm*xHuuMFi9X zf2F^YBjepAL@M3O+T%AfZ{EzjdZT9=_Spa>8tyP=lR0xUWZEdFB9*d9Hl3njk-E|% zMbl#J^n!i7xMc56&o7^nt5unau)`9ik`&uqi}uVp-O3{XNPdM@^9b2s*#Cfz$K3JJ zAP0|nT66)Tlv~Tr$O(P|qfcj(R7A`=?&x{v+Q1W&~eVtB%)Jhe!Ux3SYqMouWn zyu*czFg#*KOpiU#iYhu`f71_rkyPO5Tskz8r=wG}krCP{GbCuIlb~Bj<1OJ)nbwCB zQx+B+JDpo3Pna_qE@x-Vpv#Qx=DdA?>%}Q&_WZRddGz9Vk@h{w9xj01?GSFNu=`)V zn^2fr)P}uFsCrSG`>!}Po`O#&c`uED#o!vi{=}~ zWBjhUv?OY1|DhN@Q9 z1=aGt1GSj^9R_Qq6|=ZBx_6Fkjw~kh8mgoogle.api.CustomHttpPattern - */ -class CustomHttpPattern extends \Google\Protobuf\Internal\Message -{ - /** - * The name of this custom HTTP verb. - * - * Generated from protobuf field string kind = 1; - */ - protected $kind = ''; - /** - * The path matched by this custom verb. - * - * Generated from protobuf field string path = 2; - */ - protected $path = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $kind - * The name of this custom HTTP verb. - * @type string $path - * The path matched by this custom verb. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Api\Http::initOnce(); - parent::__construct($data); - } - - /** - * The name of this custom HTTP verb. - * - * Generated from protobuf field string kind = 1; - * @return string - */ - public function getKind() - { - return $this->kind; - } - - /** - * The name of this custom HTTP verb. - * - * Generated from protobuf field string kind = 1; - * @param string $var - * @return $this - */ - public function setKind($var) - { - GPBUtil::checkString($var, True); - $this->kind = $var; - - return $this; - } - - /** - * The path matched by this custom verb. - * - * Generated from protobuf field string path = 2; - * @return string - */ - public function getPath() - { - return $this->path; - } - - /** - * The path matched by this custom verb. - * - * Generated from protobuf field string path = 2; - * @param string $var - * @return $this - */ - public function setPath($var) - { - GPBUtil::checkString($var, True); - $this->path = $var; - - return $this; - } - -} - diff --git a/api/php/generated/Google/Api/Http.php b/api/php/generated/Google/Api/Http.php deleted file mode 100644 index 712894e0..00000000 --- a/api/php/generated/Google/Api/Http.php +++ /dev/null @@ -1,123 +0,0 @@ -google.api.Http - */ -class Http extends \Google\Protobuf\Internal\Message -{ - /** - * A list of HTTP configuration rules that apply to individual API methods. - * **NOTE:** All service configuration rules follow "last one wins" order. - * - * Generated from protobuf field repeated .google.api.HttpRule rules = 1; - */ - private $rules; - /** - * When set to true, URL path parameters will be fully URI-decoded except in - * cases of single segment matches in reserved expansion, where "%2F" will be - * left encoded. - * The default behavior is to not decode RFC 6570 reserved characters in multi - * segment matches. - * - * Generated from protobuf field bool fully_decode_reserved_expansion = 2; - */ - protected $fully_decode_reserved_expansion = false; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Api\HttpRule>|\Google\Protobuf\Internal\RepeatedField $rules - * A list of HTTP configuration rules that apply to individual API methods. - * **NOTE:** All service configuration rules follow "last one wins" order. - * @type bool $fully_decode_reserved_expansion - * When set to true, URL path parameters will be fully URI-decoded except in - * cases of single segment matches in reserved expansion, where "%2F" will be - * left encoded. - * The default behavior is to not decode RFC 6570 reserved characters in multi - * segment matches. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Api\Http::initOnce(); - parent::__construct($data); - } - - /** - * A list of HTTP configuration rules that apply to individual API methods. - * **NOTE:** All service configuration rules follow "last one wins" order. - * - * Generated from protobuf field repeated .google.api.HttpRule rules = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getRules() - { - return $this->rules; - } - - /** - * A list of HTTP configuration rules that apply to individual API methods. - * **NOTE:** All service configuration rules follow "last one wins" order. - * - * Generated from protobuf field repeated .google.api.HttpRule rules = 1; - * @param array<\Google\Api\HttpRule>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setRules($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Api\HttpRule::class); - $this->rules = $arr; - - return $this; - } - - /** - * When set to true, URL path parameters will be fully URI-decoded except in - * cases of single segment matches in reserved expansion, where "%2F" will be - * left encoded. - * The default behavior is to not decode RFC 6570 reserved characters in multi - * segment matches. - * - * Generated from protobuf field bool fully_decode_reserved_expansion = 2; - * @return bool - */ - public function getFullyDecodeReservedExpansion() - { - return $this->fully_decode_reserved_expansion; - } - - /** - * When set to true, URL path parameters will be fully URI-decoded except in - * cases of single segment matches in reserved expansion, where "%2F" will be - * left encoded. - * The default behavior is to not decode RFC 6570 reserved characters in multi - * segment matches. - * - * Generated from protobuf field bool fully_decode_reserved_expansion = 2; - * @param bool $var - * @return $this - */ - public function setFullyDecodeReservedExpansion($var) - { - GPBUtil::checkBool($var); - $this->fully_decode_reserved_expansion = $var; - - return $this; - } - -} - diff --git a/api/php/generated/Google/Api/HttpRule.php b/api/php/generated/Google/Api/HttpRule.php deleted file mode 100644 index 4fbd59f2..00000000 --- a/api/php/generated/Google/Api/HttpRule.php +++ /dev/null @@ -1,660 +0,0 @@ -google.api.HttpRule - */ -class HttpRule extends \Google\Protobuf\Internal\Message -{ - /** - * Selects a method to which this rule applies. - * Refer to [selector][google.api.DocumentationRule.selector] for syntax - * details. - * - * Generated from protobuf field string selector = 1; - */ - protected $selector = ''; - /** - * The name of the request field whose value is mapped to the HTTP request - * body, or `*` for mapping all request fields not captured by the path - * pattern to the HTTP body, or omitted for not having any HTTP request body. - * NOTE: the referred field must be present at the top-level of the request - * message type. - * - * Generated from protobuf field string body = 7; - */ - protected $body = ''; - /** - * Optional. The name of the response field whose value is mapped to the HTTP - * response body. When omitted, the entire response message will be used - * as the HTTP response body. - * NOTE: The referred field must be present at the top-level of the response - * message type. - * - * Generated from protobuf field string response_body = 12; - */ - protected $response_body = ''; - /** - * Additional HTTP bindings for the selector. Nested bindings must - * not contain an `additional_bindings` field themselves (that is, - * the nesting may only be one level deep). - * - * Generated from protobuf field repeated .google.api.HttpRule additional_bindings = 11; - */ - private $additional_bindings; - protected $pattern; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $selector - * Selects a method to which this rule applies. - * Refer to [selector][google.api.DocumentationRule.selector] for syntax - * details. - * @type string $get - * Maps to HTTP GET. Used for listing and getting information about - * resources. - * @type string $put - * Maps to HTTP PUT. Used for replacing a resource. - * @type string $post - * Maps to HTTP POST. Used for creating a resource or performing an action. - * @type string $delete - * Maps to HTTP DELETE. Used for deleting a resource. - * @type string $patch - * Maps to HTTP PATCH. Used for updating a resource. - * @type \Google\Api\CustomHttpPattern $custom - * The custom pattern is used for specifying an HTTP method that is not - * included in the `pattern` field, such as HEAD, or "*" to leave the - * HTTP method unspecified for this rule. The wild-card rule is useful - * for services that provide content to Web (HTML) clients. - * @type string $body - * The name of the request field whose value is mapped to the HTTP request - * body, or `*` for mapping all request fields not captured by the path - * pattern to the HTTP body, or omitted for not having any HTTP request body. - * NOTE: the referred field must be present at the top-level of the request - * message type. - * @type string $response_body - * Optional. The name of the response field whose value is mapped to the HTTP - * response body. When omitted, the entire response message will be used - * as the HTTP response body. - * NOTE: The referred field must be present at the top-level of the response - * message type. - * @type array<\Google\Api\HttpRule>|\Google\Protobuf\Internal\RepeatedField $additional_bindings - * Additional HTTP bindings for the selector. Nested bindings must - * not contain an `additional_bindings` field themselves (that is, - * the nesting may only be one level deep). - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Api\Http::initOnce(); - parent::__construct($data); - } - - /** - * Selects a method to which this rule applies. - * Refer to [selector][google.api.DocumentationRule.selector] for syntax - * details. - * - * Generated from protobuf field string selector = 1; - * @return string - */ - public function getSelector() - { - return $this->selector; - } - - /** - * Selects a method to which this rule applies. - * Refer to [selector][google.api.DocumentationRule.selector] for syntax - * details. - * - * Generated from protobuf field string selector = 1; - * @param string $var - * @return $this - */ - public function setSelector($var) - { - GPBUtil::checkString($var, True); - $this->selector = $var; - - return $this; - } - - /** - * Maps to HTTP GET. Used for listing and getting information about - * resources. - * - * Generated from protobuf field string get = 2; - * @return string - */ - public function getGet() - { - return $this->readOneof(2); - } - - public function hasGet() - { - return $this->hasOneof(2); - } - - /** - * Maps to HTTP GET. Used for listing and getting information about - * resources. - * - * Generated from protobuf field string get = 2; - * @param string $var - * @return $this - */ - public function setGet($var) - { - GPBUtil::checkString($var, True); - $this->writeOneof(2, $var); - - return $this; - } - - /** - * Maps to HTTP PUT. Used for replacing a resource. - * - * Generated from protobuf field string put = 3; - * @return string - */ - public function getPut() - { - return $this->readOneof(3); - } - - public function hasPut() - { - return $this->hasOneof(3); - } - - /** - * Maps to HTTP PUT. Used for replacing a resource. - * - * Generated from protobuf field string put = 3; - * @param string $var - * @return $this - */ - public function setPut($var) - { - GPBUtil::checkString($var, True); - $this->writeOneof(3, $var); - - return $this; - } - - /** - * Maps to HTTP POST. Used for creating a resource or performing an action. - * - * Generated from protobuf field string post = 4; - * @return string - */ - public function getPost() - { - return $this->readOneof(4); - } - - public function hasPost() - { - return $this->hasOneof(4); - } - - /** - * Maps to HTTP POST. Used for creating a resource or performing an action. - * - * Generated from protobuf field string post = 4; - * @param string $var - * @return $this - */ - public function setPost($var) - { - GPBUtil::checkString($var, True); - $this->writeOneof(4, $var); - - return $this; - } - - /** - * Maps to HTTP DELETE. Used for deleting a resource. - * - * Generated from protobuf field string delete = 5; - * @return string - */ - public function getDelete() - { - return $this->readOneof(5); - } - - public function hasDelete() - { - return $this->hasOneof(5); - } - - /** - * Maps to HTTP DELETE. Used for deleting a resource. - * - * Generated from protobuf field string delete = 5; - * @param string $var - * @return $this - */ - public function setDelete($var) - { - GPBUtil::checkString($var, True); - $this->writeOneof(5, $var); - - return $this; - } - - /** - * Maps to HTTP PATCH. Used for updating a resource. - * - * Generated from protobuf field string patch = 6; - * @return string - */ - public function getPatch() - { - return $this->readOneof(6); - } - - public function hasPatch() - { - return $this->hasOneof(6); - } - - /** - * Maps to HTTP PATCH. Used for updating a resource. - * - * Generated from protobuf field string patch = 6; - * @param string $var - * @return $this - */ - public function setPatch($var) - { - GPBUtil::checkString($var, True); - $this->writeOneof(6, $var); - - return $this; - } - - /** - * The custom pattern is used for specifying an HTTP method that is not - * included in the `pattern` field, such as HEAD, or "*" to leave the - * HTTP method unspecified for this rule. The wild-card rule is useful - * for services that provide content to Web (HTML) clients. - * - * Generated from protobuf field .google.api.CustomHttpPattern custom = 8; - * @return \Google\Api\CustomHttpPattern|null - */ - public function getCustom() - { - return $this->readOneof(8); - } - - public function hasCustom() - { - return $this->hasOneof(8); - } - - /** - * The custom pattern is used for specifying an HTTP method that is not - * included in the `pattern` field, such as HEAD, or "*" to leave the - * HTTP method unspecified for this rule. The wild-card rule is useful - * for services that provide content to Web (HTML) clients. - * - * Generated from protobuf field .google.api.CustomHttpPattern custom = 8; - * @param \Google\Api\CustomHttpPattern $var - * @return $this - */ - public function setCustom($var) - { - GPBUtil::checkMessage($var, \Google\Api\CustomHttpPattern::class); - $this->writeOneof(8, $var); - - return $this; - } - - /** - * The name of the request field whose value is mapped to the HTTP request - * body, or `*` for mapping all request fields not captured by the path - * pattern to the HTTP body, or omitted for not having any HTTP request body. - * NOTE: the referred field must be present at the top-level of the request - * message type. - * - * Generated from protobuf field string body = 7; - * @return string - */ - public function getBody() - { - return $this->body; - } - - /** - * The name of the request field whose value is mapped to the HTTP request - * body, or `*` for mapping all request fields not captured by the path - * pattern to the HTTP body, or omitted for not having any HTTP request body. - * NOTE: the referred field must be present at the top-level of the request - * message type. - * - * Generated from protobuf field string body = 7; - * @param string $var - * @return $this - */ - public function setBody($var) - { - GPBUtil::checkString($var, True); - $this->body = $var; - - return $this; - } - - /** - * Optional. The name of the response field whose value is mapped to the HTTP - * response body. When omitted, the entire response message will be used - * as the HTTP response body. - * NOTE: The referred field must be present at the top-level of the response - * message type. - * - * Generated from protobuf field string response_body = 12; - * @return string - */ - public function getResponseBody() - { - return $this->response_body; - } - - /** - * Optional. The name of the response field whose value is mapped to the HTTP - * response body. When omitted, the entire response message will be used - * as the HTTP response body. - * NOTE: The referred field must be present at the top-level of the response - * message type. - * - * Generated from protobuf field string response_body = 12; - * @param string $var - * @return $this - */ - public function setResponseBody($var) - { - GPBUtil::checkString($var, True); - $this->response_body = $var; - - return $this; - } - - /** - * Additional HTTP bindings for the selector. Nested bindings must - * not contain an `additional_bindings` field themselves (that is, - * the nesting may only be one level deep). - * - * Generated from protobuf field repeated .google.api.HttpRule additional_bindings = 11; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getAdditionalBindings() - { - return $this->additional_bindings; - } - - /** - * Additional HTTP bindings for the selector. Nested bindings must - * not contain an `additional_bindings` field themselves (that is, - * the nesting may only be one level deep). - * - * Generated from protobuf field repeated .google.api.HttpRule additional_bindings = 11; - * @param array<\Google\Api\HttpRule>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setAdditionalBindings($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Api\HttpRule::class); - $this->additional_bindings = $arr; - - return $this; - } - - /** - * @return string - */ - public function getPattern() - { - return $this->whichOneof("pattern"); - } - -} -