# Interface MethodOrBuilder (3.19.4)

    public interface MethodOrBuilder extends MessageLiteOrBuilder

## Implements

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

## Methods

### getName()

    public abstract String getName()

The simple name of this method.

`string name = 1;`

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

### getNameBytes()

    public abstract ByteString getNameBytes()

The simple name of this method.

`string name = 1;`

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

### getOptions(int index)

    public abstract Option getOptions(int index)

Any metadata attached to the method.

`repeated .google.protobuf.Option options = 6;`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `index` | `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.Option` |   |

### getOptionsCount()

    public abstract int getOptionsCount()

Any metadata attached to the method.

`repeated .google.protobuf.Option options = 6;`

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

### getOptionsList()

    public abstract List<Option> getOptionsList()

Any metadata attached to the method.

`repeated .google.protobuf.Option options = 6;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/util/List.html<https://docs.cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.Option>` |   |

### getRequestStreaming()

    public abstract boolean getRequestStreaming()

If true, the request is streamed.

`bool request_streaming = 3;`

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

### getRequestTypeUrl()

    public abstract String getRequestTypeUrl()

A URL of the input message type.

`string request_type_url = 2;`

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

### getRequestTypeUrlBytes()

    public abstract ByteString getRequestTypeUrlBytes()

A URL of the input message type.

`string request_type_url = 2;`

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

### getResponseStreaming()

    public abstract boolean getResponseStreaming()

If true, the response is streamed.

`bool response_streaming = 5;`

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

### getResponseTypeUrl()

    public abstract String getResponseTypeUrl()

The URL of the output message type.

`string response_type_url = 4;`

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

### getResponseTypeUrlBytes()

    public abstract ByteString getResponseTypeUrlBytes()

The URL of the output message type.

`string response_type_url = 4;`

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

### getSyntax()

    public abstract Syntax getSyntax()

The source syntax of this method.

`.google.protobuf.Syntax syntax = 7;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.Syntax` | The syntax. |

### getSyntaxValue()

    public abstract int getSyntaxValue()

The source syntax of this method.

`.google.protobuf.Syntax syntax = 7;`

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