Reference documentation and code samples for the Network Services V1 API class Google::Cloud::NetworkServices::V1::GrpcRoute::RouteMatch.
Criteria for matching traffic. A RouteMatch will be considered to match when all supplied fields match.
Inherits
- Object
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#headers
def headers() -> ::Array<::Google::Cloud::NetworkServices::V1::GrpcRoute::HeaderMatch>
Returns
- (::Array<::Google::Cloud::NetworkServices::V1::GrpcRoute::HeaderMatch>) — Optional. Specifies a collection of headers to match.
#headers=
def headers=(value) -> ::Array<::Google::Cloud::NetworkServices::V1::GrpcRoute::HeaderMatch>
Parameter
- value (::Array<::Google::Cloud::NetworkServices::V1::GrpcRoute::HeaderMatch>) — Optional. Specifies a collection of headers to match.
Returns
- (::Array<::Google::Cloud::NetworkServices::V1::GrpcRoute::HeaderMatch>) — Optional. Specifies a collection of headers to match.
#method
def method() -> ::Google::Cloud::NetworkServices::V1::GrpcRoute::MethodMatch
Returns
- (::Google::Cloud::NetworkServices::V1::GrpcRoute::MethodMatch) — Optional. A gRPC method to match against. If this field is empty or omitted, will match all methods.
#method=
def method=(value) -> ::Google::Cloud::NetworkServices::V1::GrpcRoute::MethodMatch
Parameter
- value (::Google::Cloud::NetworkServices::V1::GrpcRoute::MethodMatch) — Optional. A gRPC method to match against. If this field is empty or omitted, will match all methods.
Returns
- (::Google::Cloud::NetworkServices::V1::GrpcRoute::MethodMatch) — Optional. A gRPC method to match against. If this field is empty or omitted, will match all methods.