Google Cloud Api Hub V1 Client - Class Header (0.3.0)

Reference documentation and code samples for the Google Cloud Api Hub V1 Client class Header.

An aggregation of HTTP header occurrences.

Generated from protobuf message google.cloud.apihub.v1.HttpOperationDetails.Header

Namespace

Google \ Cloud \ ApiHub \ V1 \ HttpOperationDetails

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ name string

Header name.

↳ count int|string

The number of occurrences of this Header across transactions.

↳ data_type int

Data type of header

getName

Header name.

Returns
Type Description
string

setName

Header name.

Parameter
Name Description
var string
Returns
Type Description
$this

getCount

The number of occurrences of this Header across transactions.

Returns
Type Description
int|string

setCount

The number of occurrences of this Header across transactions.

Parameter
Name Description
var int|string
Returns
Type Description
$this

getDataType

Data type of header

Returns
Type Description
int Enum of type DataType.

setDataType

Data type of header

Parameter
Name Description
var int

Enum of type DataType.

Returns
Type Description
$this