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

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

Gateway-related configuration and state.

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

Namespace

Google \ Cloud \ Iot \ V1

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ gateway_type int

Indicates whether the device is a gateway.

↳ gateway_auth_method int

Indicates how to authorize and/or authenticate devices to access the gateway.

↳ last_accessed_gateway_id string

[Output only] The ID of the gateway the device accessed most recently.

↳ last_accessed_gateway_time Google\Protobuf\Timestamp

[Output only] The most recent time at which the device accessed the gateway specified in last_accessed_gateway.

getGatewayType

Indicates whether the device is a gateway.

Returns
TypeDescription
int

setGatewayType

Indicates whether the device is a gateway.

Parameter
NameDescription
var int
Returns
TypeDescription
$this

getGatewayAuthMethod

Indicates how to authorize and/or authenticate devices to access the gateway.

Returns
TypeDescription
int

setGatewayAuthMethod

Indicates how to authorize and/or authenticate devices to access the gateway.

Parameter
NameDescription
var int
Returns
TypeDescription
$this

getLastAccessedGatewayId

[Output only] The ID of the gateway the device accessed most recently.

Returns
TypeDescription
string

setLastAccessedGatewayId

[Output only] The ID of the gateway the device accessed most recently.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getLastAccessedGatewayTime

[Output only] The most recent time at which the device accessed the gateway specified in last_accessed_gateway.

Returns
TypeDescription
Google\Protobuf\Timestamp|null

hasLastAccessedGatewayTime

clearLastAccessedGatewayTime

setLastAccessedGatewayTime

[Output only] The most recent time at which the device accessed the gateway specified in last_accessed_gateway.

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