Reference documentation and code samples for the Network Services V1 API class Google::Cloud::NetworkServices::V1::TcpRoute::RouteMatch.
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.
Inherits
Object
Extended By
Google::Protobuf::MessageExts::ClassMethods
Includes
Google::Protobuf::MessageExts
Methods
#address
defaddress()->::String
Returns
(::String) —
Required. Must be specified in the CIDR range format. A CIDR range
consists of an IP Address and a prefix length to construct the subnet
mask. By default, the prefix length is 32 (i.e. matches a single IP
address). Only IPV4 addresses are supported. Examples: "10.0.0.1" -
matches against this exact IP address. "10.0.0.0/8" - matches against any
IP address within the 10.0.0.0 subnet and 255.255.255.0 mask. "0.0.0.0/0"
matches against any IP address'.
#address=
defaddress=(value)->::String
Parameter
value (::String) —
Required. Must be specified in the CIDR range format. A CIDR range
consists of an IP Address and a prefix length to construct the subnet
mask. By default, the prefix length is 32 (i.e. matches a single IP
address). Only IPV4 addresses are supported. Examples: "10.0.0.1" -
matches against this exact IP address. "10.0.0.0/8" - matches against any
IP address within the 10.0.0.0 subnet and 255.255.255.0 mask. "0.0.0.0/0"
matches against any IP address'.
Returns
(::String) —
Required. Must be specified in the CIDR range format. A CIDR range
consists of an IP Address and a prefix length to construct the subnet
mask. By default, the prefix length is 32 (i.e. matches a single IP
address). Only IPV4 addresses are supported. Examples: "10.0.0.1" -
matches against this exact IP address. "10.0.0.0/8" - matches against any
IP address within the 10.0.0.0 subnet and 255.255.255.0 mask. "0.0.0.0/0"
matches against any IP address'.
#port
defport()->::String
Returns
(::String) — Required. Specifies the destination port to match against.
#port=
defport=(value)->::String
Parameter
value (::String) — Required. Specifies the destination port to match against.
Returns
(::String) — Required. Specifies the destination port to match against.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-28 UTC."],[],[],null,["# Network Services V1 API - Class Google::Cloud::NetworkServices::V1::TcpRoute::RouteMatch (v2.4.0)\n\nVersion latestkeyboard_arrow_down\n\n- [2.4.0 (latest)](/ruby/docs/reference/google-cloud-network_services-v1/latest/Google-Cloud-NetworkServices-V1-TcpRoute-RouteMatch)\n- [2.3.0](/ruby/docs/reference/google-cloud-network_services-v1/2.3.0/Google-Cloud-NetworkServices-V1-TcpRoute-RouteMatch)\n- [2.2.0](/ruby/docs/reference/google-cloud-network_services-v1/2.2.0/Google-Cloud-NetworkServices-V1-TcpRoute-RouteMatch)\n- [2.1.0](/ruby/docs/reference/google-cloud-network_services-v1/2.1.0/Google-Cloud-NetworkServices-V1-TcpRoute-RouteMatch)\n- [2.0.1](/ruby/docs/reference/google-cloud-network_services-v1/2.0.1/Google-Cloud-NetworkServices-V1-TcpRoute-RouteMatch)\n- [1.2.0](/ruby/docs/reference/google-cloud-network_services-v1/1.2.0/Google-Cloud-NetworkServices-V1-TcpRoute-RouteMatch)\n- [1.1.0](/ruby/docs/reference/google-cloud-network_services-v1/1.1.0/Google-Cloud-NetworkServices-V1-TcpRoute-RouteMatch)\n- [1.0.1](/ruby/docs/reference/google-cloud-network_services-v1/1.0.1/Google-Cloud-NetworkServices-V1-TcpRoute-RouteMatch)\n- [0.2.0](/ruby/docs/reference/google-cloud-network_services-v1/0.2.0/Google-Cloud-NetworkServices-V1-TcpRoute-RouteMatch)\n- [0.1.0](/ruby/docs/reference/google-cloud-network_services-v1/0.1.0/Google-Cloud-NetworkServices-V1-TcpRoute-RouteMatch) \nReference documentation and code samples for the Network Services V1 API class Google::Cloud::NetworkServices::V1::TcpRoute::RouteMatch.\n\nRouteMatch defines the predicate used to match requests to a given action.\nMultiple match types are \"OR\"ed for evaluation.\nIf no routeMatch field is specified, this rule will unconditionally match\ntraffic. \n\nInherits\n--------\n\n- Object \n\nExtended By\n-----------\n\n- Google::Protobuf::MessageExts::ClassMethods \n\nIncludes\n--------\n\n- Google::Protobuf::MessageExts\n\nMethods\n-------\n\n### #address\n\n def address() -\u003e ::String\n\n**Returns**\n\n- (::String) --- Required. Must be specified in the CIDR range format. A CIDR range\n consists of an IP Address and a prefix length to construct the subnet\n mask. By default, the prefix length is 32 (i.e. matches a single IP\n address). Only IPV4 addresses are supported. Examples: \"10.0.0.1\" -\n matches against this exact IP address. \"10.0.0.0/8\" - matches against any\n IP address within the 10.0.0.0 subnet and 255.255.255.0 mask. \"0.0.0.0/0\"\n\n - matches against any IP address'.\n\n### #address=\n\n def address=(value) -\u003e ::String\n\n**Parameter**\n\n- **value** (::String) ---\n\n Required. Must be specified in the CIDR range format. A CIDR range\n consists of an IP Address and a prefix length to construct the subnet\n mask. By default, the prefix length is 32 (i.e. matches a single IP\n address). Only IPV4 addresses are supported. Examples: \"10.0.0.1\" -\n matches against this exact IP address. \"10.0.0.0/8\" - matches against any\n IP address within the 10.0.0.0 subnet and 255.255.255.0 mask. \"0.0.0.0/0\"\n- matches against any IP address'. \n**Returns**\n\n- (::String) --- Required. Must be specified in the CIDR range format. A CIDR range\n consists of an IP Address and a prefix length to construct the subnet\n mask. By default, the prefix length is 32 (i.e. matches a single IP\n address). Only IPV4 addresses are supported. Examples: \"10.0.0.1\" -\n matches against this exact IP address. \"10.0.0.0/8\" - matches against any\n IP address within the 10.0.0.0 subnet and 255.255.255.0 mask. \"0.0.0.0/0\"\n\n - matches against any IP address'.\n\n### #port\n\n def port() -\u003e ::String\n\n**Returns**\n\n- (::String) --- Required. Specifies the destination port to match against.\n\n### #port=\n\n def port=(value) -\u003e ::String\n\n**Parameter**\n\n- **value** (::String) --- Required. Specifies the destination port to match against. \n**Returns**\n\n- (::String) --- Required. Specifies the destination port to match against."]]