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

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<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 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<RouteMatch>
Returns
Type Description
$this

getAction

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

Returns
Type Description
RouteAction|null

hasAction

clearAction

setAction

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

Parameter
Name Description
var RouteAction
Returns
Type Description
$this