Reference documentation and code samples for the Google Cloud Network Services V1 Client class RouteMatch.
Criteria for matching traffic. A RouteMatch will be considered to match when all supplied fields match.
Generated from protobuf message google.cloud.networkservices.v1.GrpcRoute.RouteMatch
Namespace
Google \ Cloud \ NetworkServices \ V1 \ GrpcRouteMethods
__construct
Constructor.
Parameters | |
---|---|
Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ method |
MethodMatch
Optional. A gRPC method to match against. If this field is empty or omitted, will match all methods. |
↳ headers |
array<HeaderMatch>
Optional. Specifies a collection of headers to match. |
getMethod
Optional. A gRPC method to match against. If this field is empty or omitted, will match all methods.
Returns | |
---|---|
Type | Description |
MethodMatch|null |
hasMethod
clearMethod
setMethod
Optional. A gRPC method to match against. If this field is empty or omitted, will match all methods.
Parameter | |
---|---|
Name | Description |
var |
MethodMatch
|
Returns | |
---|---|
Type | Description |
$this |
getHeaders
Optional. Specifies a collection of headers to match.
Returns | |
---|---|
Type | Description |
Google\Protobuf\Internal\RepeatedField |
setHeaders
Optional. Specifies a collection of headers to match.
Parameter | |
---|---|
Name | Description |
var |
array<HeaderMatch>
|
Returns | |
---|---|
Type | Description |
$this |