Google Cloud Network Services V1 Client - Class RouteMatch (0.1.1)

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 \ GrpcRoute

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ method Google\Cloud\NetworkServices\V1\GrpcRoute\MethodMatch

Optional. A gRPC method to match against. If this field is empty or omitted, will match all methods.

↳ headers array<Google\Cloud\NetworkServices\V1\GrpcRoute\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
Google\Cloud\NetworkServices\V1\GrpcRoute\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 Google\Cloud\NetworkServices\V1\GrpcRoute\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<Google\Cloud\NetworkServices\V1\GrpcRoute\HeaderMatch>
Returns
Type Description
$this