Reference documentation and code samples for the Compute Engine v1 API enum BackendService.Types.Protocol.
The protocol this BackendService uses to communicate with backends. Possible values are HTTP, HTTPS, HTTP2, H2C, TCP, SSL, UDP or GRPC. depending on the chosen load balancer or Traffic Director configuration. Refer to the documentation for the load balancers or for Traffic Director for more information. Must be set to GRPC when the backend service is referenced by a URL map that is bound to target gRPC proxy.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-08 UTC."],[[["\u003cp\u003eThe latest version of the \u003ccode\u003eBackendService.Types.Protocol\u003c/code\u003e is 3.6.0, and the documentation provides access to versions ranging from 1.0.0 to the latest.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eBackendService.Types.Protocol\u003c/code\u003e is an enum used by the Compute Engine v1 API to define the communication protocol used between a \u003ccode\u003eBackendService\u003c/code\u003e and its backends, which includes options like HTTP, HTTPS, HTTP2, TCP, SSL, UDP, or GRPC.\u003c/p\u003e\n"],["\u003cp\u003eThe enum \u003ccode\u003eBackendService.Types.Protocol\u003c/code\u003e defines specific protocol fields such as \u003ccode\u003eGrpc\u003c/code\u003e, \u003ccode\u003eHttp\u003c/code\u003e, \u003ccode\u003eHttp2\u003c/code\u003e, \u003ccode\u003eHttps\u003c/code\u003e, \u003ccode\u003eSsl\u003c/code\u003e, \u003ccode\u003eTcp\u003c/code\u003e, \u003ccode\u003eUdp\u003c/code\u003e, \u003ccode\u003eUndefinedProtocol\u003c/code\u003e, and \u003ccode\u003eUnspecified\u003c/code\u003e, each with its designated use, like gRPC for Traffic Director or TCP for proxying.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eUnspecified\u003c/code\u003e protocol can be utilized with any L3/L4 Forwarding Rules, while \u003ccode\u003eGrpc\u003c/code\u003e is specifically required when a backend service is connected to a URL map that targets a gRPC proxy.\u003c/p\u003e\n"]]],[],null,[]]