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

Reference documentation and code samples for the Google Cloud Network Services V1 Client class RouteRule.

Describes how to route traffic.

Generated from protobuf message google.cloud.networkservices.v1.GrpcRoute.RouteRule

Namespace

Google \ Cloud \ NetworkServices \ V1 \ GrpcRoute

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ matches array<Google\Cloud\NetworkServices\V1\GrpcRoute\RouteMatch>

Optional. Matches define conditions used for matching the rule against incoming gRPC requests. Each match is independent, i.e. this rule will be matched if ANY one of the matches is satisfied. If no matches field is specified, this rule will unconditionally match traffic.

↳ action Google\Cloud\NetworkServices\V1\GrpcRoute\RouteAction

Required. A detailed rule defining how to route traffic. This field is required.

getMatches

Optional. Matches define conditions used for matching the rule against incoming gRPC requests. Each match is independent, i.e. this rule will be matched if ANY one of the matches is satisfied. If no matches field is specified, this rule will unconditionally match traffic.

Returns
Type Description
Google\Protobuf\Internal\RepeatedField

setMatches

Optional. Matches define conditions used for matching the rule against incoming gRPC requests. Each match is independent, i.e. this rule will be matched if ANY one of the matches is satisfied. If no matches field is specified, this rule will unconditionally match traffic.

Parameter
Name Description
var array<Google\Cloud\NetworkServices\V1\GrpcRoute\RouteMatch>
Returns
Type Description
$this

getAction

Required. A detailed rule defining how to route traffic. This field is required.

Returns
Type Description
Google\Cloud\NetworkServices\V1\GrpcRoute\RouteAction|null

hasAction

clearAction

setAction

Required. A detailed rule defining how to route traffic. This field is required.

Parameter
Name Description
var Google\Cloud\NetworkServices\V1\GrpcRoute\RouteAction
Returns
Type Description
$this