# Network Services V1 API - Class Google::Cloud::NetworkServices::V1::GrpcRoute::MethodMatch (v2.10.1)

2.10.1 (latest) 2.10.0 2.9.0 2.8.0 2.7.0 2.6.1 2.5.0 2.4.0 2.3.0 2.2.0 2.1.0 2.0.1 1.2.0 1.1.0 1.0.1 0.2.0 0.1.0 Reference documentation and code samples for the Network Services V1 API class Google::Cloud::NetworkServices::V1::GrpcRoute::MethodMatch.

Specifies a match against a method.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #case_sensitive

    def case_sensitive() -> ::Boolean

**Returns**

- (::Boolean) --- Optional. Specifies that matches are case sensitive. The default value is true. case_sensitive must not be used with a type of REGULAR_EXPRESSION.

### #case_sensitive=

    def case_sensitive=(value) -> ::Boolean

**Parameter**

- **value** (::Boolean) --- Optional. Specifies that matches are case sensitive. The default value is true. case_sensitive must not be used with a type of REGULAR_EXPRESSION.
**Returns**

- (::Boolean) --- Optional. Specifies that matches are case sensitive. The default value is true. case_sensitive must not be used with a type of REGULAR_EXPRESSION.

### #grpc_method

    def grpc_method() -> ::String

**Returns**

- (::String) --- Required. Name of the method to match against. If unspecified, will match all methods.

### #grpc_method=

    def grpc_method=(value) -> ::String

**Parameter**

- **value** (::String) --- Required. Name of the method to match against. If unspecified, will match all methods.
**Returns**

- (::String) --- Required. Name of the method to match against. If unspecified, will match all methods.

### #grpc_service

    def grpc_service() -> ::String

**Returns**

- (::String) --- Required. Name of the service to match against. If unspecified, will match all services.

### #grpc_service=

    def grpc_service=(value) -> ::String

**Parameter**

- **value** (::String) --- Required. Name of the service to match against. If unspecified, will match all services.
**Returns**

- (::String) --- Required. Name of the service to match against. If unspecified, will match all services.

### #type

    def type() -> ::Google::Cloud::NetworkServices::V1::GrpcRoute::MethodMatch::Type

**Returns**

- ([::Google::Cloud::NetworkServices::V1::GrpcRoute::MethodMatch::Type](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-network_services-v1/latest/Google-Cloud-NetworkServices-V1-GrpcRoute-MethodMatch-Type)) --- Optional. Specifies how to match against the name. If not specified, a default value of "EXACT" is used.

### #type=

    def type=(value) -> ::Google::Cloud::NetworkServices::V1::GrpcRoute::MethodMatch::Type

**Parameter**

- **value** ([::Google::Cloud::NetworkServices::V1::GrpcRoute::MethodMatch::Type](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-network_services-v1/latest/Google-Cloud-NetworkServices-V1-GrpcRoute-MethodMatch-Type)) --- Optional. Specifies how to match against the name. If not specified, a default value of "EXACT" is used.
**Returns**

- ([::Google::Cloud::NetworkServices::V1::GrpcRoute::MethodMatch::Type](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-network_services-v1/latest/Google-Cloud-NetworkServices-V1-GrpcRoute-MethodMatch-Type)) --- Optional. Specifies how to match against the name. If not specified, a default value of "EXACT" is used.