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 \ TcpRouteMethods
__construct
Constructor.
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
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.
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.
$this
getAction
Required. The detailed rule defining how to route matched traffic.
hasAction
clearAction
setAction
Required. The detailed rule defining how to route matched traffic.
$this