2.1.3 (latest) 2.1.2 2.0.4 1.3.5 1.2.2 1.1.1 1.0.5 Reference documentation and code samples for the Google Cloud Api Gateway V1 Client class GrpcServiceDefinition.

A gRPC service definition.

Generated from protobuf message `google.cloud.apigateway.v1.ApiConfig.GrpcServiceDefinition`

## Namespace

Google \\ Cloud \\ ApiGateway \\ V1 \\ ApiConfig

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ file_descriptor_set` | `https://docs.cloud.google.com/php/docs/reference/cloud-api-gateway/latest/V1.ApiConfig.File` Input only. File descriptor set, generated by protoc. To generate, use protoc with imports and source info included. For an example test.proto file, the following command would put the value in a new file named out.pb. $ protoc --include_imports --include_source_info test.proto -o out.pb |
| `↳ source` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-api-gateway/latest/V1.ApiConfig.File>` 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. |

### getFileDescriptorSet

Input only. File descriptor set, generated by protoc.

To generate, use protoc with imports and source info included.
For an example test.proto file, the following command would put the value
in a new file named out.pb.
$ protoc --include_imports --include_source_info test.proto -o out.pb

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-api-gateway/latest/V1.ApiConfig.File|null` |   |

### hasFileDescriptorSet

### clearFileDescriptorSet

### setFileDescriptorSet

Input only. File descriptor set, generated by protoc.

To generate, use protoc with imports and source info included.
For an example test.proto file, the following command would put the value
in a new file named out.pb.
$ protoc --include_imports --include_source_info test.proto -o out.pb

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-api-gateway/latest/V1.ApiConfig.File` |

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

### getSource

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.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `Google\Protobuf\RepeatedField<https://docs.cloud.google.com/php/docs/reference/cloud-api-gateway/latest/V1.ApiConfig.File>` |   |

### setSource

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.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-api-gateway/latest/V1.ApiConfig.File>` |

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