# Interface DescriptorProtos.ServiceDescriptorProtoOrBuilder (3.19.4)

    public static interface DescriptorProtos.ServiceDescriptorProtoOrBuilder extends MessageOrBuilder

## Implements

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

## Methods

### getMethod(int index)

    public abstract DescriptorProtos.MethodDescriptorProto getMethod(int index)

`repeated .google.protobuf.MethodDescriptorProto method = 2;`

| **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.DescriptorProtos.MethodDescriptorProto` |   |

### getMethodCount()

    public abstract int getMethodCount()

`repeated .google.protobuf.MethodDescriptorProto method = 2;`

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

### getMethodList()

    public abstract List<DescriptorProtos.MethodDescriptorProto> getMethodList()

`repeated .google.protobuf.MethodDescriptorProto method = 2;`

| **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.DescriptorProtos.MethodDescriptorProto>` |   |

### getMethodOrBuilder(int index)

    public abstract DescriptorProtos.MethodDescriptorProtoOrBuilder getMethodOrBuilder(int index)

`repeated .google.protobuf.MethodDescriptorProto method = 2;`

| **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.DescriptorProtos.MethodDescriptorProtoOrBuilder` |   |

### getMethodOrBuilderList()

    public abstract List<? extends DescriptorProtos.MethodDescriptorProtoOrBuilder> getMethodOrBuilderList()

`repeated .google.protobuf.MethodDescriptorProto method = 2;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/util/List.html<? extends com.google.protobuf.DescriptorProtos.MethodDescriptorProtoOrBuilder>` |   |

### getName()

    public abstract String getName()

`optional 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()

`optional 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()

    public abstract DescriptorProtos.ServiceOptions getOptions()

`optional .google.protobuf.ServiceOptions options = 3;`

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

### getOptionsOrBuilder()

    public abstract DescriptorProtos.ServiceOptionsOrBuilder getOptionsOrBuilder()

`optional .google.protobuf.ServiceOptions options = 3;`

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

### hasName()

    public abstract boolean hasName()

`optional string name = 1;`

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

### hasOptions()

    public abstract boolean hasOptions()

`optional .google.protobuf.ServiceOptions options = 3;`

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