public sealed class GrpcRoute.Types.RouteRule : IMessage<GrpcRoute.Types.RouteRule>, IEquatable<GrpcRoute.Types.RouteRule>, IDeepCloneable<GrpcRoute.Types.RouteRule>, IBufferMessage, IMessage
Reference documentation and code samples for the Network Services v1 API class GrpcRoute.Types.RouteRule.
Describes how to route traffic.
Implements
IMessageGrpcRouteTypesRouteRule, IEquatableGrpcRouteTypesRouteRule, IDeepCloneableGrpcRouteTypesRouteRule, IBufferMessage, IMessageNamespace
Google.Cloud.NetworkServices.V1Assembly
Google.Cloud.NetworkServices.V1.dll
Constructors
RouteRule()
public RouteRule()
RouteRule(RouteRule)
public RouteRule(GrpcRoute.Types.RouteRule other)
Parameter | |
---|---|
Name | Description |
other |
GrpcRouteTypesRouteRule |
Properties
Action
public GrpcRoute.Types.RouteAction Action { get; set; }
Required. A detailed rule defining how to route traffic. This field is required.
Property Value | |
---|---|
Type | Description |
GrpcRouteTypesRouteAction |
Matches
public RepeatedField<GrpcRoute.Types.RouteMatch> Matches { get; }
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.
Property Value | |
---|---|
Type | Description |
RepeatedFieldGrpcRouteTypesRouteMatch |