Google Cloud Tasks V2beta2 Client - Class Header (1.15.1)

Reference documentation and code samples for the Google Cloud Tasks V2beta2 Client class Header.

Defines a header message. A header can have a key and a value.

Generated from protobuf message google.cloud.tasks.v2beta2.HttpTarget.Header

Namespace

Google \ Cloud \ Tasks \ V2beta2 \ HttpTarget

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ key string

The key of the header.

↳ value string

The value of the header.

getKey

The key of the header.

Returns
Type Description
string

setKey

The key of the header.

Parameter
Name Description
var string
Returns
Type Description
$this

getValue

The value of the header.

Returns
Type Description
string

setValue

The value of the header.

Parameter
Name Description
var string
Returns
Type Description
$this