Google Cloud Api Gateway V1 Client - Class GrpcServiceDefinition (2.0.0-RC1)

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 Google\Cloud\ApiGateway\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<Google\Cloud\ApiGateway\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
Google\Cloud\ApiGateway\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 Google\Cloud\ApiGateway\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\Internal\RepeatedField

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<Google\Cloud\ApiGateway\V1\ApiConfig\File>
Returns
Type Description
$this