# Google Cloud Network Services V1 Client - Class MethodMatch (0.8.2)

0.8.2 (latest) 0.8.1 0.7.1 0.6.1 0.5.0 0.4.0 0.3.0 0.2.3 0.1.1 Reference documentation and code samples for the Google Cloud Network Services V1 Client class MethodMatch.

Specifies a match against a method.

Generated from protobuf message `google.cloud.networkservices.v1.GrpcRoute.MethodMatch`

## Namespace

Google \\ Cloud \\ NetworkServices \\ V1 \\ GrpcRoute

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ type` | `int` Optional. Specifies how to match against the name. If not specified, a default value of "EXACT" is used. |
| `↳ grpc_service` | `string` Required. Name of the service to match against. If unspecified, will match all services. |
| `↳ grpc_method` | `string` Required. Name of the method to match against. If unspecified, will match all methods. |
| `↳ case_sensitive` | `bool` Optional. Specifies that matches are case sensitive. The default value is true. case_sensitive must not be used with a type of REGULAR_EXPRESSION. |

### getType

Optional. Specifies how to match against the name. If not specified, a
default value of "EXACT" is used.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` | Enum of type [Type](https://docs.cloud.google.com/php/docs/reference/cloud-networkservices/latest/V1.GrpcRoute.MethodMatch.Type). |

### setType

Optional. Specifies how to match against the name. If not specified, a
default value of "EXACT" is used.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int` Enum of type [Type](https://docs.cloud.google.com/php/docs/reference/cloud-networkservices/latest/V1.GrpcRoute.MethodMatch.Type). |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getGrpcService

Required. Name of the service to match against. If unspecified, will
match all services.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### setGrpcService

Required. Name of the service to match against. If unspecified, will
match all services.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getGrpcMethod

Required. Name of the method to match against. If unspecified, will match
all methods.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### setGrpcMethod

Required. Name of the method to match against. If unspecified, will match
all methods.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getCaseSensitive

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** ||
|---|---|
| **Type** | **Description** |
| `bool` |   |

### hasCaseSensitive

### clearCaseSensitive

### setCaseSensitive

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

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `bool` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |