# Interface GrpcRoute.MethodMatchOrBuilder (0.49.0)

0.49.0 (latest) 0.47.0 0.44.0 0.43.0 0.41.0 0.39.0 0.38.0 0.36.0 0.34.0 0.32.0 0.31.0 0.30.0 0.29.0 0.28.0 0.26.0 0.24.0 0.23.0 0.20.0 0.19.0 0.18.0 0.16.0 0.15.0 0.14.0 0.13.0 0.12.0 0.11.0 0.10.0 0.9.0 0.8.0 0.7.0 0.5.0 0.4.0 0.3.0 0.2.0 0.1.0

    public static interface GrpcRoute.MethodMatchOrBuilder extends MessageOrBuilder

## Implements

[MessageOrBuilder](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.MessageOrBuilder.html)

## Methods

### getCaseSensitive()

    public abstract boolean 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.

`optional bool case_sensitive = 4 [(.google.api.field_behavior) = OPTIONAL];`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | The caseSensitive. |

### getGrpcMethod()

    public abstract String getGrpcMethod()

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

`string grpc_method = 3 [(.google.api.field_behavior) = REQUIRED];`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` | The grpcMethod. |

### getGrpcMethodBytes()

    public abstract ByteString getGrpcMethodBytes()

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

`string grpc_method = 3 [(.google.api.field_behavior) = REQUIRED];`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` | The bytes for grpcMethod. |

### getGrpcService()

    public abstract String getGrpcService()

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

`string grpc_service = 2 [(.google.api.field_behavior) = REQUIRED];`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` | The grpcService. |

### getGrpcServiceBytes()

    public abstract ByteString getGrpcServiceBytes()

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

`string grpc_service = 2 [(.google.api.field_behavior) = REQUIRED];`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` | The bytes for grpcService. |

### getType()

    public abstract GrpcRoute.MethodMatch.Type getType()

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

`
.google.cloud.networkservices.v1.GrpcRoute.MethodMatch.Type type = 1 [(.google.api.field_behavior) = OPTIONAL];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-networkservices/latest/com.google.cloud.networkservices.v1.GrpcRoute.MethodMatch.Type` | The type. |

### getTypeValue()

    public abstract int getTypeValue()

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

`
.google.cloud.networkservices.v1.GrpcRoute.MethodMatch.Type type = 1 [(.google.api.field_behavior) = OPTIONAL];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | The enum numeric value on the wire for type. |

### hasCaseSensitive()

    public abstract boolean hasCaseSensitive()

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

`optional bool case_sensitive = 4 [(.google.api.field_behavior) = OPTIONAL];`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | Whether the caseSensitive field is set. |