Google Cloud IoT Core V1 Client - Class GatewayListOptions (1.6.4)

Reference documentation and code samples for the Google Cloud IoT Core V1 Client class GatewayListOptions.

Options for limiting the list based on gateway type and associations.

Generated from protobuf message google.cloud.iot.v1.GatewayListOptions

Namespace

Google \ Cloud \ Iot \ V1

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ gateway_type int

If GATEWAY is specified, only gateways are returned. If NON_GATEWAY is specified, only non-gateway devices are returned. If GATEWAY_TYPE_UNSPECIFIED is specified, all devices are returned.

↳ associations_gateway_id string

If set, only devices associated with the specified gateway are returned. The gateway ID can be numeric (num_id) or the user-defined string (id). For example, if 123 is specified, only devices bound to the gateway with num_id 123 are returned.

↳ associations_device_id string

If set, returns only the gateways with which the specified device is associated. The device ID can be numeric (num_id) or the user-defined string (id). For example, if 456 is specified, returns only the gateways to which the device with num_id 456 is bound.

getGatewayType

If GATEWAY is specified, only gateways are returned. If NON_GATEWAY is specified, only non-gateway devices are returned. If GATEWAY_TYPE_UNSPECIFIED is specified, all devices are returned.

Returns
TypeDescription
int

hasGatewayType

setGatewayType

If GATEWAY is specified, only gateways are returned. If NON_GATEWAY is specified, only non-gateway devices are returned. If GATEWAY_TYPE_UNSPECIFIED is specified, all devices are returned.

Parameter
NameDescription
var int
Returns
TypeDescription
$this

getAssociationsGatewayId

If set, only devices associated with the specified gateway are returned.

The gateway ID can be numeric (num_id) or the user-defined string (id). For example, if 123 is specified, only devices bound to the gateway with num_id 123 are returned.

Returns
TypeDescription
string

hasAssociationsGatewayId

setAssociationsGatewayId

If set, only devices associated with the specified gateway are returned.

The gateway ID can be numeric (num_id) or the user-defined string (id). For example, if 123 is specified, only devices bound to the gateway with num_id 123 are returned.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getAssociationsDeviceId

If set, returns only the gateways with which the specified device is associated. The device ID can be numeric (num_id) or the user-defined string (id). For example, if 456 is specified, returns only the gateways to which the device with num_id 456 is bound.

Returns
TypeDescription
string

hasAssociationsDeviceId

setAssociationsDeviceId

If set, returns only the gateways with which the specified device is associated. The device ID can be numeric (num_id) or the user-defined string (id). For example, if 456 is specified, returns only the gateways to which the device with num_id 456 is bound.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getFilter

Returns
TypeDescription
string