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.

Specifies how to match traffic and how to route traffic when traffic is matched.

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

Namespace

Google \ Cloud \ NetworkServices \ V1 \ TcpRoute

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

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

Optional. RouteMatch defines the predicate used to match requests to a given action. Multiple match types are "OR"ed for evaluation. If no routeMatch field is specified, this rule will unconditionally match traffic.

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

Required. The detailed rule defining how to route matched traffic.

getMatches

Optional. RouteMatch defines the predicate used to match requests to a given action. Multiple match types are "OR"ed for evaluation. If no routeMatch field is specified, this rule will unconditionally match traffic.

Returns
Type Description
Google\Protobuf\Internal\RepeatedField

setMatches

Optional. RouteMatch defines the predicate used to match requests to a given action. Multiple match types are "OR"ed for evaluation. If no routeMatch field is specified, this rule will unconditionally match traffic.

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

getAction

Required. The detailed rule defining how to route matched traffic.

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

hasAction

clearAction

setAction

Required. The detailed rule defining how to route matched traffic.

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