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 \ GrpcRouteMethods
__construct
Constructor.
Parameters | |
---|---|
Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ matches |
array<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 |
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<RouteMatch>
|
Returns | |
---|---|
Type | Description |
$this |
getAction
Required. A detailed rule defining how to route traffic. This field is required.
Returns | |
---|---|
Type | Description |
RouteAction|null |
hasAction
clearAction
setAction
Required. A detailed rule defining how to route traffic. This field is required.
Parameter | |
---|---|
Name | Description |
var |
RouteAction
|
Returns | |
---|---|
Type | Description |
$this |