public sealed class ApiConfig.Types.GrpcServiceDefinition : IMessage<ApiConfig.Types.GrpcServiceDefinition>, IEquatable<ApiConfig.Types.GrpcServiceDefinition>, IDeepCloneable<ApiConfig.Types.GrpcServiceDefinition>, IBufferMessage, IMessage
Reference documentation and code samples for the API Gateway v1 API class ApiConfig.Types.GrpcServiceDefinition.
public ApiConfig.Types.File FileDescriptorSet { get; set; }
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.
public RepeatedField<ApiConfig.Types.File> Source { get; }
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.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[[["\u003cp\u003eThis document provides reference documentation for the \u003ccode\u003eApiConfig.Types.GrpcServiceDefinition\u003c/code\u003e class within the Google Cloud API Gateway v1 API, covering versions from 1.0.0 to the latest 2.4.0.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eApiConfig.Types.GrpcServiceDefinition\u003c/code\u003e class represents a gRPC service definition, implementing interfaces like \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eIt inherits from the base \u003ccode\u003eobject\u003c/code\u003e class and includes members like \u003ccode\u003eGetHashCode()\u003c/code\u003e, \u003ccode\u003eGetType()\u003c/code\u003e, and \u003ccode\u003eToString()\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe class has properties such as \u003ccode\u003eFileDescriptorSet\u003c/code\u003e, which is an input-only property for file descriptor sets, and \u003ccode\u003eSource\u003c/code\u003e, which contains uncompiled proto files.\u003c/p\u003e\n"],["\u003cp\u003eIt also has two constructors: \u003ccode\u003eGrpcServiceDefinition()\u003c/code\u003e and \u003ccode\u003eGrpcServiceDefinition(ApiConfig.Types.GrpcServiceDefinition other)\u003c/code\u003e, the latter of which will take in another \u003ccode\u003eGrpcServiceDefinition\u003c/code\u003e object.\u003c/p\u003e\n"]]],[],null,["# API Gateway v1 API - Class ApiConfig.Types.GrpcServiceDefinition (2.4.0)\n\nVersion latestkeyboard_arrow_down\n\n- [2.4.0 (latest)](/dotnet/docs/reference/Google.Cloud.ApiGateway.V1/latest/Google.Cloud.ApiGateway.V1.ApiConfig.Types.GrpcServiceDefinition)\n- [2.3.0](/dotnet/docs/reference/Google.Cloud.ApiGateway.V1/2.3.0/Google.Cloud.ApiGateway.V1.ApiConfig.Types.GrpcServiceDefinition)\n- [2.2.0](/dotnet/docs/reference/Google.Cloud.ApiGateway.V1/2.2.0/Google.Cloud.ApiGateway.V1.ApiConfig.Types.GrpcServiceDefinition)\n- [2.1.0](/dotnet/docs/reference/Google.Cloud.ApiGateway.V1/2.1.0/Google.Cloud.ApiGateway.V1.ApiConfig.Types.GrpcServiceDefinition)\n- [2.0.0](/dotnet/docs/reference/Google.Cloud.ApiGateway.V1/2.0.0/Google.Cloud.ApiGateway.V1.ApiConfig.Types.GrpcServiceDefinition)\n- [1.1.0](/dotnet/docs/reference/Google.Cloud.ApiGateway.V1/1.1.0/Google.Cloud.ApiGateway.V1.ApiConfig.Types.GrpcServiceDefinition)\n- [1.0.0](/dotnet/docs/reference/Google.Cloud.ApiGateway.V1/1.0.0/Google.Cloud.ApiGateway.V1.ApiConfig.Types.GrpcServiceDefinition) \n\n public sealed class ApiConfig.Types.GrpcServiceDefinition : IMessage\u003cApiConfig.Types.GrpcServiceDefinition\u003e, IEquatable\u003cApiConfig.Types.GrpcServiceDefinition\u003e, IDeepCloneable\u003cApiConfig.Types.GrpcServiceDefinition\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the API Gateway v1 API class ApiConfig.Types.GrpcServiceDefinition.\n\nA gRPC service definition. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e ApiConfig.Types.GrpcServiceDefinition \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[ApiConfig](/dotnet/docs/reference/Google.Cloud.ApiGateway.V1/latest/Google.Cloud.ApiGateway.V1.ApiConfig)[Types](/dotnet/docs/reference/Google.Cloud.ApiGateway.V1/latest/Google.Cloud.ApiGateway.V1.ApiConfig.Types)[GrpcServiceDefinition](/dotnet/docs/reference/Google.Cloud.ApiGateway.V1/latest/Google.Cloud.ApiGateway.V1.ApiConfig.Types.GrpcServiceDefinition), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[ApiConfig](/dotnet/docs/reference/Google.Cloud.ApiGateway.V1/latest/Google.Cloud.ApiGateway.V1.ApiConfig)[Types](/dotnet/docs/reference/Google.Cloud.ApiGateway.V1/latest/Google.Cloud.ApiGateway.V1.ApiConfig.Types)[GrpcServiceDefinition](/dotnet/docs/reference/Google.Cloud.ApiGateway.V1/latest/Google.Cloud.ApiGateway.V1.ApiConfig.Types.GrpcServiceDefinition), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[ApiConfig](/dotnet/docs/reference/Google.Cloud.ApiGateway.V1/latest/Google.Cloud.ApiGateway.V1.ApiConfig)[Types](/dotnet/docs/reference/Google.Cloud.ApiGateway.V1/latest/Google.Cloud.ApiGateway.V1.ApiConfig.Types)[GrpcServiceDefinition](/dotnet/docs/reference/Google.Cloud.ApiGateway.V1/latest/Google.Cloud.ApiGateway.V1.ApiConfig.Types.GrpcServiceDefinition), [IBufferMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.html), [IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.html) \n\nInherited Members\n-----------------\n\n[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) \n[object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) \n[object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)\n\nNamespace\n---------\n\n[Google.Cloud.ApiGateway.V1](/dotnet/docs/reference/Google.Cloud.ApiGateway.V1/latest/Google.Cloud.ApiGateway.V1)\n\nAssembly\n--------\n\nGoogle.Cloud.ApiGateway.V1.dll\n\nConstructors\n------------\n\n### GrpcServiceDefinition()\n\n public GrpcServiceDefinition()\n\n### GrpcServiceDefinition(GrpcServiceDefinition)\n\n public GrpcServiceDefinition(ApiConfig.Types.GrpcServiceDefinition other)\n\nProperties\n----------\n\n### FileDescriptorSet\n\n public ApiConfig.Types.File FileDescriptorSet { get; set; }\n\nInput only. File descriptor set, generated by protoc.\n\nTo generate, use protoc with imports and source info included.\nFor an example test.proto file, the following command would put the value\nin a new file named out.pb.\n\n$ protoc --include_imports --include_source_info test.proto -o out.pb\n\n### Source\n\n public RepeatedField\u003cApiConfig.Types.File\u003e Source { get; }\n\nOptional. Uncompiled proto files associated with the descriptor set, used for\ndisplay purposes (server-side compilation is not supported). These\nshould match the inputs to 'protoc' command used to generate\nfile_descriptor_set."]]