Reference documentation and code samples for the Google Cloud Network Services V1 Client class HeaderMatch.
A match against a collection of headers.
Generated from protobuf message google.cloud.networkservices.v1.GrpcRoute.HeaderMatch
Namespace
Google \ Cloud \ NetworkServices \ V1 \ GrpcRouteMethods
__construct
Constructor.
Parameters | |
---|---|
Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ type |
int
Optional. Specifies how to match against the value of the header. If not specified, a default value of EXACT is used. |
↳ key |
string
Required. The key of the header. |
↳ value |
string
Required. The value of the header. |
getType
Optional. Specifies how to match against the value of the header. If not specified, a default value of EXACT is used.
Returns | |
---|---|
Type | Description |
int |
setType
Optional. Specifies how to match against the value of the header. If not specified, a default value of EXACT is used.
Parameter | |
---|---|
Name | Description |
var |
int
|
Returns | |
---|---|
Type | Description |
$this |
getKey
Required. The key of the header.
Returns | |
---|---|
Type | Description |
string |
setKey
Required. The key of the header.
Parameter | |
---|---|
Name | Description |
var |
string
|
Returns | |
---|---|
Type | Description |
$this |
getValue
Required. The value of the header.
Returns | |
---|---|
Type | Description |
string |
setValue
Required. The value of the header.
Parameter | |
---|---|
Name | Description |
var |
string
|
Returns | |
---|---|
Type | Description |
$this |