# Interface ApiConfig.GrpcServiceDefinitionOrBuilder (0.16.0)

<button class="button button-with-icon cloud-select-dropdown__button " aria-haspopup="true">Version latest</button>

- [0.16.0 (latest)](https://docs.cloud.google.com/java/docs/reference/google-cloudevent-types/latest/com.google.events.cloud.apigateway.v1.ApiConfig.GrpcServiceDefinitionOrBuilder)
- [0.15.0](https://docs.cloud.google.com/java/docs/reference/google-cloudevent-types/0.15.0/com.google.events.cloud.apigateway.v1.ApiConfig.GrpcServiceDefinitionOrBuilder)
- [0.14.1](https://docs.cloud.google.com/java/docs/reference/google-cloudevent-types/0.14.1/com.google.events.cloud.apigateway.v1.ApiConfig.GrpcServiceDefinitionOrBuilder)

    public static interface ApiConfig.GrpcServiceDefinitionOrBuilder extends MessageOrBuilder

## Implements

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

## Methods

### getSource(int index)

    public abstract ApiConfig.File getSource(int index)

Optional. Uncompiled proto files associated with the descriptor set, used
for display purposes (server-side compilation is not supported). These
should match the inputs to 'protoc' command used to generate
file_descriptor_set.

`repeated .google.events.cloud.apigateway.v1.ApiConfig.File source = 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/google-cloudevent-types/latest/com.google.events.cloud.apigateway.v1.ApiConfig.File` |   |

### getSourceCount()

    public abstract int getSourceCount()

Optional. Uncompiled proto files associated with the descriptor set, used
for display purposes (server-side compilation is not supported). These
should match the inputs to 'protoc' command used to generate
file_descriptor_set.

`repeated .google.events.cloud.apigateway.v1.ApiConfig.File source = 2;`

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

### getSourceList()

    public abstract List<ApiConfig.File> getSourceList()

Optional. Uncompiled proto files associated with the descriptor set, used
for display purposes (server-side compilation is not supported). These
should match the inputs to 'protoc' command used to generate
file_descriptor_set.

`repeated .google.events.cloud.apigateway.v1.ApiConfig.File source = 2;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/util/List.html<https://docs.cloud.google.com/java/docs/reference/google-cloudevent-types/latest/com.google.events.cloud.apigateway.v1.ApiConfig.File>` |   |

### getSourceOrBuilder(int index)

    public abstract ApiConfig.FileOrBuilder getSourceOrBuilder(int index)

Optional. Uncompiled proto files associated with the descriptor set, used
for display purposes (server-side compilation is not supported). These
should match the inputs to 'protoc' command used to generate
file_descriptor_set.

`repeated .google.events.cloud.apigateway.v1.ApiConfig.File source = 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/google-cloudevent-types/latest/com.google.events.cloud.apigateway.v1.ApiConfig.FileOrBuilder` |   |

### getSourceOrBuilderList()

    public abstract List<? extends ApiConfig.FileOrBuilder> getSourceOrBuilderList()

Optional. Uncompiled proto files associated with the descriptor set, used
for display purposes (server-side compilation is not supported). These
should match the inputs to 'protoc' command used to generate
file_descriptor_set.

`repeated .google.events.cloud.apigateway.v1.ApiConfig.File source = 2;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/util/List.html<? extends com.google.events.cloud.apigateway.v1.ApiConfig.FileOrBuilder>` |   |