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

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

Request for ListDevices.

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

Namespace

Google \ Cloud \ Iot \ V1

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ parent string

Required. The device registry path. Required. For example, projects/my-project/locations/us-central1/registries/my-registry.

↳ device_num_ids array

A list of device numeric IDs. If empty, this field is ignored. Maximum IDs: 10,000.

↳ device_ids array

A list of device string IDs. For example, ['device0', 'device12']. If empty, this field is ignored. Maximum IDs: 10,000

↳ field_mask Google\Protobuf\FieldMask

The fields of the Device resource to be returned in the response. The fields id and num_id are always returned, along with any other fields specified in snake_case format, for example: last_heartbeat_time.

↳ gateway_list_options Google\Cloud\Iot\V1\GatewayListOptions

Options related to gateways.

↳ page_size int

The maximum number of devices to return in the response. If this value is zero, the service will select a default size. A call may return fewer objects than requested. A non-empty next_page_token in the response indicates that more data is available.

↳ page_token string

The value returned by the last ListDevicesResponse; indicates that this is a continuation of a prior ListDevices call and the system should return the next page of data.

getParent

Required. The device registry path. Required. For example, projects/my-project/locations/us-central1/registries/my-registry.

Returns
TypeDescription
string

setParent

Required. The device registry path. Required. For example, projects/my-project/locations/us-central1/registries/my-registry.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getDeviceNumIds

A list of device numeric IDs. If empty, this field is ignored. Maximum IDs: 10,000.

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setDeviceNumIds

A list of device numeric IDs. If empty, this field is ignored. Maximum IDs: 10,000.

Parameter
NameDescription
var int[]|string[]|Google\Protobuf\Internal\RepeatedField
Returns
TypeDescription
$this

getDeviceIds

A list of device string IDs. For example, ['device0', 'device12'].

If empty, this field is ignored. Maximum IDs: 10,000

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setDeviceIds

A list of device string IDs. For example, ['device0', 'device12'].

If empty, this field is ignored. Maximum IDs: 10,000

Parameter
NameDescription
var string[]
Returns
TypeDescription
$this

getFieldMask

The fields of the Device resource to be returned in the response. The fields id and num_id are always returned, along with any other fields specified in snake_case format, for example: last_heartbeat_time.

Returns
TypeDescription
Google\Protobuf\FieldMask|null

hasFieldMask

clearFieldMask

setFieldMask

The fields of the Device resource to be returned in the response. The fields id and num_id are always returned, along with any other fields specified in snake_case format, for example: last_heartbeat_time.

Parameter
NameDescription
var Google\Protobuf\FieldMask
Returns
TypeDescription
$this

getGatewayListOptions

Options related to gateways.

Returns
TypeDescription
Google\Cloud\Iot\V1\GatewayListOptions|null

hasGatewayListOptions

clearGatewayListOptions

setGatewayListOptions

Options related to gateways.

Parameter
NameDescription
var Google\Cloud\Iot\V1\GatewayListOptions
Returns
TypeDescription
$this

getPageSize

The maximum number of devices to return in the response. If this value is zero, the service will select a default size. A call may return fewer objects than requested. A non-empty next_page_token in the response indicates that more data is available.

Returns
TypeDescription
int

setPageSize

The maximum number of devices to return in the response. If this value is zero, the service will select a default size. A call may return fewer objects than requested. A non-empty next_page_token in the response indicates that more data is available.

Parameter
NameDescription
var int
Returns
TypeDescription
$this

getPageToken

The value returned by the last ListDevicesResponse; indicates that this is a continuation of a prior ListDevices call and the system should return the next page of data.

Returns
TypeDescription
string

setPageToken

The value returned by the last ListDevicesResponse; indicates that this is a continuation of a prior ListDevices call and the system should return the next page of data.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

static::build

Parameter
NameDescription
parent string

Required. The device registry path. Required. For example, projects/my-project/locations/us-central1/registries/my-registry. Please see Google\Cloud\Iot\V1\DeviceManagerClient::registryName() for help formatting this field.

Returns
TypeDescription
Google\Cloud\Iot\V1\ListDevicesRequest