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

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

getAction

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

hasAction

clearAction

setAction

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

Returns
Type
Description
$this
Create a Mobile Website
View Site in Mobile | Classic
Share by: