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

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

A public key format and data.

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

Namespace

Google \ Cloud \ Iot \ V1

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ format int

The format of the key.

↳ key string

The key data.

getFormat

The format of the key.

Returns
TypeDescription
int

setFormat

The format of the key.

Parameter
NameDescription
var int
Returns
TypeDescription
$this

getKey

The key data.

Returns
TypeDescription
string

setKey

The key data.

Parameter
NameDescription
var string
Returns
TypeDescription
$this